connectwise-ruby-sdk 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +1141 -0
- data/connectwise-ruby-sdk.gemspec +54 -0
- data/docs/AccountingBatchTransactionsApi.md +184 -0
- data/docs/AccountingBatchesApi.md +280 -0
- data/docs/AccountingUnpostedExpensesApi.md +175 -0
- data/docs/AccountingUnpostedProcurementsApi.md +175 -0
- data/docs/AccountingUnpostedinvoicesApi.md +175 -0
- data/docs/ActivitiesApi.md +392 -0
- data/docs/Activity.md +30 -0
- data/docs/ActivityReference.md +10 -0
- data/docs/ActivityStatus.md +14 -0
- data/docs/ActivityStatusReference.md +10 -0
- data/docs/ActivityStatusesApi.md +392 -0
- data/docs/ActivityType.md +15 -0
- data/docs/ActivityTypeReference.md +10 -0
- data/docs/ActivityTypesApi.md +392 -0
- data/docs/Addition.md +30 -0
- data/docs/Adjustment.md +13 -0
- data/docs/Agreement.md +76 -0
- data/docs/AgreementAdditionsApi.md +413 -0
- data/docs/AgreementAdjustmentsApi.md +413 -0
- data/docs/AgreementBoardDefaultsApi.md +413 -0
- data/docs/AgreementReference.md +10 -0
- data/docs/AgreementSite.md +12 -0
- data/docs/AgreementSitesApi.md +413 -0
- data/docs/AgreementType.md +61 -0
- data/docs/AgreementTypeReference.md +10 -0
- data/docs/AgreementTypesApi.md +392 -0
- data/docs/AgreementWorkRole.md +17 -0
- data/docs/AgreementWorkRoleExclusion.md +11 -0
- data/docs/AgreementWorkRoleExclusionsApi.md +239 -0
- data/docs/AgreementWorkRolesApi.md +413 -0
- data/docs/AgreementWorkType.md +25 -0
- data/docs/AgreementWorkTypeExclusion.md +11 -0
- data/docs/AgreementWorkTypeExclusionsApi.md +239 -0
- data/docs/AgreementWorkTypesApi.md +413 -0
- data/docs/AgreementsApi.md +671 -0
- data/docs/AuditTrailApi.md +180 -0
- data/docs/AuditTrailEntry.md +12 -0
- data/docs/AuditTrailEntryInsertRequest.md +9 -0
- data/docs/AuditTrailObjects.md +9 -0
- data/docs/Batch.md +24 -0
- data/docs/BatchReference.md +10 -0
- data/docs/BillingStatusReference.md +10 -0
- data/docs/BillingTermsReference.md +10 -0
- data/docs/Board.md +21 -0
- data/docs/BoardDefault.md +13 -0
- data/docs/BoardExcludedMembersApi.md +295 -0
- data/docs/BoardItemsApi.md +413 -0
- data/docs/BoardReference.md +10 -0
- data/docs/BoardStatusesApi.md +413 -0
- data/docs/BoardSubTypesApi.md +413 -0
- data/docs/BoardTeamsApi.md +413 -0
- data/docs/BoardTypesApi.md +469 -0
- data/docs/BoardsApi.md +392 -0
- data/docs/CalendarReference.md +10 -0
- data/docs/CallbackEntriesApi.md +392 -0
- data/docs/CallbackEntry.md +15 -0
- data/docs/Campaign.md +33 -0
- data/docs/CampaignAudit.md +16 -0
- data/docs/CampaignAuditsApi.md +413 -0
- data/docs/CampaignEmailsOpenedApi.md +413 -0
- data/docs/CampaignFormsSubmittedApi.md +413 -0
- data/docs/CampaignLinksClickedApi.md +413 -0
- data/docs/CampaignReference.md +10 -0
- data/docs/CampaignStatus.md +12 -0
- data/docs/CampaignStatusReference.md +10 -0
- data/docs/CampaignStatusesApi.md +392 -0
- data/docs/CampaignSubType.md +11 -0
- data/docs/CampaignSubTypeReference.md +10 -0
- data/docs/CampaignSubTypesApi.md +413 -0
- data/docs/CampaignType.md +11 -0
- data/docs/CampaignTypeReference.md +10 -0
- data/docs/CampaignTypesApi.md +392 -0
- data/docs/CampaignsApi.md +616 -0
- data/docs/CatalogComponent.md +19 -0
- data/docs/CatalogComponentsApi.md +413 -0
- data/docs/CatalogItem.md +33 -0
- data/docs/CatalogItemReference.md +10 -0
- data/docs/CatalogsItemApi.md +449 -0
- data/docs/CategoriesApi.md +392 -0
- data/docs/Category.md +16 -0
- data/docs/ChargeCodeReference.md +10 -0
- data/docs/ClassificationReference.md +10 -0
- data/docs/Code.md +14 -0
- data/docs/CodesApi.md +392 -0
- data/docs/CommunicationTypeReference.md +10 -0
- data/docs/CompaniesApi.md +448 -0
- data/docs/Company.md +53 -0
- data/docs/CompanyManagementSummary.md +42 -0
- data/docs/CompanyManagementSummaryReportsApi.md +413 -0
- data/docs/CompanyMerge.md +49 -0
- data/docs/CompanyNote.md +14 -0
- data/docs/CompanyNotesApi.md +413 -0
- data/docs/CompanyReference.md +11 -0
- data/docs/CompanySite.md +27 -0
- data/docs/CompanySitesApi.md +413 -0
- data/docs/CompanyStatus.md +18 -0
- data/docs/CompanyStatusReference.md +10 -0
- data/docs/CompanyStatusesApi.md +392 -0
- data/docs/CompanyTeam.md +18 -0
- data/docs/CompanyTeamsApi.md +413 -0
- data/docs/CompanyType.md +12 -0
- data/docs/CompanyTypeReference.md +10 -0
- data/docs/CompanyTypesApi.md +392 -0
- data/docs/Configuration.md +57 -0
- data/docs/ConfigurationQuestion.md +15 -0
- data/docs/ConfigurationReference.md +10 -0
- data/docs/ConfigurationStatus.md +12 -0
- data/docs/ConfigurationStatusReference.md +10 -0
- data/docs/ConfigurationStatusesApi.md +392 -0
- data/docs/ConfigurationType.md +12 -0
- data/docs/ConfigurationTypeQuestion.md +18 -0
- data/docs/ConfigurationTypeQuestionsApi.md +413 -0
- data/docs/ConfigurationTypeReference.md +10 -0
- data/docs/ConfigurationTypesApi.md +392 -0
- data/docs/ConfigurationsApi.md +444 -0
- data/docs/ConnectWiseHostedSetup.md +18 -0
- data/docs/ConnectWiseHostedSetupsApi.md +392 -0
- data/docs/Contact.md +47 -0
- data/docs/ContactCommunication.md +16 -0
- data/docs/ContactCommunicationItem.md +13 -0
- data/docs/ContactCommunicationsApi.md +413 -0
- data/docs/ContactDepartment.md +10 -0
- data/docs/ContactDepartmentReference.md +10 -0
- data/docs/ContactDepartmentsApi.md +392 -0
- data/docs/ContactNote.md +14 -0
- data/docs/ContactNotesApi.md +413 -0
- data/docs/ContactReference.md +10 -0
- data/docs/ContactRelationship.md +10 -0
- data/docs/ContactRelationshipsApi.md +392 -0
- data/docs/ContactTracksApi.md +295 -0
- data/docs/ContactType.md +11 -0
- data/docs/ContactTypeReference.md +10 -0
- data/docs/ContactTypesApi.md +392 -0
- data/docs/ContactsApi.md +612 -0
- data/docs/Conversion.md +12 -0
- data/docs/Count.md +8 -0
- data/docs/CountryReference.md +10 -0
- data/docs/CurrenciesApi.md +392 -0
- data/docs/Currency.md +15 -0
- data/docs/CurrencyReference.md +10 -0
- data/docs/CustomFieldValue.md +13 -0
- data/docs/DocumentInfo.md +17 -0
- data/docs/DocumentReference.md +9 -0
- data/docs/DocumentsApi.md +474 -0
- data/docs/EmailOpened.md +11 -0
- data/docs/EntityTypeReference.md +10 -0
- data/docs/Error.md +10 -0
- data/docs/ExcludedMember.md +11 -0
- data/docs/ExpenseEntriesApi.md +392 -0
- data/docs/ExpenseEntry.md +25 -0
- data/docs/ExpenseTax.md +10 -0
- data/docs/ExpenseTaxTypeReference.md +10 -0
- data/docs/ExpenseType.md +20 -0
- data/docs/ExpenseTypeReference.md +10 -0
- data/docs/ExpenseTypesApi.md +392 -0
- data/docs/FilterValues.md +9 -0
- data/docs/Forecast.md +19 -0
- data/docs/FormSubmitted.md +18 -0
- data/docs/GenericIdIdentifierReference.md +9 -0
- data/docs/Group.md +13 -0
- data/docs/GroupCompaniesApi.md +413 -0
- data/docs/GroupContactsApi.md +413 -0
- data/docs/GroupReference.md +10 -0
- data/docs/GroupsApi.md +392 -0
- data/docs/Guid.md +7 -0
- data/docs/Info.md +10 -0
- data/docs/InfoApi.md +55 -0
- data/docs/IntegratorLogin.md +65 -0
- data/docs/Invoice.md +54 -0
- data/docs/InvoicePaymentsApi.md +356 -0
- data/docs/InvoiceReference.md +10 -0
- data/docs/InvoicesApi.md +444 -0
- data/docs/Item.md +16 -0
- data/docs/IvItemReference.md +10 -0
- data/docs/JObject.md +7 -0
- data/docs/KnowledgeBaseArticle.md +19 -0
- data/docs/KnowledgeBaseArticlesApi.md +392 -0
- data/docs/Link.md +12 -0
- data/docs/LinkClicked.md +13 -0
- data/docs/LinksApi.md +392 -0
- data/docs/Location.md +12 -0
- data/docs/LocationsApi.md +392 -0
- data/docs/ManagementSolutionReference.md +10 -0
- data/docs/Manufacturer.md +11 -0
- data/docs/ManufacturerReference.md +10 -0
- data/docs/ManufacturersApi.md +392 -0
- data/docs/MarketingCompany.md +13 -0
- data/docs/MarketingContact.md +12 -0
- data/docs/Member.md +94 -0
- data/docs/MemberReference.md +11 -0
- data/docs/MemberTypeReference.md +10 -0
- data/docs/MembersApi.md +286 -0
- data/docs/MenuEntriesApi.md +502 -0
- data/docs/MenuEntry.md +17 -0
- data/docs/MenuLocationReference.md +10 -0
- data/docs/Metadata.md +7 -0
- data/docs/NoteTypeReference.md +10 -0
- data/docs/OpportunitiesApi.md +616 -0
- data/docs/Opportunity.md +40 -0
- data/docs/OpportunityContact.md +17 -0
- data/docs/OpportunityContactsApi.md +413 -0
- data/docs/OpportunityForecastsApi.md +413 -0
- data/docs/OpportunityNote.md +15 -0
- data/docs/OpportunityNotesApi.md +413 -0
- data/docs/OpportunityPriorityReference.md +10 -0
- data/docs/OpportunityProbabilityReference.md +10 -0
- data/docs/OpportunityRating.md +11 -0
- data/docs/OpportunityRatingReference.md +10 -0
- data/docs/OpportunityRatingsApi.md +392 -0
- data/docs/OpportunityReference.md +10 -0
- data/docs/OpportunitySalesRoleReference.md +10 -0
- data/docs/OpportunityStageReference.md +10 -0
- data/docs/OpportunityStatus.md +17 -0
- data/docs/OpportunityStatusReference.md +10 -0
- data/docs/OpportunityStatusesApi.md +392 -0
- data/docs/OpportunityTeamsApi.md +413 -0
- data/docs/OpportunityToAgreementConversion.md +22 -0
- data/docs/OpportunityToProjectConversion.md +22 -0
- data/docs/OpportunityToSalesOrderConversion.md +15 -0
- data/docs/OpportunityToServiceTicketConversion.md +15 -0
- data/docs/OpportunityType.md +11 -0
- data/docs/OpportunityTypeReference.md +10 -0
- data/docs/OpportunityTypesApi.md +392 -0
- data/docs/Order.md +44 -0
- data/docs/OrderStatus.md +14 -0
- data/docs/OrderStatusReference.md +10 -0
- data/docs/OrderStatusesApi.md +392 -0
- data/docs/OrdersApi.md +392 -0
- data/docs/OwnershipTypeReference.md +10 -0
- data/docs/PatchOperation.md +10 -0
- data/docs/Payment.md +14 -0
- data/docs/PaymentMethodReference.md +10 -0
- data/docs/PhaseStatusReference.md +10 -0
- data/docs/PortalSecurity.md +9 -0
- data/docs/PricingBreak.md +14 -0
- data/docs/PricingBreaksApi.md +434 -0
- data/docs/PricingDetail.md +14 -0
- data/docs/PricingDetailsApi.md +413 -0
- data/docs/PricingSchedule.md +15 -0
- data/docs/PricingSchedulesApi.md +392 -0
- data/docs/PrioritiesApi.md +450 -0
- data/docs/Priority.md +14 -0
- data/docs/PriorityReference.md +11 -0
- data/docs/ProductCategoryReference.md +10 -0
- data/docs/ProductComponent.md +21 -0
- data/docs/ProductComponentsApi.md +413 -0
- data/docs/ProductItem.md +51 -0
- data/docs/ProductItemReference.md +10 -0
- data/docs/ProductPickingShippingDetail.md +20 -0
- data/docs/ProductPickingShippingDetailsApi.md +413 -0
- data/docs/ProductRecurring.md +14 -0
- data/docs/ProductReference.md +10 -0
- data/docs/ProductSubCategoryReference.md +10 -0
- data/docs/ProductType.md +12 -0
- data/docs/ProductTypeReference.md +10 -0
- data/docs/ProductTypesApi.md +392 -0
- data/docs/ProductsItemApi.md +392 -0
- data/docs/Project.md +61 -0
- data/docs/ProjectBoardReference.md +10 -0
- data/docs/ProjectContact.md +11 -0
- data/docs/ProjectContactsApi.md +238 -0
- data/docs/ProjectNote.md +13 -0
- data/docs/ProjectNotesApi.md +413 -0
- data/docs/ProjectPhase.md +34 -0
- data/docs/ProjectPhaseReference.md +10 -0
- data/docs/ProjectPhasesApi.md +413 -0
- data/docs/ProjectReference.md +10 -0
- data/docs/ProjectRoleReference.md +10 -0
- data/docs/ProjectStatusReference.md +10 -0
- data/docs/ProjectTeamMember.md +16 -0
- data/docs/ProjectTypeReference.md +10 -0
- data/docs/ProjectsApi.md +392 -0
- data/docs/ProjectsTeamMembersApi.md +413 -0
- data/docs/PurchaseOrder.md +56 -0
- data/docs/PurchaseOrderLineItem.md +35 -0
- data/docs/PurchaseOrderLineItemsApi.md +413 -0
- data/docs/PurchaseOrderReference.md +10 -0
- data/docs/PurchaseOrderStatusReference.md +10 -0
- data/docs/PurchaseOrdersApi.md +392 -0
- data/docs/RelationshipReference.md +10 -0
- data/docs/ReminderReference.md +10 -0
- data/docs/Report.md +8 -0
- data/docs/ReportDataResponse.md +9 -0
- data/docs/ReportsApi.md +239 -0
- data/docs/RequestPasswordRequest.md +8 -0
- data/docs/SLAReference.md +10 -0
- data/docs/SalesTeamReference.md +10 -0
- data/docs/ScheduleEntriesApi.md +392 -0
- data/docs/ScheduleEntry.md +27 -0
- data/docs/ScheduleEntryReference.md +10 -0
- data/docs/ScheduleSpanReference.md +10 -0
- data/docs/ScheduleStatus.md +12 -0
- data/docs/ScheduleStatusReference.md +10 -0
- data/docs/ScheduleStatusesApi.md +392 -0
- data/docs/ScheduleType.md +14 -0
- data/docs/ScheduleTypeReference.md +10 -0
- data/docs/ScheduleTypesApi.md +392 -0
- data/docs/SecurityRoleReference.md +10 -0
- data/docs/ServiceCodeReference.md +10 -0
- data/docs/ServiceItemReference.md +10 -0
- data/docs/ServiceLocationReference.md +10 -0
- data/docs/ServiceNote.md +22 -0
- data/docs/ServiceSignoffReference.md +10 -0
- data/docs/ServiceSourceReference.md +10 -0
- data/docs/ServiceStatusReference.md +10 -0
- data/docs/ServiceSubTypeReference.md +10 -0
- data/docs/ServiceTeamReference.md +10 -0
- data/docs/ServiceTypeReference.md +10 -0
- data/docs/ShipmentMethod.md +13 -0
- data/docs/ShipmentMethodReference.md +10 -0
- data/docs/ShipmentMethodsApi.md +392 -0
- data/docs/SicCodeReference.md +10 -0
- data/docs/SiteReference.md +10 -0
- data/docs/Source.md +13 -0
- data/docs/SourcesApi.md +392 -0
- data/docs/Status.md +18 -0
- data/docs/SubCategoriesApi.md +413 -0
- data/docs/SubCategory.md +11 -0
- data/docs/SubType.md +15 -0
- data/docs/SuccessResponse.md +9 -0
- data/docs/Survey.md +20 -0
- data/docs/SurveyQuestion.md +17 -0
- data/docs/SurveyQuestionOption.md +10 -0
- data/docs/SurveyQuestionsApi.md +413 -0
- data/docs/SurveyResult.md +18 -0
- data/docs/SurveyResultDetail.md +9 -0
- data/docs/SurveyResultsApi.md +413 -0
- data/docs/SurveysApi.md +392 -0
- data/docs/Task.md +18 -0
- data/docs/TaxCodeReference.md +10 -0
- data/docs/Team.md +24 -0
- data/docs/TeamRoleReference.md +10 -0
- data/docs/Ticket.md +96 -0
- data/docs/TicketNotesApi.md +413 -0
- data/docs/TicketReference.md +10 -0
- data/docs/TicketTasksApi.md +413 -0
- data/docs/TicketsApi.md +1290 -0
- data/docs/TimeEntriesApi.md +392 -0
- data/docs/TimeEntry.md +36 -0
- data/docs/TimeEntryReference.md +9 -0
- data/docs/TimeZoneReference.md +10 -0
- data/docs/Token.md +10 -0
- data/docs/Track.md +18 -0
- data/docs/TrackReference.md +10 -0
- data/docs/Transaction.md +67 -0
- data/docs/Type.md +17 -0
- data/docs/TypeAssociations.md +9 -0
- data/docs/UnitOfMeasure.md +13 -0
- data/docs/UnitOfMeasureConversionsApi.md +413 -0
- data/docs/UnitOfMeasureReference.md +10 -0
- data/docs/UnitsOfMeasureApi.md +392 -0
- data/docs/UnpostedExpense.md +53 -0
- data/docs/UnpostedInvoice.md +50 -0
- data/docs/UnpostedProcurement.md +48 -0
- data/docs/UserDefinedField.md +29 -0
- data/docs/UserDefinedFieldOption.md +12 -0
- data/docs/UserDefinedFieldsApi.md +392 -0
- data/docs/ValidatePortalRequest.md +9 -0
- data/docs/ValidatePortalResponse.md +9 -0
- data/docs/ValidationError.md +11 -0
- data/docs/WarehouseBinReference.md +10 -0
- data/docs/WarehouseReference.md +10 -0
- data/docs/WorkRoleReference.md +10 -0
- data/docs/WorkTypeReference.md +10 -0
- data/git_push.sh +67 -0
- data/lib/connectwise-ruby-sdk.rb +414 -0
- data/lib/connectwise-ruby-sdk/api/accounting_batch_transactions_api.rb +224 -0
- data/lib/connectwise-ruby-sdk/api/accounting_batches_api.rb +325 -0
- data/lib/connectwise-ruby-sdk/api/accounting_unposted_expenses_api.rb +212 -0
- data/lib/connectwise-ruby-sdk/api/accounting_unposted_procurements_api.rb +212 -0
- data/lib/connectwise-ruby-sdk/api/accounting_unpostedinvoices_api.rb +212 -0
- data/lib/connectwise-ruby-sdk/api/activities_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/activity_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/activity_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/agreement_additions_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreement_adjustments_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreement_board_defaults_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreement_sites_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreement_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/agreement_work_role_exclusions_api.rb +284 -0
- data/lib/connectwise-ruby-sdk/api/agreement_work_roles_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreement_work_type_exclusions_api.rb +284 -0
- data/lib/connectwise-ruby-sdk/api/agreement_work_types_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/agreements_api.rb +749 -0
- data/lib/connectwise-ruby-sdk/api/audit_trail_api.rb +226 -0
- data/lib/connectwise-ruby-sdk/api/board_excluded_members_api.rb +345 -0
- data/lib/connectwise-ruby-sdk/api/board_items_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/board_statuses_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/board_sub_types_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/board_teams_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/board_types_api.rb +536 -0
- data/lib/connectwise-ruby-sdk/api/boards_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/callback_entries_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/campaign_audits_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/campaign_emails_opened_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/campaign_forms_submitted_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/campaign_links_clicked_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/campaign_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/campaign_sub_types_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/campaign_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/campaigns_api.rb +687 -0
- data/lib/connectwise-ruby-sdk/api/catalog_components_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/catalogs_item_api.rb +507 -0
- data/lib/connectwise-ruby-sdk/api/categories_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/codes_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/companies_api.rb +508 -0
- data/lib/connectwise-ruby-sdk/api/company_management_summary_reports_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/company_notes_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/company_sites_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/company_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/company_teams_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/company_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/configuration_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/configuration_type_questions_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/configuration_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/configurations_api.rb +525 -0
- data/lib/connectwise-ruby-sdk/api/connect_wise_hosted_setups_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/contact_communications_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/contact_departments_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/contact_notes_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/contact_relationships_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/contact_tracks_api.rb +345 -0
- data/lib/connectwise-ruby-sdk/api/contact_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/contacts_api.rb +682 -0
- data/lib/connectwise-ruby-sdk/api/currencies_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/documents_api.rb +580 -0
- data/lib/connectwise-ruby-sdk/api/expense_entries_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/expense_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/group_companies_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/group_contacts_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/groups_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/info_api.rb +87 -0
- data/lib/connectwise-ruby-sdk/api/invoice_payments_api.rb +415 -0
- data/lib/connectwise-ruby-sdk/api/invoices_api.rb +503 -0
- data/lib/connectwise-ruby-sdk/api/knowledge_base_articles_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/links_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/locations_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/manufacturers_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/members_api.rb +331 -0
- data/lib/connectwise-ruby-sdk/api/menu_entries_api.rb +565 -0
- data/lib/connectwise-ruby-sdk/api/opportunities_api.rb +691 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_contacts_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_forecasts_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_notes_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_ratings_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_teams_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/opportunity_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/order_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/orders_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/pricing_breaks_api.rb +503 -0
- data/lib/connectwise-ruby-sdk/api/pricing_details_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/pricing_schedules_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/priorities_api.rb +509 -0
- data/lib/connectwise-ruby-sdk/api/product_components_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/product_picking_shipping_details_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/product_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/products_item_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/project_contacts_api.rb +285 -0
- data/lib/connectwise-ruby-sdk/api/project_notes_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/project_phases_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/projects_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/projects_team_members_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/purchase_order_line_items_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/purchase_orders_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/reports_api.rb +282 -0
- data/lib/connectwise-ruby-sdk/api/schedule_entries_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/schedule_statuses_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/schedule_types_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/shipment_methods_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/sources_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/sub_categories_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/survey_questions_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/survey_results_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/surveys_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/ticket_notes_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/ticket_tasks_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/tickets_api.rb +1412 -0
- data/lib/connectwise-ruby-sdk/api/time_entries_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/unit_of_measure_conversions_api.rb +475 -0
- data/lib/connectwise-ruby-sdk/api/units_of_measure_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api/user_defined_fields_api.rb +447 -0
- data/lib/connectwise-ruby-sdk/api_client.rb +379 -0
- data/lib/connectwise-ruby-sdk/api_error.rb +47 -0
- data/lib/connectwise-ruby-sdk/configuration.rb +214 -0
- data/lib/connectwise-ruby-sdk/models/activity.rb +448 -0
- data/lib/connectwise-ruby-sdk/models/activity_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/activity_status.rb +270 -0
- data/lib/connectwise-ruby-sdk/models/activity_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/activity_type.rb +279 -0
- data/lib/connectwise-ruby-sdk/models/activity_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/addition.rb +463 -0
- data/lib/connectwise-ruby-sdk/models/adjustment.rb +260 -0
- data/lib/connectwise-ruby-sdk/models/agreement.rb +1020 -0
- data/lib/connectwise-ruby-sdk/models/agreement_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/agreement_site.rb +237 -0
- data/lib/connectwise-ruby-sdk/models/agreement_type.rb +859 -0
- data/lib/connectwise-ruby-sdk/models/agreement_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/agreement_work_role.rb +315 -0
- data/lib/connectwise-ruby-sdk/models/agreement_work_role_exclusion.rb +228 -0
- data/lib/connectwise-ruby-sdk/models/agreement_work_type.rb +412 -0
- data/lib/connectwise-ruby-sdk/models/agreement_work_type_exclusion.rb +228 -0
- data/lib/connectwise-ruby-sdk/models/audit_trail_entry.rb +235 -0
- data/lib/connectwise-ruby-sdk/models/audit_trail_entry_insert_request.rb +226 -0
- data/lib/connectwise-ruby-sdk/models/audit_trail_objects.rb +245 -0
- data/lib/connectwise-ruby-sdk/models/batch.rb +372 -0
- data/lib/connectwise-ruby-sdk/models/batch_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/billing_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/billing_terms_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/board.rb +337 -0
- data/lib/connectwise-ruby-sdk/models/board_default.rb +246 -0
- data/lib/connectwise-ruby-sdk/models/board_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/calendar_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/callback_entry.rb +282 -0
- data/lib/connectwise-ruby-sdk/models/campaign.rb +444 -0
- data/lib/connectwise-ruby-sdk/models/campaign_audit.rb +347 -0
- data/lib/connectwise-ruby-sdk/models/campaign_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/campaign_status.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/campaign_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/campaign_sub_type.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/campaign_sub_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/campaign_type.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/campaign_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/catalog_component.rb +301 -0
- data/lib/connectwise-ruby-sdk/models/catalog_item.rb +566 -0
- data/lib/connectwise-ruby-sdk/models/catalog_item_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/category.rb +320 -0
- data/lib/connectwise-ruby-sdk/models/charge_code_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/classification_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/code.rb +271 -0
- data/lib/connectwise-ruby-sdk/models/communication_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/company.rb +942 -0
- data/lib/connectwise-ruby-sdk/models/company_management_summary.rb +556 -0
- data/lib/connectwise-ruby-sdk/models/company_merge.rb +1082 -0
- data/lib/connectwise-ruby-sdk/models/company_note.rb +255 -0
- data/lib/connectwise-ruby-sdk/models/company_reference.rb +227 -0
- data/lib/connectwise-ruby-sdk/models/company_site.rb +492 -0
- data/lib/connectwise-ruby-sdk/models/company_status.rb +321 -0
- data/lib/connectwise-ruby-sdk/models/company_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/company_team.rb +291 -0
- data/lib/connectwise-ruby-sdk/models/company_type.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/company_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/configuration.rb +888 -0
- data/lib/connectwise-ruby-sdk/models/configuration_question.rb +295 -0
- data/lib/connectwise-ruby-sdk/models/configuration_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/configuration_status.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/configuration_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/configuration_type.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/configuration_type_question.rb +375 -0
- data/lib/connectwise-ruby-sdk/models/configuration_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/connect_wise_hosted_setup.rb +373 -0
- data/lib/connectwise-ruby-sdk/models/contact.rb +831 -0
- data/lib/connectwise-ruby-sdk/models/contact_communication.rb +337 -0
- data/lib/connectwise-ruby-sdk/models/contact_communication_item.rb +309 -0
- data/lib/connectwise-ruby-sdk/models/contact_department.rb +234 -0
- data/lib/connectwise-ruby-sdk/models/contact_department_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/contact_note.rb +255 -0
- data/lib/connectwise-ruby-sdk/models/contact_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/contact_relationship.rb +234 -0
- data/lib/connectwise-ruby-sdk/models/contact_type.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/contact_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/conversion.rb +238 -0
- data/lib/connectwise-ruby-sdk/models/count.rb +199 -0
- data/lib/connectwise-ruby-sdk/models/country_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/currency.rb +324 -0
- data/lib/connectwise-ruby-sdk/models/currency_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/custom_field_value.rb +289 -0
- data/lib/connectwise-ruby-sdk/models/document_info.rb +281 -0
- data/lib/connectwise-ruby-sdk/models/document_reference.rb +209 -0
- data/lib/connectwise-ruby-sdk/models/email_opened.rb +227 -0
- data/lib/connectwise-ruby-sdk/models/entity_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/error.rb +219 -0
- data/lib/connectwise-ruby-sdk/models/excluded_member.rb +228 -0
- data/lib/connectwise-ruby-sdk/models/expense_entry.rb +404 -0
- data/lib/connectwise-ruby-sdk/models/expense_tax.rb +217 -0
- data/lib/connectwise-ruby-sdk/models/expense_tax_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/expense_type.rb +372 -0
- data/lib/connectwise-ruby-sdk/models/expense_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/filter_values.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/forecast.rb +348 -0
- data/lib/connectwise-ruby-sdk/models/form_submitted.rb +306 -0
- data/lib/connectwise-ruby-sdk/models/generic_id_identifier_reference.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/group.rb +261 -0
- data/lib/connectwise-ruby-sdk/models/group_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/guid.rb +190 -0
- data/lib/connectwise-ruby-sdk/models/info.rb +217 -0
- data/lib/connectwise-ruby-sdk/models/integrator_login.rb +930 -0
- data/lib/connectwise-ruby-sdk/models/invoice.rb +722 -0
- data/lib/connectwise-ruby-sdk/models/invoice_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/item.rb +290 -0
- data/lib/connectwise-ruby-sdk/models/iv_item_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/j_object.rb +190 -0
- data/lib/connectwise-ruby-sdk/models/knowledge_base_article.rb +302 -0
- data/lib/connectwise-ruby-sdk/models/link.rb +268 -0
- data/lib/connectwise-ruby-sdk/models/link_clicked.rb +261 -0
- data/lib/connectwise-ruby-sdk/models/location.rb +286 -0
- data/lib/connectwise-ruby-sdk/models/management_solution_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/manufacturer.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/manufacturer_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/marketing_company.rb +246 -0
- data/lib/connectwise-ruby-sdk/models/marketing_contact.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/member.rb +1245 -0
- data/lib/connectwise-ruby-sdk/models/member_reference.rb +227 -0
- data/lib/connectwise-ruby-sdk/models/member_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/menu_entry.rb +332 -0
- data/lib/connectwise-ruby-sdk/models/menu_location_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/metadata.rb +190 -0
- data/lib/connectwise-ruby-sdk/models/note_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity.rb +540 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_contact.rb +282 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_note.rb +264 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_priority_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_probability_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_rating.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_rating_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_sales_role_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_stage_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_status.rb +297 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_to_agreement_conversion.rb +331 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_to_project_conversion.rb +331 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_to_sales_order_conversion.rb +268 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_to_service_ticket_conversion.rb +268 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_type.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/opportunity_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/order.rb +550 -0
- data/lib/connectwise-ruby-sdk/models/order_status.rb +270 -0
- data/lib/connectwise-ruby-sdk/models/order_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/ownership_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/patch_operation.rb +217 -0
- data/lib/connectwise-ruby-sdk/models/payment.rb +255 -0
- data/lib/connectwise-ruby-sdk/models/payment_method_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/phase_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/portal_security.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/pricing_break.rb +288 -0
- data/lib/connectwise-ruby-sdk/models/pricing_detail.rb +255 -0
- data/lib/connectwise-ruby-sdk/models/pricing_schedule.rb +281 -0
- data/lib/connectwise-ruby-sdk/models/priority.rb +286 -0
- data/lib/connectwise-ruby-sdk/models/priority_reference.rb +227 -0
- data/lib/connectwise-ruby-sdk/models/product_category_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/product_component.rb +319 -0
- data/lib/connectwise-ruby-sdk/models/product_item.rb +725 -0
- data/lib/connectwise-ruby-sdk/models/product_item_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/product_picking_shipping_detail.rb +314 -0
- data/lib/connectwise-ruby-sdk/models/product_recurring.rb +293 -0
- data/lib/connectwise-ruby-sdk/models/product_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/product_sub_category_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/product_type.rb +285 -0
- data/lib/connectwise-ruby-sdk/models/product_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project.rb +821 -0
- data/lib/connectwise-ruby-sdk/models/project_board_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project_contact.rb +228 -0
- data/lib/connectwise-ruby-sdk/models/project_note.rb +246 -0
- data/lib/connectwise-ruby-sdk/models/project_phase.rb +534 -0
- data/lib/connectwise-ruby-sdk/models/project_phase_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project_role_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/project_team_member.rb +274 -0
- data/lib/connectwise-ruby-sdk/models/project_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/purchase_order.rb +698 -0
- data/lib/connectwise-ruby-sdk/models/purchase_order_line_item.rb +553 -0
- data/lib/connectwise-ruby-sdk/models/purchase_order_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/purchase_order_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/relationship_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/reminder_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/report.rb +199 -0
- data/lib/connectwise-ruby-sdk/models/report_data_response.rb +212 -0
- data/lib/connectwise-ruby-sdk/models/request_password_request.rb +199 -0
- data/lib/connectwise-ruby-sdk/models/sales_team_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/schedule_entry.rb +387 -0
- data/lib/connectwise-ruby-sdk/models/schedule_entry_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/schedule_span_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/schedule_status.rb +252 -0
- data/lib/connectwise-ruby-sdk/models/schedule_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/schedule_type.rb +286 -0
- data/lib/connectwise-ruby-sdk/models/schedule_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/security_role_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_code_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_item_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_location_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_note.rb +326 -0
- data/lib/connectwise-ruby-sdk/models/service_signoff_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_source_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_status_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_sub_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_team_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/service_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/shipment_method.rb +294 -0
- data/lib/connectwise-ruby-sdk/models/shipment_method_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/sic_code_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/site_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/sla_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/source.rb +261 -0
- data/lib/connectwise-ruby-sdk/models/status.rb +339 -0
- data/lib/connectwise-ruby-sdk/models/sub_category.rb +243 -0
- data/lib/connectwise-ruby-sdk/models/sub_type.rb +281 -0
- data/lib/connectwise-ruby-sdk/models/success_response.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/survey.rb +369 -0
- data/lib/connectwise-ruby-sdk/models/survey_question.rb +333 -0
- data/lib/connectwise-ruby-sdk/models/survey_question_option.rb +233 -0
- data/lib/connectwise-ruby-sdk/models/survey_result.rb +293 -0
- data/lib/connectwise-ruby-sdk/models/survey_result_detail.rb +210 -0
- data/lib/connectwise-ruby-sdk/models/task.rb +343 -0
- data/lib/connectwise-ruby-sdk/models/tax_code_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/team.rb +397 -0
- data/lib/connectwise-ruby-sdk/models/team_role_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/ticket.rb +1336 -0
- data/lib/connectwise-ruby-sdk/models/ticket_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/time_entry.rb +502 -0
- data/lib/connectwise-ruby-sdk/models/time_entry_reference.rb +209 -0
- data/lib/connectwise-ruby-sdk/models/time_zone_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/token.rb +217 -0
- data/lib/connectwise-ruby-sdk/models/track.rb +291 -0
- data/lib/connectwise-ruby-sdk/models/track_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/transaction.rb +782 -0
- data/lib/connectwise-ruby-sdk/models/type.rb +330 -0
- data/lib/connectwise-ruby-sdk/models/type_associations.rb +210 -0
- data/lib/connectwise-ruby-sdk/models/unit_of_measure.rb +276 -0
- data/lib/connectwise-ruby-sdk/models/unit_of_measure_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/unposted_expense.rb +656 -0
- data/lib/connectwise-ruby-sdk/models/unposted_invoice.rb +617 -0
- data/lib/connectwise-ruby-sdk/models/unposted_procurement.rb +599 -0
- data/lib/connectwise-ruby-sdk/models/user_defined_field.rb +538 -0
- data/lib/connectwise-ruby-sdk/models/user_defined_field_option.rb +251 -0
- data/lib/connectwise-ruby-sdk/models/validate_portal_request.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/validate_portal_response.rb +208 -0
- data/lib/connectwise-ruby-sdk/models/validation_error.rb +226 -0
- data/lib/connectwise-ruby-sdk/models/warehouse_bin_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/warehouse_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/work_role_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/models/work_type_reference.rb +218 -0
- data/lib/connectwise-ruby-sdk/version.rb +26 -0
- data/spec/api/accounting_batch_transactions_api_spec.rb +88 -0
- data/spec/api/accounting_batches_api_spec.rb +109 -0
- data/spec/api/accounting_unposted_expenses_api_spec.rb +85 -0
- data/spec/api/accounting_unposted_procurements_api_spec.rb +85 -0
- data/spec/api/accounting_unpostedinvoices_api_spec.rb +85 -0
- data/spec/api/activities_api_spec.rb +135 -0
- data/spec/api/activity_statuses_api_spec.rb +135 -0
- data/spec/api/activity_types_api_spec.rb +135 -0
- data/spec/api/agreement_additions_api_spec.rb +142 -0
- data/spec/api/agreement_adjustments_api_spec.rb +142 -0
- data/spec/api/agreement_board_defaults_api_spec.rb +142 -0
- data/spec/api/agreement_sites_api_spec.rb +142 -0
- data/spec/api/agreement_types_api_spec.rb +135 -0
- data/spec/api/agreement_work_role_exclusions_api_spec.rb +101 -0
- data/spec/api/agreement_work_roles_api_spec.rb +142 -0
- data/spec/api/agreement_work_type_exclusions_api_spec.rb +101 -0
- data/spec/api/agreement_work_types_api_spec.rb +142 -0
- data/spec/api/agreements_api_spec.rb +200 -0
- data/spec/api/audit_trail_api_spec.rb +88 -0
- data/spec/api/board_excluded_members_api_spec.rb +114 -0
- data/spec/api/board_items_api_spec.rb +142 -0
- data/spec/api/board_statuses_api_spec.rb +142 -0
- data/spec/api/board_sub_types_api_spec.rb +142 -0
- data/spec/api/board_teams_api_spec.rb +142 -0
- data/spec/api/board_types_api_spec.rb +155 -0
- data/spec/api/boards_api_spec.rb +135 -0
- data/spec/api/callback_entries_api_spec.rb +135 -0
- data/spec/api/campaign_audits_api_spec.rb +142 -0
- data/spec/api/campaign_emails_opened_api_spec.rb +142 -0
- data/spec/api/campaign_forms_submitted_api_spec.rb +142 -0
- data/spec/api/campaign_links_clicked_api_spec.rb +142 -0
- data/spec/api/campaign_statuses_api_spec.rb +135 -0
- data/spec/api/campaign_sub_types_api_spec.rb +142 -0
- data/spec/api/campaign_types_api_spec.rb +135 -0
- data/spec/api/campaigns_api_spec.rb +187 -0
- data/spec/api/catalog_components_api_spec.rb +142 -0
- data/spec/api/catalogs_item_api_spec.rb +148 -0
- data/spec/api/categories_api_spec.rb +135 -0
- data/spec/api/codes_api_spec.rb +135 -0
- data/spec/api/companies_api_spec.rb +148 -0
- data/spec/api/company_management_summary_reports_api_spec.rb +142 -0
- data/spec/api/company_notes_api_spec.rb +142 -0
- data/spec/api/company_sites_api_spec.rb +142 -0
- data/spec/api/company_statuses_api_spec.rb +135 -0
- data/spec/api/company_teams_api_spec.rb +142 -0
- data/spec/api/company_types_api_spec.rb +135 -0
- data/spec/api/configuration_statuses_api_spec.rb +135 -0
- data/spec/api/configuration_type_questions_api_spec.rb +142 -0
- data/spec/api/configuration_types_api_spec.rb +135 -0
- data/spec/api/configurations_api_spec.rb +158 -0
- data/spec/api/connect_wise_hosted_setups_api_spec.rb +135 -0
- data/spec/api/contact_communications_api_spec.rb +142 -0
- data/spec/api/contact_departments_api_spec.rb +135 -0
- data/spec/api/contact_notes_api_spec.rb +142 -0
- data/spec/api/contact_relationships_api_spec.rb +135 -0
- data/spec/api/contact_tracks_api_spec.rb +114 -0
- data/spec/api/contact_types_api_spec.rb +135 -0
- data/spec/api/contacts_api_spec.rb +186 -0
- data/spec/api/currencies_api_spec.rb +135 -0
- data/spec/api/documents_api_spec.rb +159 -0
- data/spec/api/expense_entries_api_spec.rb +135 -0
- data/spec/api/expense_types_api_spec.rb +135 -0
- data/spec/api/group_companies_api_spec.rb +142 -0
- data/spec/api/group_contacts_api_spec.rb +142 -0
- data/spec/api/groups_api_spec.rb +135 -0
- data/spec/api/info_api_spec.rb +57 -0
- data/spec/api/invoice_payments_api_spec.rb +129 -0
- data/spec/api/invoices_api_spec.rb +147 -0
- data/spec/api/knowledge_base_articles_api_spec.rb +135 -0
- data/spec/api/links_api_spec.rb +135 -0
- data/spec/api/locations_api_spec.rb +135 -0
- data/spec/api/manufacturers_api_spec.rb +135 -0
- data/spec/api/members_api_spec.rb +111 -0
- data/spec/api/menu_entries_api_spec.rb +161 -0
- data/spec/api/opportunities_api_spec.rb +187 -0
- data/spec/api/opportunity_contacts_api_spec.rb +142 -0
- data/spec/api/opportunity_forecasts_api_spec.rb +142 -0
- data/spec/api/opportunity_notes_api_spec.rb +142 -0
- data/spec/api/opportunity_ratings_api_spec.rb +135 -0
- data/spec/api/opportunity_statuses_api_spec.rb +135 -0
- data/spec/api/opportunity_teams_api_spec.rb +142 -0
- data/spec/api/opportunity_types_api_spec.rb +135 -0
- data/spec/api/order_statuses_api_spec.rb +135 -0
- data/spec/api/orders_api_spec.rb +135 -0
- data/spec/api/pricing_breaks_api_spec.rb +149 -0
- data/spec/api/pricing_details_api_spec.rb +142 -0
- data/spec/api/pricing_schedules_api_spec.rb +135 -0
- data/spec/api/priorities_api_spec.rb +149 -0
- data/spec/api/product_components_api_spec.rb +142 -0
- data/spec/api/product_picking_shipping_details_api_spec.rb +142 -0
- data/spec/api/product_types_api_spec.rb +135 -0
- data/spec/api/products_item_api_spec.rb +135 -0
- data/spec/api/project_contacts_api_spec.rb +101 -0
- data/spec/api/project_notes_api_spec.rb +142 -0
- data/spec/api/project_phases_api_spec.rb +142 -0
- data/spec/api/projects_api_spec.rb +135 -0
- data/spec/api/projects_team_members_api_spec.rb +142 -0
- data/spec/api/purchase_order_line_items_api_spec.rb +142 -0
- data/spec/api/purchase_orders_api_spec.rb +135 -0
- data/spec/api/reports_api_spec.rb +101 -0
- data/spec/api/schedule_entries_api_spec.rb +135 -0
- data/spec/api/schedule_statuses_api_spec.rb +135 -0
- data/spec/api/schedule_types_api_spec.rb +135 -0
- data/spec/api/shipment_methods_api_spec.rb +135 -0
- data/spec/api/sources_api_spec.rb +135 -0
- data/spec/api/sub_categories_api_spec.rb +142 -0
- data/spec/api/survey_questions_api_spec.rb +142 -0
- data/spec/api/survey_results_api_spec.rb +142 -0
- data/spec/api/surveys_api_spec.rb +135 -0
- data/spec/api/ticket_notes_api_spec.rb +142 -0
- data/spec/api/ticket_tasks_api_spec.rb +142 -0
- data/spec/api/tickets_api_spec.rb +344 -0
- data/spec/api/time_entries_api_spec.rb +135 -0
- data/spec/api/unit_of_measure_conversions_api_spec.rb +142 -0
- data/spec/api/units_of_measure_api_spec.rb +135 -0
- data/spec/api/user_defined_fields_api_spec.rb +135 -0
- data/spec/api_client_spec.rb +236 -0
- data/spec/configuration_spec.rb +52 -0
- data/spec/models/activity_reference_spec.rb +65 -0
- data/spec/models/activity_spec.rb +185 -0
- data/spec/models/activity_status_reference_spec.rb +65 -0
- data/spec/models/activity_status_spec.rb +89 -0
- data/spec/models/activity_type_reference_spec.rb +65 -0
- data/spec/models/activity_type_spec.rb +95 -0
- data/spec/models/addition_spec.rb +189 -0
- data/spec/models/adjustment_spec.rb +83 -0
- data/spec/models/agreement_reference_spec.rb +65 -0
- data/spec/models/agreement_site_spec.rb +77 -0
- data/spec/models/agreement_spec.rb +497 -0
- data/spec/models/agreement_type_reference_spec.rb +65 -0
- data/spec/models/agreement_type_spec.rb +407 -0
- data/spec/models/agreement_work_role_exclusion_spec.rb +71 -0
- data/spec/models/agreement_work_role_spec.rb +111 -0
- data/spec/models/agreement_work_type_exclusion_spec.rb +71 -0
- data/spec/models/agreement_work_type_spec.rb +167 -0
- data/spec/models/audit_trail_entry_insert_request_spec.rb +59 -0
- data/spec/models/audit_trail_entry_spec.rb +77 -0
- data/spec/models/audit_trail_objects_spec.rb +63 -0
- data/spec/models/batch_reference_spec.rb +65 -0
- data/spec/models/batch_spec.rb +149 -0
- data/spec/models/billing_status_reference_spec.rb +65 -0
- data/spec/models/billing_terms_reference_spec.rb +65 -0
- data/spec/models/board_default_spec.rb +83 -0
- data/spec/models/board_reference_spec.rb +65 -0
- data/spec/models/board_spec.rb +131 -0
- data/spec/models/calendar_reference_spec.rb +65 -0
- data/spec/models/callback_entry_spec.rb +95 -0
- data/spec/models/campaign_audit_spec.rb +101 -0
- data/spec/models/campaign_reference_spec.rb +65 -0
- data/spec/models/campaign_spec.rb +203 -0
- data/spec/models/campaign_status_reference_spec.rb +65 -0
- data/spec/models/campaign_status_spec.rb +77 -0
- data/spec/models/campaign_sub_type_reference_spec.rb +65 -0
- data/spec/models/campaign_sub_type_spec.rb +71 -0
- data/spec/models/campaign_type_reference_spec.rb +65 -0
- data/spec/models/campaign_type_spec.rb +71 -0
- data/spec/models/catalog_component_spec.rb +119 -0
- data/spec/models/catalog_item_reference_spec.rb +65 -0
- data/spec/models/catalog_item_spec.rb +211 -0
- data/spec/models/category_spec.rb +101 -0
- data/spec/models/charge_code_reference_spec.rb +65 -0
- data/spec/models/classification_reference_spec.rb +65 -0
- data/spec/models/code_spec.rb +89 -0
- data/spec/models/communication_type_reference_spec.rb +65 -0
- data/spec/models/company_management_summary_spec.rb +261 -0
- data/spec/models/company_merge_spec.rb +463 -0
- data/spec/models/company_note_spec.rb +89 -0
- data/spec/models/company_reference_spec.rb +71 -0
- data/spec/models/company_site_spec.rb +167 -0
- data/spec/models/company_spec.rb +323 -0
- data/spec/models/company_status_reference_spec.rb +65 -0
- data/spec/models/company_status_spec.rb +113 -0
- data/spec/models/company_team_spec.rb +113 -0
- data/spec/models/company_type_reference_spec.rb +65 -0
- data/spec/models/company_type_spec.rb +77 -0
- data/spec/models/configuration_question_spec.rb +99 -0
- data/spec/models/configuration_reference_spec.rb +65 -0
- data/spec/models/configuration_spec.rb +347 -0
- data/spec/models/configuration_status_reference_spec.rb +65 -0
- data/spec/models/configuration_status_spec.rb +77 -0
- data/spec/models/configuration_type_question_spec.rb +121 -0
- data/spec/models/configuration_type_reference_spec.rb +65 -0
- data/spec/models/configuration_type_spec.rb +77 -0
- data/spec/models/connect_wise_hosted_setup_spec.rb +117 -0
- data/spec/models/contact_communication_item_spec.rb +87 -0
- data/spec/models/contact_communication_spec.rb +105 -0
- data/spec/models/contact_department_reference_spec.rb +65 -0
- data/spec/models/contact_department_spec.rb +65 -0
- data/spec/models/contact_note_spec.rb +89 -0
- data/spec/models/contact_reference_spec.rb +65 -0
- data/spec/models/contact_relationship_spec.rb +65 -0
- data/spec/models/contact_spec.rb +295 -0
- data/spec/models/contact_type_reference_spec.rb +65 -0
- data/spec/models/contact_type_spec.rb +71 -0
- data/spec/models/conversion_spec.rb +77 -0
- data/spec/models/count_spec.rb +53 -0
- data/spec/models/country_reference_spec.rb +65 -0
- data/spec/models/currency_reference_spec.rb +65 -0
- data/spec/models/currency_spec.rb +95 -0
- data/spec/models/custom_field_value_spec.rb +91 -0
- data/spec/models/document_info_spec.rb +107 -0
- data/spec/models/document_reference_spec.rb +59 -0
- data/spec/models/email_opened_spec.rb +71 -0
- data/spec/models/entity_type_reference_spec.rb +65 -0
- data/spec/models/error_spec.rb +65 -0
- data/spec/models/excluded_member_spec.rb +71 -0
- data/spec/models/expense_entry_spec.rb +163 -0
- data/spec/models/expense_tax_spec.rb +65 -0
- data/spec/models/expense_tax_type_reference_spec.rb +65 -0
- data/spec/models/expense_type_reference_spec.rb +65 -0
- data/spec/models/expense_type_spec.rb +133 -0
- data/spec/models/filter_values_spec.rb +59 -0
- data/spec/models/forecast_spec.rb +123 -0
- data/spec/models/form_submitted_spec.rb +113 -0
- data/spec/models/generic_id_identifier_reference_spec.rb +59 -0
- data/spec/models/group_reference_spec.rb +65 -0
- data/spec/models/group_spec.rb +83 -0
- data/spec/models/guid_spec.rb +47 -0
- data/spec/models/info_spec.rb +65 -0
- data/spec/models/integrator_login_spec.rb +395 -0
- data/spec/models/invoice_reference_spec.rb +65 -0
- data/spec/models/invoice_spec.rb +337 -0
- data/spec/models/item_spec.rb +101 -0
- data/spec/models/iv_item_reference_spec.rb +65 -0
- data/spec/models/j_object_spec.rb +47 -0
- data/spec/models/knowledge_base_article_spec.rb +119 -0
- data/spec/models/link_clicked_spec.rb +83 -0
- data/spec/models/link_spec.rb +77 -0
- data/spec/models/location_spec.rb +81 -0
- data/spec/models/management_solution_reference_spec.rb +65 -0
- data/spec/models/manufacturer_reference_spec.rb +65 -0
- data/spec/models/manufacturer_spec.rb +71 -0
- data/spec/models/marketing_company_spec.rb +83 -0
- data/spec/models/marketing_contact_spec.rb +77 -0
- data/spec/models/member_reference_spec.rb +71 -0
- data/spec/models/member_spec.rb +573 -0
- data/spec/models/member_type_reference_spec.rb +65 -0
- data/spec/models/menu_entry_spec.rb +107 -0
- data/spec/models/menu_location_reference_spec.rb +65 -0
- data/spec/models/metadata_spec.rb +47 -0
- data/spec/models/note_type_reference_spec.rb +65 -0
- data/spec/models/opportunity_contact_spec.rb +107 -0
- data/spec/models/opportunity_note_spec.rb +95 -0
- data/spec/models/opportunity_priority_reference_spec.rb +65 -0
- data/spec/models/opportunity_probability_reference_spec.rb +65 -0
- data/spec/models/opportunity_rating_reference_spec.rb +65 -0
- data/spec/models/opportunity_rating_spec.rb +71 -0
- data/spec/models/opportunity_reference_spec.rb +65 -0
- data/spec/models/opportunity_sales_role_reference_spec.rb +65 -0
- data/spec/models/opportunity_spec.rb +245 -0
- data/spec/models/opportunity_stage_reference_spec.rb +65 -0
- data/spec/models/opportunity_status_reference_spec.rb +65 -0
- data/spec/models/opportunity_status_spec.rb +107 -0
- data/spec/models/opportunity_to_agreement_conversion_spec.rb +137 -0
- data/spec/models/opportunity_to_project_conversion_spec.rb +137 -0
- data/spec/models/opportunity_to_sales_order_conversion_spec.rb +95 -0
- data/spec/models/opportunity_to_service_ticket_conversion_spec.rb +95 -0
- data/spec/models/opportunity_type_reference_spec.rb +65 -0
- data/spec/models/opportunity_type_spec.rb +71 -0
- data/spec/models/order_spec.rb +269 -0
- data/spec/models/order_status_reference_spec.rb +65 -0
- data/spec/models/order_status_spec.rb +89 -0
- data/spec/models/ownership_type_reference_spec.rb +65 -0
- data/spec/models/patch_operation_spec.rb +65 -0
- data/spec/models/payment_method_reference_spec.rb +65 -0
- data/spec/models/payment_spec.rb +89 -0
- data/spec/models/phase_status_reference_spec.rb +65 -0
- data/spec/models/portal_security_spec.rb +59 -0
- data/spec/models/pricing_break_spec.rb +93 -0
- data/spec/models/pricing_detail_spec.rb +89 -0
- data/spec/models/pricing_schedule_spec.rb +95 -0
- data/spec/models/priority_reference_spec.rb +71 -0
- data/spec/models/priority_spec.rb +89 -0
- data/spec/models/product_category_reference_spec.rb +65 -0
- data/spec/models/product_component_spec.rb +131 -0
- data/spec/models/product_item_reference_spec.rb +65 -0
- data/spec/models/product_item_spec.rb +323 -0
- data/spec/models/product_picking_shipping_detail_spec.rb +125 -0
- data/spec/models/product_recurring_spec.rb +93 -0
- data/spec/models/product_reference_spec.rb +65 -0
- data/spec/models/product_sub_category_reference_spec.rb +65 -0
- data/spec/models/product_type_reference_spec.rb +65 -0
- data/spec/models/product_type_spec.rb +81 -0
- data/spec/models/project_board_reference_spec.rb +65 -0
- data/spec/models/project_contact_spec.rb +71 -0
- data/spec/models/project_note_spec.rb +83 -0
- data/spec/models/project_phase_reference_spec.rb +65 -0
- data/spec/models/project_phase_spec.rb +225 -0
- data/spec/models/project_reference_spec.rb +65 -0
- data/spec/models/project_role_reference_spec.rb +65 -0
- data/spec/models/project_spec.rb +395 -0
- data/spec/models/project_status_reference_spec.rb +65 -0
- data/spec/models/project_team_member_spec.rb +101 -0
- data/spec/models/project_type_reference_spec.rb +65 -0
- data/spec/models/purchase_order_line_item_spec.rb +215 -0
- data/spec/models/purchase_order_reference_spec.rb +65 -0
- data/spec/models/purchase_order_spec.rb +341 -0
- data/spec/models/purchase_order_status_reference_spec.rb +65 -0
- data/spec/models/relationship_reference_spec.rb +65 -0
- data/spec/models/reminder_reference_spec.rb +65 -0
- data/spec/models/report_data_response_spec.rb +59 -0
- data/spec/models/report_spec.rb +53 -0
- data/spec/models/request_password_request_spec.rb +53 -0
- data/spec/models/sales_team_reference_spec.rb +65 -0
- data/spec/models/schedule_entry_reference_spec.rb +65 -0
- data/spec/models/schedule_entry_spec.rb +167 -0
- data/spec/models/schedule_span_reference_spec.rb +65 -0
- data/spec/models/schedule_status_reference_spec.rb +65 -0
- data/spec/models/schedule_status_spec.rb +77 -0
- data/spec/models/schedule_type_reference_spec.rb +65 -0
- data/spec/models/schedule_type_spec.rb +89 -0
- data/spec/models/security_role_reference_spec.rb +65 -0
- data/spec/models/service_code_reference_spec.rb +65 -0
- data/spec/models/service_item_reference_spec.rb +65 -0
- data/spec/models/service_location_reference_spec.rb +65 -0
- data/spec/models/service_note_spec.rb +137 -0
- data/spec/models/service_signoff_reference_spec.rb +65 -0
- data/spec/models/service_source_reference_spec.rb +65 -0
- data/spec/models/service_status_reference_spec.rb +65 -0
- data/spec/models/service_sub_type_reference_spec.rb +65 -0
- data/spec/models/service_team_reference_spec.rb +65 -0
- data/spec/models/service_type_reference_spec.rb +65 -0
- data/spec/models/shipment_method_reference_spec.rb +65 -0
- data/spec/models/shipment_method_spec.rb +87 -0
- data/spec/models/sic_code_reference_spec.rb +65 -0
- data/spec/models/site_reference_spec.rb +65 -0
- data/spec/models/sla_reference_spec.rb +65 -0
- data/spec/models/source_spec.rb +83 -0
- data/spec/models/status_spec.rb +117 -0
- data/spec/models/sub_category_spec.rb +71 -0
- data/spec/models/sub_type_spec.rb +95 -0
- data/spec/models/success_response_spec.rb +59 -0
- data/spec/models/survey_question_option_spec.rb +65 -0
- data/spec/models/survey_question_spec.rb +111 -0
- data/spec/models/survey_result_detail_spec.rb +59 -0
- data/spec/models/survey_result_spec.rb +113 -0
- data/spec/models/survey_spec.rb +125 -0
- data/spec/models/task_spec.rb +117 -0
- data/spec/models/tax_code_reference_spec.rb +65 -0
- data/spec/models/team_role_reference_spec.rb +65 -0
- data/spec/models/team_spec.rb +153 -0
- data/spec/models/ticket_reference_spec.rb +65 -0
- data/spec/models/ticket_spec.rb +617 -0
- data/spec/models/time_entry_reference_spec.rb +59 -0
- data/spec/models/time_entry_spec.rb +229 -0
- data/spec/models/time_zone_reference_spec.rb +65 -0
- data/spec/models/token_spec.rb +65 -0
- data/spec/models/track_reference_spec.rb +65 -0
- data/spec/models/track_spec.rb +113 -0
- data/spec/models/transaction_spec.rb +415 -0
- data/spec/models/type_associations_spec.rb +59 -0
- data/spec/models/type_spec.rb +111 -0
- data/spec/models/unit_of_measure_reference_spec.rb +65 -0
- data/spec/models/unit_of_measure_spec.rb +83 -0
- data/spec/models/unposted_expense_spec.rb +331 -0
- data/spec/models/unposted_invoice_spec.rb +309 -0
- data/spec/models/unposted_procurement_spec.rb +297 -0
- data/spec/models/user_defined_field_option_spec.rb +77 -0
- data/spec/models/user_defined_field_spec.rb +187 -0
- data/spec/models/validate_portal_request_spec.rb +59 -0
- data/spec/models/validate_portal_response_spec.rb +59 -0
- data/spec/models/validation_error_spec.rb +71 -0
- data/spec/models/warehouse_bin_reference_spec.rb +65 -0
- data/spec/models/warehouse_reference_spec.rb +65 -0
- data/spec/models/work_role_reference_spec.rb +65 -0
- data/spec/models/work_type_reference_spec.rb +65 -0
- data/spec/spec_helper.rb +121 -0
- metadata +1695 -0
@@ -0,0 +1,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 ProductTypeReference
|
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,821 @@
|
|
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 Project
|
29
|
+
attr_accessor :id
|
30
|
+
|
31
|
+
# Metadata of the entity
|
32
|
+
attr_accessor :_info
|
33
|
+
|
34
|
+
attr_accessor :actual_end
|
35
|
+
|
36
|
+
attr_accessor :actual_hours
|
37
|
+
|
38
|
+
attr_accessor :actual_start
|
39
|
+
|
40
|
+
attr_accessor :agreement
|
41
|
+
|
42
|
+
attr_accessor :bill_expenses
|
43
|
+
|
44
|
+
attr_accessor :billing_amount
|
45
|
+
|
46
|
+
attr_accessor :billing_attention
|
47
|
+
|
48
|
+
attr_accessor :billing_method
|
49
|
+
|
50
|
+
attr_accessor :billing_rate_type
|
51
|
+
|
52
|
+
attr_accessor :billing_terms
|
53
|
+
|
54
|
+
attr_accessor :bill_products
|
55
|
+
|
56
|
+
attr_accessor :bill_project_after_closed_flag
|
57
|
+
|
58
|
+
attr_accessor :bill_time
|
59
|
+
|
60
|
+
attr_accessor :bill_to_company
|
61
|
+
|
62
|
+
attr_accessor :bill_to_contact
|
63
|
+
|
64
|
+
attr_accessor :bill_to_site
|
65
|
+
|
66
|
+
attr_accessor :bill_unapproved_time_and_expense
|
67
|
+
|
68
|
+
attr_accessor :board
|
69
|
+
|
70
|
+
attr_accessor :budget_analysis
|
71
|
+
|
72
|
+
attr_accessor :budget_flag
|
73
|
+
|
74
|
+
attr_accessor :budget_hours
|
75
|
+
|
76
|
+
attr_accessor :business_unit_id
|
77
|
+
|
78
|
+
attr_accessor :company
|
79
|
+
|
80
|
+
attr_accessor :contact
|
81
|
+
|
82
|
+
attr_accessor :customer_po
|
83
|
+
|
84
|
+
attr_accessor :description
|
85
|
+
|
86
|
+
attr_accessor :downpayment
|
87
|
+
|
88
|
+
attr_accessor :estimated_end
|
89
|
+
|
90
|
+
attr_accessor :estimated_expense_revenue
|
91
|
+
|
92
|
+
attr_accessor :estimated_hours
|
93
|
+
|
94
|
+
attr_accessor :estimated_product_revenue
|
95
|
+
|
96
|
+
attr_accessor :estimated_start
|
97
|
+
|
98
|
+
attr_accessor :estimated_time_revenue
|
99
|
+
|
100
|
+
attr_accessor :expense_approver
|
101
|
+
|
102
|
+
attr_accessor :include_dependencies_flag
|
103
|
+
|
104
|
+
attr_accessor :include_estimates_flag
|
105
|
+
|
106
|
+
attr_accessor :location_id
|
107
|
+
|
108
|
+
attr_accessor :manager
|
109
|
+
|
110
|
+
attr_accessor :name
|
111
|
+
|
112
|
+
attr_accessor :opportunity
|
113
|
+
|
114
|
+
attr_accessor :project_template_id
|
115
|
+
|
116
|
+
attr_accessor :restrict_down_payment_flag
|
117
|
+
|
118
|
+
attr_accessor :scheduled_end
|
119
|
+
|
120
|
+
attr_accessor :scheduled_hours
|
121
|
+
|
122
|
+
attr_accessor :scheduled_start
|
123
|
+
|
124
|
+
attr_accessor :ship_to_company
|
125
|
+
|
126
|
+
attr_accessor :ship_to_contact
|
127
|
+
|
128
|
+
attr_accessor :ship_to_site
|
129
|
+
|
130
|
+
attr_accessor :site
|
131
|
+
|
132
|
+
attr_accessor :status
|
133
|
+
|
134
|
+
attr_accessor :time_approver
|
135
|
+
|
136
|
+
attr_accessor :type
|
137
|
+
|
138
|
+
class EnumAttributeValidator
|
139
|
+
attr_reader :datatype
|
140
|
+
attr_reader :allowable_values
|
141
|
+
|
142
|
+
def initialize(datatype, allowable_values)
|
143
|
+
@allowable_values = allowable_values.map do |value|
|
144
|
+
case datatype.to_s
|
145
|
+
when /Integer/i
|
146
|
+
value.to_i
|
147
|
+
when /Float/i
|
148
|
+
value.to_f
|
149
|
+
else
|
150
|
+
value
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
def valid?(value)
|
156
|
+
!value || allowable_values.include?(value)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
161
|
+
def self.attribute_map
|
162
|
+
{
|
163
|
+
:'id' => :'id',
|
164
|
+
:'_info' => :'_info',
|
165
|
+
:'actual_end' => :'actualEnd',
|
166
|
+
:'actual_hours' => :'actualHours',
|
167
|
+
:'actual_start' => :'actualStart',
|
168
|
+
:'agreement' => :'agreement',
|
169
|
+
:'bill_expenses' => :'billExpenses',
|
170
|
+
:'billing_amount' => :'billingAmount',
|
171
|
+
:'billing_attention' => :'billingAttention',
|
172
|
+
:'billing_method' => :'billingMethod',
|
173
|
+
:'billing_rate_type' => :'billingRateType',
|
174
|
+
:'billing_terms' => :'billingTerms',
|
175
|
+
:'bill_products' => :'billProducts',
|
176
|
+
:'bill_project_after_closed_flag' => :'billProjectAfterClosedFlag',
|
177
|
+
:'bill_time' => :'billTime',
|
178
|
+
:'bill_to_company' => :'billToCompany',
|
179
|
+
:'bill_to_contact' => :'billToContact',
|
180
|
+
:'bill_to_site' => :'billToSite',
|
181
|
+
:'bill_unapproved_time_and_expense' => :'billUnapprovedTimeAndExpense',
|
182
|
+
:'board' => :'board',
|
183
|
+
:'budget_analysis' => :'budgetAnalysis',
|
184
|
+
:'budget_flag' => :'budgetFlag',
|
185
|
+
:'budget_hours' => :'budgetHours',
|
186
|
+
:'business_unit_id' => :'businessUnitId',
|
187
|
+
:'company' => :'company',
|
188
|
+
:'contact' => :'contact',
|
189
|
+
:'customer_po' => :'customerPO',
|
190
|
+
:'description' => :'description',
|
191
|
+
:'downpayment' => :'downpayment',
|
192
|
+
:'estimated_end' => :'estimatedEnd',
|
193
|
+
:'estimated_expense_revenue' => :'estimatedExpenseRevenue',
|
194
|
+
:'estimated_hours' => :'estimatedHours',
|
195
|
+
:'estimated_product_revenue' => :'estimatedProductRevenue',
|
196
|
+
:'estimated_start' => :'estimatedStart',
|
197
|
+
:'estimated_time_revenue' => :'estimatedTimeRevenue',
|
198
|
+
:'expense_approver' => :'expenseApprover',
|
199
|
+
:'include_dependencies_flag' => :'includeDependenciesFlag',
|
200
|
+
:'include_estimates_flag' => :'includeEstimatesFlag',
|
201
|
+
:'location_id' => :'locationId',
|
202
|
+
:'manager' => :'manager',
|
203
|
+
:'name' => :'name',
|
204
|
+
:'opportunity' => :'opportunity',
|
205
|
+
:'project_template_id' => :'projectTemplateId',
|
206
|
+
:'restrict_down_payment_flag' => :'restrictDownPaymentFlag',
|
207
|
+
:'scheduled_end' => :'scheduledEnd',
|
208
|
+
:'scheduled_hours' => :'scheduledHours',
|
209
|
+
:'scheduled_start' => :'scheduledStart',
|
210
|
+
:'ship_to_company' => :'shipToCompany',
|
211
|
+
:'ship_to_contact' => :'shipToContact',
|
212
|
+
:'ship_to_site' => :'shipToSite',
|
213
|
+
:'site' => :'site',
|
214
|
+
:'status' => :'status',
|
215
|
+
:'time_approver' => :'timeApprover',
|
216
|
+
:'type' => :'type'
|
217
|
+
}
|
218
|
+
end
|
219
|
+
|
220
|
+
# Attribute type mapping.
|
221
|
+
def self.swagger_types
|
222
|
+
{
|
223
|
+
:'id' => :'Integer',
|
224
|
+
:'_info' => :'Metadata',
|
225
|
+
:'actual_end' => :'String',
|
226
|
+
:'actual_hours' => :'Float',
|
227
|
+
:'actual_start' => :'String',
|
228
|
+
:'agreement' => :'AgreementReference',
|
229
|
+
:'bill_expenses' => :'String',
|
230
|
+
:'billing_amount' => :'Float',
|
231
|
+
:'billing_attention' => :'String',
|
232
|
+
:'billing_method' => :'String',
|
233
|
+
:'billing_rate_type' => :'String',
|
234
|
+
:'billing_terms' => :'BillingTermsReference',
|
235
|
+
:'bill_products' => :'String',
|
236
|
+
:'bill_project_after_closed_flag' => :'BOOLEAN',
|
237
|
+
:'bill_time' => :'String',
|
238
|
+
:'bill_to_company' => :'CompanyReference',
|
239
|
+
:'bill_to_contact' => :'ContactReference',
|
240
|
+
:'bill_to_site' => :'SiteReference',
|
241
|
+
:'bill_unapproved_time_and_expense' => :'BOOLEAN',
|
242
|
+
:'board' => :'ProjectBoardReference',
|
243
|
+
:'budget_analysis' => :'String',
|
244
|
+
:'budget_flag' => :'BOOLEAN',
|
245
|
+
:'budget_hours' => :'Float',
|
246
|
+
:'business_unit_id' => :'Integer',
|
247
|
+
:'company' => :'CompanyReference',
|
248
|
+
:'contact' => :'ContactReference',
|
249
|
+
:'customer_po' => :'String',
|
250
|
+
:'description' => :'String',
|
251
|
+
:'downpayment' => :'Float',
|
252
|
+
:'estimated_end' => :'DateTime',
|
253
|
+
:'estimated_expense_revenue' => :'Float',
|
254
|
+
:'estimated_hours' => :'Float',
|
255
|
+
:'estimated_product_revenue' => :'Float',
|
256
|
+
:'estimated_start' => :'DateTime',
|
257
|
+
:'estimated_time_revenue' => :'Float',
|
258
|
+
:'expense_approver' => :'MemberReference',
|
259
|
+
:'include_dependencies_flag' => :'BOOLEAN',
|
260
|
+
:'include_estimates_flag' => :'BOOLEAN',
|
261
|
+
:'location_id' => :'Integer',
|
262
|
+
:'manager' => :'MemberReference',
|
263
|
+
:'name' => :'String',
|
264
|
+
:'opportunity' => :'OpportunityReference',
|
265
|
+
:'project_template_id' => :'Integer',
|
266
|
+
:'restrict_down_payment_flag' => :'BOOLEAN',
|
267
|
+
:'scheduled_end' => :'String',
|
268
|
+
:'scheduled_hours' => :'Float',
|
269
|
+
:'scheduled_start' => :'String',
|
270
|
+
:'ship_to_company' => :'CompanyReference',
|
271
|
+
:'ship_to_contact' => :'ContactReference',
|
272
|
+
:'ship_to_site' => :'SiteReference',
|
273
|
+
:'site' => :'SiteReference',
|
274
|
+
:'status' => :'ProjectStatusReference',
|
275
|
+
:'time_approver' => :'MemberReference',
|
276
|
+
:'type' => :'ProjectTypeReference'
|
277
|
+
}
|
278
|
+
end
|
279
|
+
|
280
|
+
# Initializes the object
|
281
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
282
|
+
def initialize(attributes = {})
|
283
|
+
return unless attributes.is_a?(Hash)
|
284
|
+
|
285
|
+
# convert string to symbol for hash key
|
286
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
287
|
+
|
288
|
+
if attributes.has_key?(:'id')
|
289
|
+
self.id = attributes[:'id']
|
290
|
+
end
|
291
|
+
|
292
|
+
if attributes.has_key?(:'_info')
|
293
|
+
self._info = attributes[:'_info']
|
294
|
+
end
|
295
|
+
|
296
|
+
if attributes.has_key?(:'actualEnd')
|
297
|
+
self.actual_end = attributes[:'actualEnd']
|
298
|
+
end
|
299
|
+
|
300
|
+
if attributes.has_key?(:'actualHours')
|
301
|
+
self.actual_hours = attributes[:'actualHours']
|
302
|
+
end
|
303
|
+
|
304
|
+
if attributes.has_key?(:'actualStart')
|
305
|
+
self.actual_start = attributes[:'actualStart']
|
306
|
+
end
|
307
|
+
|
308
|
+
if attributes.has_key?(:'agreement')
|
309
|
+
self.agreement = attributes[:'agreement']
|
310
|
+
end
|
311
|
+
|
312
|
+
if attributes.has_key?(:'billExpenses')
|
313
|
+
self.bill_expenses = attributes[:'billExpenses']
|
314
|
+
end
|
315
|
+
|
316
|
+
if attributes.has_key?(:'billingAmount')
|
317
|
+
self.billing_amount = attributes[:'billingAmount']
|
318
|
+
end
|
319
|
+
|
320
|
+
if attributes.has_key?(:'billingAttention')
|
321
|
+
self.billing_attention = attributes[:'billingAttention']
|
322
|
+
end
|
323
|
+
|
324
|
+
if attributes.has_key?(:'billingMethod')
|
325
|
+
self.billing_method = attributes[:'billingMethod']
|
326
|
+
end
|
327
|
+
|
328
|
+
if attributes.has_key?(:'billingRateType')
|
329
|
+
self.billing_rate_type = attributes[:'billingRateType']
|
330
|
+
end
|
331
|
+
|
332
|
+
if attributes.has_key?(:'billingTerms')
|
333
|
+
self.billing_terms = attributes[:'billingTerms']
|
334
|
+
end
|
335
|
+
|
336
|
+
if attributes.has_key?(:'billProducts')
|
337
|
+
self.bill_products = attributes[:'billProducts']
|
338
|
+
end
|
339
|
+
|
340
|
+
if attributes.has_key?(:'billProjectAfterClosedFlag')
|
341
|
+
self.bill_project_after_closed_flag = attributes[:'billProjectAfterClosedFlag']
|
342
|
+
end
|
343
|
+
|
344
|
+
if attributes.has_key?(:'billTime')
|
345
|
+
self.bill_time = attributes[:'billTime']
|
346
|
+
end
|
347
|
+
|
348
|
+
if attributes.has_key?(:'billToCompany')
|
349
|
+
self.bill_to_company = attributes[:'billToCompany']
|
350
|
+
end
|
351
|
+
|
352
|
+
if attributes.has_key?(:'billToContact')
|
353
|
+
self.bill_to_contact = attributes[:'billToContact']
|
354
|
+
end
|
355
|
+
|
356
|
+
if attributes.has_key?(:'billToSite')
|
357
|
+
self.bill_to_site = attributes[:'billToSite']
|
358
|
+
end
|
359
|
+
|
360
|
+
if attributes.has_key?(:'billUnapprovedTimeAndExpense')
|
361
|
+
self.bill_unapproved_time_and_expense = attributes[:'billUnapprovedTimeAndExpense']
|
362
|
+
end
|
363
|
+
|
364
|
+
if attributes.has_key?(:'board')
|
365
|
+
self.board = attributes[:'board']
|
366
|
+
end
|
367
|
+
|
368
|
+
if attributes.has_key?(:'budgetAnalysis')
|
369
|
+
self.budget_analysis = attributes[:'budgetAnalysis']
|
370
|
+
end
|
371
|
+
|
372
|
+
if attributes.has_key?(:'budgetFlag')
|
373
|
+
self.budget_flag = attributes[:'budgetFlag']
|
374
|
+
end
|
375
|
+
|
376
|
+
if attributes.has_key?(:'budgetHours')
|
377
|
+
self.budget_hours = attributes[:'budgetHours']
|
378
|
+
end
|
379
|
+
|
380
|
+
if attributes.has_key?(:'businessUnitId')
|
381
|
+
self.business_unit_id = attributes[:'businessUnitId']
|
382
|
+
end
|
383
|
+
|
384
|
+
if attributes.has_key?(:'company')
|
385
|
+
self.company = attributes[:'company']
|
386
|
+
end
|
387
|
+
|
388
|
+
if attributes.has_key?(:'contact')
|
389
|
+
self.contact = attributes[:'contact']
|
390
|
+
end
|
391
|
+
|
392
|
+
if attributes.has_key?(:'customerPO')
|
393
|
+
self.customer_po = attributes[:'customerPO']
|
394
|
+
end
|
395
|
+
|
396
|
+
if attributes.has_key?(:'description')
|
397
|
+
self.description = attributes[:'description']
|
398
|
+
end
|
399
|
+
|
400
|
+
if attributes.has_key?(:'downpayment')
|
401
|
+
self.downpayment = attributes[:'downpayment']
|
402
|
+
end
|
403
|
+
|
404
|
+
if attributes.has_key?(:'estimatedEnd')
|
405
|
+
self.estimated_end = attributes[:'estimatedEnd']
|
406
|
+
end
|
407
|
+
|
408
|
+
if attributes.has_key?(:'estimatedExpenseRevenue')
|
409
|
+
self.estimated_expense_revenue = attributes[:'estimatedExpenseRevenue']
|
410
|
+
end
|
411
|
+
|
412
|
+
if attributes.has_key?(:'estimatedHours')
|
413
|
+
self.estimated_hours = attributes[:'estimatedHours']
|
414
|
+
end
|
415
|
+
|
416
|
+
if attributes.has_key?(:'estimatedProductRevenue')
|
417
|
+
self.estimated_product_revenue = attributes[:'estimatedProductRevenue']
|
418
|
+
end
|
419
|
+
|
420
|
+
if attributes.has_key?(:'estimatedStart')
|
421
|
+
self.estimated_start = attributes[:'estimatedStart']
|
422
|
+
end
|
423
|
+
|
424
|
+
if attributes.has_key?(:'estimatedTimeRevenue')
|
425
|
+
self.estimated_time_revenue = attributes[:'estimatedTimeRevenue']
|
426
|
+
end
|
427
|
+
|
428
|
+
if attributes.has_key?(:'expenseApprover')
|
429
|
+
self.expense_approver = attributes[:'expenseApprover']
|
430
|
+
end
|
431
|
+
|
432
|
+
if attributes.has_key?(:'includeDependenciesFlag')
|
433
|
+
self.include_dependencies_flag = attributes[:'includeDependenciesFlag']
|
434
|
+
end
|
435
|
+
|
436
|
+
if attributes.has_key?(:'includeEstimatesFlag')
|
437
|
+
self.include_estimates_flag = attributes[:'includeEstimatesFlag']
|
438
|
+
end
|
439
|
+
|
440
|
+
if attributes.has_key?(:'locationId')
|
441
|
+
self.location_id = attributes[:'locationId']
|
442
|
+
end
|
443
|
+
|
444
|
+
if attributes.has_key?(:'manager')
|
445
|
+
self.manager = attributes[:'manager']
|
446
|
+
end
|
447
|
+
|
448
|
+
if attributes.has_key?(:'name')
|
449
|
+
self.name = attributes[:'name']
|
450
|
+
end
|
451
|
+
|
452
|
+
if attributes.has_key?(:'opportunity')
|
453
|
+
self.opportunity = attributes[:'opportunity']
|
454
|
+
end
|
455
|
+
|
456
|
+
if attributes.has_key?(:'projectTemplateId')
|
457
|
+
self.project_template_id = attributes[:'projectTemplateId']
|
458
|
+
end
|
459
|
+
|
460
|
+
if attributes.has_key?(:'restrictDownPaymentFlag')
|
461
|
+
self.restrict_down_payment_flag = attributes[:'restrictDownPaymentFlag']
|
462
|
+
end
|
463
|
+
|
464
|
+
if attributes.has_key?(:'scheduledEnd')
|
465
|
+
self.scheduled_end = attributes[:'scheduledEnd']
|
466
|
+
end
|
467
|
+
|
468
|
+
if attributes.has_key?(:'scheduledHours')
|
469
|
+
self.scheduled_hours = attributes[:'scheduledHours']
|
470
|
+
end
|
471
|
+
|
472
|
+
if attributes.has_key?(:'scheduledStart')
|
473
|
+
self.scheduled_start = attributes[:'scheduledStart']
|
474
|
+
end
|
475
|
+
|
476
|
+
if attributes.has_key?(:'shipToCompany')
|
477
|
+
self.ship_to_company = attributes[:'shipToCompany']
|
478
|
+
end
|
479
|
+
|
480
|
+
if attributes.has_key?(:'shipToContact')
|
481
|
+
self.ship_to_contact = attributes[:'shipToContact']
|
482
|
+
end
|
483
|
+
|
484
|
+
if attributes.has_key?(:'shipToSite')
|
485
|
+
self.ship_to_site = attributes[:'shipToSite']
|
486
|
+
end
|
487
|
+
|
488
|
+
if attributes.has_key?(:'site')
|
489
|
+
self.site = attributes[:'site']
|
490
|
+
end
|
491
|
+
|
492
|
+
if attributes.has_key?(:'status')
|
493
|
+
self.status = attributes[:'status']
|
494
|
+
end
|
495
|
+
|
496
|
+
if attributes.has_key?(:'timeApprover')
|
497
|
+
self.time_approver = attributes[:'timeApprover']
|
498
|
+
end
|
499
|
+
|
500
|
+
if attributes.has_key?(:'type')
|
501
|
+
self.type = attributes[:'type']
|
502
|
+
end
|
503
|
+
|
504
|
+
end
|
505
|
+
|
506
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
507
|
+
# @return Array for valid properies with the reasons
|
508
|
+
def list_invalid_properties
|
509
|
+
invalid_properties = Array.new
|
510
|
+
return invalid_properties
|
511
|
+
end
|
512
|
+
|
513
|
+
# Check to see if the all the properties in the model are valid
|
514
|
+
# @return true if the model is valid
|
515
|
+
def valid?
|
516
|
+
bill_expenses_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"])
|
517
|
+
return false unless bill_expenses_validator.valid?(@bill_expenses)
|
518
|
+
return false if @billing_attention.to_s.length <
|
519
|
+
return false if @billing_method.nil?
|
520
|
+
billing_method_validator = EnumAttributeValidator.new('String', ["ActualRates", "FixedFee", "NotToExceed", "OverrideRate"])
|
521
|
+
return false unless billing_method_validator.valid?(@billing_method)
|
522
|
+
billing_rate_type_validator = EnumAttributeValidator.new('String', ["WorkRole", "StaffMember"])
|
523
|
+
return false unless billing_rate_type_validator.valid?(@billing_rate_type)
|
524
|
+
bill_products_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"])
|
525
|
+
return false unless bill_products_validator.valid?(@bill_products)
|
526
|
+
bill_time_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"])
|
527
|
+
return false unless bill_time_validator.valid?(@bill_time)
|
528
|
+
return false if @board.nil?
|
529
|
+
budget_analysis_validator = EnumAttributeValidator.new('String', ["ActualHours", "BillableHours"])
|
530
|
+
return false unless budget_analysis_validator.valid?(@budget_analysis)
|
531
|
+
return false if @company.nil?
|
532
|
+
return false if @customer_po.to_s.length <
|
533
|
+
return false if @estimated_end.nil?
|
534
|
+
return false if @estimated_start.nil?
|
535
|
+
return false if @name.nil?
|
536
|
+
return false if @name.to_s.length <
|
537
|
+
return true
|
538
|
+
end
|
539
|
+
|
540
|
+
# Custom attribute writer method checking allowed values (enum).
|
541
|
+
# @param [Object] bill_expenses Object to be assigned
|
542
|
+
def bill_expenses=(bill_expenses)
|
543
|
+
validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"])
|
544
|
+
unless validator.valid?(bill_expenses)
|
545
|
+
fail ArgumentError, "invalid value for 'bill_expenses', must be one of #{validator.allowable_values}."
|
546
|
+
end
|
547
|
+
@bill_expenses = bill_expenses
|
548
|
+
end
|
549
|
+
|
550
|
+
# Custom attribute writer method with validation
|
551
|
+
# @param [Object] billing_attention Value to be assigned
|
552
|
+
def billing_attention=(billing_attention)
|
553
|
+
if billing_attention.nil?
|
554
|
+
fail ArgumentError, "billing_attention cannot be nil"
|
555
|
+
end
|
556
|
+
|
557
|
+
if billing_attention.to_s.length <
|
558
|
+
fail ArgumentError, "invalid value for 'billing_attention', the character length must be great than or equal to ."
|
559
|
+
end
|
560
|
+
|
561
|
+
@billing_attention = billing_attention
|
562
|
+
end
|
563
|
+
|
564
|
+
# Custom attribute writer method checking allowed values (enum).
|
565
|
+
# @param [Object] billing_method Object to be assigned
|
566
|
+
def billing_method=(billing_method)
|
567
|
+
validator = EnumAttributeValidator.new('String', ["ActualRates", "FixedFee", "NotToExceed", "OverrideRate"])
|
568
|
+
unless validator.valid?(billing_method)
|
569
|
+
fail ArgumentError, "invalid value for 'billing_method', must be one of #{validator.allowable_values}."
|
570
|
+
end
|
571
|
+
@billing_method = billing_method
|
572
|
+
end
|
573
|
+
|
574
|
+
# Custom attribute writer method checking allowed values (enum).
|
575
|
+
# @param [Object] billing_rate_type Object to be assigned
|
576
|
+
def billing_rate_type=(billing_rate_type)
|
577
|
+
validator = EnumAttributeValidator.new('String', ["WorkRole", "StaffMember"])
|
578
|
+
unless validator.valid?(billing_rate_type)
|
579
|
+
fail ArgumentError, "invalid value for 'billing_rate_type', must be one of #{validator.allowable_values}."
|
580
|
+
end
|
581
|
+
@billing_rate_type = billing_rate_type
|
582
|
+
end
|
583
|
+
|
584
|
+
# Custom attribute writer method checking allowed values (enum).
|
585
|
+
# @param [Object] bill_products Object to be assigned
|
586
|
+
def bill_products=(bill_products)
|
587
|
+
validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"])
|
588
|
+
unless validator.valid?(bill_products)
|
589
|
+
fail ArgumentError, "invalid value for 'bill_products', must be one of #{validator.allowable_values}."
|
590
|
+
end
|
591
|
+
@bill_products = bill_products
|
592
|
+
end
|
593
|
+
|
594
|
+
# Custom attribute writer method checking allowed values (enum).
|
595
|
+
# @param [Object] bill_time Object to be assigned
|
596
|
+
def bill_time=(bill_time)
|
597
|
+
validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"])
|
598
|
+
unless validator.valid?(bill_time)
|
599
|
+
fail ArgumentError, "invalid value for 'bill_time', must be one of #{validator.allowable_values}."
|
600
|
+
end
|
601
|
+
@bill_time = bill_time
|
602
|
+
end
|
603
|
+
|
604
|
+
# Custom attribute writer method checking allowed values (enum).
|
605
|
+
# @param [Object] budget_analysis Object to be assigned
|
606
|
+
def budget_analysis=(budget_analysis)
|
607
|
+
validator = EnumAttributeValidator.new('String', ["ActualHours", "BillableHours"])
|
608
|
+
unless validator.valid?(budget_analysis)
|
609
|
+
fail ArgumentError, "invalid value for 'budget_analysis', must be one of #{validator.allowable_values}."
|
610
|
+
end
|
611
|
+
@budget_analysis = budget_analysis
|
612
|
+
end
|
613
|
+
|
614
|
+
# Custom attribute writer method with validation
|
615
|
+
# @param [Object] customer_po Value to be assigned
|
616
|
+
def customer_po=(customer_po)
|
617
|
+
if customer_po.nil?
|
618
|
+
fail ArgumentError, "customer_po cannot be nil"
|
619
|
+
end
|
620
|
+
|
621
|
+
if customer_po.to_s.length <
|
622
|
+
fail ArgumentError, "invalid value for 'customer_po', the character length must be great than or equal to ."
|
623
|
+
end
|
624
|
+
|
625
|
+
@customer_po = customer_po
|
626
|
+
end
|
627
|
+
|
628
|
+
# Custom attribute writer method with validation
|
629
|
+
# @param [Object] name Value to be assigned
|
630
|
+
def name=(name)
|
631
|
+
if name.nil?
|
632
|
+
fail ArgumentError, "name cannot be nil"
|
633
|
+
end
|
634
|
+
|
635
|
+
if name.to_s.length <
|
636
|
+
fail ArgumentError, "invalid value for 'name', the character length must be great than or equal to ."
|
637
|
+
end
|
638
|
+
|
639
|
+
@name = name
|
640
|
+
end
|
641
|
+
|
642
|
+
# Checks equality by comparing each attribute.
|
643
|
+
# @param [Object] Object to be compared
|
644
|
+
def ==(o)
|
645
|
+
return true if self.equal?(o)
|
646
|
+
self.class == o.class &&
|
647
|
+
id == o.id &&
|
648
|
+
_info == o._info &&
|
649
|
+
actual_end == o.actual_end &&
|
650
|
+
actual_hours == o.actual_hours &&
|
651
|
+
actual_start == o.actual_start &&
|
652
|
+
agreement == o.agreement &&
|
653
|
+
bill_expenses == o.bill_expenses &&
|
654
|
+
billing_amount == o.billing_amount &&
|
655
|
+
billing_attention == o.billing_attention &&
|
656
|
+
billing_method == o.billing_method &&
|
657
|
+
billing_rate_type == o.billing_rate_type &&
|
658
|
+
billing_terms == o.billing_terms &&
|
659
|
+
bill_products == o.bill_products &&
|
660
|
+
bill_project_after_closed_flag == o.bill_project_after_closed_flag &&
|
661
|
+
bill_time == o.bill_time &&
|
662
|
+
bill_to_company == o.bill_to_company &&
|
663
|
+
bill_to_contact == o.bill_to_contact &&
|
664
|
+
bill_to_site == o.bill_to_site &&
|
665
|
+
bill_unapproved_time_and_expense == o.bill_unapproved_time_and_expense &&
|
666
|
+
board == o.board &&
|
667
|
+
budget_analysis == o.budget_analysis &&
|
668
|
+
budget_flag == o.budget_flag &&
|
669
|
+
budget_hours == o.budget_hours &&
|
670
|
+
business_unit_id == o.business_unit_id &&
|
671
|
+
company == o.company &&
|
672
|
+
contact == o.contact &&
|
673
|
+
customer_po == o.customer_po &&
|
674
|
+
description == o.description &&
|
675
|
+
downpayment == o.downpayment &&
|
676
|
+
estimated_end == o.estimated_end &&
|
677
|
+
estimated_expense_revenue == o.estimated_expense_revenue &&
|
678
|
+
estimated_hours == o.estimated_hours &&
|
679
|
+
estimated_product_revenue == o.estimated_product_revenue &&
|
680
|
+
estimated_start == o.estimated_start &&
|
681
|
+
estimated_time_revenue == o.estimated_time_revenue &&
|
682
|
+
expense_approver == o.expense_approver &&
|
683
|
+
include_dependencies_flag == o.include_dependencies_flag &&
|
684
|
+
include_estimates_flag == o.include_estimates_flag &&
|
685
|
+
location_id == o.location_id &&
|
686
|
+
manager == o.manager &&
|
687
|
+
name == o.name &&
|
688
|
+
opportunity == o.opportunity &&
|
689
|
+
project_template_id == o.project_template_id &&
|
690
|
+
restrict_down_payment_flag == o.restrict_down_payment_flag &&
|
691
|
+
scheduled_end == o.scheduled_end &&
|
692
|
+
scheduled_hours == o.scheduled_hours &&
|
693
|
+
scheduled_start == o.scheduled_start &&
|
694
|
+
ship_to_company == o.ship_to_company &&
|
695
|
+
ship_to_contact == o.ship_to_contact &&
|
696
|
+
ship_to_site == o.ship_to_site &&
|
697
|
+
site == o.site &&
|
698
|
+
status == o.status &&
|
699
|
+
time_approver == o.time_approver &&
|
700
|
+
type == o.type
|
701
|
+
end
|
702
|
+
|
703
|
+
# @see the `==` method
|
704
|
+
# @param [Object] Object to be compared
|
705
|
+
def eql?(o)
|
706
|
+
self == o
|
707
|
+
end
|
708
|
+
|
709
|
+
# Calculates hash code according to all attributes.
|
710
|
+
# @return [Fixnum] Hash code
|
711
|
+
def hash
|
712
|
+
[id, _info, actual_end, actual_hours, actual_start, agreement, bill_expenses, billing_amount, billing_attention, billing_method, billing_rate_type, billing_terms, bill_products, bill_project_after_closed_flag, bill_time, bill_to_company, bill_to_contact, bill_to_site, bill_unapproved_time_and_expense, board, budget_analysis, budget_flag, budget_hours, business_unit_id, company, contact, customer_po, description, downpayment, estimated_end, estimated_expense_revenue, estimated_hours, estimated_product_revenue, estimated_start, estimated_time_revenue, expense_approver, include_dependencies_flag, include_estimates_flag, location_id, manager, name, opportunity, project_template_id, restrict_down_payment_flag, scheduled_end, scheduled_hours, scheduled_start, ship_to_company, ship_to_contact, ship_to_site, site, status, time_approver, type].hash
|
713
|
+
end
|
714
|
+
|
715
|
+
# Builds the object from hash
|
716
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
717
|
+
# @return [Object] Returns the model itself
|
718
|
+
def build_from_hash(attributes)
|
719
|
+
return nil unless attributes.is_a?(Hash)
|
720
|
+
self.class.swagger_types.each_pair do |key, type|
|
721
|
+
if type =~ /^Array<(.*)>/i
|
722
|
+
# check to ensure the input is an array given that the the attribute
|
723
|
+
# is documented as an array but the input is not
|
724
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
725
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
726
|
+
end
|
727
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
728
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
729
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
730
|
+
end
|
731
|
+
|
732
|
+
self
|
733
|
+
end
|
734
|
+
|
735
|
+
# Deserializes the data based on type
|
736
|
+
# @param string type Data type
|
737
|
+
# @param string value Value to be deserialized
|
738
|
+
# @return [Object] Deserialized data
|
739
|
+
def _deserialize(type, value)
|
740
|
+
case type.to_sym
|
741
|
+
when :DateTime
|
742
|
+
DateTime.parse(value)
|
743
|
+
when :Date
|
744
|
+
Date.parse(value)
|
745
|
+
when :String
|
746
|
+
value.to_s
|
747
|
+
when :Integer
|
748
|
+
value.to_i
|
749
|
+
when :Float
|
750
|
+
value.to_f
|
751
|
+
when :BOOLEAN
|
752
|
+
if value.to_s =~ /^(true|t|yes|y|1)$/i
|
753
|
+
true
|
754
|
+
else
|
755
|
+
false
|
756
|
+
end
|
757
|
+
when :Object
|
758
|
+
# generic object (usually a Hash), return directly
|
759
|
+
value
|
760
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
761
|
+
inner_type = Regexp.last_match[:inner_type]
|
762
|
+
value.map { |v| _deserialize(inner_type, v) }
|
763
|
+
when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
|
764
|
+
k_type = Regexp.last_match[:k_type]
|
765
|
+
v_type = Regexp.last_match[:v_type]
|
766
|
+
{}.tap do |hash|
|
767
|
+
value.each do |k, v|
|
768
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
769
|
+
end
|
770
|
+
end
|
771
|
+
else # model
|
772
|
+
temp_model = Connectwise.const_get(type).new
|
773
|
+
temp_model.build_from_hash(value)
|
774
|
+
end
|
775
|
+
end
|
776
|
+
|
777
|
+
# Returns the string representation of the object
|
778
|
+
# @return [String] String presentation of the object
|
779
|
+
def to_s
|
780
|
+
to_hash.to_s
|
781
|
+
end
|
782
|
+
|
783
|
+
# to_body is an alias to to_hash (backward compatibility)
|
784
|
+
# @return [Hash] Returns the object in the form of hash
|
785
|
+
def to_body
|
786
|
+
to_hash
|
787
|
+
end
|
788
|
+
|
789
|
+
# Returns the object in the form of hash
|
790
|
+
# @return [Hash] Returns the object in the form of hash
|
791
|
+
def to_hash
|
792
|
+
hash = {}
|
793
|
+
self.class.attribute_map.each_pair do |attr, param|
|
794
|
+
value = self.send(attr)
|
795
|
+
next if value.nil?
|
796
|
+
hash[param] = _to_hash(value)
|
797
|
+
end
|
798
|
+
hash
|
799
|
+
end
|
800
|
+
|
801
|
+
# Outputs non-array value in the form of hash
|
802
|
+
# For object, use to_hash. Otherwise, just return the value
|
803
|
+
# @param [Object] value Any valid value
|
804
|
+
# @return [Hash] Returns the value in the form of hash
|
805
|
+
def _to_hash(value)
|
806
|
+
if value.is_a?(Array)
|
807
|
+
value.compact.map{ |v| _to_hash(v) }
|
808
|
+
elsif value.is_a?(Hash)
|
809
|
+
{}.tap do |hash|
|
810
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
811
|
+
end
|
812
|
+
elsif value.respond_to? :to_hash
|
813
|
+
value.to_hash
|
814
|
+
else
|
815
|
+
value
|
816
|
+
end
|
817
|
+
end
|
818
|
+
|
819
|
+
end
|
820
|
+
|
821
|
+
end
|