xero-ruby 3.7.1 → 3.8.0
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: 64ea98826b9c024df40c0e3db6390722313e610c19b74a32f9200aa032fa8de9
|
4
|
+
data.tar.gz: 2b8d8f8fe9bd8909d3ea64f814763787752313ef3b224218f4e373af5bf13a7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acf352b5dc0ab2bc6fe5de48b1ad0fdac7e90ecf1828f9a1184d93b4663f4a5c67b32085430471c4264fbbea98e2015ef30414da5324b5b522df84dde10ed5bc
|
7
|
+
data.tar.gz: b41a5a3cfd6cd0086991173efc0430c8b5d53e9776f0636400b1d53411f006e722b8f0c2bf903b3a4f0f487a3583fbdfe0d9d79cbeb18f387d18cefac64ddc69
|
@@ -22,13 +22,17 @@ module XeroRuby::AppStore
|
|
22
22
|
# The name of the product
|
23
23
|
attr_accessor :name
|
24
24
|
|
25
|
-
# The
|
25
|
+
# The unit of the per seat product. e.g. \"user\", \"organisation\", \"SMS\", etc
|
26
|
+
attr_accessor :seat_unit
|
27
|
+
|
28
|
+
# The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product
|
26
29
|
attr_accessor :type
|
27
30
|
FIXED ||= "FIXED".freeze
|
28
31
|
PER_SEAT ||= "PER_SEAT".freeze
|
32
|
+
METERED ||= "METERED".freeze
|
29
33
|
|
30
|
-
# The unit of the
|
31
|
-
attr_accessor :
|
34
|
+
# The unit of the usage product. e.g. \"user\", \"minutes\", \"SMS\", etc
|
35
|
+
attr_accessor :usage_unit
|
32
36
|
|
33
37
|
class EnumAttributeValidator
|
34
38
|
attr_reader :datatype
|
@@ -57,8 +61,9 @@ module XeroRuby::AppStore
|
|
57
61
|
{
|
58
62
|
:'id' => :'id',
|
59
63
|
:'name' => :'name',
|
64
|
+
:'seat_unit' => :'seatUnit',
|
60
65
|
:'type' => :'type',
|
61
|
-
:'
|
66
|
+
:'usage_unit' => :'usageUnit'
|
62
67
|
}
|
63
68
|
end
|
64
69
|
|
@@ -67,8 +72,9 @@ module XeroRuby::AppStore
|
|
67
72
|
{
|
68
73
|
:'id' => :'String',
|
69
74
|
:'name' => :'String',
|
75
|
+
:'seat_unit' => :'String',
|
70
76
|
:'type' => :'String',
|
71
|
-
:'
|
77
|
+
:'usage_unit' => :'String'
|
72
78
|
}
|
73
79
|
end
|
74
80
|
|
@@ -95,12 +101,16 @@ module XeroRuby::AppStore
|
|
95
101
|
self.name = attributes[:'name']
|
96
102
|
end
|
97
103
|
|
104
|
+
if attributes.key?(:'seat_unit')
|
105
|
+
self.seat_unit = attributes[:'seat_unit']
|
106
|
+
end
|
107
|
+
|
98
108
|
if attributes.key?(:'type')
|
99
109
|
self.type = attributes[:'type']
|
100
110
|
end
|
101
111
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
self.
|
112
|
+
if attributes.key?(:'usage_unit')
|
113
|
+
self.usage_unit = attributes[:'usage_unit']
|
104
114
|
end
|
105
115
|
end
|
106
116
|
|
@@ -114,7 +124,7 @@ module XeroRuby::AppStore
|
|
114
124
|
# Check to see if the all the properties in the model are valid
|
115
125
|
# @return true if the model is valid
|
116
126
|
def valid?
|
117
|
-
type_validator = EnumAttributeValidator.new('String', ["FIXED", "PER_SEAT"])
|
127
|
+
type_validator = EnumAttributeValidator.new('String', ["FIXED", "PER_SEAT", "METERED"])
|
118
128
|
return false unless type_validator.valid?(@type)
|
119
129
|
true
|
120
130
|
end
|
@@ -122,7 +132,7 @@ module XeroRuby::AppStore
|
|
122
132
|
# Custom attribute writer method checking allowed values (enum).
|
123
133
|
# @param [Object] type Object to be assigned
|
124
134
|
def type=(type)
|
125
|
-
validator = EnumAttributeValidator.new('String', ["FIXED", "PER_SEAT"])
|
135
|
+
validator = EnumAttributeValidator.new('String', ["FIXED", "PER_SEAT", "METERED"])
|
126
136
|
unless validator.valid?(type)
|
127
137
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
128
138
|
end
|
@@ -136,8 +146,9 @@ module XeroRuby::AppStore
|
|
136
146
|
self.class == o.class &&
|
137
147
|
id == o.id &&
|
138
148
|
name == o.name &&
|
149
|
+
seat_unit == o.seat_unit &&
|
139
150
|
type == o.type &&
|
140
|
-
|
151
|
+
usage_unit == o.usage_unit
|
141
152
|
end
|
142
153
|
|
143
154
|
# @see the `==` method
|
@@ -149,7 +160,7 @@ module XeroRuby::AppStore
|
|
149
160
|
# Calculates hash code according to all attributes.
|
150
161
|
# @return [Integer] Hash code
|
151
162
|
def hash
|
152
|
-
[id, name, type,
|
163
|
+
[id, name, seat_unit, type, usage_unit].hash
|
153
164
|
end
|
154
165
|
|
155
166
|
# Builds the object from hash
|
@@ -28,6 +28,9 @@ module XeroRuby::AppStore
|
|
28
28
|
|
29
29
|
attr_accessor :product
|
30
30
|
|
31
|
+
# The quantity of the item. For a fixed product, it is 1. For a per-seat product, it is a positive integer. For metered products, it is always null.
|
32
|
+
attr_accessor :quantity
|
33
|
+
|
31
34
|
# Date the subscription started, or will start. Note: this could be in the future for downgrades or reduced number of seats that haven't taken effect yet.
|
32
35
|
attr_accessor :start_date
|
33
36
|
|
@@ -69,6 +72,7 @@ module XeroRuby::AppStore
|
|
69
72
|
:'id' => :'id',
|
70
73
|
:'price' => :'price',
|
71
74
|
:'product' => :'product',
|
75
|
+
:'quantity' => :'quantity',
|
72
76
|
:'start_date' => :'startDate',
|
73
77
|
:'status' => :'status',
|
74
78
|
:'test_mode' => :'testMode'
|
@@ -82,6 +86,7 @@ module XeroRuby::AppStore
|
|
82
86
|
:'id' => :'String',
|
83
87
|
:'price' => :'Price',
|
84
88
|
:'product' => :'Product',
|
89
|
+
:'quantity' => :'Integer',
|
85
90
|
:'start_date' => :'DateTime',
|
86
91
|
:'status' => :'String',
|
87
92
|
:'test_mode' => :'Boolean'
|
@@ -119,6 +124,10 @@ module XeroRuby::AppStore
|
|
119
124
|
self.product = attributes[:'product']
|
120
125
|
end
|
121
126
|
|
127
|
+
if attributes.key?(:'quantity')
|
128
|
+
self.quantity = attributes[:'quantity']
|
129
|
+
end
|
130
|
+
|
122
131
|
if attributes.key?(:'start_date')
|
123
132
|
self.start_date = attributes[:'start_date']
|
124
133
|
end
|
@@ -191,6 +200,7 @@ module XeroRuby::AppStore
|
|
191
200
|
id == o.id &&
|
192
201
|
price == o.price &&
|
193
202
|
product == o.product &&
|
203
|
+
quantity == o.quantity &&
|
194
204
|
start_date == o.start_date &&
|
195
205
|
status == o.status &&
|
196
206
|
test_mode == o.test_mode
|
@@ -205,7 +215,7 @@ module XeroRuby::AppStore
|
|
205
215
|
# Calculates hash code according to all attributes.
|
206
216
|
# @return [Integer] Hash code
|
207
217
|
def hash
|
208
|
-
[end_date, id, price, product, start_date, status, test_mode].hash
|
218
|
+
[end_date, id, price, product, quantity, start_date, status, test_mode].hash
|
209
219
|
end
|
210
220
|
|
211
221
|
# Builds the object from hash
|
@@ -30,11 +30,16 @@ module XeroRuby::PayrollUk
|
|
30
30
|
A ||= "A".freeze
|
31
31
|
B ||= "B".freeze
|
32
32
|
C ||= "C".freeze
|
33
|
+
F ||= "F".freeze
|
33
34
|
H ||= "H".freeze
|
35
|
+
I ||= "I".freeze
|
34
36
|
J ||= "J".freeze
|
37
|
+
L ||= "L".freeze
|
35
38
|
M ||= "M".freeze
|
36
|
-
|
39
|
+
S ||= "S".freeze
|
40
|
+
V ||= "V".freeze
|
37
41
|
X ||= "X".freeze
|
42
|
+
Z ||= "Z".freeze
|
38
43
|
|
39
44
|
class EnumAttributeValidator
|
40
45
|
attr_reader :datatype
|
@@ -120,7 +125,7 @@ module XeroRuby::PayrollUk
|
|
120
125
|
# Check to see if the all the properties in the model are valid
|
121
126
|
# @return true if the model is valid
|
122
127
|
def valid?
|
123
|
-
ni_category_validator = EnumAttributeValidator.new('String', ["A", "B", "C", "H", "J", "M", "
|
128
|
+
ni_category_validator = EnumAttributeValidator.new('String', ["A", "B", "C", "F", "H", "I", "J", "L", "M", "S", "V", "X", "Z"])
|
124
129
|
return false unless ni_category_validator.valid?(@ni_category)
|
125
130
|
true
|
126
131
|
end
|
@@ -128,7 +133,7 @@ module XeroRuby::PayrollUk
|
|
128
133
|
# Custom attribute writer method checking allowed values (enum).
|
129
134
|
# @param [Object] ni_category Object to be assigned
|
130
135
|
def ni_category=(ni_category)
|
131
|
-
validator = EnumAttributeValidator.new('String', ["A", "B", "C", "H", "J", "M", "
|
136
|
+
validator = EnumAttributeValidator.new('String', ["A", "B", "C", "F", "H", "I", "J", "L", "M", "S", "V", "X", "Z"])
|
132
137
|
unless validator.valid?(ni_category)
|
133
138
|
fail ArgumentError, "invalid value for \"ni_category\", must be one of #{validator.allowable_values}."
|
134
139
|
end
|
data/lib/xero-ruby/version.rb
CHANGED
@@ -7,9 +7,9 @@ Contact: api@xero.com
|
|
7
7
|
Generated by: https://openapi-generator.tech
|
8
8
|
OpenAPI Generator version: 4.3.1
|
9
9
|
|
10
|
-
The version of the XeroOpenAPI document: 2.
|
10
|
+
The version of the XeroOpenAPI document: 2.21.0
|
11
11
|
=end
|
12
12
|
|
13
13
|
module XeroRuby
|
14
|
-
VERSION = '3.
|
14
|
+
VERSION = '3.8.0'
|
15
15
|
end
|
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: 3.
|
4
|
+
version: 3.8.0
|
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: 2022-
|
11
|
+
date: 2022-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|