connectwise-ruby-sdk 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +1141 -0
- data/connectwise-ruby-sdk.gemspec +54 -0
- data/docs/AccountingBatchTransactionsApi.md +184 -0
- data/docs/AccountingBatchesApi.md +280 -0
- data/docs/AccountingUnpostedExpensesApi.md +175 -0
- data/docs/AccountingUnpostedProcurementsApi.md +175 -0
- data/docs/AccountingUnpostedinvoicesApi.md +175 -0
- data/docs/ActivitiesApi.md +392 -0
- data/docs/Activity.md +30 -0
- data/docs/ActivityReference.md +10 -0
- data/docs/ActivityStatus.md +14 -0
- data/docs/ActivityStatusReference.md +10 -0
- data/docs/ActivityStatusesApi.md +392 -0
- data/docs/ActivityType.md +15 -0
- data/docs/ActivityTypeReference.md +10 -0
- data/docs/ActivityTypesApi.md +392 -0
- data/docs/Addition.md +30 -0
- data/docs/Adjustment.md +13 -0
- data/docs/Agreement.md +76 -0
- data/docs/AgreementAdditionsApi.md +413 -0
- data/docs/AgreementAdjustmentsApi.md +413 -0
- data/docs/AgreementBoardDefaultsApi.md +413 -0
- data/docs/AgreementReference.md +10 -0
- data/docs/AgreementSite.md +12 -0
- data/docs/AgreementSitesApi.md +413 -0
- data/docs/AgreementType.md +61 -0
- data/docs/AgreementTypeReference.md +10 -0
- data/docs/AgreementTypesApi.md +392 -0
- data/docs/AgreementWorkRole.md +17 -0
- data/docs/AgreementWorkRoleExclusion.md +11 -0
- data/docs/AgreementWorkRoleExclusionsApi.md +239 -0
- data/docs/AgreementWorkRolesApi.md +413 -0
- data/docs/AgreementWorkType.md +25 -0
- data/docs/AgreementWorkTypeExclusion.md +11 -0
- data/docs/AgreementWorkTypeExclusionsApi.md +239 -0
- data/docs/AgreementWorkTypesApi.md +413 -0
- data/docs/AgreementsApi.md +671 -0
- data/docs/AuditTrailApi.md +180 -0
- data/docs/AuditTrailEntry.md +12 -0
- data/docs/AuditTrailEntryInsertRequest.md +9 -0
- data/docs/AuditTrailObjects.md +9 -0
- data/docs/Batch.md +24 -0
- data/docs/BatchReference.md +10 -0
- data/docs/BillingStatusReference.md +10 -0
- data/docs/BillingTermsReference.md +10 -0
- data/docs/Board.md +21 -0
- data/docs/BoardDefault.md +13 -0
- data/docs/BoardExcludedMembersApi.md +295 -0
- data/docs/BoardItemsApi.md +413 -0
- data/docs/BoardReference.md +10 -0
- data/docs/BoardStatusesApi.md +413 -0
- data/docs/BoardSubTypesApi.md +413 -0
- data/docs/BoardTeamsApi.md +413 -0
- data/docs/BoardTypesApi.md +469 -0
- data/docs/BoardsApi.md +392 -0
- data/docs/CalendarReference.md +10 -0
- data/docs/CallbackEntriesApi.md +392 -0
- data/docs/CallbackEntry.md +15 -0
- data/docs/Campaign.md +33 -0
- data/docs/CampaignAudit.md +16 -0
- data/docs/CampaignAuditsApi.md +413 -0
- data/docs/CampaignEmailsOpenedApi.md +413 -0
- data/docs/CampaignFormsSubmittedApi.md +413 -0
- data/docs/CampaignLinksClickedApi.md +413 -0
- data/docs/CampaignReference.md +10 -0
- data/docs/CampaignStatus.md +12 -0
- data/docs/CampaignStatusReference.md +10 -0
- data/docs/CampaignStatusesApi.md +392 -0
- data/docs/CampaignSubType.md +11 -0
- data/docs/CampaignSubTypeReference.md +10 -0
- data/docs/CampaignSubTypesApi.md +413 -0
- data/docs/CampaignType.md +11 -0
- data/docs/CampaignTypeReference.md +10 -0
- data/docs/CampaignTypesApi.md +392 -0
- data/docs/CampaignsApi.md +616 -0
- data/docs/CatalogComponent.md +19 -0
- data/docs/CatalogComponentsApi.md +413 -0
- data/docs/CatalogItem.md +33 -0
- data/docs/CatalogItemReference.md +10 -0
- data/docs/CatalogsItemApi.md +449 -0
- data/docs/CategoriesApi.md +392 -0
- data/docs/Category.md +16 -0
- data/docs/ChargeCodeReference.md +10 -0
- data/docs/ClassificationReference.md +10 -0
- data/docs/Code.md +14 -0
- data/docs/CodesApi.md +392 -0
- data/docs/CommunicationTypeReference.md +10 -0
- data/docs/CompaniesApi.md +448 -0
- data/docs/Company.md +53 -0
- data/docs/CompanyManagementSummary.md +42 -0
- data/docs/CompanyManagementSummaryReportsApi.md +413 -0
- data/docs/CompanyMerge.md +49 -0
- data/docs/CompanyNote.md +14 -0
- data/docs/CompanyNotesApi.md +413 -0
- data/docs/CompanyReference.md +11 -0
- data/docs/CompanySite.md +27 -0
- data/docs/CompanySitesApi.md +413 -0
- data/docs/CompanyStatus.md +18 -0
- data/docs/CompanyStatusReference.md +10 -0
- data/docs/CompanyStatusesApi.md +392 -0
- data/docs/CompanyTeam.md +18 -0
- data/docs/CompanyTeamsApi.md +413 -0
- data/docs/CompanyType.md +12 -0
- data/docs/CompanyTypeReference.md +10 -0
- data/docs/CompanyTypesApi.md +392 -0
- data/docs/Configuration.md +57 -0
- data/docs/ConfigurationQuestion.md +15 -0
- data/docs/ConfigurationReference.md +10 -0
- data/docs/ConfigurationStatus.md +12 -0
- data/docs/ConfigurationStatusReference.md +10 -0
- data/docs/ConfigurationStatusesApi.md +392 -0
- data/docs/ConfigurationType.md +12 -0
- data/docs/ConfigurationTypeQuestion.md +18 -0
- data/docs/ConfigurationTypeQuestionsApi.md +413 -0
- data/docs/ConfigurationTypeReference.md +10 -0
- data/docs/ConfigurationTypesApi.md +392 -0
- data/docs/ConfigurationsApi.md +444 -0
- data/docs/ConnectWiseHostedSetup.md +18 -0
- data/docs/ConnectWiseHostedSetupsApi.md +392 -0
- data/docs/Contact.md +47 -0
- data/docs/ContactCommunication.md +16 -0
- data/docs/ContactCommunicationItem.md +13 -0
- data/docs/ContactCommunicationsApi.md +413 -0
- data/docs/ContactDepartment.md +10 -0
- data/docs/ContactDepartmentReference.md +10 -0
- data/docs/ContactDepartmentsApi.md +392 -0
- data/docs/ContactNote.md +14 -0
- data/docs/ContactNotesApi.md +413 -0
- data/docs/ContactReference.md +10 -0
- data/docs/ContactRelationship.md +10 -0
- data/docs/ContactRelationshipsApi.md +392 -0
- data/docs/ContactTracksApi.md +295 -0
- data/docs/ContactType.md +11 -0
- data/docs/ContactTypeReference.md +10 -0
- data/docs/ContactTypesApi.md +392 -0
- data/docs/ContactsApi.md +612 -0
- data/docs/Conversion.md +12 -0
- data/docs/Count.md +8 -0
- data/docs/CountryReference.md +10 -0
- data/docs/CurrenciesApi.md +392 -0
- data/docs/Currency.md +15 -0
- data/docs/CurrencyReference.md +10 -0
- data/docs/CustomFieldValue.md +13 -0
- data/docs/DocumentInfo.md +17 -0
- data/docs/DocumentReference.md +9 -0
- data/docs/DocumentsApi.md +474 -0
- data/docs/EmailOpened.md +11 -0
- data/docs/EntityTypeReference.md +10 -0
- data/docs/Error.md +10 -0
- data/docs/ExcludedMember.md +11 -0
- data/docs/ExpenseEntriesApi.md +392 -0
- data/docs/ExpenseEntry.md +25 -0
- data/docs/ExpenseTax.md +10 -0
- data/docs/ExpenseTaxTypeReference.md +10 -0
- data/docs/ExpenseType.md +20 -0
- data/docs/ExpenseTypeReference.md +10 -0
- data/docs/ExpenseTypesApi.md +392 -0
- data/docs/FilterValues.md +9 -0
- data/docs/Forecast.md +19 -0
- data/docs/FormSubmitted.md +18 -0
- data/docs/GenericIdIdentifierReference.md +9 -0
- data/docs/Group.md +13 -0
- data/docs/GroupCompaniesApi.md +413 -0
- data/docs/GroupContactsApi.md +413 -0
- data/docs/GroupReference.md +10 -0
- data/docs/GroupsApi.md +392 -0
- data/docs/Guid.md +7 -0
- data/docs/Info.md +10 -0
- data/docs/InfoApi.md +55 -0
- data/docs/IntegratorLogin.md +65 -0
- data/docs/Invoice.md +54 -0
- data/docs/InvoicePaymentsApi.md +356 -0
- data/docs/InvoiceReference.md +10 -0
- data/docs/InvoicesApi.md +444 -0
- data/docs/Item.md +16 -0
- data/docs/IvItemReference.md +10 -0
- data/docs/JObject.md +7 -0
- data/docs/KnowledgeBaseArticle.md +19 -0
- data/docs/KnowledgeBaseArticlesApi.md +392 -0
- data/docs/Link.md +12 -0
- data/docs/LinkClicked.md +13 -0
- data/docs/LinksApi.md +392 -0
- data/docs/Location.md +12 -0
- data/docs/LocationsApi.md +392 -0
- data/docs/ManagementSolutionReference.md +10 -0
- data/docs/Manufacturer.md +11 -0
- data/docs/ManufacturerReference.md +10 -0
- data/docs/ManufacturersApi.md +392 -0
- data/docs/MarketingCompany.md +13 -0
- data/docs/MarketingContact.md +12 -0
- data/docs/Member.md +94 -0
- data/docs/MemberReference.md +11 -0
- data/docs/MemberTypeReference.md +10 -0
- data/docs/MembersApi.md +286 -0
- data/docs/MenuEntriesApi.md +502 -0
- data/docs/MenuEntry.md +17 -0
- data/docs/MenuLocationReference.md +10 -0
- data/docs/Metadata.md +7 -0
- data/docs/NoteTypeReference.md +10 -0
- data/docs/OpportunitiesApi.md +616 -0
- data/docs/Opportunity.md +40 -0
- data/docs/OpportunityContact.md +17 -0
- data/docs/OpportunityContactsApi.md +413 -0
- data/docs/OpportunityForecastsApi.md +413 -0
- data/docs/OpportunityNote.md +15 -0
- data/docs/OpportunityNotesApi.md +413 -0
- data/docs/OpportunityPriorityReference.md +10 -0
- data/docs/OpportunityProbabilityReference.md +10 -0
- data/docs/OpportunityRating.md +11 -0
- data/docs/OpportunityRatingReference.md +10 -0
- data/docs/OpportunityRatingsApi.md +392 -0
- data/docs/OpportunityReference.md +10 -0
- data/docs/OpportunitySalesRoleReference.md +10 -0
- data/docs/OpportunityStageReference.md +10 -0
- data/docs/OpportunityStatus.md +17 -0
- data/docs/OpportunityStatusReference.md +10 -0
- data/docs/OpportunityStatusesApi.md +392 -0
- data/docs/OpportunityTeamsApi.md +413 -0
- data/docs/OpportunityToAgreementConversion.md +22 -0
- data/docs/OpportunityToProjectConversion.md +22 -0
- data/docs/OpportunityToSalesOrderConversion.md +15 -0
- data/docs/OpportunityToServiceTicketConversion.md +15 -0
- data/docs/OpportunityType.md +11 -0
- data/docs/OpportunityTypeReference.md +10 -0
- data/docs/OpportunityTypesApi.md +392 -0
- data/docs/Order.md +44 -0
- data/docs/OrderStatus.md +14 -0
- data/docs/OrderStatusReference.md +10 -0
- data/docs/OrderStatusesApi.md +392 -0
- data/docs/OrdersApi.md +392 -0
- data/docs/OwnershipTypeReference.md +10 -0
- data/docs/PatchOperation.md +10 -0
- data/docs/Payment.md +14 -0
- data/docs/PaymentMethodReference.md +10 -0
- data/docs/PhaseStatusReference.md +10 -0
- data/docs/PortalSecurity.md +9 -0
- data/docs/PricingBreak.md +14 -0
- data/docs/PricingBreaksApi.md +434 -0
- data/docs/PricingDetail.md +14 -0
- data/docs/PricingDetailsApi.md +413 -0
- data/docs/PricingSchedule.md +15 -0
- data/docs/PricingSchedulesApi.md +392 -0
- data/docs/PrioritiesApi.md +450 -0
- data/docs/Priority.md +14 -0
- data/docs/PriorityReference.md +11 -0
- data/docs/ProductCategoryReference.md +10 -0
- data/docs/ProductComponent.md +21 -0
- data/docs/ProductComponentsApi.md +413 -0
- data/docs/ProductItem.md +51 -0
- data/docs/ProductItemReference.md +10 -0
- data/docs/ProductPickingShippingDetail.md +20 -0
- data/docs/ProductPickingShippingDetailsApi.md +413 -0
- data/docs/ProductRecurring.md +14 -0
- data/docs/ProductReference.md +10 -0
- data/docs/ProductSubCategoryReference.md +10 -0
- data/docs/ProductType.md +12 -0
- data/docs/ProductTypeReference.md +10 -0
- data/docs/ProductTypesApi.md +392 -0
- data/docs/ProductsItemApi.md +392 -0
- data/docs/Project.md +61 -0
- data/docs/ProjectBoardReference.md +10 -0
- data/docs/ProjectContact.md +11 -0
- data/docs/ProjectContactsApi.md +238 -0
- data/docs/ProjectNote.md +13 -0
- data/docs/ProjectNotesApi.md +413 -0
- data/docs/ProjectPhase.md +34 -0
- data/docs/ProjectPhaseReference.md +10 -0
- data/docs/ProjectPhasesApi.md +413 -0
- data/docs/ProjectReference.md +10 -0
- data/docs/ProjectRoleReference.md +10 -0
- data/docs/ProjectStatusReference.md +10 -0
- data/docs/ProjectTeamMember.md +16 -0
- data/docs/ProjectTypeReference.md +10 -0
- data/docs/ProjectsApi.md +392 -0
- data/docs/ProjectsTeamMembersApi.md +413 -0
- data/docs/PurchaseOrder.md +56 -0
- data/docs/PurchaseOrderLineItem.md +35 -0
- data/docs/PurchaseOrderLineItemsApi.md +413 -0
- data/docs/PurchaseOrderReference.md +10 -0
- data/docs/PurchaseOrderStatusReference.md +10 -0
- data/docs/PurchaseOrdersApi.md +392 -0
- data/docs/RelationshipReference.md +10 -0
- data/docs/ReminderReference.md +10 -0
- data/docs/Report.md +8 -0
- data/docs/ReportDataResponse.md +9 -0
- data/docs/ReportsApi.md +239 -0
- data/docs/RequestPasswordRequest.md +8 -0
- data/docs/SLAReference.md +10 -0
- data/docs/SalesTeamReference.md +10 -0
- data/docs/ScheduleEntriesApi.md +392 -0
- data/docs/ScheduleEntry.md +27 -0
- data/docs/ScheduleEntryReference.md +10 -0
- data/docs/ScheduleSpanReference.md +10 -0
- data/docs/ScheduleStatus.md +12 -0
- data/docs/ScheduleStatusReference.md +10 -0
- data/docs/ScheduleStatusesApi.md +392 -0
- data/docs/ScheduleType.md +14 -0
- data/docs/ScheduleTypeReference.md +10 -0
- data/docs/ScheduleTypesApi.md +392 -0
- data/docs/SecurityRoleReference.md +10 -0
- data/docs/ServiceCodeReference.md +10 -0
- data/docs/ServiceItemReference.md +10 -0
- data/docs/ServiceLocationReference.md +10 -0
- data/docs/ServiceNote.md +22 -0
- data/docs/ServiceSignoffReference.md +10 -0
- data/docs/ServiceSourceReference.md +10 -0
- data/docs/ServiceStatusReference.md +10 -0
- data/docs/ServiceSubTypeReference.md +10 -0
- data/docs/ServiceTeamReference.md +10 -0
- data/docs/ServiceTypeReference.md +10 -0
- data/docs/ShipmentMethod.md +13 -0
- data/docs/ShipmentMethodReference.md +10 -0
- data/docs/ShipmentMethodsApi.md +392 -0
- data/docs/SicCodeReference.md +10 -0
- data/docs/SiteReference.md +10 -0
- data/docs/Source.md +13 -0
- data/docs/SourcesApi.md +392 -0
- data/docs/Status.md +18 -0
- data/docs/SubCategoriesApi.md +413 -0
- data/docs/SubCategory.md +11 -0
- data/docs/SubType.md +15 -0
- data/docs/SuccessResponse.md +9 -0
- data/docs/Survey.md +20 -0
- data/docs/SurveyQuestion.md +17 -0
- data/docs/SurveyQuestionOption.md +10 -0
- data/docs/SurveyQuestionsApi.md +413 -0
- data/docs/SurveyResult.md +18 -0
- data/docs/SurveyResultDetail.md +9 -0
- data/docs/SurveyResultsApi.md +413 -0
- data/docs/SurveysApi.md +392 -0
- data/docs/Task.md +18 -0
- data/docs/TaxCodeReference.md +10 -0
- data/docs/Team.md +24 -0
- data/docs/TeamRoleReference.md +10 -0
- data/docs/Ticket.md +96 -0
- data/docs/TicketNotesApi.md +413 -0
- data/docs/TicketReference.md +10 -0
- data/docs/TicketTasksApi.md +413 -0
- data/docs/TicketsApi.md +1290 -0
- data/docs/TimeEntriesApi.md +392 -0
- data/docs/TimeEntry.md +36 -0
- data/docs/TimeEntryReference.md +9 -0
- data/docs/TimeZoneReference.md +10 -0
- data/docs/Token.md +10 -0
- data/docs/Track.md +18 -0
- data/docs/TrackReference.md +10 -0
- data/docs/Transaction.md +67 -0
- data/docs/Type.md +17 -0
- data/docs/TypeAssociations.md +9 -0
- data/docs/UnitOfMeasure.md +13 -0
- data/docs/UnitOfMeasureConversionsApi.md +413 -0
- data/docs/UnitOfMeasureReference.md +10 -0
- data/docs/UnitsOfMeasureApi.md +392 -0
- data/docs/UnpostedExpense.md +53 -0
- data/docs/UnpostedInvoice.md +50 -0
- data/docs/UnpostedProcurement.md +48 -0
- data/docs/UserDefinedField.md +29 -0
- data/docs/UserDefinedFieldOption.md +12 -0
- data/docs/UserDefinedFieldsApi.md +392 -0
- data/docs/ValidatePortalRequest.md +9 -0
- data/docs/ValidatePortalResponse.md +9 -0
- data/docs/ValidationError.md +11 -0
- data/docs/WarehouseBinReference.md +10 -0
- data/docs/WarehouseReference.md +10 -0
- data/docs/WorkRoleReference.md +10 -0
- data/docs/WorkTypeReference.md +10 -0
- data/git_push.sh +67 -0
- data/lib/connectwise-ruby-sdk.rb +414 -0
- data/lib/connectwise-ruby-sdk/api/accounting_batch_transactions_api.rb +224 -0
- data/lib/connectwise-ruby-sdk/api/accounting_batches_api.rb +325 -0
- data/lib/connectwise-ruby-sdk/api/accounting_unposted_expenses_api.rb +212 -0
- data/lib/connectwise-ruby-sdk/api/accounting_unposted_procurements_api.rb +212 -0
- data/lib/connectwise-ruby-sdk/api/accounting_unpostedinvoices_api.rb +212 -0
- data/lib/connectwise-ruby-sdk/api/activities_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/activity_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/activity_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/agreement_additions_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreement_adjustments_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreement_board_defaults_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreement_sites_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreement_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/agreement_work_role_exclusions_api.rb +284 -0
- data/lib/connectwise-ruby-sdk/api/agreement_work_roles_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreement_work_type_exclusions_api.rb +284 -0
- data/lib/connectwise-ruby-sdk/api/agreement_work_types_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreements_api.rb +749 -0
- data/lib/connectwise-ruby-sdk/api/audit_trail_api.rb +226 -0
- data/lib/connectwise-ruby-sdk/api/board_excluded_members_api.rb +345 -0
- data/lib/connectwise-ruby-sdk/api/board_items_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/board_statuses_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/board_sub_types_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/board_teams_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/board_types_api.rb +536 -0
- data/lib/connectwise-ruby-sdk/api/boards_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/callback_entries_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/campaign_audits_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/campaign_emails_opened_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/campaign_forms_submitted_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/campaign_links_clicked_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/campaign_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/campaign_sub_types_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/campaign_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/campaigns_api.rb +687 -0
- data/lib/connectwise-ruby-sdk/api/catalog_components_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/catalogs_item_api.rb +507 -0
- data/lib/connectwise-ruby-sdk/api/categories_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/codes_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/companies_api.rb +508 -0
- data/lib/connectwise-ruby-sdk/api/company_management_summary_reports_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/company_notes_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/company_sites_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/company_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/company_teams_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/company_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/configuration_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/configuration_type_questions_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/configuration_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/configurations_api.rb +525 -0
- data/lib/connectwise-ruby-sdk/api/connect_wise_hosted_setups_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/contact_communications_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/contact_departments_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/contact_notes_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/contact_relationships_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/contact_tracks_api.rb +345 -0
- data/lib/connectwise-ruby-sdk/api/contact_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/contacts_api.rb +682 -0
- data/lib/connectwise-ruby-sdk/api/currencies_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/documents_api.rb +580 -0
- data/lib/connectwise-ruby-sdk/api/expense_entries_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/expense_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/group_companies_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/group_contacts_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/groups_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/info_api.rb +87 -0
- data/lib/connectwise-ruby-sdk/api/invoice_payments_api.rb +415 -0
- data/lib/connectwise-ruby-sdk/api/invoices_api.rb +503 -0
- data/lib/connectwise-ruby-sdk/api/knowledge_base_articles_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/links_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/locations_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/manufacturers_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/members_api.rb +331 -0
- data/lib/connectwise-ruby-sdk/api/menu_entries_api.rb +565 -0
- data/lib/connectwise-ruby-sdk/api/opportunities_api.rb +691 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_contacts_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_forecasts_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_notes_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_ratings_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_teams_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/order_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/orders_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/pricing_breaks_api.rb +503 -0
- data/lib/connectwise-ruby-sdk/api/pricing_details_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/pricing_schedules_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/priorities_api.rb +509 -0
- data/lib/connectwise-ruby-sdk/api/product_components_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/product_picking_shipping_details_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/product_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/products_item_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/project_contacts_api.rb +285 -0
- data/lib/connectwise-ruby-sdk/api/project_notes_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/project_phases_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/projects_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/projects_team_members_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/purchase_order_line_items_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/purchase_orders_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/reports_api.rb +282 -0
- data/lib/connectwise-ruby-sdk/api/schedule_entries_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/schedule_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/schedule_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/shipment_methods_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/sources_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/sub_categories_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/survey_questions_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/survey_results_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/surveys_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/ticket_notes_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/ticket_tasks_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/tickets_api.rb +1412 -0
- data/lib/connectwise-ruby-sdk/api/time_entries_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/unit_of_measure_conversions_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/units_of_measure_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/user_defined_fields_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api_client.rb +379 -0
- data/lib/connectwise-ruby-sdk/api_error.rb +47 -0
- data/lib/connectwise-ruby-sdk/configuration.rb +214 -0
- data/lib/connectwise-ruby-sdk/models/activity.rb +448 -0
- data/lib/connectwise-ruby-sdk/models/activity_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/activity_status.rb +270 -0
- data/lib/connectwise-ruby-sdk/models/activity_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/activity_type.rb +279 -0
- data/lib/connectwise-ruby-sdk/models/activity_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/addition.rb +463 -0
- data/lib/connectwise-ruby-sdk/models/adjustment.rb +260 -0
- data/lib/connectwise-ruby-sdk/models/agreement.rb +1020 -0
- data/lib/connectwise-ruby-sdk/models/agreement_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/agreement_site.rb +237 -0
- data/lib/connectwise-ruby-sdk/models/agreement_type.rb +859 -0
- data/lib/connectwise-ruby-sdk/models/agreement_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/agreement_work_role.rb +315 -0
- data/lib/connectwise-ruby-sdk/models/agreement_work_role_exclusion.rb +228 -0
- data/lib/connectwise-ruby-sdk/models/agreement_work_type.rb +412 -0
- data/lib/connectwise-ruby-sdk/models/agreement_work_type_exclusion.rb +228 -0
- data/lib/connectwise-ruby-sdk/models/audit_trail_entry.rb +235 -0
- data/lib/connectwise-ruby-sdk/models/audit_trail_entry_insert_request.rb +226 -0
- data/lib/connectwise-ruby-sdk/models/audit_trail_objects.rb +245 -0
- data/lib/connectwise-ruby-sdk/models/batch.rb +372 -0
- data/lib/connectwise-ruby-sdk/models/batch_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/billing_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/billing_terms_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/board.rb +337 -0
- data/lib/connectwise-ruby-sdk/models/board_default.rb +246 -0
- data/lib/connectwise-ruby-sdk/models/board_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/calendar_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/callback_entry.rb +282 -0
- data/lib/connectwise-ruby-sdk/models/campaign.rb +444 -0
- data/lib/connectwise-ruby-sdk/models/campaign_audit.rb +347 -0
- data/lib/connectwise-ruby-sdk/models/campaign_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/campaign_status.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/campaign_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/campaign_sub_type.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/campaign_sub_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/campaign_type.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/campaign_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/catalog_component.rb +301 -0
- data/lib/connectwise-ruby-sdk/models/catalog_item.rb +566 -0
- data/lib/connectwise-ruby-sdk/models/catalog_item_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/category.rb +320 -0
- data/lib/connectwise-ruby-sdk/models/charge_code_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/classification_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/code.rb +271 -0
- data/lib/connectwise-ruby-sdk/models/communication_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/company.rb +942 -0
- data/lib/connectwise-ruby-sdk/models/company_management_summary.rb +556 -0
- data/lib/connectwise-ruby-sdk/models/company_merge.rb +1082 -0
- data/lib/connectwise-ruby-sdk/models/company_note.rb +255 -0
- data/lib/connectwise-ruby-sdk/models/company_reference.rb +227 -0
- data/lib/connectwise-ruby-sdk/models/company_site.rb +492 -0
- data/lib/connectwise-ruby-sdk/models/company_status.rb +321 -0
- data/lib/connectwise-ruby-sdk/models/company_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/company_team.rb +291 -0
- data/lib/connectwise-ruby-sdk/models/company_type.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/company_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/configuration.rb +888 -0
- data/lib/connectwise-ruby-sdk/models/configuration_question.rb +295 -0
- data/lib/connectwise-ruby-sdk/models/configuration_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/configuration_status.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/configuration_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/configuration_type.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/configuration_type_question.rb +375 -0
- data/lib/connectwise-ruby-sdk/models/configuration_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/connect_wise_hosted_setup.rb +373 -0
- data/lib/connectwise-ruby-sdk/models/contact.rb +831 -0
- data/lib/connectwise-ruby-sdk/models/contact_communication.rb +337 -0
- data/lib/connectwise-ruby-sdk/models/contact_communication_item.rb +309 -0
- data/lib/connectwise-ruby-sdk/models/contact_department.rb +234 -0
- data/lib/connectwise-ruby-sdk/models/contact_department_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/contact_note.rb +255 -0
- data/lib/connectwise-ruby-sdk/models/contact_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/contact_relationship.rb +234 -0
- data/lib/connectwise-ruby-sdk/models/contact_type.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/contact_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/conversion.rb +238 -0
- data/lib/connectwise-ruby-sdk/models/count.rb +199 -0
- data/lib/connectwise-ruby-sdk/models/country_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/currency.rb +324 -0
- data/lib/connectwise-ruby-sdk/models/currency_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/custom_field_value.rb +289 -0
- data/lib/connectwise-ruby-sdk/models/document_info.rb +281 -0
- data/lib/connectwise-ruby-sdk/models/document_reference.rb +209 -0
- data/lib/connectwise-ruby-sdk/models/email_opened.rb +227 -0
- data/lib/connectwise-ruby-sdk/models/entity_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/error.rb +219 -0
- data/lib/connectwise-ruby-sdk/models/excluded_member.rb +228 -0
- data/lib/connectwise-ruby-sdk/models/expense_entry.rb +404 -0
- data/lib/connectwise-ruby-sdk/models/expense_tax.rb +217 -0
- data/lib/connectwise-ruby-sdk/models/expense_tax_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/expense_type.rb +372 -0
- data/lib/connectwise-ruby-sdk/models/expense_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/filter_values.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/forecast.rb +348 -0
- data/lib/connectwise-ruby-sdk/models/form_submitted.rb +306 -0
- data/lib/connectwise-ruby-sdk/models/generic_id_identifier_reference.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/group.rb +261 -0
- data/lib/connectwise-ruby-sdk/models/group_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/guid.rb +190 -0
- data/lib/connectwise-ruby-sdk/models/info.rb +217 -0
- data/lib/connectwise-ruby-sdk/models/integrator_login.rb +930 -0
- data/lib/connectwise-ruby-sdk/models/invoice.rb +722 -0
- data/lib/connectwise-ruby-sdk/models/invoice_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/item.rb +290 -0
- data/lib/connectwise-ruby-sdk/models/iv_item_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/j_object.rb +190 -0
- data/lib/connectwise-ruby-sdk/models/knowledge_base_article.rb +302 -0
- data/lib/connectwise-ruby-sdk/models/link.rb +268 -0
- data/lib/connectwise-ruby-sdk/models/link_clicked.rb +261 -0
- data/lib/connectwise-ruby-sdk/models/location.rb +286 -0
- data/lib/connectwise-ruby-sdk/models/management_solution_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/manufacturer.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/manufacturer_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/marketing_company.rb +246 -0
- data/lib/connectwise-ruby-sdk/models/marketing_contact.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/member.rb +1245 -0
- data/lib/connectwise-ruby-sdk/models/member_reference.rb +227 -0
- data/lib/connectwise-ruby-sdk/models/member_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/menu_entry.rb +332 -0
- data/lib/connectwise-ruby-sdk/models/menu_location_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/metadata.rb +190 -0
- data/lib/connectwise-ruby-sdk/models/note_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity.rb +540 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_contact.rb +282 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_note.rb +264 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_priority_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_probability_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_rating.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_rating_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_sales_role_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_stage_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_status.rb +297 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_to_agreement_conversion.rb +331 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_to_project_conversion.rb +331 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_to_sales_order_conversion.rb +268 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_to_service_ticket_conversion.rb +268 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_type.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/order.rb +550 -0
- data/lib/connectwise-ruby-sdk/models/order_status.rb +270 -0
- data/lib/connectwise-ruby-sdk/models/order_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/ownership_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/patch_operation.rb +217 -0
- data/lib/connectwise-ruby-sdk/models/payment.rb +255 -0
- data/lib/connectwise-ruby-sdk/models/payment_method_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/phase_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/portal_security.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/pricing_break.rb +288 -0
- data/lib/connectwise-ruby-sdk/models/pricing_detail.rb +255 -0
- data/lib/connectwise-ruby-sdk/models/pricing_schedule.rb +281 -0
- data/lib/connectwise-ruby-sdk/models/priority.rb +286 -0
- data/lib/connectwise-ruby-sdk/models/priority_reference.rb +227 -0
- data/lib/connectwise-ruby-sdk/models/product_category_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/product_component.rb +319 -0
- data/lib/connectwise-ruby-sdk/models/product_item.rb +725 -0
- data/lib/connectwise-ruby-sdk/models/product_item_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/product_picking_shipping_detail.rb +314 -0
- data/lib/connectwise-ruby-sdk/models/product_recurring.rb +293 -0
- data/lib/connectwise-ruby-sdk/models/product_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/product_sub_category_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/product_type.rb +285 -0
- data/lib/connectwise-ruby-sdk/models/product_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project.rb +821 -0
- data/lib/connectwise-ruby-sdk/models/project_board_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project_contact.rb +228 -0
- data/lib/connectwise-ruby-sdk/models/project_note.rb +246 -0
- data/lib/connectwise-ruby-sdk/models/project_phase.rb +534 -0
- data/lib/connectwise-ruby-sdk/models/project_phase_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project_role_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project_team_member.rb +274 -0
- data/lib/connectwise-ruby-sdk/models/project_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/purchase_order.rb +698 -0
- data/lib/connectwise-ruby-sdk/models/purchase_order_line_item.rb +553 -0
- data/lib/connectwise-ruby-sdk/models/purchase_order_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/purchase_order_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/relationship_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/reminder_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/report.rb +199 -0
- data/lib/connectwise-ruby-sdk/models/report_data_response.rb +212 -0
- data/lib/connectwise-ruby-sdk/models/request_password_request.rb +199 -0
- data/lib/connectwise-ruby-sdk/models/sales_team_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/schedule_entry.rb +387 -0
- data/lib/connectwise-ruby-sdk/models/schedule_entry_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/schedule_span_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/schedule_status.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/schedule_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/schedule_type.rb +286 -0
- data/lib/connectwise-ruby-sdk/models/schedule_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/security_role_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_code_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_item_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_location_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_note.rb +326 -0
- data/lib/connectwise-ruby-sdk/models/service_signoff_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_source_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_sub_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_team_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/shipment_method.rb +294 -0
- data/lib/connectwise-ruby-sdk/models/shipment_method_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/sic_code_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/site_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/sla_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/source.rb +261 -0
- data/lib/connectwise-ruby-sdk/models/status.rb +339 -0
- data/lib/connectwise-ruby-sdk/models/sub_category.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/sub_type.rb +281 -0
- data/lib/connectwise-ruby-sdk/models/success_response.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/survey.rb +369 -0
- data/lib/connectwise-ruby-sdk/models/survey_question.rb +333 -0
- data/lib/connectwise-ruby-sdk/models/survey_question_option.rb +233 -0
- data/lib/connectwise-ruby-sdk/models/survey_result.rb +293 -0
- data/lib/connectwise-ruby-sdk/models/survey_result_detail.rb +210 -0
- data/lib/connectwise-ruby-sdk/models/task.rb +343 -0
- data/lib/connectwise-ruby-sdk/models/tax_code_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/team.rb +397 -0
- data/lib/connectwise-ruby-sdk/models/team_role_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/ticket.rb +1336 -0
- data/lib/connectwise-ruby-sdk/models/ticket_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/time_entry.rb +502 -0
- data/lib/connectwise-ruby-sdk/models/time_entry_reference.rb +209 -0
- data/lib/connectwise-ruby-sdk/models/time_zone_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/token.rb +217 -0
- data/lib/connectwise-ruby-sdk/models/track.rb +291 -0
- data/lib/connectwise-ruby-sdk/models/track_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/transaction.rb +782 -0
- data/lib/connectwise-ruby-sdk/models/type.rb +330 -0
- data/lib/connectwise-ruby-sdk/models/type_associations.rb +210 -0
- data/lib/connectwise-ruby-sdk/models/unit_of_measure.rb +276 -0
- data/lib/connectwise-ruby-sdk/models/unit_of_measure_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/unposted_expense.rb +656 -0
- data/lib/connectwise-ruby-sdk/models/unposted_invoice.rb +617 -0
- data/lib/connectwise-ruby-sdk/models/unposted_procurement.rb +599 -0
- data/lib/connectwise-ruby-sdk/models/user_defined_field.rb +538 -0
- data/lib/connectwise-ruby-sdk/models/user_defined_field_option.rb +251 -0
- data/lib/connectwise-ruby-sdk/models/validate_portal_request.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/validate_portal_response.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/validation_error.rb +226 -0
- data/lib/connectwise-ruby-sdk/models/warehouse_bin_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/warehouse_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/work_role_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/work_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/version.rb +26 -0
- data/spec/api/accounting_batch_transactions_api_spec.rb +88 -0
- data/spec/api/accounting_batches_api_spec.rb +109 -0
- data/spec/api/accounting_unposted_expenses_api_spec.rb +85 -0
- data/spec/api/accounting_unposted_procurements_api_spec.rb +85 -0
- data/spec/api/accounting_unpostedinvoices_api_spec.rb +85 -0
- data/spec/api/activities_api_spec.rb +135 -0
- data/spec/api/activity_statuses_api_spec.rb +135 -0
- data/spec/api/activity_types_api_spec.rb +135 -0
- data/spec/api/agreement_additions_api_spec.rb +142 -0
- data/spec/api/agreement_adjustments_api_spec.rb +142 -0
- data/spec/api/agreement_board_defaults_api_spec.rb +142 -0
- data/spec/api/agreement_sites_api_spec.rb +142 -0
- data/spec/api/agreement_types_api_spec.rb +135 -0
- data/spec/api/agreement_work_role_exclusions_api_spec.rb +101 -0
- data/spec/api/agreement_work_roles_api_spec.rb +142 -0
- data/spec/api/agreement_work_type_exclusions_api_spec.rb +101 -0
- data/spec/api/agreement_work_types_api_spec.rb +142 -0
- data/spec/api/agreements_api_spec.rb +200 -0
- data/spec/api/audit_trail_api_spec.rb +88 -0
- data/spec/api/board_excluded_members_api_spec.rb +114 -0
- data/spec/api/board_items_api_spec.rb +142 -0
- data/spec/api/board_statuses_api_spec.rb +142 -0
- data/spec/api/board_sub_types_api_spec.rb +142 -0
- data/spec/api/board_teams_api_spec.rb +142 -0
- data/spec/api/board_types_api_spec.rb +155 -0
- data/spec/api/boards_api_spec.rb +135 -0
- data/spec/api/callback_entries_api_spec.rb +135 -0
- data/spec/api/campaign_audits_api_spec.rb +142 -0
- data/spec/api/campaign_emails_opened_api_spec.rb +142 -0
- data/spec/api/campaign_forms_submitted_api_spec.rb +142 -0
- data/spec/api/campaign_links_clicked_api_spec.rb +142 -0
- data/spec/api/campaign_statuses_api_spec.rb +135 -0
- data/spec/api/campaign_sub_types_api_spec.rb +142 -0
- data/spec/api/campaign_types_api_spec.rb +135 -0
- data/spec/api/campaigns_api_spec.rb +187 -0
- data/spec/api/catalog_components_api_spec.rb +142 -0
- data/spec/api/catalogs_item_api_spec.rb +148 -0
- data/spec/api/categories_api_spec.rb +135 -0
- data/spec/api/codes_api_spec.rb +135 -0
- data/spec/api/companies_api_spec.rb +148 -0
- data/spec/api/company_management_summary_reports_api_spec.rb +142 -0
- data/spec/api/company_notes_api_spec.rb +142 -0
- data/spec/api/company_sites_api_spec.rb +142 -0
- data/spec/api/company_statuses_api_spec.rb +135 -0
- data/spec/api/company_teams_api_spec.rb +142 -0
- data/spec/api/company_types_api_spec.rb +135 -0
- data/spec/api/configuration_statuses_api_spec.rb +135 -0
- data/spec/api/configuration_type_questions_api_spec.rb +142 -0
- data/spec/api/configuration_types_api_spec.rb +135 -0
- data/spec/api/configurations_api_spec.rb +158 -0
- data/spec/api/connect_wise_hosted_setups_api_spec.rb +135 -0
- data/spec/api/contact_communications_api_spec.rb +142 -0
- data/spec/api/contact_departments_api_spec.rb +135 -0
- data/spec/api/contact_notes_api_spec.rb +142 -0
- data/spec/api/contact_relationships_api_spec.rb +135 -0
- data/spec/api/contact_tracks_api_spec.rb +114 -0
- data/spec/api/contact_types_api_spec.rb +135 -0
- data/spec/api/contacts_api_spec.rb +186 -0
- data/spec/api/currencies_api_spec.rb +135 -0
- data/spec/api/documents_api_spec.rb +159 -0
- data/spec/api/expense_entries_api_spec.rb +135 -0
- data/spec/api/expense_types_api_spec.rb +135 -0
- data/spec/api/group_companies_api_spec.rb +142 -0
- data/spec/api/group_contacts_api_spec.rb +142 -0
- data/spec/api/groups_api_spec.rb +135 -0
- data/spec/api/info_api_spec.rb +57 -0
- data/spec/api/invoice_payments_api_spec.rb +129 -0
- data/spec/api/invoices_api_spec.rb +147 -0
- data/spec/api/knowledge_base_articles_api_spec.rb +135 -0
- data/spec/api/links_api_spec.rb +135 -0
- data/spec/api/locations_api_spec.rb +135 -0
- data/spec/api/manufacturers_api_spec.rb +135 -0
- data/spec/api/members_api_spec.rb +111 -0
- data/spec/api/menu_entries_api_spec.rb +161 -0
- data/spec/api/opportunities_api_spec.rb +187 -0
- data/spec/api/opportunity_contacts_api_spec.rb +142 -0
- data/spec/api/opportunity_forecasts_api_spec.rb +142 -0
- data/spec/api/opportunity_notes_api_spec.rb +142 -0
- data/spec/api/opportunity_ratings_api_spec.rb +135 -0
- data/spec/api/opportunity_statuses_api_spec.rb +135 -0
- data/spec/api/opportunity_teams_api_spec.rb +142 -0
- data/spec/api/opportunity_types_api_spec.rb +135 -0
- data/spec/api/order_statuses_api_spec.rb +135 -0
- data/spec/api/orders_api_spec.rb +135 -0
- data/spec/api/pricing_breaks_api_spec.rb +149 -0
- data/spec/api/pricing_details_api_spec.rb +142 -0
- data/spec/api/pricing_schedules_api_spec.rb +135 -0
- data/spec/api/priorities_api_spec.rb +149 -0
- data/spec/api/product_components_api_spec.rb +142 -0
- data/spec/api/product_picking_shipping_details_api_spec.rb +142 -0
- data/spec/api/product_types_api_spec.rb +135 -0
- data/spec/api/products_item_api_spec.rb +135 -0
- data/spec/api/project_contacts_api_spec.rb +101 -0
- data/spec/api/project_notes_api_spec.rb +142 -0
- data/spec/api/project_phases_api_spec.rb +142 -0
- data/spec/api/projects_api_spec.rb +135 -0
- data/spec/api/projects_team_members_api_spec.rb +142 -0
- data/spec/api/purchase_order_line_items_api_spec.rb +142 -0
- data/spec/api/purchase_orders_api_spec.rb +135 -0
- data/spec/api/reports_api_spec.rb +101 -0
- data/spec/api/schedule_entries_api_spec.rb +135 -0
- data/spec/api/schedule_statuses_api_spec.rb +135 -0
- data/spec/api/schedule_types_api_spec.rb +135 -0
- data/spec/api/shipment_methods_api_spec.rb +135 -0
- data/spec/api/sources_api_spec.rb +135 -0
- data/spec/api/sub_categories_api_spec.rb +142 -0
- data/spec/api/survey_questions_api_spec.rb +142 -0
- data/spec/api/survey_results_api_spec.rb +142 -0
- data/spec/api/surveys_api_spec.rb +135 -0
- data/spec/api/ticket_notes_api_spec.rb +142 -0
- data/spec/api/ticket_tasks_api_spec.rb +142 -0
- data/spec/api/tickets_api_spec.rb +344 -0
- data/spec/api/time_entries_api_spec.rb +135 -0
- data/spec/api/unit_of_measure_conversions_api_spec.rb +142 -0
- data/spec/api/units_of_measure_api_spec.rb +135 -0
- data/spec/api/user_defined_fields_api_spec.rb +135 -0
- data/spec/api_client_spec.rb +236 -0
- data/spec/configuration_spec.rb +52 -0
- data/spec/models/activity_reference_spec.rb +65 -0
- data/spec/models/activity_spec.rb +185 -0
- data/spec/models/activity_status_reference_spec.rb +65 -0
- data/spec/models/activity_status_spec.rb +89 -0
- data/spec/models/activity_type_reference_spec.rb +65 -0
- data/spec/models/activity_type_spec.rb +95 -0
- data/spec/models/addition_spec.rb +189 -0
- data/spec/models/adjustment_spec.rb +83 -0
- data/spec/models/agreement_reference_spec.rb +65 -0
- data/spec/models/agreement_site_spec.rb +77 -0
- data/spec/models/agreement_spec.rb +497 -0
- data/spec/models/agreement_type_reference_spec.rb +65 -0
- data/spec/models/agreement_type_spec.rb +407 -0
- data/spec/models/agreement_work_role_exclusion_spec.rb +71 -0
- data/spec/models/agreement_work_role_spec.rb +111 -0
- data/spec/models/agreement_work_type_exclusion_spec.rb +71 -0
- data/spec/models/agreement_work_type_spec.rb +167 -0
- data/spec/models/audit_trail_entry_insert_request_spec.rb +59 -0
- data/spec/models/audit_trail_entry_spec.rb +77 -0
- data/spec/models/audit_trail_objects_spec.rb +63 -0
- data/spec/models/batch_reference_spec.rb +65 -0
- data/spec/models/batch_spec.rb +149 -0
- data/spec/models/billing_status_reference_spec.rb +65 -0
- data/spec/models/billing_terms_reference_spec.rb +65 -0
- data/spec/models/board_default_spec.rb +83 -0
- data/spec/models/board_reference_spec.rb +65 -0
- data/spec/models/board_spec.rb +131 -0
- data/spec/models/calendar_reference_spec.rb +65 -0
- data/spec/models/callback_entry_spec.rb +95 -0
- data/spec/models/campaign_audit_spec.rb +101 -0
- data/spec/models/campaign_reference_spec.rb +65 -0
- data/spec/models/campaign_spec.rb +203 -0
- data/spec/models/campaign_status_reference_spec.rb +65 -0
- data/spec/models/campaign_status_spec.rb +77 -0
- data/spec/models/campaign_sub_type_reference_spec.rb +65 -0
- data/spec/models/campaign_sub_type_spec.rb +71 -0
- data/spec/models/campaign_type_reference_spec.rb +65 -0
- data/spec/models/campaign_type_spec.rb +71 -0
- data/spec/models/catalog_component_spec.rb +119 -0
- data/spec/models/catalog_item_reference_spec.rb +65 -0
- data/spec/models/catalog_item_spec.rb +211 -0
- data/spec/models/category_spec.rb +101 -0
- data/spec/models/charge_code_reference_spec.rb +65 -0
- data/spec/models/classification_reference_spec.rb +65 -0
- data/spec/models/code_spec.rb +89 -0
- data/spec/models/communication_type_reference_spec.rb +65 -0
- data/spec/models/company_management_summary_spec.rb +261 -0
- data/spec/models/company_merge_spec.rb +463 -0
- data/spec/models/company_note_spec.rb +89 -0
- data/spec/models/company_reference_spec.rb +71 -0
- data/spec/models/company_site_spec.rb +167 -0
- data/spec/models/company_spec.rb +323 -0
- data/spec/models/company_status_reference_spec.rb +65 -0
- data/spec/models/company_status_spec.rb +113 -0
- data/spec/models/company_team_spec.rb +113 -0
- data/spec/models/company_type_reference_spec.rb +65 -0
- data/spec/models/company_type_spec.rb +77 -0
- data/spec/models/configuration_question_spec.rb +99 -0
- data/spec/models/configuration_reference_spec.rb +65 -0
- data/spec/models/configuration_spec.rb +347 -0
- data/spec/models/configuration_status_reference_spec.rb +65 -0
- data/spec/models/configuration_status_spec.rb +77 -0
- data/spec/models/configuration_type_question_spec.rb +121 -0
- data/spec/models/configuration_type_reference_spec.rb +65 -0
- data/spec/models/configuration_type_spec.rb +77 -0
- data/spec/models/connect_wise_hosted_setup_spec.rb +117 -0
- data/spec/models/contact_communication_item_spec.rb +87 -0
- data/spec/models/contact_communication_spec.rb +105 -0
- data/spec/models/contact_department_reference_spec.rb +65 -0
- data/spec/models/contact_department_spec.rb +65 -0
- data/spec/models/contact_note_spec.rb +89 -0
- data/spec/models/contact_reference_spec.rb +65 -0
- data/spec/models/contact_relationship_spec.rb +65 -0
- data/spec/models/contact_spec.rb +295 -0
- data/spec/models/contact_type_reference_spec.rb +65 -0
- data/spec/models/contact_type_spec.rb +71 -0
- data/spec/models/conversion_spec.rb +77 -0
- data/spec/models/count_spec.rb +53 -0
- data/spec/models/country_reference_spec.rb +65 -0
- data/spec/models/currency_reference_spec.rb +65 -0
- data/spec/models/currency_spec.rb +95 -0
- data/spec/models/custom_field_value_spec.rb +91 -0
- data/spec/models/document_info_spec.rb +107 -0
- data/spec/models/document_reference_spec.rb +59 -0
- data/spec/models/email_opened_spec.rb +71 -0
- data/spec/models/entity_type_reference_spec.rb +65 -0
- data/spec/models/error_spec.rb +65 -0
- data/spec/models/excluded_member_spec.rb +71 -0
- data/spec/models/expense_entry_spec.rb +163 -0
- data/spec/models/expense_tax_spec.rb +65 -0
- data/spec/models/expense_tax_type_reference_spec.rb +65 -0
- data/spec/models/expense_type_reference_spec.rb +65 -0
- data/spec/models/expense_type_spec.rb +133 -0
- data/spec/models/filter_values_spec.rb +59 -0
- data/spec/models/forecast_spec.rb +123 -0
- data/spec/models/form_submitted_spec.rb +113 -0
- data/spec/models/generic_id_identifier_reference_spec.rb +59 -0
- data/spec/models/group_reference_spec.rb +65 -0
- data/spec/models/group_spec.rb +83 -0
- data/spec/models/guid_spec.rb +47 -0
- data/spec/models/info_spec.rb +65 -0
- data/spec/models/integrator_login_spec.rb +395 -0
- data/spec/models/invoice_reference_spec.rb +65 -0
- data/spec/models/invoice_spec.rb +337 -0
- data/spec/models/item_spec.rb +101 -0
- data/spec/models/iv_item_reference_spec.rb +65 -0
- data/spec/models/j_object_spec.rb +47 -0
- data/spec/models/knowledge_base_article_spec.rb +119 -0
- data/spec/models/link_clicked_spec.rb +83 -0
- data/spec/models/link_spec.rb +77 -0
- data/spec/models/location_spec.rb +81 -0
- data/spec/models/management_solution_reference_spec.rb +65 -0
- data/spec/models/manufacturer_reference_spec.rb +65 -0
- data/spec/models/manufacturer_spec.rb +71 -0
- data/spec/models/marketing_company_spec.rb +83 -0
- data/spec/models/marketing_contact_spec.rb +77 -0
- data/spec/models/member_reference_spec.rb +71 -0
- data/spec/models/member_spec.rb +573 -0
- data/spec/models/member_type_reference_spec.rb +65 -0
- data/spec/models/menu_entry_spec.rb +107 -0
- data/spec/models/menu_location_reference_spec.rb +65 -0
- data/spec/models/metadata_spec.rb +47 -0
- data/spec/models/note_type_reference_spec.rb +65 -0
- data/spec/models/opportunity_contact_spec.rb +107 -0
- data/spec/models/opportunity_note_spec.rb +95 -0
- data/spec/models/opportunity_priority_reference_spec.rb +65 -0
- data/spec/models/opportunity_probability_reference_spec.rb +65 -0
- data/spec/models/opportunity_rating_reference_spec.rb +65 -0
- data/spec/models/opportunity_rating_spec.rb +71 -0
- data/spec/models/opportunity_reference_spec.rb +65 -0
- data/spec/models/opportunity_sales_role_reference_spec.rb +65 -0
- data/spec/models/opportunity_spec.rb +245 -0
- data/spec/models/opportunity_stage_reference_spec.rb +65 -0
- data/spec/models/opportunity_status_reference_spec.rb +65 -0
- data/spec/models/opportunity_status_spec.rb +107 -0
- data/spec/models/opportunity_to_agreement_conversion_spec.rb +137 -0
- data/spec/models/opportunity_to_project_conversion_spec.rb +137 -0
- data/spec/models/opportunity_to_sales_order_conversion_spec.rb +95 -0
- data/spec/models/opportunity_to_service_ticket_conversion_spec.rb +95 -0
- data/spec/models/opportunity_type_reference_spec.rb +65 -0
- data/spec/models/opportunity_type_spec.rb +71 -0
- data/spec/models/order_spec.rb +269 -0
- data/spec/models/order_status_reference_spec.rb +65 -0
- data/spec/models/order_status_spec.rb +89 -0
- data/spec/models/ownership_type_reference_spec.rb +65 -0
- data/spec/models/patch_operation_spec.rb +65 -0
- data/spec/models/payment_method_reference_spec.rb +65 -0
- data/spec/models/payment_spec.rb +89 -0
- data/spec/models/phase_status_reference_spec.rb +65 -0
- data/spec/models/portal_security_spec.rb +59 -0
- data/spec/models/pricing_break_spec.rb +93 -0
- data/spec/models/pricing_detail_spec.rb +89 -0
- data/spec/models/pricing_schedule_spec.rb +95 -0
- data/spec/models/priority_reference_spec.rb +71 -0
- data/spec/models/priority_spec.rb +89 -0
- data/spec/models/product_category_reference_spec.rb +65 -0
- data/spec/models/product_component_spec.rb +131 -0
- data/spec/models/product_item_reference_spec.rb +65 -0
- data/spec/models/product_item_spec.rb +323 -0
- data/spec/models/product_picking_shipping_detail_spec.rb +125 -0
- data/spec/models/product_recurring_spec.rb +93 -0
- data/spec/models/product_reference_spec.rb +65 -0
- data/spec/models/product_sub_category_reference_spec.rb +65 -0
- data/spec/models/product_type_reference_spec.rb +65 -0
- data/spec/models/product_type_spec.rb +81 -0
- data/spec/models/project_board_reference_spec.rb +65 -0
- data/spec/models/project_contact_spec.rb +71 -0
- data/spec/models/project_note_spec.rb +83 -0
- data/spec/models/project_phase_reference_spec.rb +65 -0
- data/spec/models/project_phase_spec.rb +225 -0
- data/spec/models/project_reference_spec.rb +65 -0
- data/spec/models/project_role_reference_spec.rb +65 -0
- data/spec/models/project_spec.rb +395 -0
- data/spec/models/project_status_reference_spec.rb +65 -0
- data/spec/models/project_team_member_spec.rb +101 -0
- data/spec/models/project_type_reference_spec.rb +65 -0
- data/spec/models/purchase_order_line_item_spec.rb +215 -0
- data/spec/models/purchase_order_reference_spec.rb +65 -0
- data/spec/models/purchase_order_spec.rb +341 -0
- data/spec/models/purchase_order_status_reference_spec.rb +65 -0
- data/spec/models/relationship_reference_spec.rb +65 -0
- data/spec/models/reminder_reference_spec.rb +65 -0
- data/spec/models/report_data_response_spec.rb +59 -0
- data/spec/models/report_spec.rb +53 -0
- data/spec/models/request_password_request_spec.rb +53 -0
- data/spec/models/sales_team_reference_spec.rb +65 -0
- data/spec/models/schedule_entry_reference_spec.rb +65 -0
- data/spec/models/schedule_entry_spec.rb +167 -0
- data/spec/models/schedule_span_reference_spec.rb +65 -0
- data/spec/models/schedule_status_reference_spec.rb +65 -0
- data/spec/models/schedule_status_spec.rb +77 -0
- data/spec/models/schedule_type_reference_spec.rb +65 -0
- data/spec/models/schedule_type_spec.rb +89 -0
- data/spec/models/security_role_reference_spec.rb +65 -0
- data/spec/models/service_code_reference_spec.rb +65 -0
- data/spec/models/service_item_reference_spec.rb +65 -0
- data/spec/models/service_location_reference_spec.rb +65 -0
- data/spec/models/service_note_spec.rb +137 -0
- data/spec/models/service_signoff_reference_spec.rb +65 -0
- data/spec/models/service_source_reference_spec.rb +65 -0
- data/spec/models/service_status_reference_spec.rb +65 -0
- data/spec/models/service_sub_type_reference_spec.rb +65 -0
- data/spec/models/service_team_reference_spec.rb +65 -0
- data/spec/models/service_type_reference_spec.rb +65 -0
- data/spec/models/shipment_method_reference_spec.rb +65 -0
- data/spec/models/shipment_method_spec.rb +87 -0
- data/spec/models/sic_code_reference_spec.rb +65 -0
- data/spec/models/site_reference_spec.rb +65 -0
- data/spec/models/sla_reference_spec.rb +65 -0
- data/spec/models/source_spec.rb +83 -0
- data/spec/models/status_spec.rb +117 -0
- data/spec/models/sub_category_spec.rb +71 -0
- data/spec/models/sub_type_spec.rb +95 -0
- data/spec/models/success_response_spec.rb +59 -0
- data/spec/models/survey_question_option_spec.rb +65 -0
- data/spec/models/survey_question_spec.rb +111 -0
- data/spec/models/survey_result_detail_spec.rb +59 -0
- data/spec/models/survey_result_spec.rb +113 -0
- data/spec/models/survey_spec.rb +125 -0
- data/spec/models/task_spec.rb +117 -0
- data/spec/models/tax_code_reference_spec.rb +65 -0
- data/spec/models/team_role_reference_spec.rb +65 -0
- data/spec/models/team_spec.rb +153 -0
- data/spec/models/ticket_reference_spec.rb +65 -0
- data/spec/models/ticket_spec.rb +617 -0
- data/spec/models/time_entry_reference_spec.rb +59 -0
- data/spec/models/time_entry_spec.rb +229 -0
- data/spec/models/time_zone_reference_spec.rb +65 -0
- data/spec/models/token_spec.rb +65 -0
- data/spec/models/track_reference_spec.rb +65 -0
- data/spec/models/track_spec.rb +113 -0
- data/spec/models/transaction_spec.rb +415 -0
- data/spec/models/type_associations_spec.rb +59 -0
- data/spec/models/type_spec.rb +111 -0
- data/spec/models/unit_of_measure_reference_spec.rb +65 -0
- data/spec/models/unit_of_measure_spec.rb +83 -0
- data/spec/models/unposted_expense_spec.rb +331 -0
- data/spec/models/unposted_invoice_spec.rb +309 -0
- data/spec/models/unposted_procurement_spec.rb +297 -0
- data/spec/models/user_defined_field_option_spec.rb +77 -0
- data/spec/models/user_defined_field_spec.rb +187 -0
- data/spec/models/validate_portal_request_spec.rb +59 -0
- data/spec/models/validate_portal_response_spec.rb +59 -0
- data/spec/models/validation_error_spec.rb +71 -0
- data/spec/models/warehouse_bin_reference_spec.rb +65 -0
- data/spec/models/warehouse_reference_spec.rb +65 -0
- data/spec/models/work_role_reference_spec.rb +65 -0
- data/spec/models/work_type_reference_spec.rb +65 -0
- data/spec/spec_helper.rb +121 -0
- metadata +1695 -0
@@ -0,0 +1,1082 @@
|
|
1
|
+
=begin
|
2
|
+
#Connectwise REST API
|
3
|
+
|
4
|
+
#ConnectWise API
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
Contact: platform@connectwise.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require 'date'
|
25
|
+
|
26
|
+
module Connectwise
|
27
|
+
|
28
|
+
class CompanyMerge
|
29
|
+
attr_accessor :to_company_id
|
30
|
+
|
31
|
+
attr_accessor :name
|
32
|
+
|
33
|
+
attr_accessor :identifier
|
34
|
+
|
35
|
+
attr_accessor :status
|
36
|
+
|
37
|
+
attr_accessor :type
|
38
|
+
|
39
|
+
attr_accessor :primary_address
|
40
|
+
|
41
|
+
attr_accessor :primary_contact
|
42
|
+
|
43
|
+
attr_accessor :phone
|
44
|
+
|
45
|
+
attr_accessor :fax
|
46
|
+
|
47
|
+
attr_accessor :website
|
48
|
+
|
49
|
+
attr_accessor :market
|
50
|
+
|
51
|
+
attr_accessor :territory
|
52
|
+
|
53
|
+
attr_accessor :revenue
|
54
|
+
|
55
|
+
attr_accessor :revenue_year
|
56
|
+
|
57
|
+
attr_accessor :number_of_employees
|
58
|
+
|
59
|
+
attr_accessor :sic_code
|
60
|
+
|
61
|
+
attr_accessor :date_acquired
|
62
|
+
|
63
|
+
attr_accessor :time_zone
|
64
|
+
|
65
|
+
attr_accessor :source_list
|
66
|
+
|
67
|
+
attr_accessor :user_defined_field1
|
68
|
+
|
69
|
+
attr_accessor :user_defined_field2
|
70
|
+
|
71
|
+
attr_accessor :user_defined_field3
|
72
|
+
|
73
|
+
attr_accessor :user_defined_field4
|
74
|
+
|
75
|
+
attr_accessor :user_defined_field5
|
76
|
+
|
77
|
+
attr_accessor :user_defined_field6
|
78
|
+
|
79
|
+
attr_accessor :user_defined_field7
|
80
|
+
|
81
|
+
attr_accessor :user_defined_field8
|
82
|
+
|
83
|
+
attr_accessor :user_defined_field9
|
84
|
+
|
85
|
+
attr_accessor :user_defined_field10
|
86
|
+
|
87
|
+
attr_accessor :billing_address
|
88
|
+
|
89
|
+
attr_accessor :billing_contact
|
90
|
+
|
91
|
+
attr_accessor :tax_code
|
92
|
+
|
93
|
+
attr_accessor :account_number
|
94
|
+
|
95
|
+
attr_accessor :billing_terms
|
96
|
+
|
97
|
+
attr_accessor :notes
|
98
|
+
|
99
|
+
attr_accessor :sites
|
100
|
+
|
101
|
+
attr_accessor :activities
|
102
|
+
|
103
|
+
attr_accessor :opportunities
|
104
|
+
|
105
|
+
attr_accessor :services
|
106
|
+
|
107
|
+
attr_accessor :projects
|
108
|
+
|
109
|
+
attr_accessor :contacts
|
110
|
+
|
111
|
+
attr_accessor :documents
|
112
|
+
|
113
|
+
class EnumAttributeValidator
|
114
|
+
attr_reader :datatype
|
115
|
+
attr_reader :allowable_values
|
116
|
+
|
117
|
+
def initialize(datatype, allowable_values)
|
118
|
+
@allowable_values = allowable_values.map do |value|
|
119
|
+
case datatype.to_s
|
120
|
+
when /Integer/i
|
121
|
+
value.to_i
|
122
|
+
when /Float/i
|
123
|
+
value.to_f
|
124
|
+
else
|
125
|
+
value
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
def valid?(value)
|
131
|
+
!value || allowable_values.include?(value)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
136
|
+
def self.attribute_map
|
137
|
+
{
|
138
|
+
:'to_company_id' => :'toCompanyId',
|
139
|
+
:'name' => :'name',
|
140
|
+
:'identifier' => :'identifier',
|
141
|
+
:'status' => :'status',
|
142
|
+
:'type' => :'type',
|
143
|
+
:'primary_address' => :'primaryAddress',
|
144
|
+
:'primary_contact' => :'primaryContact',
|
145
|
+
:'phone' => :'phone',
|
146
|
+
:'fax' => :'fax',
|
147
|
+
:'website' => :'website',
|
148
|
+
:'market' => :'market',
|
149
|
+
:'territory' => :'territory',
|
150
|
+
:'revenue' => :'revenue',
|
151
|
+
:'revenue_year' => :'revenueYear',
|
152
|
+
:'number_of_employees' => :'numberOfEmployees',
|
153
|
+
:'sic_code' => :'sicCode',
|
154
|
+
:'date_acquired' => :'dateAcquired',
|
155
|
+
:'time_zone' => :'timeZone',
|
156
|
+
:'source_list' => :'sourceList',
|
157
|
+
:'user_defined_field1' => :'userDefinedField1',
|
158
|
+
:'user_defined_field2' => :'userDefinedField2',
|
159
|
+
:'user_defined_field3' => :'userDefinedField3',
|
160
|
+
:'user_defined_field4' => :'userDefinedField4',
|
161
|
+
:'user_defined_field5' => :'userDefinedField5',
|
162
|
+
:'user_defined_field6' => :'userDefinedField6',
|
163
|
+
:'user_defined_field7' => :'userDefinedField7',
|
164
|
+
:'user_defined_field8' => :'userDefinedField8',
|
165
|
+
:'user_defined_field9' => :'userDefinedField9',
|
166
|
+
:'user_defined_field10' => :'userDefinedField10',
|
167
|
+
:'billing_address' => :'billingAddress',
|
168
|
+
:'billing_contact' => :'billingContact',
|
169
|
+
:'tax_code' => :'taxCode',
|
170
|
+
:'account_number' => :'accountNumber',
|
171
|
+
:'billing_terms' => :'billingTerms',
|
172
|
+
:'notes' => :'notes',
|
173
|
+
:'sites' => :'sites',
|
174
|
+
:'activities' => :'activities',
|
175
|
+
:'opportunities' => :'opportunities',
|
176
|
+
:'services' => :'services',
|
177
|
+
:'projects' => :'projects',
|
178
|
+
:'contacts' => :'contacts',
|
179
|
+
:'documents' => :'documents'
|
180
|
+
}
|
181
|
+
end
|
182
|
+
|
183
|
+
# Attribute type mapping.
|
184
|
+
def self.swagger_types
|
185
|
+
{
|
186
|
+
:'to_company_id' => :'Integer',
|
187
|
+
:'name' => :'String',
|
188
|
+
:'identifier' => :'String',
|
189
|
+
:'status' => :'String',
|
190
|
+
:'type' => :'String',
|
191
|
+
:'primary_address' => :'String',
|
192
|
+
:'primary_contact' => :'String',
|
193
|
+
:'phone' => :'String',
|
194
|
+
:'fax' => :'String',
|
195
|
+
:'website' => :'String',
|
196
|
+
:'market' => :'String',
|
197
|
+
:'territory' => :'String',
|
198
|
+
:'revenue' => :'String',
|
199
|
+
:'revenue_year' => :'String',
|
200
|
+
:'number_of_employees' => :'String',
|
201
|
+
:'sic_code' => :'String',
|
202
|
+
:'date_acquired' => :'String',
|
203
|
+
:'time_zone' => :'String',
|
204
|
+
:'source_list' => :'String',
|
205
|
+
:'user_defined_field1' => :'String',
|
206
|
+
:'user_defined_field2' => :'String',
|
207
|
+
:'user_defined_field3' => :'String',
|
208
|
+
:'user_defined_field4' => :'String',
|
209
|
+
:'user_defined_field5' => :'String',
|
210
|
+
:'user_defined_field6' => :'String',
|
211
|
+
:'user_defined_field7' => :'String',
|
212
|
+
:'user_defined_field8' => :'String',
|
213
|
+
:'user_defined_field9' => :'String',
|
214
|
+
:'user_defined_field10' => :'String',
|
215
|
+
:'billing_address' => :'String',
|
216
|
+
:'billing_contact' => :'String',
|
217
|
+
:'tax_code' => :'String',
|
218
|
+
:'account_number' => :'String',
|
219
|
+
:'billing_terms' => :'String',
|
220
|
+
:'notes' => :'String',
|
221
|
+
:'sites' => :'String',
|
222
|
+
:'activities' => :'String',
|
223
|
+
:'opportunities' => :'String',
|
224
|
+
:'services' => :'String',
|
225
|
+
:'projects' => :'String',
|
226
|
+
:'contacts' => :'String',
|
227
|
+
:'documents' => :'String'
|
228
|
+
}
|
229
|
+
end
|
230
|
+
|
231
|
+
# Initializes the object
|
232
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
233
|
+
def initialize(attributes = {})
|
234
|
+
return unless attributes.is_a?(Hash)
|
235
|
+
|
236
|
+
# convert string to symbol for hash key
|
237
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
238
|
+
|
239
|
+
if attributes.has_key?(:'toCompanyId')
|
240
|
+
self.to_company_id = attributes[:'toCompanyId']
|
241
|
+
end
|
242
|
+
|
243
|
+
if attributes.has_key?(:'name')
|
244
|
+
self.name = attributes[:'name']
|
245
|
+
end
|
246
|
+
|
247
|
+
if attributes.has_key?(:'identifier')
|
248
|
+
self.identifier = attributes[:'identifier']
|
249
|
+
end
|
250
|
+
|
251
|
+
if attributes.has_key?(:'status')
|
252
|
+
self.status = attributes[:'status']
|
253
|
+
end
|
254
|
+
|
255
|
+
if attributes.has_key?(:'type')
|
256
|
+
self.type = attributes[:'type']
|
257
|
+
end
|
258
|
+
|
259
|
+
if attributes.has_key?(:'primaryAddress')
|
260
|
+
self.primary_address = attributes[:'primaryAddress']
|
261
|
+
end
|
262
|
+
|
263
|
+
if attributes.has_key?(:'primaryContact')
|
264
|
+
self.primary_contact = attributes[:'primaryContact']
|
265
|
+
end
|
266
|
+
|
267
|
+
if attributes.has_key?(:'phone')
|
268
|
+
self.phone = attributes[:'phone']
|
269
|
+
end
|
270
|
+
|
271
|
+
if attributes.has_key?(:'fax')
|
272
|
+
self.fax = attributes[:'fax']
|
273
|
+
end
|
274
|
+
|
275
|
+
if attributes.has_key?(:'website')
|
276
|
+
self.website = attributes[:'website']
|
277
|
+
end
|
278
|
+
|
279
|
+
if attributes.has_key?(:'market')
|
280
|
+
self.market = attributes[:'market']
|
281
|
+
end
|
282
|
+
|
283
|
+
if attributes.has_key?(:'territory')
|
284
|
+
self.territory = attributes[:'territory']
|
285
|
+
end
|
286
|
+
|
287
|
+
if attributes.has_key?(:'revenue')
|
288
|
+
self.revenue = attributes[:'revenue']
|
289
|
+
end
|
290
|
+
|
291
|
+
if attributes.has_key?(:'revenueYear')
|
292
|
+
self.revenue_year = attributes[:'revenueYear']
|
293
|
+
end
|
294
|
+
|
295
|
+
if attributes.has_key?(:'numberOfEmployees')
|
296
|
+
self.number_of_employees = attributes[:'numberOfEmployees']
|
297
|
+
end
|
298
|
+
|
299
|
+
if attributes.has_key?(:'sicCode')
|
300
|
+
self.sic_code = attributes[:'sicCode']
|
301
|
+
end
|
302
|
+
|
303
|
+
if attributes.has_key?(:'dateAcquired')
|
304
|
+
self.date_acquired = attributes[:'dateAcquired']
|
305
|
+
end
|
306
|
+
|
307
|
+
if attributes.has_key?(:'timeZone')
|
308
|
+
self.time_zone = attributes[:'timeZone']
|
309
|
+
end
|
310
|
+
|
311
|
+
if attributes.has_key?(:'sourceList')
|
312
|
+
self.source_list = attributes[:'sourceList']
|
313
|
+
end
|
314
|
+
|
315
|
+
if attributes.has_key?(:'userDefinedField1')
|
316
|
+
self.user_defined_field1 = attributes[:'userDefinedField1']
|
317
|
+
end
|
318
|
+
|
319
|
+
if attributes.has_key?(:'userDefinedField2')
|
320
|
+
self.user_defined_field2 = attributes[:'userDefinedField2']
|
321
|
+
end
|
322
|
+
|
323
|
+
if attributes.has_key?(:'userDefinedField3')
|
324
|
+
self.user_defined_field3 = attributes[:'userDefinedField3']
|
325
|
+
end
|
326
|
+
|
327
|
+
if attributes.has_key?(:'userDefinedField4')
|
328
|
+
self.user_defined_field4 = attributes[:'userDefinedField4']
|
329
|
+
end
|
330
|
+
|
331
|
+
if attributes.has_key?(:'userDefinedField5')
|
332
|
+
self.user_defined_field5 = attributes[:'userDefinedField5']
|
333
|
+
end
|
334
|
+
|
335
|
+
if attributes.has_key?(:'userDefinedField6')
|
336
|
+
self.user_defined_field6 = attributes[:'userDefinedField6']
|
337
|
+
end
|
338
|
+
|
339
|
+
if attributes.has_key?(:'userDefinedField7')
|
340
|
+
self.user_defined_field7 = attributes[:'userDefinedField7']
|
341
|
+
end
|
342
|
+
|
343
|
+
if attributes.has_key?(:'userDefinedField8')
|
344
|
+
self.user_defined_field8 = attributes[:'userDefinedField8']
|
345
|
+
end
|
346
|
+
|
347
|
+
if attributes.has_key?(:'userDefinedField9')
|
348
|
+
self.user_defined_field9 = attributes[:'userDefinedField9']
|
349
|
+
end
|
350
|
+
|
351
|
+
if attributes.has_key?(:'userDefinedField10')
|
352
|
+
self.user_defined_field10 = attributes[:'userDefinedField10']
|
353
|
+
end
|
354
|
+
|
355
|
+
if attributes.has_key?(:'billingAddress')
|
356
|
+
self.billing_address = attributes[:'billingAddress']
|
357
|
+
end
|
358
|
+
|
359
|
+
if attributes.has_key?(:'billingContact')
|
360
|
+
self.billing_contact = attributes[:'billingContact']
|
361
|
+
end
|
362
|
+
|
363
|
+
if attributes.has_key?(:'taxCode')
|
364
|
+
self.tax_code = attributes[:'taxCode']
|
365
|
+
end
|
366
|
+
|
367
|
+
if attributes.has_key?(:'accountNumber')
|
368
|
+
self.account_number = attributes[:'accountNumber']
|
369
|
+
end
|
370
|
+
|
371
|
+
if attributes.has_key?(:'billingTerms')
|
372
|
+
self.billing_terms = attributes[:'billingTerms']
|
373
|
+
end
|
374
|
+
|
375
|
+
if attributes.has_key?(:'notes')
|
376
|
+
self.notes = attributes[:'notes']
|
377
|
+
end
|
378
|
+
|
379
|
+
if attributes.has_key?(:'sites')
|
380
|
+
self.sites = attributes[:'sites']
|
381
|
+
end
|
382
|
+
|
383
|
+
if attributes.has_key?(:'activities')
|
384
|
+
self.activities = attributes[:'activities']
|
385
|
+
end
|
386
|
+
|
387
|
+
if attributes.has_key?(:'opportunities')
|
388
|
+
self.opportunities = attributes[:'opportunities']
|
389
|
+
end
|
390
|
+
|
391
|
+
if attributes.has_key?(:'services')
|
392
|
+
self.services = attributes[:'services']
|
393
|
+
end
|
394
|
+
|
395
|
+
if attributes.has_key?(:'projects')
|
396
|
+
self.projects = attributes[:'projects']
|
397
|
+
end
|
398
|
+
|
399
|
+
if attributes.has_key?(:'contacts')
|
400
|
+
self.contacts = attributes[:'contacts']
|
401
|
+
end
|
402
|
+
|
403
|
+
if attributes.has_key?(:'documents')
|
404
|
+
self.documents = attributes[:'documents']
|
405
|
+
end
|
406
|
+
|
407
|
+
end
|
408
|
+
|
409
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
410
|
+
# @return Array for valid properies with the reasons
|
411
|
+
def list_invalid_properties
|
412
|
+
invalid_properties = Array.new
|
413
|
+
return invalid_properties
|
414
|
+
end
|
415
|
+
|
416
|
+
# Check to see if the all the properties in the model are valid
|
417
|
+
# @return true if the model is valid
|
418
|
+
def valid?
|
419
|
+
return false if @to_company_id.nil?
|
420
|
+
name_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
421
|
+
return false unless name_validator.valid?(@name)
|
422
|
+
identifier_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
423
|
+
return false unless identifier_validator.valid?(@identifier)
|
424
|
+
status_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
425
|
+
return false unless status_validator.valid?(@status)
|
426
|
+
type_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
427
|
+
return false unless type_validator.valid?(@type)
|
428
|
+
primary_address_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
429
|
+
return false unless primary_address_validator.valid?(@primary_address)
|
430
|
+
primary_contact_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
431
|
+
return false unless primary_contact_validator.valid?(@primary_contact)
|
432
|
+
phone_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
433
|
+
return false unless phone_validator.valid?(@phone)
|
434
|
+
fax_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
435
|
+
return false unless fax_validator.valid?(@fax)
|
436
|
+
website_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
437
|
+
return false unless website_validator.valid?(@website)
|
438
|
+
market_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
439
|
+
return false unless market_validator.valid?(@market)
|
440
|
+
territory_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
441
|
+
return false unless territory_validator.valid?(@territory)
|
442
|
+
revenue_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
443
|
+
return false unless revenue_validator.valid?(@revenue)
|
444
|
+
revenue_year_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
445
|
+
return false unless revenue_year_validator.valid?(@revenue_year)
|
446
|
+
number_of_employees_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
447
|
+
return false unless number_of_employees_validator.valid?(@number_of_employees)
|
448
|
+
sic_code_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
449
|
+
return false unless sic_code_validator.valid?(@sic_code)
|
450
|
+
date_acquired_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
451
|
+
return false unless date_acquired_validator.valid?(@date_acquired)
|
452
|
+
time_zone_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
453
|
+
return false unless time_zone_validator.valid?(@time_zone)
|
454
|
+
source_list_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
455
|
+
return false unless source_list_validator.valid?(@source_list)
|
456
|
+
user_defined_field1_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
457
|
+
return false unless user_defined_field1_validator.valid?(@user_defined_field1)
|
458
|
+
user_defined_field2_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
459
|
+
return false unless user_defined_field2_validator.valid?(@user_defined_field2)
|
460
|
+
user_defined_field3_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
461
|
+
return false unless user_defined_field3_validator.valid?(@user_defined_field3)
|
462
|
+
user_defined_field4_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
463
|
+
return false unless user_defined_field4_validator.valid?(@user_defined_field4)
|
464
|
+
user_defined_field5_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
465
|
+
return false unless user_defined_field5_validator.valid?(@user_defined_field5)
|
466
|
+
user_defined_field6_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
467
|
+
return false unless user_defined_field6_validator.valid?(@user_defined_field6)
|
468
|
+
user_defined_field7_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
469
|
+
return false unless user_defined_field7_validator.valid?(@user_defined_field7)
|
470
|
+
user_defined_field8_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
471
|
+
return false unless user_defined_field8_validator.valid?(@user_defined_field8)
|
472
|
+
user_defined_field9_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
473
|
+
return false unless user_defined_field9_validator.valid?(@user_defined_field9)
|
474
|
+
user_defined_field10_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
475
|
+
return false unless user_defined_field10_validator.valid?(@user_defined_field10)
|
476
|
+
billing_address_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
477
|
+
return false unless billing_address_validator.valid?(@billing_address)
|
478
|
+
billing_contact_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
479
|
+
return false unless billing_contact_validator.valid?(@billing_contact)
|
480
|
+
tax_code_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
481
|
+
return false unless tax_code_validator.valid?(@tax_code)
|
482
|
+
account_number_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
483
|
+
return false unless account_number_validator.valid?(@account_number)
|
484
|
+
billing_terms_validator = EnumAttributeValidator.new('String', ["From", "To"])
|
485
|
+
return false unless billing_terms_validator.valid?(@billing_terms)
|
486
|
+
notes_validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
487
|
+
return false unless notes_validator.valid?(@notes)
|
488
|
+
sites_validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
489
|
+
return false unless sites_validator.valid?(@sites)
|
490
|
+
activities_validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
491
|
+
return false unless activities_validator.valid?(@activities)
|
492
|
+
opportunities_validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
493
|
+
return false unless opportunities_validator.valid?(@opportunities)
|
494
|
+
services_validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
495
|
+
return false unless services_validator.valid?(@services)
|
496
|
+
projects_validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
497
|
+
return false unless projects_validator.valid?(@projects)
|
498
|
+
contacts_validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
499
|
+
return false unless contacts_validator.valid?(@contacts)
|
500
|
+
documents_validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
501
|
+
return false unless documents_validator.valid?(@documents)
|
502
|
+
return true
|
503
|
+
end
|
504
|
+
|
505
|
+
# Custom attribute writer method checking allowed values (enum).
|
506
|
+
# @param [Object] name Object to be assigned
|
507
|
+
def name=(name)
|
508
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
509
|
+
unless validator.valid?(name)
|
510
|
+
fail ArgumentError, "invalid value for 'name', must be one of #{validator.allowable_values}."
|
511
|
+
end
|
512
|
+
@name = name
|
513
|
+
end
|
514
|
+
|
515
|
+
# Custom attribute writer method checking allowed values (enum).
|
516
|
+
# @param [Object] identifier Object to be assigned
|
517
|
+
def identifier=(identifier)
|
518
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
519
|
+
unless validator.valid?(identifier)
|
520
|
+
fail ArgumentError, "invalid value for 'identifier', must be one of #{validator.allowable_values}."
|
521
|
+
end
|
522
|
+
@identifier = identifier
|
523
|
+
end
|
524
|
+
|
525
|
+
# Custom attribute writer method checking allowed values (enum).
|
526
|
+
# @param [Object] status Object to be assigned
|
527
|
+
def status=(status)
|
528
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
529
|
+
unless validator.valid?(status)
|
530
|
+
fail ArgumentError, "invalid value for 'status', must be one of #{validator.allowable_values}."
|
531
|
+
end
|
532
|
+
@status = status
|
533
|
+
end
|
534
|
+
|
535
|
+
# Custom attribute writer method checking allowed values (enum).
|
536
|
+
# @param [Object] type Object to be assigned
|
537
|
+
def type=(type)
|
538
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
539
|
+
unless validator.valid?(type)
|
540
|
+
fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
|
541
|
+
end
|
542
|
+
@type = type
|
543
|
+
end
|
544
|
+
|
545
|
+
# Custom attribute writer method checking allowed values (enum).
|
546
|
+
# @param [Object] primary_address Object to be assigned
|
547
|
+
def primary_address=(primary_address)
|
548
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
549
|
+
unless validator.valid?(primary_address)
|
550
|
+
fail ArgumentError, "invalid value for 'primary_address', must be one of #{validator.allowable_values}."
|
551
|
+
end
|
552
|
+
@primary_address = primary_address
|
553
|
+
end
|
554
|
+
|
555
|
+
# Custom attribute writer method checking allowed values (enum).
|
556
|
+
# @param [Object] primary_contact Object to be assigned
|
557
|
+
def primary_contact=(primary_contact)
|
558
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
559
|
+
unless validator.valid?(primary_contact)
|
560
|
+
fail ArgumentError, "invalid value for 'primary_contact', must be one of #{validator.allowable_values}."
|
561
|
+
end
|
562
|
+
@primary_contact = primary_contact
|
563
|
+
end
|
564
|
+
|
565
|
+
# Custom attribute writer method checking allowed values (enum).
|
566
|
+
# @param [Object] phone Object to be assigned
|
567
|
+
def phone=(phone)
|
568
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
569
|
+
unless validator.valid?(phone)
|
570
|
+
fail ArgumentError, "invalid value for 'phone', must be one of #{validator.allowable_values}."
|
571
|
+
end
|
572
|
+
@phone = phone
|
573
|
+
end
|
574
|
+
|
575
|
+
# Custom attribute writer method checking allowed values (enum).
|
576
|
+
# @param [Object] fax Object to be assigned
|
577
|
+
def fax=(fax)
|
578
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
579
|
+
unless validator.valid?(fax)
|
580
|
+
fail ArgumentError, "invalid value for 'fax', must be one of #{validator.allowable_values}."
|
581
|
+
end
|
582
|
+
@fax = fax
|
583
|
+
end
|
584
|
+
|
585
|
+
# Custom attribute writer method checking allowed values (enum).
|
586
|
+
# @param [Object] website Object to be assigned
|
587
|
+
def website=(website)
|
588
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
589
|
+
unless validator.valid?(website)
|
590
|
+
fail ArgumentError, "invalid value for 'website', must be one of #{validator.allowable_values}."
|
591
|
+
end
|
592
|
+
@website = website
|
593
|
+
end
|
594
|
+
|
595
|
+
# Custom attribute writer method checking allowed values (enum).
|
596
|
+
# @param [Object] market Object to be assigned
|
597
|
+
def market=(market)
|
598
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
599
|
+
unless validator.valid?(market)
|
600
|
+
fail ArgumentError, "invalid value for 'market', must be one of #{validator.allowable_values}."
|
601
|
+
end
|
602
|
+
@market = market
|
603
|
+
end
|
604
|
+
|
605
|
+
# Custom attribute writer method checking allowed values (enum).
|
606
|
+
# @param [Object] territory Object to be assigned
|
607
|
+
def territory=(territory)
|
608
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
609
|
+
unless validator.valid?(territory)
|
610
|
+
fail ArgumentError, "invalid value for 'territory', must be one of #{validator.allowable_values}."
|
611
|
+
end
|
612
|
+
@territory = territory
|
613
|
+
end
|
614
|
+
|
615
|
+
# Custom attribute writer method checking allowed values (enum).
|
616
|
+
# @param [Object] revenue Object to be assigned
|
617
|
+
def revenue=(revenue)
|
618
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
619
|
+
unless validator.valid?(revenue)
|
620
|
+
fail ArgumentError, "invalid value for 'revenue', must be one of #{validator.allowable_values}."
|
621
|
+
end
|
622
|
+
@revenue = revenue
|
623
|
+
end
|
624
|
+
|
625
|
+
# Custom attribute writer method checking allowed values (enum).
|
626
|
+
# @param [Object] revenue_year Object to be assigned
|
627
|
+
def revenue_year=(revenue_year)
|
628
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
629
|
+
unless validator.valid?(revenue_year)
|
630
|
+
fail ArgumentError, "invalid value for 'revenue_year', must be one of #{validator.allowable_values}."
|
631
|
+
end
|
632
|
+
@revenue_year = revenue_year
|
633
|
+
end
|
634
|
+
|
635
|
+
# Custom attribute writer method checking allowed values (enum).
|
636
|
+
# @param [Object] number_of_employees Object to be assigned
|
637
|
+
def number_of_employees=(number_of_employees)
|
638
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
639
|
+
unless validator.valid?(number_of_employees)
|
640
|
+
fail ArgumentError, "invalid value for 'number_of_employees', must be one of #{validator.allowable_values}."
|
641
|
+
end
|
642
|
+
@number_of_employees = number_of_employees
|
643
|
+
end
|
644
|
+
|
645
|
+
# Custom attribute writer method checking allowed values (enum).
|
646
|
+
# @param [Object] sic_code Object to be assigned
|
647
|
+
def sic_code=(sic_code)
|
648
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
649
|
+
unless validator.valid?(sic_code)
|
650
|
+
fail ArgumentError, "invalid value for 'sic_code', must be one of #{validator.allowable_values}."
|
651
|
+
end
|
652
|
+
@sic_code = sic_code
|
653
|
+
end
|
654
|
+
|
655
|
+
# Custom attribute writer method checking allowed values (enum).
|
656
|
+
# @param [Object] date_acquired Object to be assigned
|
657
|
+
def date_acquired=(date_acquired)
|
658
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
659
|
+
unless validator.valid?(date_acquired)
|
660
|
+
fail ArgumentError, "invalid value for 'date_acquired', must be one of #{validator.allowable_values}."
|
661
|
+
end
|
662
|
+
@date_acquired = date_acquired
|
663
|
+
end
|
664
|
+
|
665
|
+
# Custom attribute writer method checking allowed values (enum).
|
666
|
+
# @param [Object] time_zone Object to be assigned
|
667
|
+
def time_zone=(time_zone)
|
668
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
669
|
+
unless validator.valid?(time_zone)
|
670
|
+
fail ArgumentError, "invalid value for 'time_zone', must be one of #{validator.allowable_values}."
|
671
|
+
end
|
672
|
+
@time_zone = time_zone
|
673
|
+
end
|
674
|
+
|
675
|
+
# Custom attribute writer method checking allowed values (enum).
|
676
|
+
# @param [Object] source_list Object to be assigned
|
677
|
+
def source_list=(source_list)
|
678
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
679
|
+
unless validator.valid?(source_list)
|
680
|
+
fail ArgumentError, "invalid value for 'source_list', must be one of #{validator.allowable_values}."
|
681
|
+
end
|
682
|
+
@source_list = source_list
|
683
|
+
end
|
684
|
+
|
685
|
+
# Custom attribute writer method checking allowed values (enum).
|
686
|
+
# @param [Object] user_defined_field1 Object to be assigned
|
687
|
+
def user_defined_field1=(user_defined_field1)
|
688
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
689
|
+
unless validator.valid?(user_defined_field1)
|
690
|
+
fail ArgumentError, "invalid value for 'user_defined_field1', must be one of #{validator.allowable_values}."
|
691
|
+
end
|
692
|
+
@user_defined_field1 = user_defined_field1
|
693
|
+
end
|
694
|
+
|
695
|
+
# Custom attribute writer method checking allowed values (enum).
|
696
|
+
# @param [Object] user_defined_field2 Object to be assigned
|
697
|
+
def user_defined_field2=(user_defined_field2)
|
698
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
699
|
+
unless validator.valid?(user_defined_field2)
|
700
|
+
fail ArgumentError, "invalid value for 'user_defined_field2', must be one of #{validator.allowable_values}."
|
701
|
+
end
|
702
|
+
@user_defined_field2 = user_defined_field2
|
703
|
+
end
|
704
|
+
|
705
|
+
# Custom attribute writer method checking allowed values (enum).
|
706
|
+
# @param [Object] user_defined_field3 Object to be assigned
|
707
|
+
def user_defined_field3=(user_defined_field3)
|
708
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
709
|
+
unless validator.valid?(user_defined_field3)
|
710
|
+
fail ArgumentError, "invalid value for 'user_defined_field3', must be one of #{validator.allowable_values}."
|
711
|
+
end
|
712
|
+
@user_defined_field3 = user_defined_field3
|
713
|
+
end
|
714
|
+
|
715
|
+
# Custom attribute writer method checking allowed values (enum).
|
716
|
+
# @param [Object] user_defined_field4 Object to be assigned
|
717
|
+
def user_defined_field4=(user_defined_field4)
|
718
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
719
|
+
unless validator.valid?(user_defined_field4)
|
720
|
+
fail ArgumentError, "invalid value for 'user_defined_field4', must be one of #{validator.allowable_values}."
|
721
|
+
end
|
722
|
+
@user_defined_field4 = user_defined_field4
|
723
|
+
end
|
724
|
+
|
725
|
+
# Custom attribute writer method checking allowed values (enum).
|
726
|
+
# @param [Object] user_defined_field5 Object to be assigned
|
727
|
+
def user_defined_field5=(user_defined_field5)
|
728
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
729
|
+
unless validator.valid?(user_defined_field5)
|
730
|
+
fail ArgumentError, "invalid value for 'user_defined_field5', must be one of #{validator.allowable_values}."
|
731
|
+
end
|
732
|
+
@user_defined_field5 = user_defined_field5
|
733
|
+
end
|
734
|
+
|
735
|
+
# Custom attribute writer method checking allowed values (enum).
|
736
|
+
# @param [Object] user_defined_field6 Object to be assigned
|
737
|
+
def user_defined_field6=(user_defined_field6)
|
738
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
739
|
+
unless validator.valid?(user_defined_field6)
|
740
|
+
fail ArgumentError, "invalid value for 'user_defined_field6', must be one of #{validator.allowable_values}."
|
741
|
+
end
|
742
|
+
@user_defined_field6 = user_defined_field6
|
743
|
+
end
|
744
|
+
|
745
|
+
# Custom attribute writer method checking allowed values (enum).
|
746
|
+
# @param [Object] user_defined_field7 Object to be assigned
|
747
|
+
def user_defined_field7=(user_defined_field7)
|
748
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
749
|
+
unless validator.valid?(user_defined_field7)
|
750
|
+
fail ArgumentError, "invalid value for 'user_defined_field7', must be one of #{validator.allowable_values}."
|
751
|
+
end
|
752
|
+
@user_defined_field7 = user_defined_field7
|
753
|
+
end
|
754
|
+
|
755
|
+
# Custom attribute writer method checking allowed values (enum).
|
756
|
+
# @param [Object] user_defined_field8 Object to be assigned
|
757
|
+
def user_defined_field8=(user_defined_field8)
|
758
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
759
|
+
unless validator.valid?(user_defined_field8)
|
760
|
+
fail ArgumentError, "invalid value for 'user_defined_field8', must be one of #{validator.allowable_values}."
|
761
|
+
end
|
762
|
+
@user_defined_field8 = user_defined_field8
|
763
|
+
end
|
764
|
+
|
765
|
+
# Custom attribute writer method checking allowed values (enum).
|
766
|
+
# @param [Object] user_defined_field9 Object to be assigned
|
767
|
+
def user_defined_field9=(user_defined_field9)
|
768
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
769
|
+
unless validator.valid?(user_defined_field9)
|
770
|
+
fail ArgumentError, "invalid value for 'user_defined_field9', must be one of #{validator.allowable_values}."
|
771
|
+
end
|
772
|
+
@user_defined_field9 = user_defined_field9
|
773
|
+
end
|
774
|
+
|
775
|
+
# Custom attribute writer method checking allowed values (enum).
|
776
|
+
# @param [Object] user_defined_field10 Object to be assigned
|
777
|
+
def user_defined_field10=(user_defined_field10)
|
778
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
779
|
+
unless validator.valid?(user_defined_field10)
|
780
|
+
fail ArgumentError, "invalid value for 'user_defined_field10', must be one of #{validator.allowable_values}."
|
781
|
+
end
|
782
|
+
@user_defined_field10 = user_defined_field10
|
783
|
+
end
|
784
|
+
|
785
|
+
# Custom attribute writer method checking allowed values (enum).
|
786
|
+
# @param [Object] billing_address Object to be assigned
|
787
|
+
def billing_address=(billing_address)
|
788
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
789
|
+
unless validator.valid?(billing_address)
|
790
|
+
fail ArgumentError, "invalid value for 'billing_address', must be one of #{validator.allowable_values}."
|
791
|
+
end
|
792
|
+
@billing_address = billing_address
|
793
|
+
end
|
794
|
+
|
795
|
+
# Custom attribute writer method checking allowed values (enum).
|
796
|
+
# @param [Object] billing_contact Object to be assigned
|
797
|
+
def billing_contact=(billing_contact)
|
798
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
799
|
+
unless validator.valid?(billing_contact)
|
800
|
+
fail ArgumentError, "invalid value for 'billing_contact', must be one of #{validator.allowable_values}."
|
801
|
+
end
|
802
|
+
@billing_contact = billing_contact
|
803
|
+
end
|
804
|
+
|
805
|
+
# Custom attribute writer method checking allowed values (enum).
|
806
|
+
# @param [Object] tax_code Object to be assigned
|
807
|
+
def tax_code=(tax_code)
|
808
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
809
|
+
unless validator.valid?(tax_code)
|
810
|
+
fail ArgumentError, "invalid value for 'tax_code', must be one of #{validator.allowable_values}."
|
811
|
+
end
|
812
|
+
@tax_code = tax_code
|
813
|
+
end
|
814
|
+
|
815
|
+
# Custom attribute writer method checking allowed values (enum).
|
816
|
+
# @param [Object] account_number Object to be assigned
|
817
|
+
def account_number=(account_number)
|
818
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
819
|
+
unless validator.valid?(account_number)
|
820
|
+
fail ArgumentError, "invalid value for 'account_number', must be one of #{validator.allowable_values}."
|
821
|
+
end
|
822
|
+
@account_number = account_number
|
823
|
+
end
|
824
|
+
|
825
|
+
# Custom attribute writer method checking allowed values (enum).
|
826
|
+
# @param [Object] billing_terms Object to be assigned
|
827
|
+
def billing_terms=(billing_terms)
|
828
|
+
validator = EnumAttributeValidator.new('String', ["From", "To"])
|
829
|
+
unless validator.valid?(billing_terms)
|
830
|
+
fail ArgumentError, "invalid value for 'billing_terms', must be one of #{validator.allowable_values}."
|
831
|
+
end
|
832
|
+
@billing_terms = billing_terms
|
833
|
+
end
|
834
|
+
|
835
|
+
# Custom attribute writer method checking allowed values (enum).
|
836
|
+
# @param [Object] notes Object to be assigned
|
837
|
+
def notes=(notes)
|
838
|
+
validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
839
|
+
unless validator.valid?(notes)
|
840
|
+
fail ArgumentError, "invalid value for 'notes', must be one of #{validator.allowable_values}."
|
841
|
+
end
|
842
|
+
@notes = notes
|
843
|
+
end
|
844
|
+
|
845
|
+
# Custom attribute writer method checking allowed values (enum).
|
846
|
+
# @param [Object] sites Object to be assigned
|
847
|
+
def sites=(sites)
|
848
|
+
validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
849
|
+
unless validator.valid?(sites)
|
850
|
+
fail ArgumentError, "invalid value for 'sites', must be one of #{validator.allowable_values}."
|
851
|
+
end
|
852
|
+
@sites = sites
|
853
|
+
end
|
854
|
+
|
855
|
+
# Custom attribute writer method checking allowed values (enum).
|
856
|
+
# @param [Object] activities Object to be assigned
|
857
|
+
def activities=(activities)
|
858
|
+
validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
859
|
+
unless validator.valid?(activities)
|
860
|
+
fail ArgumentError, "invalid value for 'activities', must be one of #{validator.allowable_values}."
|
861
|
+
end
|
862
|
+
@activities = activities
|
863
|
+
end
|
864
|
+
|
865
|
+
# Custom attribute writer method checking allowed values (enum).
|
866
|
+
# @param [Object] opportunities Object to be assigned
|
867
|
+
def opportunities=(opportunities)
|
868
|
+
validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
869
|
+
unless validator.valid?(opportunities)
|
870
|
+
fail ArgumentError, "invalid value for 'opportunities', must be one of #{validator.allowable_values}."
|
871
|
+
end
|
872
|
+
@opportunities = opportunities
|
873
|
+
end
|
874
|
+
|
875
|
+
# Custom attribute writer method checking allowed values (enum).
|
876
|
+
# @param [Object] services Object to be assigned
|
877
|
+
def services=(services)
|
878
|
+
validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
879
|
+
unless validator.valid?(services)
|
880
|
+
fail ArgumentError, "invalid value for 'services', must be one of #{validator.allowable_values}."
|
881
|
+
end
|
882
|
+
@services = services
|
883
|
+
end
|
884
|
+
|
885
|
+
# Custom attribute writer method checking allowed values (enum).
|
886
|
+
# @param [Object] projects Object to be assigned
|
887
|
+
def projects=(projects)
|
888
|
+
validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
889
|
+
unless validator.valid?(projects)
|
890
|
+
fail ArgumentError, "invalid value for 'projects', must be one of #{validator.allowable_values}."
|
891
|
+
end
|
892
|
+
@projects = projects
|
893
|
+
end
|
894
|
+
|
895
|
+
# Custom attribute writer method checking allowed values (enum).
|
896
|
+
# @param [Object] contacts Object to be assigned
|
897
|
+
def contacts=(contacts)
|
898
|
+
validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
899
|
+
unless validator.valid?(contacts)
|
900
|
+
fail ArgumentError, "invalid value for 'contacts', must be one of #{validator.allowable_values}."
|
901
|
+
end
|
902
|
+
@contacts = contacts
|
903
|
+
end
|
904
|
+
|
905
|
+
# Custom attribute writer method checking allowed values (enum).
|
906
|
+
# @param [Object] documents Object to be assigned
|
907
|
+
def documents=(documents)
|
908
|
+
validator = EnumAttributeValidator.new('String', ["Discard", "Merge"])
|
909
|
+
unless validator.valid?(documents)
|
910
|
+
fail ArgumentError, "invalid value for 'documents', must be one of #{validator.allowable_values}."
|
911
|
+
end
|
912
|
+
@documents = documents
|
913
|
+
end
|
914
|
+
|
915
|
+
# Checks equality by comparing each attribute.
|
916
|
+
# @param [Object] Object to be compared
|
917
|
+
def ==(o)
|
918
|
+
return true if self.equal?(o)
|
919
|
+
self.class == o.class &&
|
920
|
+
to_company_id == o.to_company_id &&
|
921
|
+
name == o.name &&
|
922
|
+
identifier == o.identifier &&
|
923
|
+
status == o.status &&
|
924
|
+
type == o.type &&
|
925
|
+
primary_address == o.primary_address &&
|
926
|
+
primary_contact == o.primary_contact &&
|
927
|
+
phone == o.phone &&
|
928
|
+
fax == o.fax &&
|
929
|
+
website == o.website &&
|
930
|
+
market == o.market &&
|
931
|
+
territory == o.territory &&
|
932
|
+
revenue == o.revenue &&
|
933
|
+
revenue_year == o.revenue_year &&
|
934
|
+
number_of_employees == o.number_of_employees &&
|
935
|
+
sic_code == o.sic_code &&
|
936
|
+
date_acquired == o.date_acquired &&
|
937
|
+
time_zone == o.time_zone &&
|
938
|
+
source_list == o.source_list &&
|
939
|
+
user_defined_field1 == o.user_defined_field1 &&
|
940
|
+
user_defined_field2 == o.user_defined_field2 &&
|
941
|
+
user_defined_field3 == o.user_defined_field3 &&
|
942
|
+
user_defined_field4 == o.user_defined_field4 &&
|
943
|
+
user_defined_field5 == o.user_defined_field5 &&
|
944
|
+
user_defined_field6 == o.user_defined_field6 &&
|
945
|
+
user_defined_field7 == o.user_defined_field7 &&
|
946
|
+
user_defined_field8 == o.user_defined_field8 &&
|
947
|
+
user_defined_field9 == o.user_defined_field9 &&
|
948
|
+
user_defined_field10 == o.user_defined_field10 &&
|
949
|
+
billing_address == o.billing_address &&
|
950
|
+
billing_contact == o.billing_contact &&
|
951
|
+
tax_code == o.tax_code &&
|
952
|
+
account_number == o.account_number &&
|
953
|
+
billing_terms == o.billing_terms &&
|
954
|
+
notes == o.notes &&
|
955
|
+
sites == o.sites &&
|
956
|
+
activities == o.activities &&
|
957
|
+
opportunities == o.opportunities &&
|
958
|
+
services == o.services &&
|
959
|
+
projects == o.projects &&
|
960
|
+
contacts == o.contacts &&
|
961
|
+
documents == o.documents
|
962
|
+
end
|
963
|
+
|
964
|
+
# @see the `==` method
|
965
|
+
# @param [Object] Object to be compared
|
966
|
+
def eql?(o)
|
967
|
+
self == o
|
968
|
+
end
|
969
|
+
|
970
|
+
# Calculates hash code according to all attributes.
|
971
|
+
# @return [Fixnum] Hash code
|
972
|
+
def hash
|
973
|
+
[to_company_id, name, identifier, status, type, primary_address, primary_contact, phone, fax, website, market, territory, revenue, revenue_year, number_of_employees, sic_code, date_acquired, time_zone, source_list, user_defined_field1, user_defined_field2, user_defined_field3, user_defined_field4, user_defined_field5, user_defined_field6, user_defined_field7, user_defined_field8, user_defined_field9, user_defined_field10, billing_address, billing_contact, tax_code, account_number, billing_terms, notes, sites, activities, opportunities, services, projects, contacts, documents].hash
|
974
|
+
end
|
975
|
+
|
976
|
+
# Builds the object from hash
|
977
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
978
|
+
# @return [Object] Returns the model itself
|
979
|
+
def build_from_hash(attributes)
|
980
|
+
return nil unless attributes.is_a?(Hash)
|
981
|
+
self.class.swagger_types.each_pair do |key, type|
|
982
|
+
if type =~ /^Array<(.*)>/i
|
983
|
+
# check to ensure the input is an array given that the the attribute
|
984
|
+
# is documented as an array but the input is not
|
985
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
986
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
987
|
+
end
|
988
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
989
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
990
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
991
|
+
end
|
992
|
+
|
993
|
+
self
|
994
|
+
end
|
995
|
+
|
996
|
+
# Deserializes the data based on type
|
997
|
+
# @param string type Data type
|
998
|
+
# @param string value Value to be deserialized
|
999
|
+
# @return [Object] Deserialized data
|
1000
|
+
def _deserialize(type, value)
|
1001
|
+
case type.to_sym
|
1002
|
+
when :DateTime
|
1003
|
+
DateTime.parse(value)
|
1004
|
+
when :Date
|
1005
|
+
Date.parse(value)
|
1006
|
+
when :String
|
1007
|
+
value.to_s
|
1008
|
+
when :Integer
|
1009
|
+
value.to_i
|
1010
|
+
when :Float
|
1011
|
+
value.to_f
|
1012
|
+
when :BOOLEAN
|
1013
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
1014
|
+
true
|
1015
|
+
else
|
1016
|
+
false
|
1017
|
+
end
|
1018
|
+
when :Object
|
1019
|
+
# generic object (usually a Hash), return directly
|
1020
|
+
value
|
1021
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
1022
|
+
inner_type = Regexp.last_match[:inner_type]
|
1023
|
+
value.map { |v| _deserialize(inner_type, v) }
|
1024
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
1025
|
+
k_type = Regexp.last_match[:k_type]
|
1026
|
+
v_type = Regexp.last_match[:v_type]
|
1027
|
+
{}.tap do |hash|
|
1028
|
+
value.each do |k, v|
|
1029
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
1030
|
+
end
|
1031
|
+
end
|
1032
|
+
else # model
|
1033
|
+
temp_model = Connectwise.const_get(type).new
|
1034
|
+
temp_model.build_from_hash(value)
|
1035
|
+
end
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
# Returns the string representation of the object
|
1039
|
+
# @return [String] String presentation of the object
|
1040
|
+
def to_s
|
1041
|
+
to_hash.to_s
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# to_body is an alias to to_hash (backward compatibility)
|
1045
|
+
# @return [Hash] Returns the object in the form of hash
|
1046
|
+
def to_body
|
1047
|
+
to_hash
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
# Returns the object in the form of hash
|
1051
|
+
# @return [Hash] Returns the object in the form of hash
|
1052
|
+
def to_hash
|
1053
|
+
hash = {}
|
1054
|
+
self.class.attribute_map.each_pair do |attr, param|
|
1055
|
+
value = self.send(attr)
|
1056
|
+
next if value.nil?
|
1057
|
+
hash[param] = _to_hash(value)
|
1058
|
+
end
|
1059
|
+
hash
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
# Outputs non-array value in the form of hash
|
1063
|
+
# For object, use to_hash. Otherwise, just return the value
|
1064
|
+
# @param [Object] value Any valid value
|
1065
|
+
# @return [Hash] Returns the value in the form of hash
|
1066
|
+
def _to_hash(value)
|
1067
|
+
if value.is_a?(Array)
|
1068
|
+
value.compact.map{ |v| _to_hash(v) }
|
1069
|
+
elsif value.is_a?(Hash)
|
1070
|
+
{}.tap do |hash|
|
1071
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
1072
|
+
end
|
1073
|
+
elsif value.respond_to? :to_hash
|
1074
|
+
value.to_hash
|
1075
|
+
else
|
1076
|
+
value
|
1077
|
+
end
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
end
|
1081
|
+
|
1082
|
+
end
|