xero-ruby 2.2.3 → 2.2.4
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6ae2e8772203dceda94efdeb03ef38bbab00e54f53aa7e68204b87a03480ee8
|
4
|
+
data.tar.gz: 519604b3420b92549fe982cc743f0754c1e95ca47e486e726da2c76d58d5d230
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f618c256091aabab5396b445a7d0a8330eb54e02c6bf87e3ba6efc87542eaf0dff40e4071014f0412200012dc2887ee813dc8de2e27bfe19763b2f282da6500c
|
7
|
+
data.tar.gz: 4d18adaf3139ae834d9997a8150d6942d4047c2ea2b6967eb0d21ffba0af74db7aeb61e3e2809f71c9be7cd0f459c732cc68c2f5c36bd3cf25b734b57df4cbdc
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**tracking_option_id** | **String** | The Xero identifier for a tracking
|
8
|
-
**name** | **String** | The name of the tracking option e.g. Marketing, East (max length =
|
7
|
+
**tracking_option_id** | **String** | The Xero identifier for a tracking option e.g. ae777a87-5ef3-4fa0-a4f0-d10e1f13073a | [optional]
|
8
|
+
**name** | **String** | The name of the tracking option e.g. Marketing, East (max length = 100) | [optional]
|
9
9
|
**status** | **String** | The status of a tracking option | [optional]
|
10
|
-
**tracking_category_id** | **String** | Filter by a tracking
|
10
|
+
**tracking_category_id** | **String** | Filter by a tracking category e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional]
|
11
11
|
|
12
12
|
## Code Sample
|
13
13
|
|
@@ -17,10 +17,10 @@ module XeroRuby::Accounting
|
|
17
17
|
require 'bigdecimal'
|
18
18
|
|
19
19
|
class TrackingOption
|
20
|
-
# The Xero identifier for a tracking
|
20
|
+
# The Xero identifier for a tracking option e.g. ae777a87-5ef3-4fa0-a4f0-d10e1f13073a
|
21
21
|
attr_accessor :tracking_option_id
|
22
22
|
|
23
|
-
# The name of the tracking option e.g. Marketing, East (max length =
|
23
|
+
# The name of the tracking option e.g. Marketing, East (max length = 100)
|
24
24
|
attr_accessor :name
|
25
25
|
|
26
26
|
# The status of a tracking option
|
@@ -29,7 +29,7 @@ module XeroRuby::Accounting
|
|
29
29
|
ARCHIVED = "ARCHIVED".freeze
|
30
30
|
DELETED = "DELETED".freeze
|
31
31
|
|
32
|
-
# Filter by a tracking
|
32
|
+
# Filter by a tracking category e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9
|
33
33
|
attr_accessor :tracking_category_id
|
34
34
|
|
35
35
|
class EnumAttributeValidator
|
@@ -110,8 +110,8 @@ module XeroRuby::Accounting
|
|
110
110
|
# @return Array for valid properties with the reasons
|
111
111
|
def list_invalid_properties
|
112
112
|
invalid_properties = Array.new
|
113
|
-
if !@name.nil? && @name.to_s.length >
|
114
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to
|
113
|
+
if !@name.nil? && @name.to_s.length > 100
|
114
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 100.')
|
115
115
|
end
|
116
116
|
|
117
117
|
invalid_properties
|
@@ -120,7 +120,7 @@ module XeroRuby::Accounting
|
|
120
120
|
# Check to see if the all the properties in the model are valid
|
121
121
|
# @return true if the model is valid
|
122
122
|
def valid?
|
123
|
-
return false if !@name.nil? && @name.to_s.length >
|
123
|
+
return false if !@name.nil? && @name.to_s.length > 100
|
124
124
|
status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "ARCHIVED", "DELETED"])
|
125
125
|
return false unless status_validator.valid?(@status)
|
126
126
|
true
|
@@ -129,8 +129,8 @@ module XeroRuby::Accounting
|
|
129
129
|
# Custom attribute writer method with validation
|
130
130
|
# @param [Object] name Value to be assigned
|
131
131
|
def name=(name)
|
132
|
-
if !name.nil? && name.to_s.length >
|
133
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to
|
132
|
+
if !name.nil? && name.to_s.length > 100
|
133
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
|
134
134
|
end
|
135
135
|
|
136
136
|
@name = name
|
data/lib/xero-ruby/version.rb
CHANGED
data/xero-ruby-2.2.3.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xero-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xero API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -534,6 +534,7 @@ files:
|
|
534
534
|
- spec/projects/models/time_entry_create_or_update_spec.rb
|
535
535
|
- spec/projects/models/time_entry_spec.rb
|
536
536
|
- spec/spec_helper.rb
|
537
|
+
- xero-ruby-2.2.3.gem
|
537
538
|
- xero-ruby.gem
|
538
539
|
- xero-ruby.gemspec
|
539
540
|
homepage: https://developer.xero.com
|