connectwise-ruby-sdk 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -18
- data/connectwise-ruby-sdk.gemspec +2 -1
- data/lib/connectwise-ruby-sdk/api/documents_api.rb +8 -8
- data/lib/connectwise-ruby-sdk/api_client.rb +1 -1
- data/lib/connectwise-ruby-sdk/models/activity.rb +27 -15
- data/lib/connectwise-ruby-sdk/models/activity_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/activity_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/addition.rb +16 -12
- data/lib/connectwise-ruby-sdk/models/adjustment.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/agreement.rb +43 -27
- data/lib/connectwise-ruby-sdk/models/agreement_type.rb +27 -15
- data/lib/connectwise-ruby-sdk/models/audit_trail_entry_insert_request.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/batch.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/board.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/callback_entry.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/campaign.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/campaign_audit.rb +46 -20
- data/lib/connectwise-ruby-sdk/models/campaign_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/campaign_sub_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/campaign_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/catalog_item.rb +57 -27
- data/lib/connectwise-ruby-sdk/models/category.rb +27 -15
- data/lib/connectwise-ruby-sdk/models/code.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/company.rb +185 -123
- data/lib/connectwise-ruby-sdk/models/company_management_summary.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/company_site.rb +67 -45
- data/lib/connectwise-ruby-sdk/models/company_status.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/company_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/configuration.rb +131 -93
- data/lib/connectwise-ruby-sdk/models/configuration_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/configuration_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/configuration_type_question.rb +24 -10
- data/lib/connectwise-ruby-sdk/models/connect_wise_hosted_setup.rb +30 -12
- data/lib/connectwise-ruby-sdk/models/contact.rb +128 -88
- data/lib/connectwise-ruby-sdk/models/contact_communication.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/contact_communication_item.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/contact_department.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/contact_relationship.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/contact_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/currency.rb +35 -21
- data/lib/connectwise-ruby-sdk/models/expense_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/forecast.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/form_submitted.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/group.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/integrator_login.rb +118 -78
- data/lib/connectwise-ruby-sdk/models/invoice.rb +32 -24
- data/lib/connectwise-ruby-sdk/models/item.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/link.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/link_clicked.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/location.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/manufacturer.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/marketing_contact.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/member.rb +129 -81
- data/lib/connectwise-ruby-sdk/models/menu_entry.rb +30 -12
- data/lib/connectwise-ruby-sdk/models/opportunity.rb +27 -15
- data/lib/connectwise-ruby-sdk/models/opportunity_rating.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/opportunity_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/opportunity_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/order.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/order_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/pricing_schedule.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/priority.rb +22 -6
- data/lib/connectwise-ruby-sdk/models/product_item.rb +40 -30
- data/lib/connectwise-ruby-sdk/models/product_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/project.rb +27 -15
- data/lib/connectwise-ruby-sdk/models/project_phase.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/purchase_order.rb +32 -24
- data/lib/connectwise-ruby-sdk/models/purchase_order_line_item.rb +59 -39
- data/lib/connectwise-ruby-sdk/models/schedule_entry.rb +8 -6
- data/lib/connectwise-ruby-sdk/models/schedule_status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/schedule_type.rb +22 -6
- data/lib/connectwise-ruby-sdk/models/shipment_method.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/source.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/status.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/sub_category.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/sub_type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/survey.rb +35 -21
- data/lib/connectwise-ruby-sdk/models/survey_question.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/survey_question_option.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/task.rb +13 -7
- data/lib/connectwise-ruby-sdk/models/team.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/ticket.rb +115 -81
- data/lib/connectwise-ruby-sdk/models/type.rb +11 -3
- data/lib/connectwise-ruby-sdk/models/unit_of_measure.rb +19 -9
- data/lib/connectwise-ruby-sdk/models/user_defined_field.rb +52 -22
- data/lib/connectwise-ruby-sdk/models/user_defined_field_option.rb +11 -3
- data/lib/connectwise-ruby-sdk/version.rb +1 -1
- data/spec/api_client_spec.rb +3 -2
- data/spec/configuration_spec.rb +1 -0
- data/spec/spec_helper.rb +1 -0
- metadata +2 -3
- data/git_push.sh +0 -67
|
@@ -523,6 +523,82 @@ module Connectwise
|
|
|
523
523
|
# @return Array for valid properies with the reasons
|
|
524
524
|
def list_invalid_properties
|
|
525
525
|
invalid_properties = Array.new
|
|
526
|
+
if @username.nil?
|
|
527
|
+
invalid_properties.push("invalid value for 'username', username cannot be nil.")
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
if @username.to_s.length > 50
|
|
531
|
+
invalid_properties.push("invalid value for 'username', the character length must be smaller than or equal to 50.")
|
|
532
|
+
end
|
|
533
|
+
|
|
534
|
+
if @password.nil?
|
|
535
|
+
invalid_properties.push("invalid value for 'password', password cannot be nil.")
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
if @password.to_s.length > 50
|
|
539
|
+
invalid_properties.push("invalid value for 'password', the character length must be smaller than or equal to 50.")
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
if !@service_board_callback_url.nil? && @service_board_callback_url.to_s.length > 1000
|
|
544
|
+
invalid_properties.push("invalid value for 'service_board_callback_url', the character length must be smaller than or equal to 1000.")
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
if !@time_entry_callback_url.nil? && @time_entry_callback_url.to_s.length > 1000
|
|
549
|
+
invalid_properties.push("invalid value for 'time_entry_callback_url', the character length must be smaller than or equal to 1000.")
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
if !@contact_callback_url.nil? && @contact_callback_url.to_s.length > 1000
|
|
554
|
+
invalid_properties.push("invalid value for 'contact_callback_url', the character length must be smaller than or equal to 1000.")
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
if !@company_callback_url.nil? && @company_callback_url.to_s.length > 1000
|
|
559
|
+
invalid_properties.push("invalid value for 'company_callback_url', the character length must be smaller than or equal to 1000.")
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
if !@activity_callback_url.nil? && @activity_callback_url.to_s.length > 1000
|
|
564
|
+
invalid_properties.push("invalid value for 'activity_callback_url', the character length must be smaller than or equal to 1000.")
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
if !@product_callback_url.nil? && @product_callback_url.to_s.length > 1000
|
|
569
|
+
invalid_properties.push("invalid value for 'product_callback_url', the character length must be smaller than or equal to 1000.")
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
if !@opportunity_callback_url.nil? && @opportunity_callback_url.to_s.length > 1000
|
|
574
|
+
invalid_properties.push("invalid value for 'opportunity_callback_url', the character length must be smaller than or equal to 1000.")
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
if !@purchasing_callback_url.nil? && @purchasing_callback_url.to_s.length > 1000
|
|
579
|
+
invalid_properties.push("invalid value for 'purchasing_callback_url', the character length must be smaller than or equal to 1000.")
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
if !@project_callback_url.nil? && @project_callback_url.to_s.length > 1000
|
|
584
|
+
invalid_properties.push("invalid value for 'project_callback_url', the character length must be smaller than or equal to 1000.")
|
|
585
|
+
end
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
if !@configuration_callback_url.nil? && @configuration_callback_url.to_s.length > 1000
|
|
589
|
+
invalid_properties.push("invalid value for 'configuration_callback_url', the character length must be smaller than or equal to 1000.")
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
if !@schedule_callback_url.nil? && @schedule_callback_url.to_s.length > 1000
|
|
594
|
+
invalid_properties.push("invalid value for 'schedule_callback_url', the character length must be smaller than or equal to 1000.")
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
if !@agreement_callback_url.nil? && @agreement_callback_url.to_s.length > 1000
|
|
599
|
+
invalid_properties.push("invalid value for 'agreement_callback_url', the character length must be smaller than or equal to 1000.")
|
|
600
|
+
end
|
|
601
|
+
|
|
526
602
|
return invalid_properties
|
|
527
603
|
end
|
|
528
604
|
|
|
@@ -530,21 +606,21 @@ module Connectwise
|
|
|
530
606
|
# @return true if the model is valid
|
|
531
607
|
def valid?
|
|
532
608
|
return false if @username.nil?
|
|
533
|
-
return false if @username.to_s.length
|
|
609
|
+
return false if @username.to_s.length > 50
|
|
534
610
|
return false if @password.nil?
|
|
535
|
-
return false if @password.to_s.length
|
|
536
|
-
return false if @service_board_callback_url.to_s.length
|
|
537
|
-
return false if @time_entry_callback_url.to_s.length
|
|
538
|
-
return false if @contact_callback_url.to_s.length
|
|
539
|
-
return false if @company_callback_url.to_s.length
|
|
540
|
-
return false if @activity_callback_url.to_s.length
|
|
541
|
-
return false if @product_callback_url.to_s.length
|
|
542
|
-
return false if @opportunity_callback_url.to_s.length
|
|
543
|
-
return false if @purchasing_callback_url.to_s.length
|
|
544
|
-
return false if @project_callback_url.to_s.length
|
|
545
|
-
return false if @configuration_callback_url.to_s.length
|
|
546
|
-
return false if @schedule_callback_url.to_s.length
|
|
547
|
-
return false if @agreement_callback_url.to_s.length
|
|
611
|
+
return false if @password.to_s.length > 50
|
|
612
|
+
return false if !@service_board_callback_url.nil? && @service_board_callback_url.to_s.length > 1000
|
|
613
|
+
return false if !@time_entry_callback_url.nil? && @time_entry_callback_url.to_s.length > 1000
|
|
614
|
+
return false if !@contact_callback_url.nil? && @contact_callback_url.to_s.length > 1000
|
|
615
|
+
return false if !@company_callback_url.nil? && @company_callback_url.to_s.length > 1000
|
|
616
|
+
return false if !@activity_callback_url.nil? && @activity_callback_url.to_s.length > 1000
|
|
617
|
+
return false if !@product_callback_url.nil? && @product_callback_url.to_s.length > 1000
|
|
618
|
+
return false if !@opportunity_callback_url.nil? && @opportunity_callback_url.to_s.length > 1000
|
|
619
|
+
return false if !@purchasing_callback_url.nil? && @purchasing_callback_url.to_s.length > 1000
|
|
620
|
+
return false if !@project_callback_url.nil? && @project_callback_url.to_s.length > 1000
|
|
621
|
+
return false if !@configuration_callback_url.nil? && @configuration_callback_url.to_s.length > 1000
|
|
622
|
+
return false if !@schedule_callback_url.nil? && @schedule_callback_url.to_s.length > 1000
|
|
623
|
+
return false if !@agreement_callback_url.nil? && @agreement_callback_url.to_s.length > 1000
|
|
548
624
|
return true
|
|
549
625
|
end
|
|
550
626
|
|
|
@@ -555,8 +631,8 @@ module Connectwise
|
|
|
555
631
|
fail ArgumentError, "username cannot be nil"
|
|
556
632
|
end
|
|
557
633
|
|
|
558
|
-
if username.to_s.length
|
|
559
|
-
fail ArgumentError, "invalid value for 'username', the character length must be
|
|
634
|
+
if username.to_s.length > 50
|
|
635
|
+
fail ArgumentError, "invalid value for 'username', the character length must be smaller than or equal to 50."
|
|
560
636
|
end
|
|
561
637
|
|
|
562
638
|
@username = username
|
|
@@ -569,8 +645,8 @@ module Connectwise
|
|
|
569
645
|
fail ArgumentError, "password cannot be nil"
|
|
570
646
|
end
|
|
571
647
|
|
|
572
|
-
if password.to_s.length
|
|
573
|
-
fail ArgumentError, "invalid value for 'password', the character length must be
|
|
648
|
+
if password.to_s.length > 50
|
|
649
|
+
fail ArgumentError, "invalid value for 'password', the character length must be smaller than or equal to 50."
|
|
574
650
|
end
|
|
575
651
|
|
|
576
652
|
@password = password
|
|
@@ -579,12 +655,9 @@ module Connectwise
|
|
|
579
655
|
# Custom attribute writer method with validation
|
|
580
656
|
# @param [Object] service_board_callback_url Value to be assigned
|
|
581
657
|
def service_board_callback_url=(service_board_callback_url)
|
|
582
|
-
if service_board_callback_url.nil?
|
|
583
|
-
fail ArgumentError, "service_board_callback_url cannot be nil"
|
|
584
|
-
end
|
|
585
658
|
|
|
586
|
-
if service_board_callback_url.to_s.length
|
|
587
|
-
fail ArgumentError, "invalid value for 'service_board_callback_url', the character length must be
|
|
659
|
+
if !service_board_callback_url.nil? && service_board_callback_url.to_s.length > 1000
|
|
660
|
+
fail ArgumentError, "invalid value for 'service_board_callback_url', the character length must be smaller than or equal to 1000."
|
|
588
661
|
end
|
|
589
662
|
|
|
590
663
|
@service_board_callback_url = service_board_callback_url
|
|
@@ -593,12 +666,9 @@ module Connectwise
|
|
|
593
666
|
# Custom attribute writer method with validation
|
|
594
667
|
# @param [Object] time_entry_callback_url Value to be assigned
|
|
595
668
|
def time_entry_callback_url=(time_entry_callback_url)
|
|
596
|
-
if time_entry_callback_url.nil?
|
|
597
|
-
fail ArgumentError, "time_entry_callback_url cannot be nil"
|
|
598
|
-
end
|
|
599
669
|
|
|
600
|
-
if time_entry_callback_url.to_s.length
|
|
601
|
-
fail ArgumentError, "invalid value for 'time_entry_callback_url', the character length must be
|
|
670
|
+
if !time_entry_callback_url.nil? && time_entry_callback_url.to_s.length > 1000
|
|
671
|
+
fail ArgumentError, "invalid value for 'time_entry_callback_url', the character length must be smaller than or equal to 1000."
|
|
602
672
|
end
|
|
603
673
|
|
|
604
674
|
@time_entry_callback_url = time_entry_callback_url
|
|
@@ -607,12 +677,9 @@ module Connectwise
|
|
|
607
677
|
# Custom attribute writer method with validation
|
|
608
678
|
# @param [Object] contact_callback_url Value to be assigned
|
|
609
679
|
def contact_callback_url=(contact_callback_url)
|
|
610
|
-
if contact_callback_url.nil?
|
|
611
|
-
fail ArgumentError, "contact_callback_url cannot be nil"
|
|
612
|
-
end
|
|
613
680
|
|
|
614
|
-
if contact_callback_url.to_s.length
|
|
615
|
-
fail ArgumentError, "invalid value for 'contact_callback_url', the character length must be
|
|
681
|
+
if !contact_callback_url.nil? && contact_callback_url.to_s.length > 1000
|
|
682
|
+
fail ArgumentError, "invalid value for 'contact_callback_url', the character length must be smaller than or equal to 1000."
|
|
616
683
|
end
|
|
617
684
|
|
|
618
685
|
@contact_callback_url = contact_callback_url
|
|
@@ -621,12 +688,9 @@ module Connectwise
|
|
|
621
688
|
# Custom attribute writer method with validation
|
|
622
689
|
# @param [Object] company_callback_url Value to be assigned
|
|
623
690
|
def company_callback_url=(company_callback_url)
|
|
624
|
-
if company_callback_url.nil?
|
|
625
|
-
fail ArgumentError, "company_callback_url cannot be nil"
|
|
626
|
-
end
|
|
627
691
|
|
|
628
|
-
if company_callback_url.to_s.length
|
|
629
|
-
fail ArgumentError, "invalid value for 'company_callback_url', the character length must be
|
|
692
|
+
if !company_callback_url.nil? && company_callback_url.to_s.length > 1000
|
|
693
|
+
fail ArgumentError, "invalid value for 'company_callback_url', the character length must be smaller than or equal to 1000."
|
|
630
694
|
end
|
|
631
695
|
|
|
632
696
|
@company_callback_url = company_callback_url
|
|
@@ -635,12 +699,9 @@ module Connectwise
|
|
|
635
699
|
# Custom attribute writer method with validation
|
|
636
700
|
# @param [Object] activity_callback_url Value to be assigned
|
|
637
701
|
def activity_callback_url=(activity_callback_url)
|
|
638
|
-
if activity_callback_url.nil?
|
|
639
|
-
fail ArgumentError, "activity_callback_url cannot be nil"
|
|
640
|
-
end
|
|
641
702
|
|
|
642
|
-
if activity_callback_url.to_s.length
|
|
643
|
-
fail ArgumentError, "invalid value for 'activity_callback_url', the character length must be
|
|
703
|
+
if !activity_callback_url.nil? && activity_callback_url.to_s.length > 1000
|
|
704
|
+
fail ArgumentError, "invalid value for 'activity_callback_url', the character length must be smaller than or equal to 1000."
|
|
644
705
|
end
|
|
645
706
|
|
|
646
707
|
@activity_callback_url = activity_callback_url
|
|
@@ -649,12 +710,9 @@ module Connectwise
|
|
|
649
710
|
# Custom attribute writer method with validation
|
|
650
711
|
# @param [Object] product_callback_url Value to be assigned
|
|
651
712
|
def product_callback_url=(product_callback_url)
|
|
652
|
-
if product_callback_url.nil?
|
|
653
|
-
fail ArgumentError, "product_callback_url cannot be nil"
|
|
654
|
-
end
|
|
655
713
|
|
|
656
|
-
if product_callback_url.to_s.length
|
|
657
|
-
fail ArgumentError, "invalid value for 'product_callback_url', the character length must be
|
|
714
|
+
if !product_callback_url.nil? && product_callback_url.to_s.length > 1000
|
|
715
|
+
fail ArgumentError, "invalid value for 'product_callback_url', the character length must be smaller than or equal to 1000."
|
|
658
716
|
end
|
|
659
717
|
|
|
660
718
|
@product_callback_url = product_callback_url
|
|
@@ -663,12 +721,9 @@ module Connectwise
|
|
|
663
721
|
# Custom attribute writer method with validation
|
|
664
722
|
# @param [Object] opportunity_callback_url Value to be assigned
|
|
665
723
|
def opportunity_callback_url=(opportunity_callback_url)
|
|
666
|
-
if opportunity_callback_url.nil?
|
|
667
|
-
fail ArgumentError, "opportunity_callback_url cannot be nil"
|
|
668
|
-
end
|
|
669
724
|
|
|
670
|
-
if opportunity_callback_url.to_s.length
|
|
671
|
-
fail ArgumentError, "invalid value for 'opportunity_callback_url', the character length must be
|
|
725
|
+
if !opportunity_callback_url.nil? && opportunity_callback_url.to_s.length > 1000
|
|
726
|
+
fail ArgumentError, "invalid value for 'opportunity_callback_url', the character length must be smaller than or equal to 1000."
|
|
672
727
|
end
|
|
673
728
|
|
|
674
729
|
@opportunity_callback_url = opportunity_callback_url
|
|
@@ -677,12 +732,9 @@ module Connectwise
|
|
|
677
732
|
# Custom attribute writer method with validation
|
|
678
733
|
# @param [Object] purchasing_callback_url Value to be assigned
|
|
679
734
|
def purchasing_callback_url=(purchasing_callback_url)
|
|
680
|
-
if purchasing_callback_url.nil?
|
|
681
|
-
fail ArgumentError, "purchasing_callback_url cannot be nil"
|
|
682
|
-
end
|
|
683
735
|
|
|
684
|
-
if purchasing_callback_url.to_s.length
|
|
685
|
-
fail ArgumentError, "invalid value for 'purchasing_callback_url', the character length must be
|
|
736
|
+
if !purchasing_callback_url.nil? && purchasing_callback_url.to_s.length > 1000
|
|
737
|
+
fail ArgumentError, "invalid value for 'purchasing_callback_url', the character length must be smaller than or equal to 1000."
|
|
686
738
|
end
|
|
687
739
|
|
|
688
740
|
@purchasing_callback_url = purchasing_callback_url
|
|
@@ -691,12 +743,9 @@ module Connectwise
|
|
|
691
743
|
# Custom attribute writer method with validation
|
|
692
744
|
# @param [Object] project_callback_url Value to be assigned
|
|
693
745
|
def project_callback_url=(project_callback_url)
|
|
694
|
-
if project_callback_url.nil?
|
|
695
|
-
fail ArgumentError, "project_callback_url cannot be nil"
|
|
696
|
-
end
|
|
697
746
|
|
|
698
|
-
if project_callback_url.to_s.length
|
|
699
|
-
fail ArgumentError, "invalid value for 'project_callback_url', the character length must be
|
|
747
|
+
if !project_callback_url.nil? && project_callback_url.to_s.length > 1000
|
|
748
|
+
fail ArgumentError, "invalid value for 'project_callback_url', the character length must be smaller than or equal to 1000."
|
|
700
749
|
end
|
|
701
750
|
|
|
702
751
|
@project_callback_url = project_callback_url
|
|
@@ -705,12 +754,9 @@ module Connectwise
|
|
|
705
754
|
# Custom attribute writer method with validation
|
|
706
755
|
# @param [Object] configuration_callback_url Value to be assigned
|
|
707
756
|
def configuration_callback_url=(configuration_callback_url)
|
|
708
|
-
if configuration_callback_url.nil?
|
|
709
|
-
fail ArgumentError, "configuration_callback_url cannot be nil"
|
|
710
|
-
end
|
|
711
757
|
|
|
712
|
-
if configuration_callback_url.to_s.length
|
|
713
|
-
fail ArgumentError, "invalid value for 'configuration_callback_url', the character length must be
|
|
758
|
+
if !configuration_callback_url.nil? && configuration_callback_url.to_s.length > 1000
|
|
759
|
+
fail ArgumentError, "invalid value for 'configuration_callback_url', the character length must be smaller than or equal to 1000."
|
|
714
760
|
end
|
|
715
761
|
|
|
716
762
|
@configuration_callback_url = configuration_callback_url
|
|
@@ -719,12 +765,9 @@ module Connectwise
|
|
|
719
765
|
# Custom attribute writer method with validation
|
|
720
766
|
# @param [Object] schedule_callback_url Value to be assigned
|
|
721
767
|
def schedule_callback_url=(schedule_callback_url)
|
|
722
|
-
if schedule_callback_url.nil?
|
|
723
|
-
fail ArgumentError, "schedule_callback_url cannot be nil"
|
|
724
|
-
end
|
|
725
768
|
|
|
726
|
-
if schedule_callback_url.to_s.length
|
|
727
|
-
fail ArgumentError, "invalid value for 'schedule_callback_url', the character length must be
|
|
769
|
+
if !schedule_callback_url.nil? && schedule_callback_url.to_s.length > 1000
|
|
770
|
+
fail ArgumentError, "invalid value for 'schedule_callback_url', the character length must be smaller than or equal to 1000."
|
|
728
771
|
end
|
|
729
772
|
|
|
730
773
|
@schedule_callback_url = schedule_callback_url
|
|
@@ -733,12 +776,9 @@ module Connectwise
|
|
|
733
776
|
# Custom attribute writer method with validation
|
|
734
777
|
# @param [Object] agreement_callback_url Value to be assigned
|
|
735
778
|
def agreement_callback_url=(agreement_callback_url)
|
|
736
|
-
if agreement_callback_url.nil?
|
|
737
|
-
fail ArgumentError, "agreement_callback_url cannot be nil"
|
|
738
|
-
end
|
|
739
779
|
|
|
740
|
-
if agreement_callback_url.to_s.length
|
|
741
|
-
fail ArgumentError, "invalid value for 'agreement_callback_url', the character length must be
|
|
780
|
+
if !agreement_callback_url.nil? && agreement_callback_url.to_s.length > 1000
|
|
781
|
+
fail ArgumentError, "invalid value for 'agreement_callback_url', the character length must be smaller than or equal to 1000."
|
|
742
782
|
end
|
|
743
783
|
|
|
744
784
|
@agreement_callback_url = agreement_callback_url
|
|
@@ -452,34 +452,51 @@ module Connectwise
|
|
|
452
452
|
# @return Array for valid properies with the reasons
|
|
453
453
|
def list_invalid_properties
|
|
454
454
|
invalid_properties = Array.new
|
|
455
|
+
|
|
456
|
+
if !@invoice_number.nil? && @invoice_number.to_s.length > 15
|
|
457
|
+
invalid_properties.push("invalid value for 'invoice_number', the character length must be smaller than or equal to 15.")
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
if !@attention.nil? && @attention.to_s.length > 60
|
|
462
|
+
invalid_properties.push("invalid value for 'attention', the character length must be smaller than or equal to 60.")
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
if !@reference.nil? && @reference.to_s.length > 50
|
|
467
|
+
invalid_properties.push("invalid value for 'reference', the character length must be smaller than or equal to 50.")
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
if !@customer_po.nil? && @customer_po.to_s.length > 50
|
|
472
|
+
invalid_properties.push("invalid value for 'customer_po', the character length must be smaller than or equal to 50.")
|
|
473
|
+
end
|
|
474
|
+
|
|
455
475
|
return invalid_properties
|
|
456
476
|
end
|
|
457
477
|
|
|
458
478
|
# Check to see if the all the properties in the model are valid
|
|
459
479
|
# @return true if the model is valid
|
|
460
480
|
def valid?
|
|
461
|
-
return false if @invoice_number.to_s.length
|
|
481
|
+
return false if !@invoice_number.nil? && @invoice_number.to_s.length > 15
|
|
462
482
|
return false if @type.nil?
|
|
463
483
|
type_validator = EnumAttributeValidator.new('String', ["Agreement", "CreditMemo", "DownPayment", "Miscellaneous", "Progress", "Standard"])
|
|
464
484
|
return false unless type_validator.valid?(@type)
|
|
465
485
|
return false if @company.nil?
|
|
466
486
|
apply_to_type_validator = EnumAttributeValidator.new('String', ["All", "Agreement", "Project", "ProjectPhase", "SalesOrder", "Ticket"])
|
|
467
487
|
return false unless apply_to_type_validator.valid?(@apply_to_type)
|
|
468
|
-
return false if @attention.to_s.length
|
|
469
|
-
return false if @reference.to_s.length
|
|
470
|
-
return false if @customer_po.to_s.length
|
|
488
|
+
return false if !@attention.nil? && @attention.to_s.length > 60
|
|
489
|
+
return false if !@reference.nil? && @reference.to_s.length > 50
|
|
490
|
+
return false if !@customer_po.nil? && @customer_po.to_s.length > 50
|
|
471
491
|
return true
|
|
472
492
|
end
|
|
473
493
|
|
|
474
494
|
# Custom attribute writer method with validation
|
|
475
495
|
# @param [Object] invoice_number Value to be assigned
|
|
476
496
|
def invoice_number=(invoice_number)
|
|
477
|
-
if invoice_number.nil?
|
|
478
|
-
fail ArgumentError, "invoice_number cannot be nil"
|
|
479
|
-
end
|
|
480
497
|
|
|
481
|
-
if invoice_number.to_s.length
|
|
482
|
-
fail ArgumentError, "invalid value for 'invoice_number', the character length must be
|
|
498
|
+
if !invoice_number.nil? && invoice_number.to_s.length > 15
|
|
499
|
+
fail ArgumentError, "invalid value for 'invoice_number', the character length must be smaller than or equal to 15."
|
|
483
500
|
end
|
|
484
501
|
|
|
485
502
|
@invoice_number = invoice_number
|
|
@@ -508,12 +525,9 @@ module Connectwise
|
|
|
508
525
|
# Custom attribute writer method with validation
|
|
509
526
|
# @param [Object] attention Value to be assigned
|
|
510
527
|
def attention=(attention)
|
|
511
|
-
if attention.nil?
|
|
512
|
-
fail ArgumentError, "attention cannot be nil"
|
|
513
|
-
end
|
|
514
528
|
|
|
515
|
-
if attention.to_s.length
|
|
516
|
-
fail ArgumentError, "invalid value for 'attention', the character length must be
|
|
529
|
+
if !attention.nil? && attention.to_s.length > 60
|
|
530
|
+
fail ArgumentError, "invalid value for 'attention', the character length must be smaller than or equal to 60."
|
|
517
531
|
end
|
|
518
532
|
|
|
519
533
|
@attention = attention
|
|
@@ -522,12 +536,9 @@ module Connectwise
|
|
|
522
536
|
# Custom attribute writer method with validation
|
|
523
537
|
# @param [Object] reference Value to be assigned
|
|
524
538
|
def reference=(reference)
|
|
525
|
-
if reference.nil?
|
|
526
|
-
fail ArgumentError, "reference cannot be nil"
|
|
527
|
-
end
|
|
528
539
|
|
|
529
|
-
if reference.to_s.length
|
|
530
|
-
fail ArgumentError, "invalid value for 'reference', the character length must be
|
|
540
|
+
if !reference.nil? && reference.to_s.length > 50
|
|
541
|
+
fail ArgumentError, "invalid value for 'reference', the character length must be smaller than or equal to 50."
|
|
531
542
|
end
|
|
532
543
|
|
|
533
544
|
@reference = reference
|
|
@@ -536,12 +547,9 @@ module Connectwise
|
|
|
536
547
|
# Custom attribute writer method with validation
|
|
537
548
|
# @param [Object] customer_po Value to be assigned
|
|
538
549
|
def customer_po=(customer_po)
|
|
539
|
-
if customer_po.nil?
|
|
540
|
-
fail ArgumentError, "customer_po cannot be nil"
|
|
541
|
-
end
|
|
542
550
|
|
|
543
|
-
if customer_po.to_s.length
|
|
544
|
-
fail ArgumentError, "invalid value for 'customer_po', the character length must be
|
|
551
|
+
if !customer_po.nil? && customer_po.to_s.length > 50
|
|
552
|
+
fail ArgumentError, "invalid value for 'customer_po', the character length must be smaller than or equal to 50."
|
|
545
553
|
end
|
|
546
554
|
|
|
547
555
|
@customer_po = customer_po
|
|
@@ -128,6 +128,14 @@ module Connectwise
|
|
|
128
128
|
# @return Array for valid properies with the reasons
|
|
129
129
|
def list_invalid_properties
|
|
130
130
|
invalid_properties = Array.new
|
|
131
|
+
if @name.nil?
|
|
132
|
+
invalid_properties.push("invalid value for 'name', name cannot be nil.")
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if @name.to_s.length > 50
|
|
136
|
+
invalid_properties.push("invalid value for 'name', the character length must be smaller than or equal to 50.")
|
|
137
|
+
end
|
|
138
|
+
|
|
131
139
|
return invalid_properties
|
|
132
140
|
end
|
|
133
141
|
|
|
@@ -135,7 +143,7 @@ module Connectwise
|
|
|
135
143
|
# @return true if the model is valid
|
|
136
144
|
def valid?
|
|
137
145
|
return false if @name.nil?
|
|
138
|
-
return false if @name.to_s.length
|
|
146
|
+
return false if @name.to_s.length > 50
|
|
139
147
|
return true
|
|
140
148
|
end
|
|
141
149
|
|
|
@@ -146,8 +154,8 @@ module Connectwise
|
|
|
146
154
|
fail ArgumentError, "name cannot be nil"
|
|
147
155
|
end
|
|
148
156
|
|
|
149
|
-
if name.to_s.length
|
|
150
|
-
fail ArgumentError, "invalid value for 'name', the character length must be
|
|
157
|
+
if name.to_s.length > 50
|
|
158
|
+
fail ArgumentError, "invalid value for 'name', the character length must be smaller than or equal to 50."
|
|
151
159
|
end
|
|
152
160
|
|
|
153
161
|
@name = name
|