Class: ConnectWise::Ticket
- Inherits:
-
Object
- Object
- ConnectWise::Ticket
- Defined in:
- lib/connectwise-ruby-sdk/models/ticket.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#_info ⇒ Object
Metadata of the entity.
-
#actual_hours ⇒ Object
Returns the value of attribute actual_hours.
-
#address_line1 ⇒ Object
Returns the value of attribute address_line1.
-
#address_line2 ⇒ Object
Returns the value of attribute address_line2.
-
#agreement ⇒ Object
Returns the value of attribute agreement.
-
#allow_all_clients_portal_view ⇒ Object
Returns the value of attribute allow_all_clients_portal_view.
-
#approved ⇒ Object
Returns the value of attribute approved.
-
#automatic_email_cc ⇒ Object
Returns the value of attribute automatic_email_cc.
-
#automatic_email_cc_flag ⇒ Object
Returns the value of attribute automatic_email_cc_flag.
-
#automatic_email_contact_flag ⇒ Object
Returns the value of attribute automatic_email_contact_flag.
-
#automatic_email_resource_flag ⇒ Object
Returns the value of attribute automatic_email_resource_flag.
-
#bill_expenses ⇒ Object
Returns the value of attribute bill_expenses.
-
#bill_products ⇒ Object
Returns the value of attribute bill_products.
-
#bill_time ⇒ Object
Returns the value of attribute bill_time.
-
#board ⇒ Object
Returns the value of attribute board.
-
#budget_hours ⇒ Object
Returns the value of attribute budget_hours.
-
#business_unit_id ⇒ Object
Returns the value of attribute business_unit_id.
-
#city ⇒ Object
Returns the value of attribute city.
-
#closed_by ⇒ Object
Returns the value of attribute closed_by.
-
#closed_date ⇒ Object
Returns the value of attribute closed_date.
-
#closed_flag ⇒ Object
Returns the value of attribute closed_flag.
-
#company ⇒ Object
Returns the value of attribute company.
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#contact_email_address ⇒ Object
Returns the value of attribute contact_email_address.
-
#contact_email_lookup ⇒ Object
Returns the value of attribute contact_email_lookup.
-
#contact_name ⇒ Object
Returns the value of attribute contact_name.
-
#contact_phone_extension ⇒ Object
Returns the value of attribute contact_phone_extension.
-
#contact_phone_number ⇒ Object
Returns the value of attribute contact_phone_number.
-
#country ⇒ Object
Returns the value of attribute country.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#custom_fields ⇒ Object
Returns the value of attribute custom_fields.
-
#customer_updated_flag ⇒ Object
Returns the value of attribute customer_updated_flag.
-
#date_entered ⇒ Object
Returns the value of attribute date_entered.
-
#date_resolved ⇒ Object
Returns the value of attribute date_resolved.
-
#date_resplan ⇒ Object
Returns the value of attribute date_resplan.
-
#date_responded ⇒ Object
Returns the value of attribute date_responded.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#entered_by ⇒ Object
Returns the value of attribute entered_by.
-
#estimated_start_date ⇒ Object
Returns the value of attribute estimated_start_date.
-
#external_x_ref ⇒ Object
Returns the value of attribute external_x_ref.
-
#has_child_ticket ⇒ Object
Returns the value of attribute has_child_ticket.
-
#id ⇒ Object
Returns the value of attribute id.
-
#impact ⇒ Object
Returns the value of attribute impact.
-
#initial_description ⇒ Object
Only available for POST, will not be returned in the response.
-
#initial_internal_analysis ⇒ Object
Only available for POST, will not be returned in the response.
-
#initial_resolution ⇒ Object
Only available for POST, will not be returned in the response.
-
#is_in_sla ⇒ Object
Returns the value of attribute is_in_sla.
-
#item ⇒ Object
Returns the value of attribute item.
-
#knowledge_base_category_id ⇒ Object
Returns the value of attribute knowledge_base_category_id.
-
#knowledge_base_link_id ⇒ Object
Returns the value of attribute knowledge_base_link_id.
-
#knowledge_base_link_type ⇒ Object
Returns the value of attribute knowledge_base_link_type.
-
#knowledge_base_sub_category_id ⇒ Object
Returns the value of attribute knowledge_base_sub_category_id.
-
#lag_days ⇒ Object
Returns the value of attribute lag_days.
-
#lag_nonworking_days_flag ⇒ Object
Returns the value of attribute lag_nonworking_days_flag.
-
#location_id ⇒ Object
Returns the value of attribute location_id.
-
#mobile_guid ⇒ Object
Returns the value of attribute mobile_guid.
-
#opportunity ⇒ Object
Returns the value of attribute opportunity.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#parent_ticket_id ⇒ Object
Returns the value of attribute parent_ticket_id.
-
#phase ⇒ Object
Returns the value of attribute phase.
-
#po_number ⇒ Object
Returns the value of attribute po_number.
-
#predecessor_closed_flag ⇒ Object
Returns the value of attribute predecessor_closed_flag.
-
#predecessor_id ⇒ Object
Returns the value of attribute predecessor_id.
-
#predecessor_type ⇒ Object
Returns the value of attribute predecessor_type.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#process_notifications ⇒ Object
Can be set to false to skip notification processing when adding or updating a ticket (Defaults to True).
-
#project ⇒ Object
Returns the value of attribute project.
-
#record_type ⇒ Object
Returns the value of attribute record_type.
-
#required_date ⇒ Object
Returns the value of attribute required_date.
-
#res_plan_minutes ⇒ Object
Returns the value of attribute res_plan_minutes.
-
#resolve_minutes ⇒ Object
Returns the value of attribute resolve_minutes.
-
#resources ⇒ Object
Returns the value of attribute resources.
-
#respond_minutes ⇒ Object
Returns the value of attribute respond_minutes.
-
#service_location ⇒ Object
Returns the value of attribute service_location.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#site ⇒ Object
Returns the value of attribute site.
-
#site_name ⇒ Object
Returns the value of attribute site_name.
-
#skip_callback ⇒ Object
Returns the value of attribute skip_callback.
-
#sla ⇒ Object
Returns the value of attribute sla.
-
#source ⇒ Object
Returns the value of attribute source.
-
#state_identifier ⇒ Object
Returns the value of attribute state_identifier.
-
#status ⇒ Object
Returns the value of attribute status.
-
#sub_billing_amount ⇒ Object
Returns the value of attribute sub_billing_amount.
-
#sub_billing_method ⇒ Object
Returns the value of attribute sub_billing_method.
-
#sub_date_accepted ⇒ Object
Returns the value of attribute sub_date_accepted.
-
#sub_type ⇒ Object
Returns the value of attribute sub_type.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#team ⇒ Object
Returns the value of attribute team.
-
#type ⇒ Object
Returns the value of attribute type.
-
#wbs_code ⇒ Object
Returns the value of attribute wbs_code.
-
#zip ⇒ Object
Returns the value of attribute zip.
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 = {}) ⇒ Ticket
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 = {}) ⇒ Ticket
Initializes the object
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 539 540 541 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 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 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 773 774 775 776 777 778 779 780 781 782 783 784 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 412 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?(:'summary') self.summary = attributes[:'summary'] end if attributes.has_key?(:'recordType') self.record_type = attributes[:'recordType'] end if attributes.has_key?(:'board') self.board = attributes[:'board'] end if attributes.has_key?(:'status') self.status = attributes[:'status'] end if attributes.has_key?(:'project') self.project = attributes[:'project'] end if attributes.has_key?(:'phase') self.phase = attributes[:'phase'] end if attributes.has_key?(:'wbsCode') self.wbs_code = attributes[:'wbsCode'] end if attributes.has_key?(:'company') self.company = attributes[:'company'] end if attributes.has_key?(:'site') self.site = attributes[:'site'] end if attributes.has_key?(:'siteName') self.site_name = attributes[:'siteName'] end if attributes.has_key?(:'addressLine1') self.address_line1 = attributes[:'addressLine1'] end if attributes.has_key?(:'addressLine2') self.address_line2 = attributes[:'addressLine2'] end if attributes.has_key?(:'city') self.city = attributes[:'city'] end if attributes.has_key?(:'stateIdentifier') self.state_identifier = attributes[:'stateIdentifier'] end if attributes.has_key?(:'zip') self.zip = attributes[:'zip'] end if attributes.has_key?(:'country') self.country = attributes[:'country'] end if attributes.has_key?(:'contact') self.contact = attributes[:'contact'] end if attributes.has_key?(:'contactName') self.contact_name = attributes[:'contactName'] end if attributes.has_key?(:'contactPhoneNumber') self.contact_phone_number = attributes[:'contactPhoneNumber'] end if attributes.has_key?(:'contactPhoneExtension') self.contact_phone_extension = attributes[:'contactPhoneExtension'] end if attributes.has_key?(:'contactEmailAddress') self.contact_email_address = attributes[:'contactEmailAddress'] end if attributes.has_key?(:'type') self.type = attributes[:'type'] end if attributes.has_key?(:'subType') self.sub_type = attributes[:'subType'] end if attributes.has_key?(:'item') self.item = attributes[:'item'] end if attributes.has_key?(:'team') self.team = attributes[:'team'] end if attributes.has_key?(:'owner') self.owner = attributes[:'owner'] end if attributes.has_key?(:'priority') self.priority = attributes[:'priority'] end if attributes.has_key?(:'serviceLocation') self.service_location = attributes[:'serviceLocation'] end if attributes.has_key?(:'source') self.source = attributes[:'source'] end if attributes.has_key?(:'requiredDate') self.required_date = attributes[:'requiredDate'] end if attributes.has_key?(:'budgetHours') self.budget_hours = attributes[:'budgetHours'] end if attributes.has_key?(:'opportunity') self.opportunity = attributes[:'opportunity'] end if attributes.has_key?(:'agreement') self.agreement = attributes[:'agreement'] end if attributes.has_key?(:'severity') self.severity = attributes[:'severity'] end if attributes.has_key?(:'impact') self.impact = attributes[:'impact'] end if attributes.has_key?(:'externalXRef') self.external_x_ref = attributes[:'externalXRef'] end if attributes.has_key?(:'poNumber') self.po_number = attributes[:'poNumber'] end if attributes.has_key?(:'knowledgeBaseCategoryId') self.knowledge_base_category_id = attributes[:'knowledgeBaseCategoryId'] end if attributes.has_key?(:'knowledgeBaseSubCategoryId') self.knowledge_base_sub_category_id = attributes[:'knowledgeBaseSubCategoryId'] end if attributes.has_key?(:'allowAllClientsPortalView') self.allow_all_clients_portal_view = attributes[:'allowAllClientsPortalView'] end if attributes.has_key?(:'customerUpdatedFlag') self.customer_updated_flag = attributes[:'customerUpdatedFlag'] end if attributes.has_key?(:'automaticEmailContactFlag') self.automatic_email_contact_flag = attributes[:'automaticEmailContactFlag'] end if attributes.has_key?(:'automaticEmailResourceFlag') self.automatic_email_resource_flag = attributes[:'automaticEmailResourceFlag'] end if attributes.has_key?(:'automaticEmailCcFlag') self.automatic_email_cc_flag = attributes[:'automaticEmailCcFlag'] end if attributes.has_key?(:'automaticEmailCc') self.automatic_email_cc = attributes[:'automaticEmailCc'] end if attributes.has_key?(:'initialDescription') self.initial_description = attributes[:'initialDescription'] end if attributes.has_key?(:'initialInternalAnalysis') self.initial_internal_analysis = attributes[:'initialInternalAnalysis'] end if attributes.has_key?(:'initialResolution') self.initial_resolution = attributes[:'initialResolution'] end if attributes.has_key?(:'contactEmailLookup') self.contact_email_lookup = attributes[:'contactEmailLookup'] end if attributes.has_key?(:'processNotifications') self.process_notifications = attributes[:'processNotifications'] end if attributes.has_key?(:'skipCallback') self.skip_callback = attributes[:'skipCallback'] end if attributes.has_key?(:'closedDate') self.closed_date = attributes[:'closedDate'] end if attributes.has_key?(:'closedBy') self.closed_by = attributes[:'closedBy'] end if attributes.has_key?(:'closedFlag') self.closed_flag = attributes[:'closedFlag'] end if attributes.has_key?(:'dateEntered') self.date_entered = attributes[:'dateEntered'] end if attributes.has_key?(:'enteredBy') self.entered_by = attributes[:'enteredBy'] end if attributes.has_key?(:'actualHours') self.actual_hours = attributes[:'actualHours'] end if attributes.has_key?(:'approved') self.approved = attributes[:'approved'] end if attributes.has_key?(:'subBillingMethod') self.sub_billing_method = attributes[:'subBillingMethod'] end if attributes.has_key?(:'subBillingAmount') self.sub_billing_amount = attributes[:'subBillingAmount'] end if attributes.has_key?(:'subDateAccepted') self.sub_date_accepted = attributes[:'subDateAccepted'] end if attributes.has_key?(:'dateResolved') self.date_resolved = attributes[:'dateResolved'] end if attributes.has_key?(:'dateResplan') self.date_resplan = attributes[:'dateResplan'] end if attributes.has_key?(:'dateResponded') self.date_responded = attributes[:'dateResponded'] end if attributes.has_key?(:'resolveMinutes') self.resolve_minutes = attributes[:'resolveMinutes'] end if attributes.has_key?(:'resPlanMinutes') self.res_plan_minutes = attributes[:'resPlanMinutes'] end if attributes.has_key?(:'respondMinutes') self.respond_minutes = attributes[:'respondMinutes'] end if attributes.has_key?(:'isInSla') self.is_in_sla = attributes[:'isInSla'] end if attributes.has_key?(:'knowledgeBaseLinkId') self.knowledge_base_link_id = attributes[:'knowledgeBaseLinkId'] end if attributes.has_key?(:'resources') self.resources = attributes[:'resources'] end if attributes.has_key?(:'parentTicketId') self.parent_ticket_id = attributes[:'parentTicketId'] end if attributes.has_key?(:'hasChildTicket') self.has_child_ticket = attributes[:'hasChildTicket'] end if attributes.has_key?(:'knowledgeBaseLinkType') self.knowledge_base_link_type = attributes[:'knowledgeBaseLinkType'] end if attributes.has_key?(:'billTime') self.bill_time = attributes[:'billTime'] end if attributes.has_key?(:'billExpenses') self.bill_expenses = attributes[:'billExpenses'] end if attributes.has_key?(:'billProducts') self.bill_products = attributes[:'billProducts'] end if attributes.has_key?(:'predecessorType') self.predecessor_type = attributes[:'predecessorType'] end if attributes.has_key?(:'predecessorId') self.predecessor_id = attributes[:'predecessorId'] end if attributes.has_key?(:'predecessorClosedFlag') self.predecessor_closed_flag = attributes[:'predecessorClosedFlag'] end if attributes.has_key?(:'lagDays') self.lag_days = attributes[:'lagDays'] end if attributes.has_key?(:'lagNonworkingDaysFlag') self.lag_nonworking_days_flag = attributes[:'lagNonworkingDaysFlag'] end if attributes.has_key?(:'estimatedStartDate') self.estimated_start_date = attributes[:'estimatedStartDate'] end if attributes.has_key?(:'duration') self.duration = attributes[:'duration'] end if attributes.has_key?(:'locationId') self.location_id = attributes[:'locationId'] end if attributes.has_key?(:'businessUnitId') self.business_unit_id = attributes[:'businessUnitId'] end if attributes.has_key?(:'mobileGuid') self.mobile_guid = attributes[:'mobileGuid'] end if attributes.has_key?(:'sla') self.sla = attributes[:'sla'] end if attributes.has_key?(:'currency') self.currency = attributes[:'currency'] end if attributes.has_key?(:'_info') self._info = attributes[:'_info'] end if attributes.has_key?(:'customFields') if (value = attributes[:'customFields']).is_a?(Array) self.custom_fields = value end end end |
Instance Attribute Details
#_info ⇒ Object
Metadata of the entity
190 191 192 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 190 def _info @_info end |
#actual_hours ⇒ Object
Returns the value of attribute actual_hours.
125 126 127 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 125 def actual_hours @actual_hours end |
#address_line1 ⇒ Object
Returns the value of attribute address_line1.
29 30 31 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 29 def address_line1 @address_line1 end |
#address_line2 ⇒ Object
Returns the value of attribute address_line2.
31 32 33 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 31 def address_line2 @address_line2 end |
#agreement ⇒ Object
Returns the value of attribute agreement.
73 74 75 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 73 def agreement @agreement end |
#allow_all_clients_portal_view ⇒ Object
Returns the value of attribute allow_all_clients_portal_view.
87 88 89 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 87 def allow_all_clients_portal_view @allow_all_clients_portal_view end |
#approved ⇒ Object
Returns the value of attribute approved.
127 128 129 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 127 def approved @approved end |
#automatic_email_cc ⇒ Object
Returns the value of attribute automatic_email_cc.
97 98 99 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 97 def automatic_email_cc @automatic_email_cc end |
#automatic_email_cc_flag ⇒ Object
Returns the value of attribute automatic_email_cc_flag.
95 96 97 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 95 def automatic_email_cc_flag @automatic_email_cc_flag end |
#automatic_email_contact_flag ⇒ Object
Returns the value of attribute automatic_email_contact_flag.
91 92 93 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 91 def automatic_email_contact_flag @automatic_email_contact_flag end |
#automatic_email_resource_flag ⇒ Object
Returns the value of attribute automatic_email_resource_flag.
93 94 95 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 93 def automatic_email_resource_flag @automatic_email_resource_flag end |
#bill_expenses ⇒ Object
Returns the value of attribute bill_expenses.
161 162 163 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 161 def bill_expenses @bill_expenses end |
#bill_products ⇒ Object
Returns the value of attribute bill_products.
163 164 165 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 163 def bill_products @bill_products end |
#bill_time ⇒ Object
Returns the value of attribute bill_time.
159 160 161 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 159 def bill_time @bill_time end |
#board ⇒ Object
Returns the value of attribute board.
13 14 15 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 13 def board @board end |
#budget_hours ⇒ Object
Returns the value of attribute budget_hours.
69 70 71 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 69 def budget_hours @budget_hours end |
#business_unit_id ⇒ Object
Returns the value of attribute business_unit_id.
181 182 183 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 181 def business_unit_id @business_unit_id end |
#city ⇒ Object
Returns the value of attribute city.
33 34 35 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 33 def city @city end |
#closed_by ⇒ Object
Returns the value of attribute closed_by.
117 118 119 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 117 def closed_by @closed_by end |
#closed_date ⇒ Object
Returns the value of attribute closed_date.
115 116 117 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 115 def closed_date @closed_date end |
#closed_flag ⇒ Object
Returns the value of attribute closed_flag.
119 120 121 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 119 def closed_flag @closed_flag end |
#company ⇒ Object
Returns the value of attribute company.
23 24 25 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 23 def company @company end |
#contact ⇒ Object
Returns the value of attribute contact.
41 42 43 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 41 def contact @contact end |
#contact_email_address ⇒ Object
Returns the value of attribute contact_email_address.
49 50 51 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 49 def contact_email_address @contact_email_address end |
#contact_email_lookup ⇒ Object
Returns the value of attribute contact_email_lookup.
108 109 110 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 108 def contact_email_lookup @contact_email_lookup end |
#contact_name ⇒ Object
Returns the value of attribute contact_name.
43 44 45 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 43 def contact_name @contact_name end |
#contact_phone_extension ⇒ Object
Returns the value of attribute contact_phone_extension.
47 48 49 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 47 def contact_phone_extension @contact_phone_extension end |
#contact_phone_number ⇒ Object
Returns the value of attribute contact_phone_number.
45 46 47 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 45 def contact_phone_number @contact_phone_number end |
#country ⇒ Object
Returns the value of attribute country.
39 40 41 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 39 def country @country end |
#currency ⇒ Object
Returns the value of attribute currency.
187 188 189 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 187 def currency @currency end |
#custom_fields ⇒ Object
Returns the value of attribute custom_fields.
192 193 194 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 192 def custom_fields @custom_fields end |
#customer_updated_flag ⇒ Object
Returns the value of attribute customer_updated_flag.
89 90 91 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 89 def customer_updated_flag @customer_updated_flag end |
#date_entered ⇒ Object
Returns the value of attribute date_entered.
121 122 123 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 121 def date_entered @date_entered end |
#date_resolved ⇒ Object
Returns the value of attribute date_resolved.
135 136 137 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 135 def date_resolved @date_resolved end |
#date_resplan ⇒ Object
Returns the value of attribute date_resplan.
137 138 139 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 137 def date_resplan @date_resplan end |
#date_responded ⇒ Object
Returns the value of attribute date_responded.
139 140 141 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 139 def date_responded @date_responded end |
#duration ⇒ Object
Returns the value of attribute duration.
177 178 179 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 177 def duration @duration end |
#entered_by ⇒ Object
Returns the value of attribute entered_by.
123 124 125 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 123 def entered_by @entered_by end |
#estimated_start_date ⇒ Object
Returns the value of attribute estimated_start_date.
175 176 177 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 175 def estimated_start_date @estimated_start_date end |
#external_x_ref ⇒ Object
Returns the value of attribute external_x_ref.
79 80 81 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 79 def external_x_ref @external_x_ref end |
#has_child_ticket ⇒ Object
Returns the value of attribute has_child_ticket.
155 156 157 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 155 def has_child_ticket @has_child_ticket end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 7 def id @id end |
#impact ⇒ Object
Returns the value of attribute impact.
77 78 79 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 77 def impact @impact end |
#initial_description ⇒ Object
Only available for POST, will not be returned in the response
100 101 102 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 100 def initial_description @initial_description end |
#initial_internal_analysis ⇒ Object
Only available for POST, will not be returned in the response
103 104 105 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 103 def initial_internal_analysis @initial_internal_analysis end |
#initial_resolution ⇒ Object
Only available for POST, will not be returned in the response
106 107 108 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 106 def initial_resolution @initial_resolution end |
#is_in_sla ⇒ Object
Returns the value of attribute is_in_sla.
147 148 149 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 147 def is_in_sla @is_in_sla end |
#item ⇒ Object
Returns the value of attribute item.
55 56 57 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 55 def item @item end |
#knowledge_base_category_id ⇒ Object
Returns the value of attribute knowledge_base_category_id.
83 84 85 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 83 def knowledge_base_category_id @knowledge_base_category_id end |
#knowledge_base_link_id ⇒ Object
Returns the value of attribute knowledge_base_link_id.
149 150 151 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 149 def knowledge_base_link_id @knowledge_base_link_id end |
#knowledge_base_link_type ⇒ Object
Returns the value of attribute knowledge_base_link_type.
157 158 159 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 157 def knowledge_base_link_type @knowledge_base_link_type end |
#knowledge_base_sub_category_id ⇒ Object
Returns the value of attribute knowledge_base_sub_category_id.
85 86 87 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 85 def knowledge_base_sub_category_id @knowledge_base_sub_category_id end |
#lag_days ⇒ Object
Returns the value of attribute lag_days.
171 172 173 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 171 def lag_days @lag_days end |
#lag_nonworking_days_flag ⇒ Object
Returns the value of attribute lag_nonworking_days_flag.
173 174 175 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 173 def lag_nonworking_days_flag @lag_nonworking_days_flag end |
#location_id ⇒ Object
Returns the value of attribute location_id.
179 180 181 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 179 def location_id @location_id end |
#mobile_guid ⇒ Object
Returns the value of attribute mobile_guid.
183 184 185 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 183 def mobile_guid @mobile_guid end |
#opportunity ⇒ Object
Returns the value of attribute opportunity.
71 72 73 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 71 def opportunity @opportunity end |
#owner ⇒ Object
Returns the value of attribute owner.
59 60 61 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 59 def owner @owner end |
#parent_ticket_id ⇒ Object
Returns the value of attribute parent_ticket_id.
153 154 155 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 153 def parent_ticket_id @parent_ticket_id end |
#phase ⇒ Object
Returns the value of attribute phase.
19 20 21 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 19 def phase @phase end |
#po_number ⇒ Object
Returns the value of attribute po_number.
81 82 83 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 81 def po_number @po_number end |
#predecessor_closed_flag ⇒ Object
Returns the value of attribute predecessor_closed_flag.
169 170 171 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 169 def predecessor_closed_flag @predecessor_closed_flag end |
#predecessor_id ⇒ Object
Returns the value of attribute predecessor_id.
167 168 169 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 167 def predecessor_id @predecessor_id end |
#predecessor_type ⇒ Object
Returns the value of attribute predecessor_type.
165 166 167 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 165 def predecessor_type @predecessor_type end |
#priority ⇒ Object
Returns the value of attribute priority.
61 62 63 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 61 def priority @priority end |
#process_notifications ⇒ Object
Can be set to false to skip notification processing when adding or updating a ticket (Defaults to True)
111 112 113 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 111 def process_notifications @process_notifications end |
#project ⇒ Object
Returns the value of attribute project.
17 18 19 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 17 def project @project end |
#record_type ⇒ Object
Returns the value of attribute record_type.
11 12 13 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 11 def record_type @record_type end |
#required_date ⇒ Object
Returns the value of attribute required_date.
67 68 69 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 67 def required_date @required_date end |
#res_plan_minutes ⇒ Object
Returns the value of attribute res_plan_minutes.
143 144 145 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 143 def res_plan_minutes @res_plan_minutes end |
#resolve_minutes ⇒ Object
Returns the value of attribute resolve_minutes.
141 142 143 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 141 def resolve_minutes @resolve_minutes end |
#resources ⇒ Object
Returns the value of attribute resources.
151 152 153 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 151 def resources @resources end |
#respond_minutes ⇒ Object
Returns the value of attribute respond_minutes.
145 146 147 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 145 def respond_minutes @respond_minutes end |
#service_location ⇒ Object
Returns the value of attribute service_location.
63 64 65 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 63 def service_location @service_location end |
#severity ⇒ Object
Returns the value of attribute severity.
75 76 77 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 75 def severity @severity end |
#site ⇒ Object
Returns the value of attribute site.
25 26 27 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 25 def site @site end |
#site_name ⇒ Object
Returns the value of attribute site_name.
27 28 29 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 27 def site_name @site_name end |
#skip_callback ⇒ Object
Returns the value of attribute skip_callback.
113 114 115 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 113 def skip_callback @skip_callback end |
#sla ⇒ Object
Returns the value of attribute sla.
185 186 187 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 185 def sla @sla end |
#source ⇒ Object
Returns the value of attribute source.
65 66 67 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 65 def source @source end |
#state_identifier ⇒ Object
Returns the value of attribute state_identifier.
35 36 37 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 35 def state_identifier @state_identifier end |
#status ⇒ Object
Returns the value of attribute status.
15 16 17 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 15 def status @status end |
#sub_billing_amount ⇒ Object
Returns the value of attribute sub_billing_amount.
131 132 133 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 131 def sub_billing_amount @sub_billing_amount end |
#sub_billing_method ⇒ Object
Returns the value of attribute sub_billing_method.
129 130 131 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 129 def sub_billing_method @sub_billing_method end |
#sub_date_accepted ⇒ Object
Returns the value of attribute sub_date_accepted.
133 134 135 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 133 def sub_date_accepted @sub_date_accepted end |
#sub_type ⇒ Object
Returns the value of attribute sub_type.
53 54 55 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 53 def sub_type @sub_type end |
#summary ⇒ Object
Returns the value of attribute summary.
9 10 11 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 9 def summary @summary end |
#team ⇒ Object
Returns the value of attribute team.
57 58 59 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 57 def team @team end |
#type ⇒ Object
Returns the value of attribute type.
51 52 53 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 51 def type @type end |
#wbs_code ⇒ Object
Returns the value of attribute wbs_code.
21 22 23 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 21 def wbs_code @wbs_code end |
#zip ⇒ Object
Returns the value of attribute zip.
37 38 39 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 37 def zip @zip end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
217 218 219 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 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 217 def self.attribute_map { :'id' => :'id', :'summary' => :'summary', :'record_type' => :'recordType', :'board' => :'board', :'status' => :'status', :'project' => :'project', :'phase' => :'phase', :'wbs_code' => :'wbsCode', :'company' => :'company', :'site' => :'site', :'site_name' => :'siteName', :'address_line1' => :'addressLine1', :'address_line2' => :'addressLine2', :'city' => :'city', :'state_identifier' => :'stateIdentifier', :'zip' => :'zip', :'country' => :'country', :'contact' => :'contact', :'contact_name' => :'contactName', :'contact_phone_number' => :'contactPhoneNumber', :'contact_phone_extension' => :'contactPhoneExtension', :'contact_email_address' => :'contactEmailAddress', :'type' => :'type', :'sub_type' => :'subType', :'item' => :'item', :'team' => :'team', :'owner' => :'owner', :'priority' => :'priority', :'service_location' => :'serviceLocation', :'source' => :'source', :'required_date' => :'requiredDate', :'budget_hours' => :'budgetHours', :'opportunity' => :'opportunity', :'agreement' => :'agreement', :'severity' => :'severity', :'impact' => :'impact', :'external_x_ref' => :'externalXRef', :'po_number' => :'poNumber', :'knowledge_base_category_id' => :'knowledgeBaseCategoryId', :'knowledge_base_sub_category_id' => :'knowledgeBaseSubCategoryId', :'allow_all_clients_portal_view' => :'allowAllClientsPortalView', :'customer_updated_flag' => :'customerUpdatedFlag', :'automatic_email_contact_flag' => :'automaticEmailContactFlag', :'automatic_email_resource_flag' => :'automaticEmailResourceFlag', :'automatic_email_cc_flag' => :'automaticEmailCcFlag', :'automatic_email_cc' => :'automaticEmailCc', :'initial_description' => :'initialDescription', :'initial_internal_analysis' => :'initialInternalAnalysis', :'initial_resolution' => :'initialResolution', :'contact_email_lookup' => :'contactEmailLookup', :'process_notifications' => :'processNotifications', :'skip_callback' => :'skipCallback', :'closed_date' => :'closedDate', :'closed_by' => :'closedBy', :'closed_flag' => :'closedFlag', :'date_entered' => :'dateEntered', :'entered_by' => :'enteredBy', :'actual_hours' => :'actualHours', :'approved' => :'approved', :'sub_billing_method' => :'subBillingMethod', :'sub_billing_amount' => :'subBillingAmount', :'sub_date_accepted' => :'subDateAccepted', :'date_resolved' => :'dateResolved', :'date_resplan' => :'dateResplan', :'date_responded' => :'dateResponded', :'resolve_minutes' => :'resolveMinutes', :'res_plan_minutes' => :'resPlanMinutes', :'respond_minutes' => :'respondMinutes', :'is_in_sla' => :'isInSla', :'knowledge_base_link_id' => :'knowledgeBaseLinkId', :'resources' => :'resources', :'parent_ticket_id' => :'parentTicketId', :'has_child_ticket' => :'hasChildTicket', :'knowledge_base_link_type' => :'knowledgeBaseLinkType', :'bill_time' => :'billTime', :'bill_expenses' => :'billExpenses', :'bill_products' => :'billProducts', :'predecessor_type' => :'predecessorType', :'predecessor_id' => :'predecessorId', :'predecessor_closed_flag' => :'predecessorClosedFlag', :'lag_days' => :'lagDays', :'lag_nonworking_days_flag' => :'lagNonworkingDaysFlag', :'estimated_start_date' => :'estimatedStartDate', :'duration' => :'duration', :'location_id' => :'locationId', :'business_unit_id' => :'businessUnitId', :'mobile_guid' => :'mobileGuid', :'sla' => :'sla', :'currency' => :'currency', :'_info' => :'_info', :'custom_fields' => :'customFields' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 314 def self.swagger_types { :'id' => :'Integer', :'summary' => :'String', :'record_type' => :'String', :'board' => :'BoardReference', :'status' => :'ServiceStatusReference', :'project' => :'ProjectReference', :'phase' => :'ProjectPhaseReference', :'wbs_code' => :'String', :'company' => :'CompanyReference', :'site' => :'SiteReference', :'site_name' => :'String', :'address_line1' => :'String', :'address_line2' => :'String', :'city' => :'String', :'state_identifier' => :'String', :'zip' => :'String', :'country' => :'CountryReference', :'contact' => :'ContactReference', :'contact_name' => :'String', :'contact_phone_number' => :'String', :'contact_phone_extension' => :'String', :'contact_email_address' => :'String', :'type' => :'ServiceTypeReference', :'sub_type' => :'ServiceSubTypeReference', :'item' => :'ServiceItemReference', :'team' => :'ServiceTeamReference', :'owner' => :'MemberReference', :'priority' => :'PriorityReference', :'service_location' => :'ServiceLocationReference', :'source' => :'ServiceSourceReference', :'required_date' => :'DateTime', :'budget_hours' => :'Float', :'opportunity' => :'OpportunityReference', :'agreement' => :'AgreementReference', :'severity' => :'String', :'impact' => :'String', :'external_x_ref' => :'String', :'po_number' => :'String', :'knowledge_base_category_id' => :'Integer', :'knowledge_base_sub_category_id' => :'Integer', :'allow_all_clients_portal_view' => :'BOOLEAN', :'customer_updated_flag' => :'BOOLEAN', :'automatic_email_contact_flag' => :'BOOLEAN', :'automatic_email_resource_flag' => :'BOOLEAN', :'automatic_email_cc_flag' => :'BOOLEAN', :'automatic_email_cc' => :'String', :'initial_description' => :'String', :'initial_internal_analysis' => :'String', :'initial_resolution' => :'String', :'contact_email_lookup' => :'String', :'process_notifications' => :'BOOLEAN', :'skip_callback' => :'BOOLEAN', :'closed_date' => :'String', :'closed_by' => :'String', :'closed_flag' => :'BOOLEAN', :'date_entered' => :'String', :'entered_by' => :'String', :'actual_hours' => :'Float', :'approved' => :'BOOLEAN', :'sub_billing_method' => :'String', :'sub_billing_amount' => :'Float', :'sub_date_accepted' => :'String', :'date_resolved' => :'String', :'date_resplan' => :'String', :'date_responded' => :'String', :'resolve_minutes' => :'Integer', :'res_plan_minutes' => :'Integer', :'respond_minutes' => :'Integer', :'is_in_sla' => :'BOOLEAN', :'knowledge_base_link_id' => :'Integer', :'resources' => :'String', :'parent_ticket_id' => :'Integer', :'has_child_ticket' => :'BOOLEAN', :'knowledge_base_link_type' => :'String', :'bill_time' => :'String', :'bill_expenses' => :'String', :'bill_products' => :'String', :'predecessor_type' => :'String', :'predecessor_id' => :'Integer', :'predecessor_closed_flag' => :'BOOLEAN', :'lag_days' => :'Integer', :'lag_nonworking_days_flag' => :'BOOLEAN', :'estimated_start_date' => :'DateTime', :'duration' => :'Integer', :'location_id' => :'Integer', :'business_unit_id' => :'Integer', :'mobile_guid' => :'Guid', :'sla' => :'SLAReference', :'currency' => :'CurrencyReference', :'_info' => :'Metadata', :'custom_fields' => :'Array<CustomFieldValue>' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 1162 def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && summary == o.summary && record_type == o.record_type && board == o.board && status == o.status && project == o.project && phase == o.phase && wbs_code == o.wbs_code && company == o.company && site == o.site && site_name == o.site_name && address_line1 == o.address_line1 && address_line2 == o.address_line2 && city == o.city && state_identifier == o.state_identifier && zip == o.zip && country == o.country && contact == o.contact && contact_name == o.contact_name && contact_phone_number == o.contact_phone_number && contact_phone_extension == o.contact_phone_extension && contact_email_address == o.contact_email_address && type == o.type && sub_type == o.sub_type && item == o.item && team == o.team && owner == o.owner && priority == o.priority && service_location == o.service_location && source == o.source && required_date == o.required_date && budget_hours == o.budget_hours && opportunity == o.opportunity && agreement == o.agreement && severity == o.severity && impact == o.impact && external_x_ref == o.external_x_ref && po_number == o.po_number && knowledge_base_category_id == o.knowledge_base_category_id && knowledge_base_sub_category_id == o.knowledge_base_sub_category_id && allow_all_clients_portal_view == o.allow_all_clients_portal_view && customer_updated_flag == o.customer_updated_flag && automatic_email_contact_flag == o.automatic_email_contact_flag && automatic_email_resource_flag == o.automatic_email_resource_flag && automatic_email_cc_flag == o.automatic_email_cc_flag && automatic_email_cc == o.automatic_email_cc && initial_description == o.initial_description && initial_internal_analysis == o.initial_internal_analysis && initial_resolution == o.initial_resolution && contact_email_lookup == o.contact_email_lookup && process_notifications == o.process_notifications && skip_callback == o.skip_callback && closed_date == o.closed_date && closed_by == o.closed_by && closed_flag == o.closed_flag && date_entered == o.date_entered && entered_by == o.entered_by && actual_hours == o.actual_hours && approved == o.approved && sub_billing_method == o.sub_billing_method && sub_billing_amount == o.sub_billing_amount && sub_date_accepted == o.sub_date_accepted && date_resolved == o.date_resolved && date_resplan == o.date_resplan && date_responded == o.date_responded && resolve_minutes == o.resolve_minutes && res_plan_minutes == o.res_plan_minutes && respond_minutes == o.respond_minutes && is_in_sla == o.is_in_sla && knowledge_base_link_id == o.knowledge_base_link_id && resources == o.resources && parent_ticket_id == o.parent_ticket_id && has_child_ticket == o.has_child_ticket && knowledge_base_link_type == o.knowledge_base_link_type && bill_time == o.bill_time && bill_expenses == o.bill_expenses && bill_products == o.bill_products && predecessor_type == o.predecessor_type && predecessor_id == o.predecessor_id && predecessor_closed_flag == o.predecessor_closed_flag && lag_days == o.lag_days && lag_nonworking_days_flag == o.lag_nonworking_days_flag && estimated_start_date == o.estimated_start_date && duration == o.duration && location_id == o.location_id && business_unit_id == o.business_unit_id && mobile_guid == o.mobile_guid && sla == o.sla && currency == o.currency && _info == o._info && custom_fields == o.custom_fields end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 1294 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
1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 1360 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
1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 1273 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
1260 1261 1262 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 1260 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
1266 1267 1268 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 1266 def hash [id, summary, record_type, board, status, project, phase, wbs_code, company, site, site_name, address_line1, address_line2, city, state_identifier, zip, country, contact, contact_name, contact_phone_number, contact_phone_extension, contact_email_address, type, sub_type, item, team, owner, priority, service_location, source, required_date, budget_hours, opportunity, agreement, severity, impact, external_x_ref, po_number, knowledge_base_category_id, knowledge_base_sub_category_id, allow_all_clients_portal_view, customer_updated_flag, automatic_email_contact_flag, automatic_email_resource_flag, automatic_email_cc_flag, automatic_email_cc, initial_description, initial_internal_analysis, initial_resolution, contact_email_lookup, process_notifications, skip_callback, closed_date, closed_by, closed_flag, date_entered, entered_by, actual_hours, approved, sub_billing_method, sub_billing_amount, sub_date_accepted, date_resolved, date_resplan, date_responded, resolve_minutes, res_plan_minutes, respond_minutes, is_in_sla, knowledge_base_link_id, resources, parent_ticket_id, has_child_ticket, knowledge_base_link_type, bill_time, bill_expenses, bill_products, predecessor_type, predecessor_id, predecessor_closed_flag, lag_days, lag_nonworking_days_flag, estimated_start_date, duration, location_id, business_unit_id, mobile_guid, sla, currency, _info, custom_fields].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 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 847 848 849 850 851 852 853 854 855 856 857 858 859 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 788 def list_invalid_properties invalid_properties = Array.new if @summary.nil? invalid_properties.push("invalid value for 'summary', summary cannot be nil.") end if @summary.to_s.length > 100 invalid_properties.push("invalid value for 'summary', the character length must be smaller than or equal to 100.") end if !@wbs_code.nil? && @wbs_code.to_s.length > 50 invalid_properties.push("invalid value for 'wbs_code', the character length must be smaller than or equal to 50.") end if @company.nil? invalid_properties.push("invalid value for 'company', company cannot be nil.") end if !@site_name.nil? && @site_name.to_s.length > 50 invalid_properties.push("invalid value for 'site_name', the character length must be smaller than or equal to 50.") end if !@address_line1.nil? && @address_line1.to_s.length > 50 invalid_properties.push("invalid value for 'address_line1', the character length must be smaller than or equal to 50.") end if !@address_line2.nil? && @address_line2.to_s.length > 50 invalid_properties.push("invalid value for 'address_line2', the character length must be smaller than or equal to 50.") end if !@city.nil? && @city.to_s.length > 50 invalid_properties.push("invalid value for 'city', the character length must be smaller than or equal to 50.") end if !@state_identifier.nil? && @state_identifier.to_s.length > 50 invalid_properties.push("invalid value for 'state_identifier', the character length must be smaller than or equal to 50.") end if !@zip.nil? && @zip.to_s.length > 12 invalid_properties.push("invalid value for 'zip', the character length must be smaller than or equal to 12.") end if !@contact_name.nil? && @contact_name.to_s.length > 62 invalid_properties.push("invalid value for 'contact_name', the character length must be smaller than or equal to 62.") end if !@contact_phone_number.nil? && @contact_phone_number.to_s.length > 20 invalid_properties.push("invalid value for 'contact_phone_number', the character length must be smaller than or equal to 20.") end if !@contact_phone_extension.nil? && @contact_phone_extension.to_s.length > 15 invalid_properties.push("invalid value for 'contact_phone_extension', the character length must be smaller than or equal to 15.") end if !@contact_email_address.nil? && @contact_email_address.to_s.length > 250 invalid_properties.push("invalid value for 'contact_email_address', the character length must be smaller than or equal to 250.") end if !@external_x_ref.nil? && @external_x_ref.to_s.length > 100 invalid_properties.push("invalid value for 'external_x_ref', the character length must be smaller than or equal to 100.") end if !@po_number.nil? && @po_number.to_s.length > 50 invalid_properties.push("invalid value for 'po_number', the character length must be smaller than or equal to 50.") end if !@automatic_email_cc.nil? && @automatic_email_cc.to_s.length > 1000 invalid_properties.push("invalid value for 'automatic_email_cc', the character length must be smaller than or equal to 1000.") end return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
1340 1341 1342 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 1340 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
1346 1347 1348 1349 1350 1351 1352 1353 1354 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 1346 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
1334 1335 1336 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 1334 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 |
# File 'lib/connectwise-ruby-sdk/models/ticket.rb', line 863 def valid? return false if @summary.nil? return false if @summary.to_s.length > 100 record_type_validator = EnumAttributeValidator.new('String', ["ServiceTicket", "ProjectTicket", "ProjectIssue"]) return false unless record_type_validator.valid?(@record_type) return false if !@wbs_code.nil? && @wbs_code.to_s.length > 50 return false if @company.nil? return false if !@site_name.nil? && @site_name.to_s.length > 50 return false if !@address_line1.nil? && @address_line1.to_s.length > 50 return false if !@address_line2.nil? && @address_line2.to_s.length > 50 return false if !@city.nil? && @city.to_s.length > 50 return false if !@state_identifier.nil? && @state_identifier.to_s.length > 50 return false if !@zip.nil? && @zip.to_s.length > 12 return false if !@contact_name.nil? && @contact_name.to_s.length > 62 return false if !@contact_phone_number.nil? && @contact_phone_number.to_s.length > 20 return false if !@contact_phone_extension.nil? && @contact_phone_extension.to_s.length > 15 return false if !@contact_email_address.nil? && @contact_email_address.to_s.length > 250 severity_validator = EnumAttributeValidator.new('String', ["Low", "Medium", "High"]) return false unless severity_validator.valid?(@severity) impact_validator = EnumAttributeValidator.new('String', ["Low", "Medium", "High"]) return false unless impact_validator.valid?(@impact) return false if !@external_x_ref.nil? && @external_x_ref.to_s.length > 100 return false if !@po_number.nil? && @po_number.to_s.length > 50 return false if !@automatic_email_cc.nil? && @automatic_email_cc.to_s.length > 1000 sub_billing_method_validator = EnumAttributeValidator.new('String', ["ActualRates", "FixedFee", "NotToExceed", "OverrideRate"]) return false unless sub_billing_method_validator.valid?(@sub_billing_method) knowledge_base_link_type_validator = EnumAttributeValidator.new('String', ["ServiceTicket", "ProjectTicket", "ProjectIssue", "KnowledgeBaseArticle", "Time", "Activity"]) return false unless knowledge_base_link_type_validator.valid?(@knowledge_base_link_type) bill_time_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"]) return false unless bill_time_validator.valid?(@bill_time) bill_expenses_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"]) return false unless bill_expenses_validator.valid?(@bill_expenses) bill_products_validator = EnumAttributeValidator.new('String', ["Billable", "DoNotBill", "NoCharge", "NoDefault"]) return false unless bill_products_validator.valid?(@bill_products) predecessor_type_validator = EnumAttributeValidator.new('String', ["Ticket", "Phase"]) return false unless predecessor_type_validator.valid?(@predecessor_type) return true end |