Class: ConnectWise::TaxCode
- Inherits:
-
Object
- Object
- ConnectWise::TaxCode
- Defined in:
- lib/connectwise-ruby-sdk/models/tax_code.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#_info ⇒ Object
Metadata of the entity.
-
#add_all_expense_types ⇒ Object
Returns the value of attribute add_all_expense_types.
-
#add_all_product_types ⇒ Object
Returns the value of attribute add_all_product_types.
-
#add_all_work_roles ⇒ Object
Returns the value of attribute add_all_work_roles.
-
#canada_calculate_gst_flag ⇒ Object
Returns the value of attribute canada_calculate_gst_flag.
-
#cancel_date ⇒ Object
Returns the value of attribute cancel_date.
-
#country ⇒ Object
Returns the value of attribute country.
-
#default_flag ⇒ Object
Returns the value of attribute default_flag.
-
#description ⇒ Object
Returns the value of attribute description.
-
#display_on_invoice_flag ⇒ Object
Returns the value of attribute display_on_invoice_flag.
-
#effective_date ⇒ Object
Returns the value of attribute effective_date.
-
#expense_type_ids ⇒ Object
Returns the value of attribute expense_type_ids.
-
#id ⇒ Object
Returns the value of attribute id.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#invoice_caption ⇒ Object
Returns the value of attribute invoice_caption.
-
#level_five_agency_xref ⇒ Object
Returns the value of attribute level_five_agency_xref.
-
#level_five_apply_single_unit_flag ⇒ Object
Returns the value of attribute level_five_apply_single_unit_flag.
-
#level_five_apply_single_unit_max ⇒ Object
Returns the value of attribute level_five_apply_single_unit_max.
-
#level_five_apply_single_unit_min ⇒ Object
Returns the value of attribute level_five_apply_single_unit_min.
-
#level_five_caption ⇒ Object
Returns the value of attribute level_five_caption.
-
#level_five_expenses_flag ⇒ Object
Returns the value of attribute level_five_expenses_flag.
-
#level_five_products_flag ⇒ Object
Returns the value of attribute level_five_products_flag.
-
#level_five_rate ⇒ Object
Returns the value of attribute level_five_rate.
-
#level_five_rate_type ⇒ Object
Returns the value of attribute level_five_rate_type.
-
#level_five_services_flag ⇒ Object
Returns the value of attribute level_five_services_flag.
-
#level_five_tax_code_xref ⇒ Object
Returns the value of attribute level_five_tax_code_xref.
-
#level_five_taxable_max ⇒ Object
Returns the value of attribute level_five_taxable_max.
-
#level_four_agency_xref ⇒ Object
Returns the value of attribute level_four_agency_xref.
-
#level_four_apply_single_unit_flag ⇒ Object
Returns the value of attribute level_four_apply_single_unit_flag.
-
#level_four_apply_single_unit_max ⇒ Object
Returns the value of attribute level_four_apply_single_unit_max.
-
#level_four_apply_single_unit_min ⇒ Object
Returns the value of attribute level_four_apply_single_unit_min.
-
#level_four_caption ⇒ Object
Returns the value of attribute level_four_caption.
-
#level_four_expenses_flag ⇒ Object
Returns the value of attribute level_four_expenses_flag.
-
#level_four_products_flag ⇒ Object
Returns the value of attribute level_four_products_flag.
-
#level_four_rate ⇒ Object
Returns the value of attribute level_four_rate.
-
#level_four_rate_type ⇒ Object
Returns the value of attribute level_four_rate_type.
-
#level_four_services_flag ⇒ Object
Returns the value of attribute level_four_services_flag.
-
#level_four_tax_code_xref ⇒ Object
Returns the value of attribute level_four_tax_code_xref.
-
#level_four_taxable_max ⇒ Object
Returns the value of attribute level_four_taxable_max.
-
#level_one_agency_xref ⇒ Object
Returns the value of attribute level_one_agency_xref.
-
#level_one_apply_single_unit_flag ⇒ Object
Returns the value of attribute level_one_apply_single_unit_flag.
-
#level_one_apply_single_unit_max ⇒ Object
Returns the value of attribute level_one_apply_single_unit_max.
-
#level_one_apply_single_unit_min ⇒ Object
Returns the value of attribute level_one_apply_single_unit_min.
-
#level_one_caption ⇒ Object
Returns the value of attribute level_one_caption.
-
#level_one_expenses_flag ⇒ Object
Returns the value of attribute level_one_expenses_flag.
-
#level_one_products_flag ⇒ Object
Returns the value of attribute level_one_products_flag.
-
#level_one_rate ⇒ Object
Returns the value of attribute level_one_rate.
-
#level_one_rate_type ⇒ Object
Returns the value of attribute level_one_rate_type.
-
#level_one_services_flag ⇒ Object
Returns the value of attribute level_one_services_flag.
-
#level_one_tax_code_xref ⇒ Object
Returns the value of attribute level_one_tax_code_xref.
-
#level_one_taxable_max ⇒ Object
Returns the value of attribute level_one_taxable_max.
-
#level_three_agency_xref ⇒ Object
Returns the value of attribute level_three_agency_xref.
-
#level_three_apply_single_unit_flag ⇒ Object
Returns the value of attribute level_three_apply_single_unit_flag.
-
#level_three_apply_single_unit_max ⇒ Object
Returns the value of attribute level_three_apply_single_unit_max.
-
#level_three_apply_single_unit_min ⇒ Object
Returns the value of attribute level_three_apply_single_unit_min.
-
#level_three_caption ⇒ Object
Returns the value of attribute level_three_caption.
-
#level_three_expenses_flag ⇒ Object
Returns the value of attribute level_three_expenses_flag.
-
#level_three_products_flag ⇒ Object
Returns the value of attribute level_three_products_flag.
-
#level_three_rate ⇒ Object
Returns the value of attribute level_three_rate.
-
#level_three_rate_type ⇒ Object
Returns the value of attribute level_three_rate_type.
-
#level_three_services_flag ⇒ Object
Returns the value of attribute level_three_services_flag.
-
#level_three_tax_code_xref ⇒ Object
Returns the value of attribute level_three_tax_code_xref.
-
#level_three_taxable_max ⇒ Object
Returns the value of attribute level_three_taxable_max.
-
#level_two_agency_xref ⇒ Object
Returns the value of attribute level_two_agency_xref.
-
#level_two_apply_single_unit_flag ⇒ Object
Returns the value of attribute level_two_apply_single_unit_flag.
-
#level_two_apply_single_unit_max ⇒ Object
Returns the value of attribute level_two_apply_single_unit_max.
-
#level_two_apply_single_unit_min ⇒ Object
Returns the value of attribute level_two_apply_single_unit_min.
-
#level_two_caption ⇒ Object
Returns the value of attribute level_two_caption.
-
#level_two_expenses_flag ⇒ Object
Returns the value of attribute level_two_expenses_flag.
-
#level_two_products_flag ⇒ Object
Returns the value of attribute level_two_products_flag.
-
#level_two_rate ⇒ Object
Returns the value of attribute level_two_rate.
-
#level_two_rate_type ⇒ Object
Returns the value of attribute level_two_rate_type.
-
#level_two_services_flag ⇒ Object
Returns the value of attribute level_two_services_flag.
-
#level_two_tax_code_xref ⇒ Object
Returns the value of attribute level_two_tax_code_xref.
-
#level_two_taxable_max ⇒ Object
Returns the value of attribute level_two_taxable_max.
-
#product_type_ids ⇒ Object
Returns the value of attribute product_type_ids.
-
#remove_all_expense_types ⇒ Object
Returns the value of attribute remove_all_expense_types.
-
#remove_all_product_types ⇒ Object
Returns the value of attribute remove_all_product_types.
-
#remove_all_work_roles ⇒ Object
Returns the value of attribute remove_all_work_roles.
-
#work_role_ids ⇒ Object
Returns the value of attribute work_role_ids.
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 = {}) ⇒ TaxCode
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 = {}) ⇒ TaxCode
Initializes the object
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 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 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 364 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?(:'identifier') self.identifier = attributes[:'identifier'] end if attributes.has_key?(:'description') self.description = attributes[:'description'] end if attributes.has_key?(:'invoiceCaption') self.invoice_caption = attributes[:'invoiceCaption'] end if attributes.has_key?(:'country') self.country = attributes[:'country'] end if attributes.has_key?(:'effectiveDate') self.effective_date = attributes[:'effectiveDate'] end if attributes.has_key?(:'defaultFlag') self.default_flag = attributes[:'defaultFlag'] end if attributes.has_key?(:'displayOnInvoiceFlag') self.display_on_invoice_flag = attributes[:'displayOnInvoiceFlag'] end if attributes.has_key?(:'canadaCalculateGSTFlag') self.canada_calculate_gst_flag = attributes[:'canadaCalculateGSTFlag'] end if attributes.has_key?(:'cancelDate') self.cancel_date = attributes[:'cancelDate'] end if attributes.has_key?(:'levelOneRate') self.level_one_rate = attributes[:'levelOneRate'] end if attributes.has_key?(:'levelOneRateType') self.level_one_rate_type = attributes[:'levelOneRateType'] end if attributes.has_key?(:'levelOneTaxableMax') self.level_one_taxable_max = attributes[:'levelOneTaxableMax'] end if attributes.has_key?(:'levelOneCaption') self.level_one_caption = attributes[:'levelOneCaption'] end if attributes.has_key?(:'levelOneTaxCodeXref') self.level_one_tax_code_xref = attributes[:'levelOneTaxCodeXref'] end if attributes.has_key?(:'levelOneAgencyXref') self.level_one_agency_xref = attributes[:'levelOneAgencyXref'] end if attributes.has_key?(:'levelOneServicesFlag') self.level_one_services_flag = attributes[:'levelOneServicesFlag'] end if attributes.has_key?(:'levelOneExpensesFlag') self.level_one_expenses_flag = attributes[:'levelOneExpensesFlag'] end if attributes.has_key?(:'levelOneProductsFlag') self.level_one_products_flag = attributes[:'levelOneProductsFlag'] end if attributes.has_key?(:'levelOneApplySingleUnitFlag') self.level_one_apply_single_unit_flag = attributes[:'levelOneApplySingleUnitFlag'] end if attributes.has_key?(:'levelOneApplySingleUnitMin') self.level_one_apply_single_unit_min = attributes[:'levelOneApplySingleUnitMin'] end if attributes.has_key?(:'levelOneApplySingleUnitMax') self.level_one_apply_single_unit_max = attributes[:'levelOneApplySingleUnitMax'] end if attributes.has_key?(:'levelTwoRate') self.level_two_rate = attributes[:'levelTwoRate'] end if attributes.has_key?(:'levelTwoRateType') self.level_two_rate_type = attributes[:'levelTwoRateType'] end if attributes.has_key?(:'levelTwoTaxableMax') self.level_two_taxable_max = attributes[:'levelTwoTaxableMax'] end if attributes.has_key?(:'levelTwoCaption') self.level_two_caption = attributes[:'levelTwoCaption'] end if attributes.has_key?(:'levelTwoTaxCodeXref') self.level_two_tax_code_xref = attributes[:'levelTwoTaxCodeXref'] end if attributes.has_key?(:'levelTwoAgencyXref') self.level_two_agency_xref = attributes[:'levelTwoAgencyXref'] end if attributes.has_key?(:'levelTwoServicesFlag') self.level_two_services_flag = attributes[:'levelTwoServicesFlag'] end if attributes.has_key?(:'levelTwoExpensesFlag') self.level_two_expenses_flag = attributes[:'levelTwoExpensesFlag'] end if attributes.has_key?(:'levelTwoProductsFlag') self.level_two_products_flag = attributes[:'levelTwoProductsFlag'] end if attributes.has_key?(:'levelTwoApplySingleUnitFlag') self.level_two_apply_single_unit_flag = attributes[:'levelTwoApplySingleUnitFlag'] end if attributes.has_key?(:'levelTwoApplySingleUnitMin') self.level_two_apply_single_unit_min = attributes[:'levelTwoApplySingleUnitMin'] end if attributes.has_key?(:'levelTwoApplySingleUnitMax') self.level_two_apply_single_unit_max = attributes[:'levelTwoApplySingleUnitMax'] end if attributes.has_key?(:'levelThreeRate') self.level_three_rate = attributes[:'levelThreeRate'] end if attributes.has_key?(:'levelThreeRateType') self.level_three_rate_type = attributes[:'levelThreeRateType'] end if attributes.has_key?(:'levelThreeTaxableMax') self.level_three_taxable_max = attributes[:'levelThreeTaxableMax'] end if attributes.has_key?(:'levelThreeCaption') self.level_three_caption = attributes[:'levelThreeCaption'] end if attributes.has_key?(:'levelThreeTaxCodeXref') self.level_three_tax_code_xref = attributes[:'levelThreeTaxCodeXref'] end if attributes.has_key?(:'levelThreeAgencyXref') self.level_three_agency_xref = attributes[:'levelThreeAgencyXref'] end if attributes.has_key?(:'levelThreeServicesFlag') self.level_three_services_flag = attributes[:'levelThreeServicesFlag'] end if attributes.has_key?(:'levelThreeExpensesFlag') self.level_three_expenses_flag = attributes[:'levelThreeExpensesFlag'] end if attributes.has_key?(:'levelThreeProductsFlag') self.level_three_products_flag = attributes[:'levelThreeProductsFlag'] end if attributes.has_key?(:'levelThreeApplySingleUnitFlag') self.level_three_apply_single_unit_flag = attributes[:'levelThreeApplySingleUnitFlag'] end if attributes.has_key?(:'levelThreeApplySingleUnitMin') self.level_three_apply_single_unit_min = attributes[:'levelThreeApplySingleUnitMin'] end if attributes.has_key?(:'levelThreeApplySingleUnitMax') self.level_three_apply_single_unit_max = attributes[:'levelThreeApplySingleUnitMax'] end if attributes.has_key?(:'levelFourRate') self.level_four_rate = attributes[:'levelFourRate'] end if attributes.has_key?(:'levelFourRateType') self.level_four_rate_type = attributes[:'levelFourRateType'] end if attributes.has_key?(:'levelFourTaxableMax') self.level_four_taxable_max = attributes[:'levelFourTaxableMax'] end if attributes.has_key?(:'levelFourCaption') self.level_four_caption = attributes[:'levelFourCaption'] end if attributes.has_key?(:'levelFourTaxCodeXref') self.level_four_tax_code_xref = attributes[:'levelFourTaxCodeXref'] end if attributes.has_key?(:'levelFourAgencyXref') self.level_four_agency_xref = attributes[:'levelFourAgencyXref'] end if attributes.has_key?(:'levelFourServicesFlag') self.level_four_services_flag = attributes[:'levelFourServicesFlag'] end if attributes.has_key?(:'levelFourExpensesFlag') self.level_four_expenses_flag = attributes[:'levelFourExpensesFlag'] end if attributes.has_key?(:'levelFourProductsFlag') self.level_four_products_flag = attributes[:'levelFourProductsFlag'] end if attributes.has_key?(:'levelFourApplySingleUnitFlag') self.level_four_apply_single_unit_flag = attributes[:'levelFourApplySingleUnitFlag'] end if attributes.has_key?(:'levelFourApplySingleUnitMin') self.level_four_apply_single_unit_min = attributes[:'levelFourApplySingleUnitMin'] end if attributes.has_key?(:'levelFourApplySingleUnitMax') self.level_four_apply_single_unit_max = attributes[:'levelFourApplySingleUnitMax'] end if attributes.has_key?(:'levelFiveRate') self.level_five_rate = attributes[:'levelFiveRate'] end if attributes.has_key?(:'levelFiveRateType') self.level_five_rate_type = attributes[:'levelFiveRateType'] end if attributes.has_key?(:'levelFiveTaxableMax') self.level_five_taxable_max = attributes[:'levelFiveTaxableMax'] end if attributes.has_key?(:'levelFiveCaption') self.level_five_caption = attributes[:'levelFiveCaption'] end if attributes.has_key?(:'levelFiveTaxCodeXref') self.level_five_tax_code_xref = attributes[:'levelFiveTaxCodeXref'] end if attributes.has_key?(:'levelFiveAgencyXref') self.level_five_agency_xref = attributes[:'levelFiveAgencyXref'] end if attributes.has_key?(:'levelFiveServicesFlag') self.level_five_services_flag = attributes[:'levelFiveServicesFlag'] end if attributes.has_key?(:'levelFiveExpensesFlag') self.level_five_expenses_flag = attributes[:'levelFiveExpensesFlag'] end if attributes.has_key?(:'levelFiveProductsFlag') self.level_five_products_flag = attributes[:'levelFiveProductsFlag'] end if attributes.has_key?(:'levelFiveApplySingleUnitFlag') self.level_five_apply_single_unit_flag = attributes[:'levelFiveApplySingleUnitFlag'] end if attributes.has_key?(:'levelFiveApplySingleUnitMin') self.level_five_apply_single_unit_min = attributes[:'levelFiveApplySingleUnitMin'] end if attributes.has_key?(:'levelFiveApplySingleUnitMax') self.level_five_apply_single_unit_max = attributes[:'levelFiveApplySingleUnitMax'] end if attributes.has_key?(:'workRoleIds') if (value = attributes[:'workRoleIds']).is_a?(Array) self.work_role_ids = value end end if attributes.has_key?(:'addAllWorkRoles') self.add_all_work_roles = attributes[:'addAllWorkRoles'] end if attributes.has_key?(:'removeAllWorkRoles') self.remove_all_work_roles = attributes[:'removeAllWorkRoles'] end if attributes.has_key?(:'expenseTypeIds') if (value = attributes[:'expenseTypeIds']).is_a?(Array) self.expense_type_ids = value end end if attributes.has_key?(:'addAllExpenseTypes') self.add_all_expense_types = attributes[:'addAllExpenseTypes'] end if attributes.has_key?(:'removeAllExpenseTypes') self.remove_all_expense_types = attributes[:'removeAllExpenseTypes'] end if attributes.has_key?(:'productTypeIds') if (value = attributes[:'productTypeIds']).is_a?(Array) self.product_type_ids = value end end if attributes.has_key?(:'addAllProductTypes') self.add_all_product_types = attributes[:'addAllProductTypes'] end if attributes.has_key?(:'removeAllProductTypes') self.remove_all_product_types = attributes[:'removeAllProductTypes'] end if attributes.has_key?(:'_info') self._info = attributes[:'_info'] end end |
Instance Attribute Details
#_info ⇒ Object
Metadata of the entity
166 167 168 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 166 def _info @_info end |
#add_all_expense_types ⇒ Object
Returns the value of attribute add_all_expense_types.
155 156 157 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 155 def add_all_expense_types @add_all_expense_types end |
#add_all_product_types ⇒ Object
Returns the value of attribute add_all_product_types.
161 162 163 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 161 def add_all_product_types @add_all_product_types end |
#add_all_work_roles ⇒ Object
Returns the value of attribute add_all_work_roles.
149 150 151 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 149 def add_all_work_roles @add_all_work_roles end |
#canada_calculate_gst_flag ⇒ Object
Returns the value of attribute canada_calculate_gst_flag.
23 24 25 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 23 def canada_calculate_gst_flag @canada_calculate_gst_flag end |
#cancel_date ⇒ Object
Returns the value of attribute cancel_date.
25 26 27 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 25 def cancel_date @cancel_date end |
#country ⇒ Object
Returns the value of attribute country.
15 16 17 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 15 def country @country end |
#default_flag ⇒ Object
Returns the value of attribute default_flag.
19 20 21 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 19 def default_flag @default_flag end |
#description ⇒ Object
Returns the value of attribute description.
11 12 13 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 11 def description @description end |
#display_on_invoice_flag ⇒ Object
Returns the value of attribute display_on_invoice_flag.
21 22 23 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 21 def display_on_invoice_flag @display_on_invoice_flag end |
#effective_date ⇒ Object
Returns the value of attribute effective_date.
17 18 19 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 17 def effective_date @effective_date end |
#expense_type_ids ⇒ Object
Returns the value of attribute expense_type_ids.
153 154 155 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 153 def expense_type_ids @expense_type_ids end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 7 def id @id end |
#identifier ⇒ Object
Returns the value of attribute identifier.
9 10 11 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 9 def identifier @identifier end |
#invoice_caption ⇒ Object
Returns the value of attribute invoice_caption.
13 14 15 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 13 def invoice_caption @invoice_caption end |
#level_five_agency_xref ⇒ Object
Returns the value of attribute level_five_agency_xref.
133 134 135 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 133 def level_five_agency_xref @level_five_agency_xref end |
#level_five_apply_single_unit_flag ⇒ Object
Returns the value of attribute level_five_apply_single_unit_flag.
141 142 143 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 141 def level_five_apply_single_unit_flag @level_five_apply_single_unit_flag end |
#level_five_apply_single_unit_max ⇒ Object
Returns the value of attribute level_five_apply_single_unit_max.
145 146 147 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 145 def level_five_apply_single_unit_max @level_five_apply_single_unit_max end |
#level_five_apply_single_unit_min ⇒ Object
Returns the value of attribute level_five_apply_single_unit_min.
143 144 145 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 143 def level_five_apply_single_unit_min @level_five_apply_single_unit_min end |
#level_five_caption ⇒ Object
Returns the value of attribute level_five_caption.
129 130 131 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 129 def level_five_caption @level_five_caption end |
#level_five_expenses_flag ⇒ Object
Returns the value of attribute level_five_expenses_flag.
137 138 139 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 137 def level_five_expenses_flag @level_five_expenses_flag end |
#level_five_products_flag ⇒ Object
Returns the value of attribute level_five_products_flag.
139 140 141 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 139 def level_five_products_flag @level_five_products_flag end |
#level_five_rate ⇒ Object
Returns the value of attribute level_five_rate.
123 124 125 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 123 def level_five_rate @level_five_rate end |
#level_five_rate_type ⇒ Object
Returns the value of attribute level_five_rate_type.
125 126 127 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 125 def level_five_rate_type @level_five_rate_type end |
#level_five_services_flag ⇒ Object
Returns the value of attribute level_five_services_flag.
135 136 137 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 135 def level_five_services_flag @level_five_services_flag end |
#level_five_tax_code_xref ⇒ Object
Returns the value of attribute level_five_tax_code_xref.
131 132 133 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 131 def level_five_tax_code_xref @level_five_tax_code_xref end |
#level_five_taxable_max ⇒ Object
Returns the value of attribute level_five_taxable_max.
127 128 129 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 127 def level_five_taxable_max @level_five_taxable_max end |
#level_four_agency_xref ⇒ Object
Returns the value of attribute level_four_agency_xref.
109 110 111 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 109 def level_four_agency_xref @level_four_agency_xref end |
#level_four_apply_single_unit_flag ⇒ Object
Returns the value of attribute level_four_apply_single_unit_flag.
117 118 119 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 117 def level_four_apply_single_unit_flag @level_four_apply_single_unit_flag end |
#level_four_apply_single_unit_max ⇒ Object
Returns the value of attribute level_four_apply_single_unit_max.
121 122 123 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 121 def level_four_apply_single_unit_max @level_four_apply_single_unit_max end |
#level_four_apply_single_unit_min ⇒ Object
Returns the value of attribute level_four_apply_single_unit_min.
119 120 121 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 119 def level_four_apply_single_unit_min @level_four_apply_single_unit_min end |
#level_four_caption ⇒ Object
Returns the value of attribute level_four_caption.
105 106 107 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 105 def level_four_caption @level_four_caption end |
#level_four_expenses_flag ⇒ Object
Returns the value of attribute level_four_expenses_flag.
113 114 115 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 113 def level_four_expenses_flag @level_four_expenses_flag end |
#level_four_products_flag ⇒ Object
Returns the value of attribute level_four_products_flag.
115 116 117 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 115 def level_four_products_flag @level_four_products_flag end |
#level_four_rate ⇒ Object
Returns the value of attribute level_four_rate.
99 100 101 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 99 def level_four_rate @level_four_rate end |
#level_four_rate_type ⇒ Object
Returns the value of attribute level_four_rate_type.
101 102 103 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 101 def level_four_rate_type @level_four_rate_type end |
#level_four_services_flag ⇒ Object
Returns the value of attribute level_four_services_flag.
111 112 113 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 111 def level_four_services_flag @level_four_services_flag end |
#level_four_tax_code_xref ⇒ Object
Returns the value of attribute level_four_tax_code_xref.
107 108 109 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 107 def level_four_tax_code_xref @level_four_tax_code_xref end |
#level_four_taxable_max ⇒ Object
Returns the value of attribute level_four_taxable_max.
103 104 105 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 103 def level_four_taxable_max @level_four_taxable_max end |
#level_one_agency_xref ⇒ Object
Returns the value of attribute level_one_agency_xref.
37 38 39 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 37 def level_one_agency_xref @level_one_agency_xref end |
#level_one_apply_single_unit_flag ⇒ Object
Returns the value of attribute level_one_apply_single_unit_flag.
45 46 47 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 45 def level_one_apply_single_unit_flag @level_one_apply_single_unit_flag end |
#level_one_apply_single_unit_max ⇒ Object
Returns the value of attribute level_one_apply_single_unit_max.
49 50 51 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 49 def level_one_apply_single_unit_max @level_one_apply_single_unit_max end |
#level_one_apply_single_unit_min ⇒ Object
Returns the value of attribute level_one_apply_single_unit_min.
47 48 49 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 47 def level_one_apply_single_unit_min @level_one_apply_single_unit_min end |
#level_one_caption ⇒ Object
Returns the value of attribute level_one_caption.
33 34 35 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 33 def level_one_caption @level_one_caption end |
#level_one_expenses_flag ⇒ Object
Returns the value of attribute level_one_expenses_flag.
41 42 43 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 41 def level_one_expenses_flag @level_one_expenses_flag end |
#level_one_products_flag ⇒ Object
Returns the value of attribute level_one_products_flag.
43 44 45 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 43 def level_one_products_flag @level_one_products_flag end |
#level_one_rate ⇒ Object
Returns the value of attribute level_one_rate.
27 28 29 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 27 def level_one_rate @level_one_rate end |
#level_one_rate_type ⇒ Object
Returns the value of attribute level_one_rate_type.
29 30 31 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 29 def level_one_rate_type @level_one_rate_type end |
#level_one_services_flag ⇒ Object
Returns the value of attribute level_one_services_flag.
39 40 41 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 39 def level_one_services_flag @level_one_services_flag end |
#level_one_tax_code_xref ⇒ Object
Returns the value of attribute level_one_tax_code_xref.
35 36 37 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 35 def level_one_tax_code_xref @level_one_tax_code_xref end |
#level_one_taxable_max ⇒ Object
Returns the value of attribute level_one_taxable_max.
31 32 33 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 31 def level_one_taxable_max @level_one_taxable_max end |
#level_three_agency_xref ⇒ Object
Returns the value of attribute level_three_agency_xref.
85 86 87 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 85 def level_three_agency_xref @level_three_agency_xref end |
#level_three_apply_single_unit_flag ⇒ Object
Returns the value of attribute level_three_apply_single_unit_flag.
93 94 95 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 93 def level_three_apply_single_unit_flag @level_three_apply_single_unit_flag end |
#level_three_apply_single_unit_max ⇒ Object
Returns the value of attribute level_three_apply_single_unit_max.
97 98 99 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 97 def level_three_apply_single_unit_max @level_three_apply_single_unit_max end |
#level_three_apply_single_unit_min ⇒ Object
Returns the value of attribute level_three_apply_single_unit_min.
95 96 97 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 95 def level_three_apply_single_unit_min @level_three_apply_single_unit_min end |
#level_three_caption ⇒ Object
Returns the value of attribute level_three_caption.
81 82 83 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 81 def level_three_caption @level_three_caption end |
#level_three_expenses_flag ⇒ Object
Returns the value of attribute level_three_expenses_flag.
89 90 91 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 89 def level_three_expenses_flag @level_three_expenses_flag end |
#level_three_products_flag ⇒ Object
Returns the value of attribute level_three_products_flag.
91 92 93 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 91 def level_three_products_flag @level_three_products_flag end |
#level_three_rate ⇒ Object
Returns the value of attribute level_three_rate.
75 76 77 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 75 def level_three_rate @level_three_rate end |
#level_three_rate_type ⇒ Object
Returns the value of attribute level_three_rate_type.
77 78 79 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 77 def level_three_rate_type @level_three_rate_type end |
#level_three_services_flag ⇒ Object
Returns the value of attribute level_three_services_flag.
87 88 89 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 87 def level_three_services_flag @level_three_services_flag end |
#level_three_tax_code_xref ⇒ Object
Returns the value of attribute level_three_tax_code_xref.
83 84 85 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 83 def level_three_tax_code_xref @level_three_tax_code_xref end |
#level_three_taxable_max ⇒ Object
Returns the value of attribute level_three_taxable_max.
79 80 81 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 79 def level_three_taxable_max @level_three_taxable_max end |
#level_two_agency_xref ⇒ Object
Returns the value of attribute level_two_agency_xref.
61 62 63 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 61 def level_two_agency_xref @level_two_agency_xref end |
#level_two_apply_single_unit_flag ⇒ Object
Returns the value of attribute level_two_apply_single_unit_flag.
69 70 71 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 69 def level_two_apply_single_unit_flag @level_two_apply_single_unit_flag end |
#level_two_apply_single_unit_max ⇒ Object
Returns the value of attribute level_two_apply_single_unit_max.
73 74 75 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 73 def level_two_apply_single_unit_max @level_two_apply_single_unit_max end |
#level_two_apply_single_unit_min ⇒ Object
Returns the value of attribute level_two_apply_single_unit_min.
71 72 73 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 71 def level_two_apply_single_unit_min @level_two_apply_single_unit_min end |
#level_two_caption ⇒ Object
Returns the value of attribute level_two_caption.
57 58 59 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 57 def level_two_caption @level_two_caption end |
#level_two_expenses_flag ⇒ Object
Returns the value of attribute level_two_expenses_flag.
65 66 67 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 65 def level_two_expenses_flag @level_two_expenses_flag end |
#level_two_products_flag ⇒ Object
Returns the value of attribute level_two_products_flag.
67 68 69 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 67 def level_two_products_flag @level_two_products_flag end |
#level_two_rate ⇒ Object
Returns the value of attribute level_two_rate.
51 52 53 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 51 def level_two_rate @level_two_rate end |
#level_two_rate_type ⇒ Object
Returns the value of attribute level_two_rate_type.
53 54 55 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 53 def level_two_rate_type @level_two_rate_type end |
#level_two_services_flag ⇒ Object
Returns the value of attribute level_two_services_flag.
63 64 65 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 63 def level_two_services_flag @level_two_services_flag end |
#level_two_tax_code_xref ⇒ Object
Returns the value of attribute level_two_tax_code_xref.
59 60 61 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 59 def level_two_tax_code_xref @level_two_tax_code_xref end |
#level_two_taxable_max ⇒ Object
Returns the value of attribute level_two_taxable_max.
55 56 57 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 55 def level_two_taxable_max @level_two_taxable_max end |
#product_type_ids ⇒ Object
Returns the value of attribute product_type_ids.
159 160 161 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 159 def product_type_ids @product_type_ids end |
#remove_all_expense_types ⇒ Object
Returns the value of attribute remove_all_expense_types.
157 158 159 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 157 def remove_all_expense_types @remove_all_expense_types end |
#remove_all_product_types ⇒ Object
Returns the value of attribute remove_all_product_types.
163 164 165 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 163 def remove_all_product_types @remove_all_product_types end |
#remove_all_work_roles ⇒ Object
Returns the value of attribute remove_all_work_roles.
151 152 153 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 151 def remove_all_work_roles @remove_all_work_roles end |
#work_role_ids ⇒ Object
Returns the value of attribute work_role_ids.
147 148 149 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 147 def work_role_ids @work_role_ids end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 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 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 191 def self.attribute_map { :'id' => :'id', :'identifier' => :'identifier', :'description' => :'description', :'invoice_caption' => :'invoiceCaption', :'country' => :'country', :'effective_date' => :'effectiveDate', :'default_flag' => :'defaultFlag', :'display_on_invoice_flag' => :'displayOnInvoiceFlag', :'canada_calculate_gst_flag' => :'canadaCalculateGSTFlag', :'cancel_date' => :'cancelDate', :'level_one_rate' => :'levelOneRate', :'level_one_rate_type' => :'levelOneRateType', :'level_one_taxable_max' => :'levelOneTaxableMax', :'level_one_caption' => :'levelOneCaption', :'level_one_tax_code_xref' => :'levelOneTaxCodeXref', :'level_one_agency_xref' => :'levelOneAgencyXref', :'level_one_services_flag' => :'levelOneServicesFlag', :'level_one_expenses_flag' => :'levelOneExpensesFlag', :'level_one_products_flag' => :'levelOneProductsFlag', :'level_one_apply_single_unit_flag' => :'levelOneApplySingleUnitFlag', :'level_one_apply_single_unit_min' => :'levelOneApplySingleUnitMin', :'level_one_apply_single_unit_max' => :'levelOneApplySingleUnitMax', :'level_two_rate' => :'levelTwoRate', :'level_two_rate_type' => :'levelTwoRateType', :'level_two_taxable_max' => :'levelTwoTaxableMax', :'level_two_caption' => :'levelTwoCaption', :'level_two_tax_code_xref' => :'levelTwoTaxCodeXref', :'level_two_agency_xref' => :'levelTwoAgencyXref', :'level_two_services_flag' => :'levelTwoServicesFlag', :'level_two_expenses_flag' => :'levelTwoExpensesFlag', :'level_two_products_flag' => :'levelTwoProductsFlag', :'level_two_apply_single_unit_flag' => :'levelTwoApplySingleUnitFlag', :'level_two_apply_single_unit_min' => :'levelTwoApplySingleUnitMin', :'level_two_apply_single_unit_max' => :'levelTwoApplySingleUnitMax', :'level_three_rate' => :'levelThreeRate', :'level_three_rate_type' => :'levelThreeRateType', :'level_three_taxable_max' => :'levelThreeTaxableMax', :'level_three_caption' => :'levelThreeCaption', :'level_three_tax_code_xref' => :'levelThreeTaxCodeXref', :'level_three_agency_xref' => :'levelThreeAgencyXref', :'level_three_services_flag' => :'levelThreeServicesFlag', :'level_three_expenses_flag' => :'levelThreeExpensesFlag', :'level_three_products_flag' => :'levelThreeProductsFlag', :'level_three_apply_single_unit_flag' => :'levelThreeApplySingleUnitFlag', :'level_three_apply_single_unit_min' => :'levelThreeApplySingleUnitMin', :'level_three_apply_single_unit_max' => :'levelThreeApplySingleUnitMax', :'level_four_rate' => :'levelFourRate', :'level_four_rate_type' => :'levelFourRateType', :'level_four_taxable_max' => :'levelFourTaxableMax', :'level_four_caption' => :'levelFourCaption', :'level_four_tax_code_xref' => :'levelFourTaxCodeXref', :'level_four_agency_xref' => :'levelFourAgencyXref', :'level_four_services_flag' => :'levelFourServicesFlag', :'level_four_expenses_flag' => :'levelFourExpensesFlag', :'level_four_products_flag' => :'levelFourProductsFlag', :'level_four_apply_single_unit_flag' => :'levelFourApplySingleUnitFlag', :'level_four_apply_single_unit_min' => :'levelFourApplySingleUnitMin', :'level_four_apply_single_unit_max' => :'levelFourApplySingleUnitMax', :'level_five_rate' => :'levelFiveRate', :'level_five_rate_type' => :'levelFiveRateType', :'level_five_taxable_max' => :'levelFiveTaxableMax', :'level_five_caption' => :'levelFiveCaption', :'level_five_tax_code_xref' => :'levelFiveTaxCodeXref', :'level_five_agency_xref' => :'levelFiveAgencyXref', :'level_five_services_flag' => :'levelFiveServicesFlag', :'level_five_expenses_flag' => :'levelFiveExpensesFlag', :'level_five_products_flag' => :'levelFiveProductsFlag', :'level_five_apply_single_unit_flag' => :'levelFiveApplySingleUnitFlag', :'level_five_apply_single_unit_min' => :'levelFiveApplySingleUnitMin', :'level_five_apply_single_unit_max' => :'levelFiveApplySingleUnitMax', :'work_role_ids' => :'workRoleIds', :'add_all_work_roles' => :'addAllWorkRoles', :'remove_all_work_roles' => :'removeAllWorkRoles', :'expense_type_ids' => :'expenseTypeIds', :'add_all_expense_types' => :'addAllExpenseTypes', :'remove_all_expense_types' => :'removeAllExpenseTypes', :'product_type_ids' => :'productTypeIds', :'add_all_product_types' => :'addAllProductTypes', :'remove_all_product_types' => :'removeAllProductTypes', :'_info' => :'_info' } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 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 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 277 def self.swagger_types { :'id' => :'Integer', :'identifier' => :'String', :'description' => :'String', :'invoice_caption' => :'String', :'country' => :'CountryReference', :'effective_date' => :'DateTime', :'default_flag' => :'BOOLEAN', :'display_on_invoice_flag' => :'BOOLEAN', :'canada_calculate_gst_flag' => :'BOOLEAN', :'cancel_date' => :'DateTime', :'level_one_rate' => :'Float', :'level_one_rate_type' => :'String', :'level_one_taxable_max' => :'Float', :'level_one_caption' => :'String', :'level_one_tax_code_xref' => :'String', :'level_one_agency_xref' => :'String', :'level_one_services_flag' => :'BOOLEAN', :'level_one_expenses_flag' => :'BOOLEAN', :'level_one_products_flag' => :'BOOLEAN', :'level_one_apply_single_unit_flag' => :'BOOLEAN', :'level_one_apply_single_unit_min' => :'Float', :'level_one_apply_single_unit_max' => :'Float', :'level_two_rate' => :'Float', :'level_two_rate_type' => :'String', :'level_two_taxable_max' => :'Float', :'level_two_caption' => :'String', :'level_two_tax_code_xref' => :'String', :'level_two_agency_xref' => :'String', :'level_two_services_flag' => :'BOOLEAN', :'level_two_expenses_flag' => :'BOOLEAN', :'level_two_products_flag' => :'BOOLEAN', :'level_two_apply_single_unit_flag' => :'BOOLEAN', :'level_two_apply_single_unit_min' => :'Float', :'level_two_apply_single_unit_max' => :'Float', :'level_three_rate' => :'Float', :'level_three_rate_type' => :'String', :'level_three_taxable_max' => :'Float', :'level_three_caption' => :'String', :'level_three_tax_code_xref' => :'String', :'level_three_agency_xref' => :'String', :'level_three_services_flag' => :'BOOLEAN', :'level_three_expenses_flag' => :'BOOLEAN', :'level_three_products_flag' => :'BOOLEAN', :'level_three_apply_single_unit_flag' => :'BOOLEAN', :'level_three_apply_single_unit_min' => :'Float', :'level_three_apply_single_unit_max' => :'Float', :'level_four_rate' => :'Float', :'level_four_rate_type' => :'String', :'level_four_taxable_max' => :'Float', :'level_four_caption' => :'String', :'level_four_tax_code_xref' => :'String', :'level_four_agency_xref' => :'String', :'level_four_services_flag' => :'BOOLEAN', :'level_four_expenses_flag' => :'BOOLEAN', :'level_four_products_flag' => :'BOOLEAN', :'level_four_apply_single_unit_flag' => :'BOOLEAN', :'level_four_apply_single_unit_min' => :'Float', :'level_four_apply_single_unit_max' => :'Float', :'level_five_rate' => :'Float', :'level_five_rate_type' => :'String', :'level_five_taxable_max' => :'Float', :'level_five_caption' => :'String', :'level_five_tax_code_xref' => :'String', :'level_five_agency_xref' => :'String', :'level_five_services_flag' => :'BOOLEAN', :'level_five_expenses_flag' => :'BOOLEAN', :'level_five_products_flag' => :'BOOLEAN', :'level_five_apply_single_unit_flag' => :'BOOLEAN', :'level_five_apply_single_unit_min' => :'Float', :'level_five_apply_single_unit_max' => :'Float', :'work_role_ids' => :'Array<Integer>', :'add_all_work_roles' => :'BOOLEAN', :'remove_all_work_roles' => :'BOOLEAN', :'expense_type_ids' => :'Array<Integer>', :'add_all_expense_types' => :'BOOLEAN', :'remove_all_expense_types' => :'BOOLEAN', :'product_type_ids' => :'Array<Integer>', :'add_all_product_types' => :'BOOLEAN', :'remove_all_product_types' => :'BOOLEAN', :'_info' => :'Metadata' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
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 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 1215 def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && identifier == o.identifier && description == o.description && invoice_caption == o.invoice_caption && country == o.country && effective_date == o.effective_date && default_flag == o.default_flag && display_on_invoice_flag == o.display_on_invoice_flag && canada_calculate_gst_flag == o.canada_calculate_gst_flag && cancel_date == o.cancel_date && level_one_rate == o.level_one_rate && level_one_rate_type == o.level_one_rate_type && level_one_taxable_max == o.level_one_taxable_max && level_one_caption == o.level_one_caption && level_one_tax_code_xref == o.level_one_tax_code_xref && level_one_agency_xref == o.level_one_agency_xref && level_one_services_flag == o.level_one_services_flag && level_one_expenses_flag == o.level_one_expenses_flag && level_one_products_flag == o.level_one_products_flag && level_one_apply_single_unit_flag == o.level_one_apply_single_unit_flag && level_one_apply_single_unit_min == o.level_one_apply_single_unit_min && level_one_apply_single_unit_max == o.level_one_apply_single_unit_max && level_two_rate == o.level_two_rate && level_two_rate_type == o.level_two_rate_type && level_two_taxable_max == o.level_two_taxable_max && level_two_caption == o.level_two_caption && level_two_tax_code_xref == o.level_two_tax_code_xref && level_two_agency_xref == o.level_two_agency_xref && level_two_services_flag == o.level_two_services_flag && level_two_expenses_flag == o.level_two_expenses_flag && level_two_products_flag == o.level_two_products_flag && level_two_apply_single_unit_flag == o.level_two_apply_single_unit_flag && level_two_apply_single_unit_min == o.level_two_apply_single_unit_min && level_two_apply_single_unit_max == o.level_two_apply_single_unit_max && level_three_rate == o.level_three_rate && level_three_rate_type == o.level_three_rate_type && level_three_taxable_max == o.level_three_taxable_max && level_three_caption == o.level_three_caption && level_three_tax_code_xref == o.level_three_tax_code_xref && level_three_agency_xref == o.level_three_agency_xref && level_three_services_flag == o.level_three_services_flag && level_three_expenses_flag == o.level_three_expenses_flag && level_three_products_flag == o.level_three_products_flag && level_three_apply_single_unit_flag == o.level_three_apply_single_unit_flag && level_three_apply_single_unit_min == o.level_three_apply_single_unit_min && level_three_apply_single_unit_max == o.level_three_apply_single_unit_max && level_four_rate == o.level_four_rate && level_four_rate_type == o.level_four_rate_type && level_four_taxable_max == o.level_four_taxable_max && level_four_caption == o.level_four_caption && level_four_tax_code_xref == o.level_four_tax_code_xref && level_four_agency_xref == o.level_four_agency_xref && level_four_services_flag == o.level_four_services_flag && level_four_expenses_flag == o.level_four_expenses_flag && level_four_products_flag == o.level_four_products_flag && level_four_apply_single_unit_flag == o.level_four_apply_single_unit_flag && level_four_apply_single_unit_min == o.level_four_apply_single_unit_min && level_four_apply_single_unit_max == o.level_four_apply_single_unit_max && level_five_rate == o.level_five_rate && level_five_rate_type == o.level_five_rate_type && level_five_taxable_max == o.level_five_taxable_max && level_five_caption == o.level_five_caption && level_five_tax_code_xref == o.level_five_tax_code_xref && level_five_agency_xref == o.level_five_agency_xref && level_five_services_flag == o.level_five_services_flag && level_five_expenses_flag == o.level_five_expenses_flag && level_five_products_flag == o.level_five_products_flag && level_five_apply_single_unit_flag == o.level_five_apply_single_unit_flag && level_five_apply_single_unit_min == o.level_five_apply_single_unit_min && level_five_apply_single_unit_max == o.level_five_apply_single_unit_max && work_role_ids == o.work_role_ids && add_all_work_roles == o.add_all_work_roles && remove_all_work_roles == o.remove_all_work_roles && expense_type_ids == o.expense_type_ids && add_all_expense_types == o.add_all_expense_types && remove_all_expense_types == o.remove_all_expense_types && product_type_ids == o.product_type_ids && add_all_product_types == o.add_all_product_types && remove_all_product_types == o.remove_all_product_types && _info == o._info end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 1336 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
1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 1402 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
1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 1315 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
1302 1303 1304 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 1302 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
1308 1309 1310 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 1308 def hash [id, identifier, description, invoice_caption, country, effective_date, default_flag, display_on_invoice_flag, canada_calculate_gst_flag, cancel_date, level_one_rate, level_one_rate_type, level_one_taxable_max, level_one_caption, level_one_tax_code_xref, level_one_agency_xref, level_one_services_flag, level_one_expenses_flag, level_one_products_flag, level_one_apply_single_unit_flag, level_one_apply_single_unit_min, level_one_apply_single_unit_max, level_two_rate, level_two_rate_type, level_two_taxable_max, level_two_caption, level_two_tax_code_xref, level_two_agency_xref, level_two_services_flag, level_two_expenses_flag, level_two_products_flag, level_two_apply_single_unit_flag, level_two_apply_single_unit_min, level_two_apply_single_unit_max, level_three_rate, level_three_rate_type, level_three_taxable_max, level_three_caption, level_three_tax_code_xref, level_three_agency_xref, level_three_services_flag, level_three_expenses_flag, level_three_products_flag, level_three_apply_single_unit_flag, level_three_apply_single_unit_min, level_three_apply_single_unit_max, level_four_rate, level_four_rate_type, level_four_taxable_max, level_four_caption, level_four_tax_code_xref, level_four_agency_xref, level_four_services_flag, level_four_expenses_flag, level_four_products_flag, level_four_apply_single_unit_flag, level_four_apply_single_unit_min, level_four_apply_single_unit_max, level_five_rate, level_five_rate_type, level_five_taxable_max, level_five_caption, level_five_tax_code_xref, level_five_agency_xref, level_five_services_flag, level_five_expenses_flag, level_five_products_flag, level_five_apply_single_unit_flag, level_five_apply_single_unit_min, level_five_apply_single_unit_max, work_role_ids, add_all_work_roles, remove_all_work_roles, expense_type_ids, add_all_expense_types, remove_all_expense_types, product_type_ids, add_all_product_types, remove_all_product_types, _info].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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 785 786 787 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 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 700 def list_invalid_properties invalid_properties = Array.new if @identifier.nil? invalid_properties.push("invalid value for 'identifier', identifier cannot be nil.") end if @identifier.to_s.length > 8 invalid_properties.push("invalid value for 'identifier', the character length must be smaller than or equal to 8.") end if @description.nil? invalid_properties.push("invalid value for 'description', description cannot be nil.") end if @description.to_s.length > 50 invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 50.") end if @invoice_caption.nil? invalid_properties.push("invalid value for 'invoice_caption', invoice_caption cannot be nil.") end if @invoice_caption.to_s.length > 25 invalid_properties.push("invalid value for 'invoice_caption', the character length must be smaller than or equal to 25.") end if @effective_date.nil? invalid_properties.push("invalid value for 'effective_date', effective_date cannot be nil.") end if !@level_one_taxable_max.nil? && @level_one_taxable_max > 214748.36 invalid_properties.push("invalid value for 'level_one_taxable_max', must be smaller than or equal to 214748.36.") end if !@level_one_taxable_max.nil? && @level_one_taxable_max < 0 invalid_properties.push("invalid value for 'level_one_taxable_max', must be greater than or equal to 0.") end if !@level_one_caption.nil? && @level_one_caption.to_s.length > 25 invalid_properties.push("invalid value for 'level_one_caption', the character length must be smaller than or equal to 25.") end if !@level_one_tax_code_xref.nil? && @level_one_tax_code_xref.to_s.length > 50 invalid_properties.push("invalid value for 'level_one_tax_code_xref', the character length must be smaller than or equal to 50.") end if !@level_one_agency_xref.nil? && @level_one_agency_xref.to_s.length > 100 invalid_properties.push("invalid value for 'level_one_agency_xref', the character length must be smaller than or equal to 100.") end if !@level_two_taxable_max.nil? && @level_two_taxable_max > 214748.36 invalid_properties.push("invalid value for 'level_two_taxable_max', must be smaller than or equal to 214748.36.") end if !@level_two_taxable_max.nil? && @level_two_taxable_max < 0 invalid_properties.push("invalid value for 'level_two_taxable_max', must be greater than or equal to 0.") end if !@level_two_caption.nil? && @level_two_caption.to_s.length > 25 invalid_properties.push("invalid value for 'level_two_caption', the character length must be smaller than or equal to 25.") end if !@level_two_tax_code_xref.nil? && @level_two_tax_code_xref.to_s.length > 50 invalid_properties.push("invalid value for 'level_two_tax_code_xref', the character length must be smaller than or equal to 50.") end if !@level_two_agency_xref.nil? && @level_two_agency_xref.to_s.length > 100 invalid_properties.push("invalid value for 'level_two_agency_xref', the character length must be smaller than or equal to 100.") end if !@level_three_taxable_max.nil? && @level_three_taxable_max > 214748.36 invalid_properties.push("invalid value for 'level_three_taxable_max', must be smaller than or equal to 214748.36.") end if !@level_three_taxable_max.nil? && @level_three_taxable_max < 0 invalid_properties.push("invalid value for 'level_three_taxable_max', must be greater than or equal to 0.") end if !@level_three_caption.nil? && @level_three_caption.to_s.length > 25 invalid_properties.push("invalid value for 'level_three_caption', the character length must be smaller than or equal to 25.") end if !@level_three_tax_code_xref.nil? && @level_three_tax_code_xref.to_s.length > 50 invalid_properties.push("invalid value for 'level_three_tax_code_xref', the character length must be smaller than or equal to 50.") end if !@level_three_agency_xref.nil? && @level_three_agency_xref.to_s.length > 100 invalid_properties.push("invalid value for 'level_three_agency_xref', the character length must be smaller than or equal to 100.") end if !@level_four_taxable_max.nil? && @level_four_taxable_max > 214748.36 invalid_properties.push("invalid value for 'level_four_taxable_max', must be smaller than or equal to 214748.36.") end if !@level_four_taxable_max.nil? && @level_four_taxable_max < 0 invalid_properties.push("invalid value for 'level_four_taxable_max', must be greater than or equal to 0.") end if !@level_four_caption.nil? && @level_four_caption.to_s.length > 25 invalid_properties.push("invalid value for 'level_four_caption', the character length must be smaller than or equal to 25.") end if !@level_four_tax_code_xref.nil? && @level_four_tax_code_xref.to_s.length > 50 invalid_properties.push("invalid value for 'level_four_tax_code_xref', the character length must be smaller than or equal to 50.") end if !@level_four_agency_xref.nil? && @level_four_agency_xref.to_s.length > 100 invalid_properties.push("invalid value for 'level_four_agency_xref', the character length must be smaller than or equal to 100.") end if !@level_five_taxable_max.nil? && @level_five_taxable_max > 214748.36 invalid_properties.push("invalid value for 'level_five_taxable_max', must be smaller than or equal to 214748.36.") end if !@level_five_taxable_max.nil? && @level_five_taxable_max < 0 invalid_properties.push("invalid value for 'level_five_taxable_max', must be greater than or equal to 0.") end if !@level_five_caption.nil? && @level_five_caption.to_s.length > 25 invalid_properties.push("invalid value for 'level_five_caption', the character length must be smaller than or equal to 25.") end if !@level_five_tax_code_xref.nil? && @level_five_tax_code_xref.to_s.length > 50 invalid_properties.push("invalid value for 'level_five_tax_code_xref', the character length must be smaller than or equal to 50.") end if !@level_five_agency_xref.nil? && @level_five_agency_xref.to_s.length > 100 invalid_properties.push("invalid value for 'level_five_agency_xref', 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)
1382 1383 1384 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 1382 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
1388 1389 1390 1391 1392 1393 1394 1395 1396 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 1388 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
1376 1377 1378 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 1376 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
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 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 |
# File 'lib/connectwise-ruby-sdk/models/tax_code.rb', line 835 def valid? return false if @identifier.nil? return false if @identifier.to_s.length > 8 return false if @description.nil? return false if @description.to_s.length > 50 return false if @invoice_caption.nil? return false if @invoice_caption.to_s.length > 25 return false if @effective_date.nil? level_one_rate_type_validator = EnumAttributeValidator.new('String', ["Amount", "Percent"]) return false unless level_one_rate_type_validator.valid?(@level_one_rate_type) return false if !@level_one_taxable_max.nil? && @level_one_taxable_max > 214748.36 return false if !@level_one_taxable_max.nil? && @level_one_taxable_max < 0 return false if !@level_one_caption.nil? && @level_one_caption.to_s.length > 25 return false if !@level_one_tax_code_xref.nil? && @level_one_tax_code_xref.to_s.length > 50 return false if !@level_one_agency_xref.nil? && @level_one_agency_xref.to_s.length > 100 level_two_rate_type_validator = EnumAttributeValidator.new('String', ["Amount", "Percent"]) return false unless level_two_rate_type_validator.valid?(@level_two_rate_type) return false if !@level_two_taxable_max.nil? && @level_two_taxable_max > 214748.36 return false if !@level_two_taxable_max.nil? && @level_two_taxable_max < 0 return false if !@level_two_caption.nil? && @level_two_caption.to_s.length > 25 return false if !@level_two_tax_code_xref.nil? && @level_two_tax_code_xref.to_s.length > 50 return false if !@level_two_agency_xref.nil? && @level_two_agency_xref.to_s.length > 100 level_three_rate_type_validator = EnumAttributeValidator.new('String', ["Amount", "Percent"]) return false unless level_three_rate_type_validator.valid?(@level_three_rate_type) return false if !@level_three_taxable_max.nil? && @level_three_taxable_max > 214748.36 return false if !@level_three_taxable_max.nil? && @level_three_taxable_max < 0 return false if !@level_three_caption.nil? && @level_three_caption.to_s.length > 25 return false if !@level_three_tax_code_xref.nil? && @level_three_tax_code_xref.to_s.length > 50 return false if !@level_three_agency_xref.nil? && @level_three_agency_xref.to_s.length > 100 level_four_rate_type_validator = EnumAttributeValidator.new('String', ["Amount", "Percent"]) return false unless level_four_rate_type_validator.valid?(@level_four_rate_type) return false if !@level_four_taxable_max.nil? && @level_four_taxable_max > 214748.36 return false if !@level_four_taxable_max.nil? && @level_four_taxable_max < 0 return false if !@level_four_caption.nil? && @level_four_caption.to_s.length > 25 return false if !@level_four_tax_code_xref.nil? && @level_four_tax_code_xref.to_s.length > 50 return false if !@level_four_agency_xref.nil? && @level_four_agency_xref.to_s.length > 100 level_five_rate_type_validator = EnumAttributeValidator.new('String', ["Amount", "Percent"]) return false unless level_five_rate_type_validator.valid?(@level_five_rate_type) return false if !@level_five_taxable_max.nil? && @level_five_taxable_max > 214748.36 return false if !@level_five_taxable_max.nil? && @level_five_taxable_max < 0 return false if !@level_five_caption.nil? && @level_five_caption.to_s.length > 25 return false if !@level_five_tax_code_xref.nil? && @level_five_tax_code_xref.to_s.length > 50 return false if !@level_five_agency_xref.nil? && @level_five_agency_xref.to_s.length > 100 return true end |