From ba4e4862b78c232860a4053d68d0d956b5980403 Mon Sep 17 00:00:00 2001 From: serknight Date: Tue, 29 Sep 2020 16:06:32 -0600 Subject: [PATCH] fix tracking category option length --- docs/accounting/TrackingOption.md | 6 +++--- .../models/accounting/tracking_option.rb | 16 ++++++++-------- lib/xero-ruby/version.rb | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/accounting/TrackingOption.md b/docs/accounting/TrackingOption.md index dc18756c..696e189b 100644 --- a/docs/accounting/TrackingOption.md +++ b/docs/accounting/TrackingOption.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**tracking_option_id** | **String** | The Xero identifier for a tracking optione.g. ae777a87-5ef3-4fa0-a4f0-d10e1f13073a | [optional] -**name** | **String** | The name of the tracking option e.g. Marketing, East (max length = 50) | [optional] +**tracking_option_id** | **String** | The Xero identifier for a tracking option e.g. ae777a87-5ef3-4fa0-a4f0-d10e1f13073a | [optional] +**name** | **String** | The name of the tracking option e.g. Marketing, East (max length = 100) | [optional] **status** | **String** | The status of a tracking option | [optional] -**tracking_category_id** | **String** | Filter by a tracking categorye.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional] +**tracking_category_id** | **String** | Filter by a tracking category e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional] ## Code Sample diff --git a/lib/xero-ruby/models/accounting/tracking_option.rb b/lib/xero-ruby/models/accounting/tracking_option.rb index 5b2f5781..53dfbc08 100644 --- a/lib/xero-ruby/models/accounting/tracking_option.rb +++ b/lib/xero-ruby/models/accounting/tracking_option.rb @@ -17,10 +17,10 @@ module XeroRuby::Accounting require 'bigdecimal' class TrackingOption - # The Xero identifier for a tracking optione.g. ae777a87-5ef3-4fa0-a4f0-d10e1f13073a + # The Xero identifier for a tracking option e.g. ae777a87-5ef3-4fa0-a4f0-d10e1f13073a attr_accessor :tracking_option_id - # The name of the tracking option e.g. Marketing, East (max length = 50) + # The name of the tracking option e.g. Marketing, East (max length = 100) attr_accessor :name # The status of a tracking option @@ -29,7 +29,7 @@ class TrackingOption ARCHIVED = "ARCHIVED".freeze DELETED = "DELETED".freeze - # Filter by a tracking categorye.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 + # Filter by a tracking category e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 attr_accessor :tracking_category_id class EnumAttributeValidator @@ -110,8 +110,8 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if !@name.nil? && @name.to_s.length > 50 - invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.') + if !@name.nil? && @name.to_s.length > 100 + invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.') end invalid_properties @@ -120,7 +120,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if !@name.nil? && @name.to_s.length > 50 + return false if !@name.nil? && @name.to_s.length > 100 status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "ARCHIVED", "DELETED"]) return false unless status_validator.valid?(@status) true @@ -129,8 +129,8 @@ def valid? # Custom attribute writer method with validation # @param [Object] name Value to be assigned def name=(name) - if !name.nil? && name.to_s.length > 50 - fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 50.' + if !name.nil? && name.to_s.length > 100 + fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.' end @name = name diff --git a/lib/xero-ruby/version.rb b/lib/xero-ruby/version.rb index 308a1e67..bfb54c0f 100644 --- a/lib/xero-ruby/version.rb +++ b/lib/xero-ruby/version.rb @@ -11,5 +11,5 @@ =end module XeroRuby - VERSION = '2.2.3' + VERSION = '2.2.4' end