connectwise-ruby-sdk 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/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,218 @@
|
|
|
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 CommunicationTypeReference
|
|
29
|
+
attr_accessor :id
|
|
30
|
+
|
|
31
|
+
attr_accessor :name
|
|
32
|
+
|
|
33
|
+
# Metadata of the entity
|
|
34
|
+
attr_accessor :_info
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
|
+
def self.attribute_map
|
|
39
|
+
{
|
|
40
|
+
:'id' => :'id',
|
|
41
|
+
:'name' => :'name',
|
|
42
|
+
:'_info' => :'_info'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.swagger_types
|
|
48
|
+
{
|
|
49
|
+
:'id' => :'Integer',
|
|
50
|
+
:'name' => :'String',
|
|
51
|
+
:'_info' => :'Metadata'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
|
+
def initialize(attributes = {})
|
|
58
|
+
return unless attributes.is_a?(Hash)
|
|
59
|
+
|
|
60
|
+
# convert string to symbol for hash key
|
|
61
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
62
|
+
|
|
63
|
+
if attributes.has_key?(:'id')
|
|
64
|
+
self.id = attributes[:'id']
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
if attributes.has_key?(:'name')
|
|
68
|
+
self.name = attributes[:'name']
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
if attributes.has_key?(:'_info')
|
|
72
|
+
self._info = attributes[:'_info']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
78
|
+
# @return Array for valid properies with the reasons
|
|
79
|
+
def list_invalid_properties
|
|
80
|
+
invalid_properties = Array.new
|
|
81
|
+
return invalid_properties
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Check to see if the all the properties in the model are valid
|
|
85
|
+
# @return true if the model is valid
|
|
86
|
+
def valid?
|
|
87
|
+
return true
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Checks equality by comparing each attribute.
|
|
91
|
+
# @param [Object] Object to be compared
|
|
92
|
+
def ==(o)
|
|
93
|
+
return true if self.equal?(o)
|
|
94
|
+
self.class == o.class &&
|
|
95
|
+
id == o.id &&
|
|
96
|
+
name == o.name &&
|
|
97
|
+
_info == o._info
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# @see the `==` method
|
|
101
|
+
# @param [Object] Object to be compared
|
|
102
|
+
def eql?(o)
|
|
103
|
+
self == o
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Calculates hash code according to all attributes.
|
|
107
|
+
# @return [Fixnum] Hash code
|
|
108
|
+
def hash
|
|
109
|
+
[id, name, _info].hash
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Builds the object from hash
|
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
114
|
+
# @return [Object] Returns the model itself
|
|
115
|
+
def build_from_hash(attributes)
|
|
116
|
+
return nil unless attributes.is_a?(Hash)
|
|
117
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
118
|
+
if type =~ /^Array<(.*)>/i
|
|
119
|
+
# check to ensure the input is an array given that the the attribute
|
|
120
|
+
# is documented as an array but the input is not
|
|
121
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
122
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
123
|
+
end
|
|
124
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
125
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
126
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
self
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Deserializes the data based on type
|
|
133
|
+
# @param string type Data type
|
|
134
|
+
# @param string value Value to be deserialized
|
|
135
|
+
# @return [Object] Deserialized data
|
|
136
|
+
def _deserialize(type, value)
|
|
137
|
+
case type.to_sym
|
|
138
|
+
when :DateTime
|
|
139
|
+
DateTime.parse(value)
|
|
140
|
+
when :Date
|
|
141
|
+
Date.parse(value)
|
|
142
|
+
when :String
|
|
143
|
+
value.to_s
|
|
144
|
+
when :Integer
|
|
145
|
+
value.to_i
|
|
146
|
+
when :Float
|
|
147
|
+
value.to_f
|
|
148
|
+
when :BOOLEAN
|
|
149
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
|
150
|
+
true
|
|
151
|
+
else
|
|
152
|
+
false
|
|
153
|
+
end
|
|
154
|
+
when :Object
|
|
155
|
+
# generic object (usually a Hash), return directly
|
|
156
|
+
value
|
|
157
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
158
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
159
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
160
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
|
161
|
+
k_type = Regexp.last_match[:k_type]
|
|
162
|
+
v_type = Regexp.last_match[:v_type]
|
|
163
|
+
{}.tap do |hash|
|
|
164
|
+
value.each do |k, v|
|
|
165
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
else # model
|
|
169
|
+
temp_model = Connectwise.const_get(type).new
|
|
170
|
+
temp_model.build_from_hash(value)
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Returns the string representation of the object
|
|
175
|
+
# @return [String] String presentation of the object
|
|
176
|
+
def to_s
|
|
177
|
+
to_hash.to_s
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
181
|
+
# @return [Hash] Returns the object in the form of hash
|
|
182
|
+
def to_body
|
|
183
|
+
to_hash
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Returns the object in the form of hash
|
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
|
188
|
+
def to_hash
|
|
189
|
+
hash = {}
|
|
190
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
191
|
+
value = self.send(attr)
|
|
192
|
+
next if value.nil?
|
|
193
|
+
hash[param] = _to_hash(value)
|
|
194
|
+
end
|
|
195
|
+
hash
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Outputs non-array value in the form of hash
|
|
199
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
200
|
+
# @param [Object] value Any valid value
|
|
201
|
+
# @return [Hash] Returns the value in the form of hash
|
|
202
|
+
def _to_hash(value)
|
|
203
|
+
if value.is_a?(Array)
|
|
204
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
205
|
+
elsif value.is_a?(Hash)
|
|
206
|
+
{}.tap do |hash|
|
|
207
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
208
|
+
end
|
|
209
|
+
elsif value.respond_to? :to_hash
|
|
210
|
+
value.to_hash
|
|
211
|
+
else
|
|
212
|
+
value
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
end
|
|
@@ -0,0 +1,942 @@
|
|
|
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 Company
|
|
29
|
+
attr_accessor :id
|
|
30
|
+
|
|
31
|
+
attr_accessor :identifier
|
|
32
|
+
|
|
33
|
+
attr_accessor :name
|
|
34
|
+
|
|
35
|
+
attr_accessor :status
|
|
36
|
+
|
|
37
|
+
attr_accessor :type
|
|
38
|
+
|
|
39
|
+
attr_accessor :address_line1
|
|
40
|
+
|
|
41
|
+
attr_accessor :address_line2
|
|
42
|
+
|
|
43
|
+
attr_accessor :city
|
|
44
|
+
|
|
45
|
+
attr_accessor :state
|
|
46
|
+
|
|
47
|
+
attr_accessor :zip
|
|
48
|
+
|
|
49
|
+
attr_accessor :country
|
|
50
|
+
|
|
51
|
+
attr_accessor :phone_number
|
|
52
|
+
|
|
53
|
+
attr_accessor :fax_number
|
|
54
|
+
|
|
55
|
+
attr_accessor :website
|
|
56
|
+
|
|
57
|
+
attr_accessor :territory_id
|
|
58
|
+
|
|
59
|
+
attr_accessor :market_id
|
|
60
|
+
|
|
61
|
+
attr_accessor :account_number
|
|
62
|
+
|
|
63
|
+
attr_accessor :default_contact
|
|
64
|
+
|
|
65
|
+
attr_accessor :date_acquired
|
|
66
|
+
|
|
67
|
+
attr_accessor :sic_code
|
|
68
|
+
|
|
69
|
+
attr_accessor :parent_company
|
|
70
|
+
|
|
71
|
+
attr_accessor :annual_revenue
|
|
72
|
+
|
|
73
|
+
attr_accessor :number_of_employees
|
|
74
|
+
|
|
75
|
+
attr_accessor :ownership_type
|
|
76
|
+
|
|
77
|
+
attr_accessor :time_zone
|
|
78
|
+
|
|
79
|
+
attr_accessor :lead_source
|
|
80
|
+
|
|
81
|
+
attr_accessor :lead_flag
|
|
82
|
+
|
|
83
|
+
attr_accessor :unsubscribe_flag
|
|
84
|
+
|
|
85
|
+
attr_accessor :calendar_id
|
|
86
|
+
|
|
87
|
+
attr_accessor :user_defined_field1
|
|
88
|
+
|
|
89
|
+
attr_accessor :user_defined_field2
|
|
90
|
+
|
|
91
|
+
attr_accessor :user_defined_field3
|
|
92
|
+
|
|
93
|
+
attr_accessor :user_defined_field4
|
|
94
|
+
|
|
95
|
+
attr_accessor :user_defined_field5
|
|
96
|
+
|
|
97
|
+
attr_accessor :user_defined_field6
|
|
98
|
+
|
|
99
|
+
attr_accessor :user_defined_field7
|
|
100
|
+
|
|
101
|
+
attr_accessor :user_defined_field8
|
|
102
|
+
|
|
103
|
+
attr_accessor :user_defined_field9
|
|
104
|
+
|
|
105
|
+
attr_accessor :user_defined_field10
|
|
106
|
+
|
|
107
|
+
attr_accessor :deleted_flag
|
|
108
|
+
|
|
109
|
+
attr_accessor :date_deleted
|
|
110
|
+
|
|
111
|
+
attr_accessor :deleted_by
|
|
112
|
+
|
|
113
|
+
attr_accessor :mobile_guid
|
|
114
|
+
|
|
115
|
+
attr_accessor :currency
|
|
116
|
+
|
|
117
|
+
# Metadata of the entity
|
|
118
|
+
attr_accessor :_info
|
|
119
|
+
|
|
120
|
+
attr_accessor :custom_fields
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
124
|
+
def self.attribute_map
|
|
125
|
+
{
|
|
126
|
+
:'id' => :'id',
|
|
127
|
+
:'identifier' => :'identifier',
|
|
128
|
+
:'name' => :'name',
|
|
129
|
+
:'status' => :'status',
|
|
130
|
+
:'type' => :'type',
|
|
131
|
+
:'address_line1' => :'addressLine1',
|
|
132
|
+
:'address_line2' => :'addressLine2',
|
|
133
|
+
:'city' => :'city',
|
|
134
|
+
:'state' => :'state',
|
|
135
|
+
:'zip' => :'zip',
|
|
136
|
+
:'country' => :'country',
|
|
137
|
+
:'phone_number' => :'phoneNumber',
|
|
138
|
+
:'fax_number' => :'faxNumber',
|
|
139
|
+
:'website' => :'website',
|
|
140
|
+
:'territory_id' => :'territoryId',
|
|
141
|
+
:'market_id' => :'marketId',
|
|
142
|
+
:'account_number' => :'accountNumber',
|
|
143
|
+
:'default_contact' => :'defaultContact',
|
|
144
|
+
:'date_acquired' => :'dateAcquired',
|
|
145
|
+
:'sic_code' => :'sicCode',
|
|
146
|
+
:'parent_company' => :'parentCompany',
|
|
147
|
+
:'annual_revenue' => :'annualRevenue',
|
|
148
|
+
:'number_of_employees' => :'numberOfEmployees',
|
|
149
|
+
:'ownership_type' => :'ownershipType',
|
|
150
|
+
:'time_zone' => :'timeZone',
|
|
151
|
+
:'lead_source' => :'leadSource',
|
|
152
|
+
:'lead_flag' => :'leadFlag',
|
|
153
|
+
:'unsubscribe_flag' => :'unsubscribeFlag',
|
|
154
|
+
:'calendar_id' => :'calendarId',
|
|
155
|
+
:'user_defined_field1' => :'userDefinedField1',
|
|
156
|
+
:'user_defined_field2' => :'userDefinedField2',
|
|
157
|
+
:'user_defined_field3' => :'userDefinedField3',
|
|
158
|
+
:'user_defined_field4' => :'userDefinedField4',
|
|
159
|
+
:'user_defined_field5' => :'userDefinedField5',
|
|
160
|
+
:'user_defined_field6' => :'userDefinedField6',
|
|
161
|
+
:'user_defined_field7' => :'userDefinedField7',
|
|
162
|
+
:'user_defined_field8' => :'userDefinedField8',
|
|
163
|
+
:'user_defined_field9' => :'userDefinedField9',
|
|
164
|
+
:'user_defined_field10' => :'userDefinedField10',
|
|
165
|
+
:'deleted_flag' => :'deletedFlag',
|
|
166
|
+
:'date_deleted' => :'dateDeleted',
|
|
167
|
+
:'deleted_by' => :'deletedBy',
|
|
168
|
+
:'mobile_guid' => :'mobileGuid',
|
|
169
|
+
:'currency' => :'currency',
|
|
170
|
+
:'_info' => :'_info',
|
|
171
|
+
:'custom_fields' => :'customFields'
|
|
172
|
+
}
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Attribute type mapping.
|
|
176
|
+
def self.swagger_types
|
|
177
|
+
{
|
|
178
|
+
:'id' => :'Integer',
|
|
179
|
+
:'identifier' => :'String',
|
|
180
|
+
:'name' => :'String',
|
|
181
|
+
:'status' => :'CompanyStatusReference',
|
|
182
|
+
:'type' => :'CompanyTypeReference',
|
|
183
|
+
:'address_line1' => :'String',
|
|
184
|
+
:'address_line2' => :'String',
|
|
185
|
+
:'city' => :'String',
|
|
186
|
+
:'state' => :'String',
|
|
187
|
+
:'zip' => :'String',
|
|
188
|
+
:'country' => :'CountryReference',
|
|
189
|
+
:'phone_number' => :'String',
|
|
190
|
+
:'fax_number' => :'String',
|
|
191
|
+
:'website' => :'String',
|
|
192
|
+
:'territory_id' => :'Integer',
|
|
193
|
+
:'market_id' => :'Integer',
|
|
194
|
+
:'account_number' => :'String',
|
|
195
|
+
:'default_contact' => :'ContactReference',
|
|
196
|
+
:'date_acquired' => :'DateTime',
|
|
197
|
+
:'sic_code' => :'SicCodeReference',
|
|
198
|
+
:'parent_company' => :'CompanyReference',
|
|
199
|
+
:'annual_revenue' => :'Float',
|
|
200
|
+
:'number_of_employees' => :'Integer',
|
|
201
|
+
:'ownership_type' => :'OwnershipTypeReference',
|
|
202
|
+
:'time_zone' => :'TimeZoneReference',
|
|
203
|
+
:'lead_source' => :'String',
|
|
204
|
+
:'lead_flag' => :'BOOLEAN',
|
|
205
|
+
:'unsubscribe_flag' => :'BOOLEAN',
|
|
206
|
+
:'calendar_id' => :'Integer',
|
|
207
|
+
:'user_defined_field1' => :'String',
|
|
208
|
+
:'user_defined_field2' => :'String',
|
|
209
|
+
:'user_defined_field3' => :'String',
|
|
210
|
+
:'user_defined_field4' => :'String',
|
|
211
|
+
:'user_defined_field5' => :'String',
|
|
212
|
+
:'user_defined_field6' => :'String',
|
|
213
|
+
:'user_defined_field7' => :'String',
|
|
214
|
+
:'user_defined_field8' => :'String',
|
|
215
|
+
:'user_defined_field9' => :'String',
|
|
216
|
+
:'user_defined_field10' => :'String',
|
|
217
|
+
:'deleted_flag' => :'BOOLEAN',
|
|
218
|
+
:'date_deleted' => :'DateTime',
|
|
219
|
+
:'deleted_by' => :'String',
|
|
220
|
+
:'mobile_guid' => :'Guid',
|
|
221
|
+
:'currency' => :'CurrencyReference',
|
|
222
|
+
:'_info' => :'Metadata',
|
|
223
|
+
:'custom_fields' => :'Array<CustomFieldValue>'
|
|
224
|
+
}
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Initializes the object
|
|
228
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
229
|
+
def initialize(attributes = {})
|
|
230
|
+
return unless attributes.is_a?(Hash)
|
|
231
|
+
|
|
232
|
+
# convert string to symbol for hash key
|
|
233
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
234
|
+
|
|
235
|
+
if attributes.has_key?(:'id')
|
|
236
|
+
self.id = attributes[:'id']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.has_key?(:'identifier')
|
|
240
|
+
self.identifier = attributes[:'identifier']
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.has_key?(:'name')
|
|
244
|
+
self.name = attributes[:'name']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.has_key?(:'status')
|
|
248
|
+
self.status = attributes[:'status']
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
if attributes.has_key?(:'type')
|
|
252
|
+
self.type = attributes[:'type']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.has_key?(:'addressLine1')
|
|
256
|
+
self.address_line1 = attributes[:'addressLine1']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.has_key?(:'addressLine2')
|
|
260
|
+
self.address_line2 = attributes[:'addressLine2']
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
if attributes.has_key?(:'city')
|
|
264
|
+
self.city = attributes[:'city']
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
if attributes.has_key?(:'state')
|
|
268
|
+
self.state = attributes[:'state']
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
if attributes.has_key?(:'zip')
|
|
272
|
+
self.zip = attributes[:'zip']
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
if attributes.has_key?(:'country')
|
|
276
|
+
self.country = attributes[:'country']
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
if attributes.has_key?(:'phoneNumber')
|
|
280
|
+
self.phone_number = attributes[:'phoneNumber']
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
if attributes.has_key?(:'faxNumber')
|
|
284
|
+
self.fax_number = attributes[:'faxNumber']
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if attributes.has_key?(:'website')
|
|
288
|
+
self.website = attributes[:'website']
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if attributes.has_key?(:'territoryId')
|
|
292
|
+
self.territory_id = attributes[:'territoryId']
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
if attributes.has_key?(:'marketId')
|
|
296
|
+
self.market_id = attributes[:'marketId']
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if attributes.has_key?(:'accountNumber')
|
|
300
|
+
self.account_number = attributes[:'accountNumber']
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if attributes.has_key?(:'defaultContact')
|
|
304
|
+
self.default_contact = attributes[:'defaultContact']
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if attributes.has_key?(:'dateAcquired')
|
|
308
|
+
self.date_acquired = attributes[:'dateAcquired']
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
if attributes.has_key?(:'sicCode')
|
|
312
|
+
self.sic_code = attributes[:'sicCode']
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
if attributes.has_key?(:'parentCompany')
|
|
316
|
+
self.parent_company = attributes[:'parentCompany']
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
if attributes.has_key?(:'annualRevenue')
|
|
320
|
+
self.annual_revenue = attributes[:'annualRevenue']
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
if attributes.has_key?(:'numberOfEmployees')
|
|
324
|
+
self.number_of_employees = attributes[:'numberOfEmployees']
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
if attributes.has_key?(:'ownershipType')
|
|
328
|
+
self.ownership_type = attributes[:'ownershipType']
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
if attributes.has_key?(:'timeZone')
|
|
332
|
+
self.time_zone = attributes[:'timeZone']
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
if attributes.has_key?(:'leadSource')
|
|
336
|
+
self.lead_source = attributes[:'leadSource']
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
if attributes.has_key?(:'leadFlag')
|
|
340
|
+
self.lead_flag = attributes[:'leadFlag']
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
if attributes.has_key?(:'unsubscribeFlag')
|
|
344
|
+
self.unsubscribe_flag = attributes[:'unsubscribeFlag']
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
if attributes.has_key?(:'calendarId')
|
|
348
|
+
self.calendar_id = attributes[:'calendarId']
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
if attributes.has_key?(:'userDefinedField1')
|
|
352
|
+
self.user_defined_field1 = attributes[:'userDefinedField1']
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
if attributes.has_key?(:'userDefinedField2')
|
|
356
|
+
self.user_defined_field2 = attributes[:'userDefinedField2']
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
if attributes.has_key?(:'userDefinedField3')
|
|
360
|
+
self.user_defined_field3 = attributes[:'userDefinedField3']
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
if attributes.has_key?(:'userDefinedField4')
|
|
364
|
+
self.user_defined_field4 = attributes[:'userDefinedField4']
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
if attributes.has_key?(:'userDefinedField5')
|
|
368
|
+
self.user_defined_field5 = attributes[:'userDefinedField5']
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
if attributes.has_key?(:'userDefinedField6')
|
|
372
|
+
self.user_defined_field6 = attributes[:'userDefinedField6']
|
|
373
|
+
end
|
|
374
|
+
|
|
375
|
+
if attributes.has_key?(:'userDefinedField7')
|
|
376
|
+
self.user_defined_field7 = attributes[:'userDefinedField7']
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
if attributes.has_key?(:'userDefinedField8')
|
|
380
|
+
self.user_defined_field8 = attributes[:'userDefinedField8']
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
if attributes.has_key?(:'userDefinedField9')
|
|
384
|
+
self.user_defined_field9 = attributes[:'userDefinedField9']
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
if attributes.has_key?(:'userDefinedField10')
|
|
388
|
+
self.user_defined_field10 = attributes[:'userDefinedField10']
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
if attributes.has_key?(:'deletedFlag')
|
|
392
|
+
self.deleted_flag = attributes[:'deletedFlag']
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
if attributes.has_key?(:'dateDeleted')
|
|
396
|
+
self.date_deleted = attributes[:'dateDeleted']
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
if attributes.has_key?(:'deletedBy')
|
|
400
|
+
self.deleted_by = attributes[:'deletedBy']
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
if attributes.has_key?(:'mobileGuid')
|
|
404
|
+
self.mobile_guid = attributes[:'mobileGuid']
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
if attributes.has_key?(:'currency')
|
|
408
|
+
self.currency = attributes[:'currency']
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
if attributes.has_key?(:'_info')
|
|
412
|
+
self._info = attributes[:'_info']
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
if attributes.has_key?(:'customFields')
|
|
416
|
+
if (value = attributes[:'customFields']).is_a?(Array)
|
|
417
|
+
self.custom_fields = value
|
|
418
|
+
end
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
424
|
+
# @return Array for valid properies with the reasons
|
|
425
|
+
def list_invalid_properties
|
|
426
|
+
invalid_properties = Array.new
|
|
427
|
+
return invalid_properties
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# Check to see if the all the properties in the model are valid
|
|
431
|
+
# @return true if the model is valid
|
|
432
|
+
def valid?
|
|
433
|
+
return false if @identifier.nil?
|
|
434
|
+
return false if @identifier.to_s.length < 25
|
|
435
|
+
return false if @name.nil?
|
|
436
|
+
return false if @name.to_s.length < 50
|
|
437
|
+
return false if @status.nil?
|
|
438
|
+
return false if @type.nil?
|
|
439
|
+
return false if @address_line1.nil?
|
|
440
|
+
return false if @address_line1.to_s.length < 50
|
|
441
|
+
return false if @address_line2.to_s.length < 50
|
|
442
|
+
return false if @city.to_s.length < 50
|
|
443
|
+
return false if @state.to_s.length < 50
|
|
444
|
+
return false if @zip.to_s.length < 12
|
|
445
|
+
return false if @phone_number.to_s.length < 30
|
|
446
|
+
return false if @fax_number.to_s.length < 30
|
|
447
|
+
return false if @website.to_s.length < 255
|
|
448
|
+
return false if @account_number.to_s.length < 100
|
|
449
|
+
return false if @lead_source.to_s.length < 50
|
|
450
|
+
return false if @user_defined_field1.to_s.length < 50
|
|
451
|
+
return false if @user_defined_field2.to_s.length < 50
|
|
452
|
+
return false if @user_defined_field3.to_s.length < 50
|
|
453
|
+
return false if @user_defined_field4.to_s.length < 50
|
|
454
|
+
return false if @user_defined_field5.to_s.length < 50
|
|
455
|
+
return false if @user_defined_field6.to_s.length < 50
|
|
456
|
+
return false if @user_defined_field7.to_s.length < 50
|
|
457
|
+
return false if @user_defined_field8.to_s.length < 50
|
|
458
|
+
return false if @user_defined_field9.to_s.length < 50
|
|
459
|
+
return false if @user_defined_field10.to_s.length < 50
|
|
460
|
+
return true
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# Custom attribute writer method with validation
|
|
464
|
+
# @param [Object] identifier Value to be assigned
|
|
465
|
+
def identifier=(identifier)
|
|
466
|
+
if identifier.nil?
|
|
467
|
+
fail ArgumentError, "identifier cannot be nil"
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
if identifier.to_s.length < 25
|
|
471
|
+
fail ArgumentError, "invalid value for 'identifier', the character length must be great than or equal to ."
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
@identifier = identifier
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# Custom attribute writer method with validation
|
|
478
|
+
# @param [Object] name Value to be assigned
|
|
479
|
+
def name=(name)
|
|
480
|
+
if name.nil?
|
|
481
|
+
fail ArgumentError, "name cannot be nil"
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
if name.to_s.length < 50
|
|
485
|
+
fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to ."
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
@name = name
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
# Custom attribute writer method with validation
|
|
492
|
+
# @param [Object] address_line1 Value to be assigned
|
|
493
|
+
def address_line1=(address_line1)
|
|
494
|
+
if address_line1.nil?
|
|
495
|
+
fail ArgumentError, "address_line1 cannot be nil"
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
if address_line1.to_s.length < 50
|
|
499
|
+
fail ArgumentError, "invalid value for 'address_line1', the character length must be great than or equal to ."
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
@address_line1 = address_line1
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
# Custom attribute writer method with validation
|
|
506
|
+
# @param [Object] address_line2 Value to be assigned
|
|
507
|
+
def address_line2=(address_line2)
|
|
508
|
+
if address_line2.nil?
|
|
509
|
+
fail ArgumentError, "address_line2 cannot be nil"
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
if address_line2.to_s.length < 50
|
|
513
|
+
fail ArgumentError, "invalid value for 'address_line2', the character length must be great than or equal to ."
|
|
514
|
+
end
|
|
515
|
+
|
|
516
|
+
@address_line2 = address_line2
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
# Custom attribute writer method with validation
|
|
520
|
+
# @param [Object] city Value to be assigned
|
|
521
|
+
def city=(city)
|
|
522
|
+
if city.nil?
|
|
523
|
+
fail ArgumentError, "city cannot be nil"
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
if city.to_s.length < 50
|
|
527
|
+
fail ArgumentError, "invalid value for 'city', the character length must be great than or equal to ."
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
@city = city
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# Custom attribute writer method with validation
|
|
534
|
+
# @param [Object] state Value to be assigned
|
|
535
|
+
def state=(state)
|
|
536
|
+
if state.nil?
|
|
537
|
+
fail ArgumentError, "state cannot be nil"
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
if state.to_s.length < 50
|
|
541
|
+
fail ArgumentError, "invalid value for 'state', the character length must be great than or equal to ."
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
@state = state
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
# Custom attribute writer method with validation
|
|
548
|
+
# @param [Object] zip Value to be assigned
|
|
549
|
+
def zip=(zip)
|
|
550
|
+
if zip.nil?
|
|
551
|
+
fail ArgumentError, "zip cannot be nil"
|
|
552
|
+
end
|
|
553
|
+
|
|
554
|
+
if zip.to_s.length < 12
|
|
555
|
+
fail ArgumentError, "invalid value for 'zip', the character length must be great than or equal to ."
|
|
556
|
+
end
|
|
557
|
+
|
|
558
|
+
@zip = zip
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
# Custom attribute writer method with validation
|
|
562
|
+
# @param [Object] phone_number Value to be assigned
|
|
563
|
+
def phone_number=(phone_number)
|
|
564
|
+
if phone_number.nil?
|
|
565
|
+
fail ArgumentError, "phone_number cannot be nil"
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
if phone_number.to_s.length < 30
|
|
569
|
+
fail ArgumentError, "invalid value for 'phone_number', the character length must be great than or equal to ."
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
@phone_number = phone_number
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
# Custom attribute writer method with validation
|
|
576
|
+
# @param [Object] fax_number Value to be assigned
|
|
577
|
+
def fax_number=(fax_number)
|
|
578
|
+
if fax_number.nil?
|
|
579
|
+
fail ArgumentError, "fax_number cannot be nil"
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
if fax_number.to_s.length < 30
|
|
583
|
+
fail ArgumentError, "invalid value for 'fax_number', the character length must be great than or equal to ."
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
@fax_number = fax_number
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
# Custom attribute writer method with validation
|
|
590
|
+
# @param [Object] website Value to be assigned
|
|
591
|
+
def website=(website)
|
|
592
|
+
if website.nil?
|
|
593
|
+
fail ArgumentError, "website cannot be nil"
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
if website.to_s.length < 255
|
|
597
|
+
fail ArgumentError, "invalid value for 'website', the character length must be great than or equal to ."
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
@website = website
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
# Custom attribute writer method with validation
|
|
604
|
+
# @param [Object] account_number Value to be assigned
|
|
605
|
+
def account_number=(account_number)
|
|
606
|
+
if account_number.nil?
|
|
607
|
+
fail ArgumentError, "account_number cannot be nil"
|
|
608
|
+
end
|
|
609
|
+
|
|
610
|
+
if account_number.to_s.length < 100
|
|
611
|
+
fail ArgumentError, "invalid value for 'account_number', the character length must be great than or equal to ."
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
@account_number = account_number
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
# Custom attribute writer method with validation
|
|
618
|
+
# @param [Object] lead_source Value to be assigned
|
|
619
|
+
def lead_source=(lead_source)
|
|
620
|
+
if lead_source.nil?
|
|
621
|
+
fail ArgumentError, "lead_source cannot be nil"
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
if lead_source.to_s.length < 50
|
|
625
|
+
fail ArgumentError, "invalid value for 'lead_source', the character length must be great than or equal to ."
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
@lead_source = lead_source
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
# Custom attribute writer method with validation
|
|
632
|
+
# @param [Object] user_defined_field1 Value to be assigned
|
|
633
|
+
def user_defined_field1=(user_defined_field1)
|
|
634
|
+
if user_defined_field1.nil?
|
|
635
|
+
fail ArgumentError, "user_defined_field1 cannot be nil"
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
if user_defined_field1.to_s.length < 50
|
|
639
|
+
fail ArgumentError, "invalid value for 'user_defined_field1', the character length must be great than or equal to ."
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
@user_defined_field1 = user_defined_field1
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
# Custom attribute writer method with validation
|
|
646
|
+
# @param [Object] user_defined_field2 Value to be assigned
|
|
647
|
+
def user_defined_field2=(user_defined_field2)
|
|
648
|
+
if user_defined_field2.nil?
|
|
649
|
+
fail ArgumentError, "user_defined_field2 cannot be nil"
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
if user_defined_field2.to_s.length < 50
|
|
653
|
+
fail ArgumentError, "invalid value for 'user_defined_field2', the character length must be great than or equal to ."
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
@user_defined_field2 = user_defined_field2
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
# Custom attribute writer method with validation
|
|
660
|
+
# @param [Object] user_defined_field3 Value to be assigned
|
|
661
|
+
def user_defined_field3=(user_defined_field3)
|
|
662
|
+
if user_defined_field3.nil?
|
|
663
|
+
fail ArgumentError, "user_defined_field3 cannot be nil"
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
if user_defined_field3.to_s.length < 50
|
|
667
|
+
fail ArgumentError, "invalid value for 'user_defined_field3', the character length must be great than or equal to ."
|
|
668
|
+
end
|
|
669
|
+
|
|
670
|
+
@user_defined_field3 = user_defined_field3
|
|
671
|
+
end
|
|
672
|
+
|
|
673
|
+
# Custom attribute writer method with validation
|
|
674
|
+
# @param [Object] user_defined_field4 Value to be assigned
|
|
675
|
+
def user_defined_field4=(user_defined_field4)
|
|
676
|
+
if user_defined_field4.nil?
|
|
677
|
+
fail ArgumentError, "user_defined_field4 cannot be nil"
|
|
678
|
+
end
|
|
679
|
+
|
|
680
|
+
if user_defined_field4.to_s.length < 50
|
|
681
|
+
fail ArgumentError, "invalid value for 'user_defined_field4', the character length must be great than or equal to ."
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
@user_defined_field4 = user_defined_field4
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
# Custom attribute writer method with validation
|
|
688
|
+
# @param [Object] user_defined_field5 Value to be assigned
|
|
689
|
+
def user_defined_field5=(user_defined_field5)
|
|
690
|
+
if user_defined_field5.nil?
|
|
691
|
+
fail ArgumentError, "user_defined_field5 cannot be nil"
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
if user_defined_field5.to_s.length < 50
|
|
695
|
+
fail ArgumentError, "invalid value for 'user_defined_field5', the character length must be great than or equal to ."
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
@user_defined_field5 = user_defined_field5
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
# Custom attribute writer method with validation
|
|
702
|
+
# @param [Object] user_defined_field6 Value to be assigned
|
|
703
|
+
def user_defined_field6=(user_defined_field6)
|
|
704
|
+
if user_defined_field6.nil?
|
|
705
|
+
fail ArgumentError, "user_defined_field6 cannot be nil"
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
if user_defined_field6.to_s.length < 50
|
|
709
|
+
fail ArgumentError, "invalid value for 'user_defined_field6', the character length must be great than or equal to ."
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
@user_defined_field6 = user_defined_field6
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
# Custom attribute writer method with validation
|
|
716
|
+
# @param [Object] user_defined_field7 Value to be assigned
|
|
717
|
+
def user_defined_field7=(user_defined_field7)
|
|
718
|
+
if user_defined_field7.nil?
|
|
719
|
+
fail ArgumentError, "user_defined_field7 cannot be nil"
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
if user_defined_field7.to_s.length < 50
|
|
723
|
+
fail ArgumentError, "invalid value for 'user_defined_field7', the character length must be great than or equal to ."
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
@user_defined_field7 = user_defined_field7
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
# Custom attribute writer method with validation
|
|
730
|
+
# @param [Object] user_defined_field8 Value to be assigned
|
|
731
|
+
def user_defined_field8=(user_defined_field8)
|
|
732
|
+
if user_defined_field8.nil?
|
|
733
|
+
fail ArgumentError, "user_defined_field8 cannot be nil"
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
if user_defined_field8.to_s.length < 50
|
|
737
|
+
fail ArgumentError, "invalid value for 'user_defined_field8', the character length must be great than or equal to ."
|
|
738
|
+
end
|
|
739
|
+
|
|
740
|
+
@user_defined_field8 = user_defined_field8
|
|
741
|
+
end
|
|
742
|
+
|
|
743
|
+
# Custom attribute writer method with validation
|
|
744
|
+
# @param [Object] user_defined_field9 Value to be assigned
|
|
745
|
+
def user_defined_field9=(user_defined_field9)
|
|
746
|
+
if user_defined_field9.nil?
|
|
747
|
+
fail ArgumentError, "user_defined_field9 cannot be nil"
|
|
748
|
+
end
|
|
749
|
+
|
|
750
|
+
if user_defined_field9.to_s.length < 50
|
|
751
|
+
fail ArgumentError, "invalid value for 'user_defined_field9', the character length must be great than or equal to ."
|
|
752
|
+
end
|
|
753
|
+
|
|
754
|
+
@user_defined_field9 = user_defined_field9
|
|
755
|
+
end
|
|
756
|
+
|
|
757
|
+
# Custom attribute writer method with validation
|
|
758
|
+
# @param [Object] user_defined_field10 Value to be assigned
|
|
759
|
+
def user_defined_field10=(user_defined_field10)
|
|
760
|
+
if user_defined_field10.nil?
|
|
761
|
+
fail ArgumentError, "user_defined_field10 cannot be nil"
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
if user_defined_field10.to_s.length < 50
|
|
765
|
+
fail ArgumentError, "invalid value for 'user_defined_field10', the character length must be great than or equal to ."
|
|
766
|
+
end
|
|
767
|
+
|
|
768
|
+
@user_defined_field10 = user_defined_field10
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
# Checks equality by comparing each attribute.
|
|
772
|
+
# @param [Object] Object to be compared
|
|
773
|
+
def ==(o)
|
|
774
|
+
return true if self.equal?(o)
|
|
775
|
+
self.class == o.class &&
|
|
776
|
+
id == o.id &&
|
|
777
|
+
identifier == o.identifier &&
|
|
778
|
+
name == o.name &&
|
|
779
|
+
status == o.status &&
|
|
780
|
+
type == o.type &&
|
|
781
|
+
address_line1 == o.address_line1 &&
|
|
782
|
+
address_line2 == o.address_line2 &&
|
|
783
|
+
city == o.city &&
|
|
784
|
+
state == o.state &&
|
|
785
|
+
zip == o.zip &&
|
|
786
|
+
country == o.country &&
|
|
787
|
+
phone_number == o.phone_number &&
|
|
788
|
+
fax_number == o.fax_number &&
|
|
789
|
+
website == o.website &&
|
|
790
|
+
territory_id == o.territory_id &&
|
|
791
|
+
market_id == o.market_id &&
|
|
792
|
+
account_number == o.account_number &&
|
|
793
|
+
default_contact == o.default_contact &&
|
|
794
|
+
date_acquired == o.date_acquired &&
|
|
795
|
+
sic_code == o.sic_code &&
|
|
796
|
+
parent_company == o.parent_company &&
|
|
797
|
+
annual_revenue == o.annual_revenue &&
|
|
798
|
+
number_of_employees == o.number_of_employees &&
|
|
799
|
+
ownership_type == o.ownership_type &&
|
|
800
|
+
time_zone == o.time_zone &&
|
|
801
|
+
lead_source == o.lead_source &&
|
|
802
|
+
lead_flag == o.lead_flag &&
|
|
803
|
+
unsubscribe_flag == o.unsubscribe_flag &&
|
|
804
|
+
calendar_id == o.calendar_id &&
|
|
805
|
+
user_defined_field1 == o.user_defined_field1 &&
|
|
806
|
+
user_defined_field2 == o.user_defined_field2 &&
|
|
807
|
+
user_defined_field3 == o.user_defined_field3 &&
|
|
808
|
+
user_defined_field4 == o.user_defined_field4 &&
|
|
809
|
+
user_defined_field5 == o.user_defined_field5 &&
|
|
810
|
+
user_defined_field6 == o.user_defined_field6 &&
|
|
811
|
+
user_defined_field7 == o.user_defined_field7 &&
|
|
812
|
+
user_defined_field8 == o.user_defined_field8 &&
|
|
813
|
+
user_defined_field9 == o.user_defined_field9 &&
|
|
814
|
+
user_defined_field10 == o.user_defined_field10 &&
|
|
815
|
+
deleted_flag == o.deleted_flag &&
|
|
816
|
+
date_deleted == o.date_deleted &&
|
|
817
|
+
deleted_by == o.deleted_by &&
|
|
818
|
+
mobile_guid == o.mobile_guid &&
|
|
819
|
+
currency == o.currency &&
|
|
820
|
+
_info == o._info &&
|
|
821
|
+
custom_fields == o.custom_fields
|
|
822
|
+
end
|
|
823
|
+
|
|
824
|
+
# @see the `==` method
|
|
825
|
+
# @param [Object] Object to be compared
|
|
826
|
+
def eql?(o)
|
|
827
|
+
self == o
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
# Calculates hash code according to all attributes.
|
|
831
|
+
# @return [Fixnum] Hash code
|
|
832
|
+
def hash
|
|
833
|
+
[id, identifier, name, status, type, address_line1, address_line2, city, state, zip, country, phone_number, fax_number, website, territory_id, market_id, account_number, default_contact, date_acquired, sic_code, parent_company, annual_revenue, number_of_employees, ownership_type, time_zone, lead_source, lead_flag, unsubscribe_flag, calendar_id, 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, deleted_flag, date_deleted, deleted_by, mobile_guid, currency, _info, custom_fields].hash
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
# Builds the object from hash
|
|
837
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
838
|
+
# @return [Object] Returns the model itself
|
|
839
|
+
def build_from_hash(attributes)
|
|
840
|
+
return nil unless attributes.is_a?(Hash)
|
|
841
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
842
|
+
if type =~ /^Array<(.*)>/i
|
|
843
|
+
# check to ensure the input is an array given that the the attribute
|
|
844
|
+
# is documented as an array but the input is not
|
|
845
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
846
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
847
|
+
end
|
|
848
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
849
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
850
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
self
|
|
854
|
+
end
|
|
855
|
+
|
|
856
|
+
# Deserializes the data based on type
|
|
857
|
+
# @param string type Data type
|
|
858
|
+
# @param string value Value to be deserialized
|
|
859
|
+
# @return [Object] Deserialized data
|
|
860
|
+
def _deserialize(type, value)
|
|
861
|
+
case type.to_sym
|
|
862
|
+
when :DateTime
|
|
863
|
+
DateTime.parse(value)
|
|
864
|
+
when :Date
|
|
865
|
+
Date.parse(value)
|
|
866
|
+
when :String
|
|
867
|
+
value.to_s
|
|
868
|
+
when :Integer
|
|
869
|
+
value.to_i
|
|
870
|
+
when :Float
|
|
871
|
+
value.to_f
|
|
872
|
+
when :BOOLEAN
|
|
873
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
|
874
|
+
true
|
|
875
|
+
else
|
|
876
|
+
false
|
|
877
|
+
end
|
|
878
|
+
when :Object
|
|
879
|
+
# generic object (usually a Hash), return directly
|
|
880
|
+
value
|
|
881
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
882
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
883
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
884
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
|
885
|
+
k_type = Regexp.last_match[:k_type]
|
|
886
|
+
v_type = Regexp.last_match[:v_type]
|
|
887
|
+
{}.tap do |hash|
|
|
888
|
+
value.each do |k, v|
|
|
889
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
890
|
+
end
|
|
891
|
+
end
|
|
892
|
+
else # model
|
|
893
|
+
temp_model = Connectwise.const_get(type).new
|
|
894
|
+
temp_model.build_from_hash(value)
|
|
895
|
+
end
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
# Returns the string representation of the object
|
|
899
|
+
# @return [String] String presentation of the object
|
|
900
|
+
def to_s
|
|
901
|
+
to_hash.to_s
|
|
902
|
+
end
|
|
903
|
+
|
|
904
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
905
|
+
# @return [Hash] Returns the object in the form of hash
|
|
906
|
+
def to_body
|
|
907
|
+
to_hash
|
|
908
|
+
end
|
|
909
|
+
|
|
910
|
+
# Returns the object in the form of hash
|
|
911
|
+
# @return [Hash] Returns the object in the form of hash
|
|
912
|
+
def to_hash
|
|
913
|
+
hash = {}
|
|
914
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
915
|
+
value = self.send(attr)
|
|
916
|
+
next if value.nil?
|
|
917
|
+
hash[param] = _to_hash(value)
|
|
918
|
+
end
|
|
919
|
+
hash
|
|
920
|
+
end
|
|
921
|
+
|
|
922
|
+
# Outputs non-array value in the form of hash
|
|
923
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
924
|
+
# @param [Object] value Any valid value
|
|
925
|
+
# @return [Hash] Returns the value in the form of hash
|
|
926
|
+
def _to_hash(value)
|
|
927
|
+
if value.is_a?(Array)
|
|
928
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
929
|
+
elsif value.is_a?(Hash)
|
|
930
|
+
{}.tap do |hash|
|
|
931
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
932
|
+
end
|
|
933
|
+
elsif value.respond_to? :to_hash
|
|
934
|
+
value.to_hash
|
|
935
|
+
else
|
|
936
|
+
value
|
|
937
|
+
end
|
|
938
|
+
end
|
|
939
|
+
|
|
940
|
+
end
|
|
941
|
+
|
|
942
|
+
end
|