Class: ConnectWise::Project
- Inherits:
-
Object
- Object
- ConnectWise::Project
- Defined in:
- lib/connectwise-ruby-sdk/models/project.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#_info ⇒ Object
Metadata of the entity.
-
#actual_end ⇒ Object
Returns the value of attribute actual_end.
-
#actual_hours ⇒ Object
Returns the value of attribute actual_hours.
-
#actual_start ⇒ Object
Returns the value of attribute actual_start.
-
#agreement ⇒ Object
Returns the value of attribute agreement.
-
#bill_expenses ⇒ Object
Returns the value of attribute bill_expenses.
-
#bill_products ⇒ Object
Returns the value of attribute bill_products.
-
#bill_project_after_closed_flag ⇒ Object
Returns the value of attribute bill_project_after_closed_flag.
-
#bill_time ⇒ Object
Returns the value of attribute bill_time.
-
#bill_to_company ⇒ Object
Returns the value of attribute bill_to_company.
-
#bill_to_contact ⇒ Object
Returns the value of attribute bill_to_contact.
-
#bill_to_site ⇒ Object
Returns the value of attribute bill_to_site.
-
#bill_unapproved_time_and_expense ⇒ Object
Returns the value of attribute bill_unapproved_time_and_expense.
-
#billing_amount ⇒ Object
Returns the value of attribute billing_amount.
-
#billing_attention ⇒ Object
Returns the value of attribute billing_attention.
-
#billing_method ⇒ Object
Returns the value of attribute billing_method.
-
#billing_rate_type ⇒ Object
Returns the value of attribute billing_rate_type.
-
#billing_start_date ⇒ Object
Returns the value of attribute billing_start_date.
-
#billing_terms ⇒ Object
Returns the value of attribute billing_terms.
-
#board ⇒ Object
Returns the value of attribute board.
-
#budget_analysis ⇒ Object
Returns the value of attribute budget_analysis.
-
#budget_flag ⇒ Object
Returns the value of attribute budget_flag.
-
#budget_hours ⇒ Object
Returns the value of attribute budget_hours.
-
#business_unit_id ⇒ Object
Returns the value of attribute business_unit_id.
-
#company ⇒ Object
Returns the value of attribute company.
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#customer_po ⇒ Object
Returns the value of attribute customer_po.
-
#description ⇒ Object
Returns the value of attribute description.
-
#do_not_display_in_portal_flag ⇒ Object
Returns the value of attribute do_not_display_in_portal_flag.
-
#downpayment ⇒ Object
Returns the value of attribute downpayment.
-
#estimated_end ⇒ Object
Returns the value of attribute estimated_end.
-
#estimated_expense_cost ⇒ Object
Returns the value of attribute estimated_expense_cost.
-
#estimated_expense_revenue ⇒ Object
Returns the value of attribute estimated_expense_revenue.
-
#estimated_hours ⇒ Object
Returns the value of attribute estimated_hours.
-
#estimated_product_cost ⇒ Object
Returns the value of attribute estimated_product_cost.
-
#estimated_product_revenue ⇒ Object
Returns the value of attribute estimated_product_revenue.
-
#estimated_start ⇒ Object
Returns the value of attribute estimated_start.
-
#estimated_time_cost ⇒ Object
Returns the value of attribute estimated_time_cost.
-
#estimated_time_revenue ⇒ Object
Returns the value of attribute estimated_time_revenue.
-
#expense_approver ⇒ Object
Returns the value of attribute expense_approver.
-
#id ⇒ Object
Returns the value of attribute id.
-
#include_dependencies_flag ⇒ Object
Returns the value of attribute include_dependencies_flag.
-
#include_estimates_flag ⇒ Object
Returns the value of attribute include_estimates_flag.
-
#location_id ⇒ Object
Returns the value of attribute location_id.
-
#manager ⇒ Object
Returns the value of attribute manager.
-
#name ⇒ Object
Returns the value of attribute name.
-
#opportunity ⇒ Object
Returns the value of attribute opportunity.
-
#project_template_id ⇒ Object
Returns the value of attribute project_template_id.
-
#restrict_down_payment_flag ⇒ Object
Returns the value of attribute restrict_down_payment_flag.
-
#scheduled_end ⇒ Object
Returns the value of attribute scheduled_end.
-
#scheduled_hours ⇒ Object
Returns the value of attribute scheduled_hours.
-
#scheduled_start ⇒ Object
Returns the value of attribute scheduled_start.
-
#ship_to_company ⇒ Object
Returns the value of attribute ship_to_company.
-
#ship_to_contact ⇒ Object
Returns the value of attribute ship_to_contact.
-
#ship_to_site ⇒ Object
Returns the value of attribute ship_to_site.
-
#site ⇒ Object
Returns the value of attribute site.
-
#status ⇒ Object
Returns the value of attribute status.
-
#tax_code ⇒ Object
Returns the value of attribute tax_code.
-
#time_approver ⇒ Object
Returns the value of attribute time_approver.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ Project
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ Project
Initializes the object
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 288 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] end if attributes.has_key?(:'_info') self._info = attributes[:'_info'] end if attributes.has_key?(:'actualEnd') self.actual_end = attributes[:'actualEnd'] end if attributes.has_key?(:'actualHours') self.actual_hours = attributes[:'actualHours'] end if attributes.has_key?(:'actualStart') self.actual_start = attributes[:'actualStart'] end if attributes.has_key?(:'agreement') self.agreement = attributes[:'agreement'] end if attributes.has_key?(:'billExpenses') self.bill_expenses = attributes[:'billExpenses'] end if attributes.has_key?(:'billingAmount') self.billing_amount = attributes[:'billingAmount'] end if attributes.has_key?(:'billingAttention') self.billing_attention = attributes[:'billingAttention'] end if attributes.has_key?(:'billingMethod') self.billing_method = attributes[:'billingMethod'] end if attributes.has_key?(:'billingRateType') self.billing_rate_type = attributes[:'billingRateType'] end if attributes.has_key?(:'billingTerms') self.billing_terms = attributes[:'billingTerms'] end if attributes.has_key?(:'billProducts') self.bill_products = attributes[:'billProducts'] end if attributes.has_key?(:'billProjectAfterClosedFlag') self.bill_project_after_closed_flag = attributes[:'billProjectAfterClosedFlag'] end if attributes.has_key?(:'billTime') self.bill_time = attributes[:'billTime'] end if attributes.has_key?(:'billToCompany') self.bill_to_company = attributes[:'billToCompany'] end if attributes.has_key?(:'billToContact') self.bill_to_contact = attributes[:'billToContact'] end if attributes.has_key?(:'billToSite') self.bill_to_site = attributes[:'billToSite'] end if attributes.has_key?(:'billUnapprovedTimeAndExpense') self.bill_unapproved_time_and_expense = attributes[:'billUnapprovedTimeAndExpense'] end if attributes.has_key?(:'board') self.board = attributes[:'board'] end if attributes.has_key?(:'budgetAnalysis') self.budget_analysis = attributes[:'budgetAnalysis'] end if attributes.has_key?(:'budgetFlag') self.budget_flag = attributes[:'budgetFlag'] end if attributes.has_key?(:'budgetHours') self.budget_hours = attributes[:'budgetHours'] end if attributes.has_key?(:'businessUnitId') self.business_unit_id = attributes[:'businessUnitId'] end if attributes.has_key?(:'company') self.company = attributes[:'company'] end if attributes.has_key?(:'contact') self.contact = attributes[:'contact'] end if attributes.has_key?(:'customerPO') self.customer_po = attributes[:'customerPO'] end if attributes.has_key?(:'description') self.description = attributes[:'description'] end if attributes.has_key?(:'currency') self.currency = attributes[:'currency'] end if attributes.has_key?(:'downpayment') self.downpayment = attributes[:'downpayment'] end if attributes.has_key?(:'estimatedEnd') self.estimated_end = attributes[:'estimatedEnd'] end if attributes.has_key?(:'estimatedExpenseRevenue') self.estimated_expense_revenue = attributes[:'estimatedExpenseRevenue'] end if attributes.has_key?(:'estimatedHours') self.estimated_hours = attributes[:'estimatedHours'] end if attributes.has_key?(:'estimatedProductRevenue') self.estimated_product_revenue = attributes[:'estimatedProductRevenue'] end if attributes.has_key?(:'estimatedStart') self.estimated_start = attributes[:'estimatedStart'] end if attributes.has_key?(:'estimatedTimeRevenue') self.estimated_time_revenue = attributes[:'estimatedTimeRevenue'] end if attributes.has_key?(:'expenseApprover') self.expense_approver = attributes[:'expenseApprover'] end if attributes.has_key?(:'includeDependenciesFlag') self.include_dependencies_flag = attributes[:'includeDependenciesFlag'] end if attributes.has_key?(:'includeEstimatesFlag') self.include_estimates_flag = attributes[:'includeEstimatesFlag'] end if attributes.has_key?(:'locationId') self.location_id = attributes[:'locationId'] end if attributes.has_key?(:'manager') self.manager = attributes[:'manager'] end if attributes.has_key?(:'name') self.name = attributes[:'name'] end if attributes.has_key?(:'opportunity') self.opportunity = attributes[:'opportunity'] end if attributes.has_key?(:'projectTemplateId') self.project_template_id = attributes[:'projectTemplateId'] end if attributes.has_key?(:'restrictDownPaymentFlag') self.restrict_down_payment_flag = attributes[:'restrictDownPaymentFlag'] end if attributes.has_key?(:'scheduledEnd') self.scheduled_end = attributes[:'scheduledEnd'] end if attributes.has_key?(:'scheduledHours') self.scheduled_hours = attributes[:'scheduledHours'] end if attributes.has_key?(:'scheduledStart') self.scheduled_start = attributes[:'scheduledStart'] end if attributes.has_key?(:'shipToCompany') self.ship_to_company = attributes[:'shipToCompany'] end if attributes.has_key?(:'shipToContact') self.ship_to_contact = attributes[:'shipToContact'] end if attributes.has_key?(:'shipToSite') self.ship_to_site = attributes[:'shipToSite'] end if attributes.has_key?(:'site') self.site = attributes[:'site'] end if attributes.has_key?(:'status') self.status = attributes[:'status'] end if attributes.has_key?(:'timeApprover') self.time_approver = attributes[:'timeApprover'] end if attributes.has_key?(:'type') self.type = attributes[:'type'] end if attributes.has_key?(:'doNotDisplayInPortalFlag') self.do_not_display_in_portal_flag = attributes[:'doNotDisplayInPortalFlag'] end if attributes.has_key?(:'billingStartDate') self.billing_start_date = attributes[:'billingStartDate'] end if attributes.has_key?(:'estimatedTimeCost') self.estimated_time_cost = attributes[:'estimatedTimeCost'] end if attributes.has_key?(:'estimatedExpenseCost') self.estimated_expense_cost = attributes[:'estimatedExpenseCost'] end if attributes.has_key?(:'estimatedProductCost') self.estimated_product_cost = attributes[:'estimatedProductCost'] end if attributes.has_key?(:'taxCode') self.tax_code = attributes[:'taxCode'] end end |
Instance Attribute Details
#_info ⇒ Object
Metadata of the entity
10 11 12 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 10 def _info @_info end |
#actual_end ⇒ Object
Returns the value of attribute actual_end.
12 13 14 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 12 def actual_end @actual_end end |
#actual_hours ⇒ Object
Returns the value of attribute actual_hours.
14 15 16 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 14 def actual_hours @actual_hours end |
#actual_start ⇒ Object
Returns the value of attribute actual_start.
16 17 18 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 16 def actual_start @actual_start end |
#agreement ⇒ Object
Returns the value of attribute agreement.
18 19 20 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 18 def agreement @agreement end |
#bill_expenses ⇒ Object
Returns the value of attribute bill_expenses.
20 21 22 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 20 def bill_expenses @bill_expenses end |
#bill_products ⇒ Object
Returns the value of attribute bill_products.
32 33 34 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 32 def bill_products @bill_products end |
#bill_project_after_closed_flag ⇒ Object
Returns the value of attribute bill_project_after_closed_flag.
34 35 36 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 34 def bill_project_after_closed_flag @bill_project_after_closed_flag end |
#bill_time ⇒ Object
Returns the value of attribute bill_time.
36 37 38 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 36 def bill_time @bill_time end |
#bill_to_company ⇒ Object
Returns the value of attribute bill_to_company.
38 39 40 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 38 def bill_to_company @bill_to_company end |
#bill_to_contact ⇒ Object
Returns the value of attribute bill_to_contact.
40 41 42 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 40 def bill_to_contact @bill_to_contact end |
#bill_to_site ⇒ Object
Returns the value of attribute bill_to_site.
42 43 44 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 42 def bill_to_site @bill_to_site end |
#bill_unapproved_time_and_expense ⇒ Object
Returns the value of attribute bill_unapproved_time_and_expense.
44 45 46 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 44 def bill_unapproved_time_and_expense @bill_unapproved_time_and_expense end |
#billing_amount ⇒ Object
Returns the value of attribute billing_amount.
22 23 24 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 22 def billing_amount @billing_amount end |
#billing_attention ⇒ Object
Returns the value of attribute billing_attention.
24 25 26 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 24 def billing_attention @billing_attention end |
#billing_method ⇒ Object
Returns the value of attribute billing_method.
26 27 28 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 26 def billing_method @billing_method end |
#billing_rate_type ⇒ Object
Returns the value of attribute billing_rate_type.
28 29 30 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 28 def billing_rate_type @billing_rate_type end |
#billing_start_date ⇒ Object
Returns the value of attribute billing_start_date.
120 121 122 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 120 def billing_start_date @billing_start_date end |
#billing_terms ⇒ Object
Returns the value of attribute billing_terms.
30 31 32 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 30 def billing_terms @billing_terms end |
#board ⇒ Object
Returns the value of attribute board.
46 47 48 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 46 def board @board end |
#budget_analysis ⇒ Object
Returns the value of attribute budget_analysis.
48 49 50 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 48 def budget_analysis @budget_analysis end |
#budget_flag ⇒ Object
Returns the value of attribute budget_flag.
50 51 52 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 50 def budget_flag @budget_flag end |
#budget_hours ⇒ Object
Returns the value of attribute budget_hours.
52 53 54 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 52 def budget_hours @budget_hours end |
#business_unit_id ⇒ Object
Returns the value of attribute business_unit_id.
54 55 56 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 54 def business_unit_id @business_unit_id end |
#company ⇒ Object
Returns the value of attribute company.
56 57 58 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 56 def company @company end |
#contact ⇒ Object
Returns the value of attribute contact.
58 59 60 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 58 def contact @contact end |
#currency ⇒ Object
Returns the value of attribute currency.
64 65 66 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 64 def currency @currency end |
#customer_po ⇒ Object
Returns the value of attribute customer_po.
60 61 62 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 60 def customer_po @customer_po end |
#description ⇒ Object
Returns the value of attribute description.
62 63 64 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 62 def description @description end |
#do_not_display_in_portal_flag ⇒ Object
Returns the value of attribute do_not_display_in_portal_flag.
118 119 120 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 118 def do_not_display_in_portal_flag @do_not_display_in_portal_flag end |
#downpayment ⇒ Object
Returns the value of attribute downpayment.
66 67 68 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 66 def downpayment @downpayment end |
#estimated_end ⇒ Object
Returns the value of attribute estimated_end.
68 69 70 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 68 def estimated_end @estimated_end end |
#estimated_expense_cost ⇒ Object
Returns the value of attribute estimated_expense_cost.
124 125 126 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 124 def estimated_expense_cost @estimated_expense_cost end |
#estimated_expense_revenue ⇒ Object
Returns the value of attribute estimated_expense_revenue.
70 71 72 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 70 def estimated_expense_revenue @estimated_expense_revenue end |
#estimated_hours ⇒ Object
Returns the value of attribute estimated_hours.
72 73 74 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 72 def estimated_hours @estimated_hours end |
#estimated_product_cost ⇒ Object
Returns the value of attribute estimated_product_cost.
126 127 128 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 126 def estimated_product_cost @estimated_product_cost end |
#estimated_product_revenue ⇒ Object
Returns the value of attribute estimated_product_revenue.
74 75 76 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 74 def estimated_product_revenue @estimated_product_revenue end |
#estimated_start ⇒ Object
Returns the value of attribute estimated_start.
76 77 78 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 76 def estimated_start @estimated_start end |
#estimated_time_cost ⇒ Object
Returns the value of attribute estimated_time_cost.
122 123 124 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 122 def estimated_time_cost @estimated_time_cost end |
#estimated_time_revenue ⇒ Object
Returns the value of attribute estimated_time_revenue.
78 79 80 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 78 def estimated_time_revenue @estimated_time_revenue end |
#expense_approver ⇒ Object
Returns the value of attribute expense_approver.
80 81 82 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 80 def expense_approver @expense_approver end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 7 def id @id end |
#include_dependencies_flag ⇒ Object
Returns the value of attribute include_dependencies_flag.
82 83 84 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 82 def include_dependencies_flag @include_dependencies_flag end |
#include_estimates_flag ⇒ Object
Returns the value of attribute include_estimates_flag.
84 85 86 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 84 def include_estimates_flag @include_estimates_flag end |
#location_id ⇒ Object
Returns the value of attribute location_id.
86 87 88 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 86 def location_id @location_id end |
#manager ⇒ Object
Returns the value of attribute manager.
88 89 90 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 88 def manager @manager end |
#name ⇒ Object
Returns the value of attribute name.
90 91 92 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 90 def name @name end |
#opportunity ⇒ Object
Returns the value of attribute opportunity.
92 93 94 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 92 def opportunity @opportunity end |
#project_template_id ⇒ Object
Returns the value of attribute project_template_id.
94 95 96 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 94 def project_template_id @project_template_id end |
#restrict_down_payment_flag ⇒ Object
Returns the value of attribute restrict_down_payment_flag.
96 97 98 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 96 def restrict_down_payment_flag @restrict_down_payment_flag end |
#scheduled_end ⇒ Object
Returns the value of attribute scheduled_end.
98 99 100 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 98 def scheduled_end @scheduled_end end |
#scheduled_hours ⇒ Object
Returns the value of attribute scheduled_hours.
100 101 102 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 100 def scheduled_hours @scheduled_hours end |
#scheduled_start ⇒ Object
Returns the value of attribute scheduled_start.
102 103 104 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 102 def scheduled_start @scheduled_start end |
#ship_to_company ⇒ Object
Returns the value of attribute ship_to_company.
104 105 106 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 104 def ship_to_company @ship_to_company end |
#ship_to_contact ⇒ Object
Returns the value of attribute ship_to_contact.
106 107 108 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 106 def ship_to_contact @ship_to_contact end |
#ship_to_site ⇒ Object
Returns the value of attribute ship_to_site.
108 109 110 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 108 def ship_to_site @ship_to_site end |
#site ⇒ Object
Returns the value of attribute site.
110 111 112 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 110 def site @site end |
#status ⇒ Object
Returns the value of attribute status.
112 113 114 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 112 def status @status end |
#tax_code ⇒ Object
Returns the value of attribute tax_code.
128 129 130 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 128 def tax_code @tax_code end |
#time_approver ⇒ Object
Returns the value of attribute time_approver.
114 115 116 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 114 def time_approver @time_approver end |
#type ⇒ Object
Returns the value of attribute type.
116 117 118 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 116 def type @type end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 153 def self.attribute_map { :'id' => :'id', :'_info' => :'_info', :'actual_end' => :'actualEnd', :'actual_hours' => :'actualHours', :'actual_start' => :'actualStart', :'agreement' => :'agreement', :'bill_expenses' => :'billExpenses', :'billing_amount' => :'billingAmount', :'billing_attention' => :'billingAttention', :'billing_method' => :'billingMethod', :'billing_rate_type' => :'billingRateType', :'billing_terms' => :'billingTerms', :'bill_products' => :'billProducts', :'bill_project_after_closed_flag' => :'billProjectAfterClosedFlag', :'bill_time' => :'billTime', :'bill_to_company' => :'billToCompany', :'bill_to_contact' => :'billToContact', :'bill_to_site' => :'billToSite', :'bill_unapproved_time_and_expense' => :'billUnapprovedTimeAndExpense', :'board' => :'board', :'budget_analysis' => :'budgetAnalysis', :'budget_flag' => :'budgetFlag', :'budget_hours' => :'budgetHours', :'business_unit_id' => :'businessUnitId', :'company' => :'company', :'contact' => :'contact', :'customer_po' => :'customerPO', :'description' => :'description', :'currency' => :'currency', :'downpayment' => :'downpayment', :'estimated_end' => :'estimatedEnd', :'estimated_expense_revenue' => :'estimatedExpenseRevenue', :'estimated_hours' => :'estimatedHours', :'estimated_product_revenue' => :'estimatedProductRevenue', :'estimated_start' => :'estimatedStart', :'estimated_time_revenue' => :'estimatedTimeRevenue', :'expense_approver' => :'expenseApprover', :'include_dependencies_flag' => :'includeDependenciesFlag', :'include_estimates_flag' => :'includeEstimatesFlag', :'location_id' => :'locationId', :'manager' => :'manager', :'name' => :'name', :'opportunity' => :'opportunity', :'project_template_id' => :'projectTemplateId', :'restrict_down_payment_flag' => :'restrictDownPaymentFlag', :'scheduled_end' => :'scheduledEnd', :'scheduled_hours' => :'scheduledHours', :'scheduled_start' => :'scheduledStart', :'ship_to_company' => :'shipToCompany', :'ship_to_contact' => :'shipToContact', :'ship_to_site' => :'shipToSite', :'site' => :'site', :'status' => :'status', :'time_approver' => :'timeApprover', :'type' => :'type', :'do_not_display_in_portal_flag' => :'doNotDisplayInPortalFlag', :'billing_start_date' => :'billingStartDate', :'estimated_time_cost' => :'estimatedTimeCost', :'estimated_expense_cost' => :'estimatedExpenseCost', :'estimated_product_cost' => :'estimatedProductCost', :'tax_code' => :'taxCode' } end |
.swagger_types ⇒ Object
Attribute type mapping.
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 220 def self.swagger_types { :'id' => :'Integer', :'_info' => :'Metadata', :'actual_end' => :'DateTime', :'actual_hours' => :'Float', :'actual_start' => :'DateTime', :'agreement' => :'AgreementReference', :'bill_expenses' => :'String', :'billing_amount' => :'Float', :'billing_attention' => :'String', :'billing_method' => :'String', :'billing_rate_type' => :'String', :'billing_terms' => :'BillingTermsReference', :'bill_products' => :'String', :'bill_project_after_closed_flag' => :'BOOLEAN', :'bill_time' => :'String', :'bill_to_company' => :'CompanyReference', :'bill_to_contact' => :'ContactReference', :'bill_to_site' => :'SiteReference', :'bill_unapproved_time_and_expense' => :'BOOLEAN', :'board' => :'ProjectBoardReference', :'budget_analysis' => :'String', :'budget_flag' => :'BOOLEAN', :'budget_hours' => :'Float', :'business_unit_id' => :'Integer', :'company' => :'CompanyReference', :'contact' => :'ContactReference', :'customer_po' => :'String', :'description' => :'String', :'currency' => :'CurrencyReference', :'downpayment' => :'Float', :'estimated_end' => :'DateTime', :'estimated_expense_revenue' => :'Float', :'estimated_hours' => :'Float', :'estimated_product_revenue' => :'Float', :'estimated_start' => :'DateTime', :'estimated_time_revenue' => :'Float', :'expense_approver' => :'MemberReference', :'include_dependencies_flag' => :'BOOLEAN', :'include_estimates_flag' => :'BOOLEAN', :'location_id' => :'Integer', :'manager' => :'MemberReference', :'name' => :'String', :'opportunity' => :'OpportunityReference', :'project_template_id' => :'Integer', :'restrict_down_payment_flag' => :'BOOLEAN', :'scheduled_end' => :'DateTime', :'scheduled_hours' => :'Float', :'scheduled_start' => :'DateTime', :'ship_to_company' => :'CompanyReference', :'ship_to_contact' => :'ContactReference', :'ship_to_site' => :'SiteReference', :'site' => :'SiteReference', :'status' => :'ProjectStatusReference', :'time_approver' => :'MemberReference', :'type' => :'ProjectTypeReference', :'do_not_display_in_portal_flag' => :'BOOLEAN', :'billing_start_date' => :'DateTime', :'estimated_time_cost' => :'Float', :'estimated_expense_cost' => :'Float', :'estimated_product_cost' => :'Float', :'tax_code' => :'TaxCodeReference' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 708 def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && _info == o._info && actual_end == o.actual_end && actual_hours == o.actual_hours && actual_start == o.actual_start && agreement == o.agreement && bill_expenses == o.bill_expenses && billing_amount == o.billing_amount && billing_attention == o.billing_attention && billing_method == o.billing_method && billing_rate_type == o.billing_rate_type && billing_terms == o.billing_terms && bill_products == o.bill_products && bill_project_after_closed_flag == o.bill_project_after_closed_flag && bill_time == o.bill_time && bill_to_company == o.bill_to_company && bill_to_contact == o.bill_to_contact && bill_to_site == o.bill_to_site && bill_unapproved_time_and_expense == o.bill_unapproved_time_and_expense && board == o.board && budget_analysis == o.budget_analysis && budget_flag == o.budget_flag && budget_hours == o.budget_hours && business_unit_id == o.business_unit_id && company == o.company && contact == o.contact && customer_po == o.customer_po && description == o.description && currency == o.currency && downpayment == o.downpayment && estimated_end == o.estimated_end && estimated_expense_revenue == o.estimated_expense_revenue && estimated_hours == o.estimated_hours && estimated_product_revenue == o.estimated_product_revenue && estimated_start == o.estimated_start && estimated_time_revenue == o.estimated_time_revenue && expense_approver == o.expense_approver && include_dependencies_flag == o.include_dependencies_flag && include_estimates_flag == o.include_estimates_flag && location_id == o.location_id && manager == o.manager && name == o.name && opportunity == o.opportunity && project_template_id == o.project_template_id && restrict_down_payment_flag == o.restrict_down_payment_flag && scheduled_end == o.scheduled_end && scheduled_hours == o.scheduled_hours && scheduled_start == o.scheduled_start && ship_to_company == o.ship_to_company && ship_to_contact == o.ship_to_contact && ship_to_site == o.ship_to_site && site == o.site && status == o.status && time_approver == o.time_approver && type == o.type && do_not_display_in_portal_flag == o.do_not_display_in_portal_flag && billing_start_date == o.billing_start_date && estimated_time_cost == o.estimated_time_cost && estimated_expense_cost == o.estimated_expense_cost && estimated_product_cost == o.estimated_product_cost && tax_code == o.tax_code end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 810 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = ConnectWise.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
876 877 878 879 880 881 882 883 884 885 886 887 888 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 876 def _to_hash(value) if value.is_a?(Array) value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 789 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
776 777 778 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 776 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
782 783 784 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 782 def hash [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, currency, 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, do_not_display_in_portal_flag, billing_start_date, estimated_time_cost, estimated_expense_cost, estimated_product_cost, tax_code].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 542 def list_invalid_properties invalid_properties = Array.new if !@billing_attention.nil? && @billing_attention.to_s.length > 50 invalid_properties.push("invalid value for 'billing_attention', the character length must be smaller than or equal to 50.") end if @billing_method.nil? invalid_properties.push("invalid value for 'billing_method', billing_method cannot be nil.") end if @board.nil? invalid_properties.push("invalid value for 'board', board cannot be nil.") end if @company.nil? invalid_properties.push("invalid value for 'company', company cannot be nil.") end if !@customer_po.nil? && @customer_po.to_s.length > 50 invalid_properties.push("invalid value for 'customer_po', the character length must be smaller than or equal to 50.") end if @estimated_end.nil? invalid_properties.push("invalid value for 'estimated_end', estimated_end cannot be nil.") end if @estimated_start.nil? invalid_properties.push("invalid value for 'estimated_start', estimated_start cannot be nil.") end if @name.nil? invalid_properties.push("invalid value for 'name', name cannot be nil.") end if @name.to_s.length > 100 invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 100.") end return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
856 857 858 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 856 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
862 863 864 865 866 867 868 869 870 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 862 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
850 851 852 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 850 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 |
# File 'lib/connectwise-ruby-sdk/models/project.rb', line 585 def valid? bill_expenses_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"]) return false unless bill_expenses_validator.valid?(@bill_expenses) return false if !@billing_attention.nil? && @billing_attention.to_s.length > 50 return false if @billing_method.nil? billing_method_validator = EnumAttributeValidator.new('String', ["ActualRates", "FixedFee", "NotToExceed", "OverrideRate"]) return false unless billing_method_validator.valid?(@billing_method) billing_rate_type_validator = EnumAttributeValidator.new('String', ["WorkRole", "StaffMember"]) return false unless billing_rate_type_validator.valid?(@billing_rate_type) bill_products_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"]) return false unless bill_products_validator.valid?(@bill_products) bill_time_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"]) return false unless bill_time_validator.valid?(@bill_time) return false if @board.nil? budget_analysis_validator = EnumAttributeValidator.new('String', ["ActualHours", "BillableHours"]) return false unless budget_analysis_validator.valid?(@budget_analysis) return false if @company.nil? return false if !@customer_po.nil? && @customer_po.to_s.length > 50 return false if @estimated_end.nil? return false if @estimated_start.nil? return false if @name.nil? return false if @name.to_s.length > 100 return true end |