xero-ruby 6.0.0 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/xero-ruby/models/accounting/organisation.rb +5 -2
- data/lib/xero-ruby/models/files/association.rb +31 -1
- data/lib/xero-ruby/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d67efc5594cf08152e6c19e21be97c9d10523fb57b0417f8e25bae32c661529
|
4
|
+
data.tar.gz: b1450c96d030b62fc025c5487e8d6f3df56cc3a76cec6528adab922de24b66f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33c8ac8aff08468d9a45d5b6c07c567d0af5ba22ac0e10354669c219d87436f3c37a19fd694e6fec9124966722dde4f3b1a397ccc4d354cf9a292922d8c7b6ac
|
7
|
+
data.tar.gz: be35c7fb0ecc15333ab0cca08a694ca2d237d2c9be91a534d3bfc0ff6990a05f77789400cd5fee62ed1ce83568ca0c06dc2a82e85b86c6b5e9e2f5b88553ffed
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ Sample apps can get you started quickly with simple auth flows to advanced usage
|
|
46
46
|
| --- | --- | --- |
|
47
47
|
| [`xero-ruby-oauth2-starter`](https://github.com/XeroAPI/Xero-ruby-oauth2-starter) | A Sinatra application showing the basic getting started code to work with the sdk | <img src="https://i.imgur.com/9H4F98M.png" alt="drawing" width="300"/>
|
48
48
|
| [`xero-ruby-oauth2-app`](https://github.com/XeroAPI/Xero-ruby-oauth2-app) | Complete rails app with +95% of api set examples, complex filters, pagination, and user/token management in postgres | <img src="https://i.imgur.com/XsAp9Ww.png" alt="drawing" width="500"/>
|
49
|
-
| [`xero-ruby-custom-connections-starter`](https://github.com/XeroAPI/xero-ruby-custom-connections-starter) | A getting started Sinatra app showing Custom Connections - a Xero [premium option](https://developer.xero.com/documentation/oauth2/custom-connections) for building M2M integrations to a single org | <img src="https://i.imgur.com/YEkScui.png" alt="drawing" width="300"/>
|
49
|
+
| [`xero-ruby-custom-connections-starter`](https://github.com/XeroAPI/xero-ruby-custom-connections-starter) | A getting started Sinatra app showing Custom Connections - a Xero [premium option](https://developer.xero.com/documentation/guides/oauth2/custom-connections) for building M2M integrations to a single org | <img src="https://i.imgur.com/YEkScui.png" alt="drawing" width="300"/>
|
50
50
|
| [`xero-ruby-sso-form`](https://github.com/XeroAPI/xero-ruby-sso-form) | A basic Sinatra app showing how to implement SSU to Lead | <img src="https://i.imgur.com/Nf95GVd.png" alt="drawing" width="300"/>
|
51
51
|
|
52
52
|
<hr>
|
@@ -168,6 +168,9 @@ module XeroRuby::Accounting
|
|
168
168
|
NON_GST_CASHBOOK ||= "NON_GST_CASHBOOK".freeze
|
169
169
|
ULTIMATE ||= "ULTIMATE".freeze
|
170
170
|
LITE ||= "LITE".freeze
|
171
|
+
IGNITE ||= "IGNITE".freeze
|
172
|
+
GROW ||= "GROW".freeze
|
173
|
+
COMPREHENSIVE ||= "COMPREHENSIVE".freeze
|
171
174
|
|
172
175
|
# BUSINESS or PARTNER. Partner edition organisations are sold exclusively through accounting partners and have restricted functionality (e.g. no access to invoicing)
|
173
176
|
attr_accessor :edition
|
@@ -463,7 +466,7 @@ module XeroRuby::Accounting
|
|
463
466
|
return false unless sales_tax_period_validator.valid?(@sales_tax_period)
|
464
467
|
organisation_entity_type_validator = EnumAttributeValidator.new('String', ["ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "INDIVIDUAL", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST"])
|
465
468
|
return false unless organisation_entity_type_validator.valid?(@organisation_entity_type)
|
466
|
-
_class_validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE"])
|
469
|
+
_class_validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "IGNITE", "GROW", "COMPREHENSIVE"])
|
467
470
|
return false unless _class_validator.valid?(@_class)
|
468
471
|
edition_validator = EnumAttributeValidator.new('String', ["BUSINESS", "PARTNER"])
|
469
472
|
return false unless edition_validator.valid?(@edition)
|
@@ -523,7 +526,7 @@ module XeroRuby::Accounting
|
|
523
526
|
# Custom attribute writer method checking allowed values (enum).
|
524
527
|
# @param [Object] _class Object to be assigned
|
525
528
|
def _class=(_class)
|
526
|
-
validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE"])
|
529
|
+
validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "IGNITE", "GROW", "COMPREHENSIVE"])
|
527
530
|
unless validator.valid?(_class)
|
528
531
|
fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
|
529
532
|
end
|
@@ -16,6 +16,15 @@ module XeroRuby::Files
|
|
16
16
|
require 'bigdecimal'
|
17
17
|
|
18
18
|
class Association
|
19
|
+
# Boolean flag to determines whether the file is sent with the document it is attached to on client facing communications. Note- The SendWithObject element is only returned when using /Associations/{ObjectId} endpoint.
|
20
|
+
attr_accessor :send_with_object
|
21
|
+
|
22
|
+
# The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.
|
23
|
+
attr_accessor :name
|
24
|
+
|
25
|
+
# The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.
|
26
|
+
attr_accessor :size
|
27
|
+
|
19
28
|
# The unique identifier of the file
|
20
29
|
attr_accessor :file_id
|
21
30
|
|
@@ -31,6 +40,9 @@ module XeroRuby::Files
|
|
31
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
41
|
def self.attribute_map
|
33
42
|
{
|
43
|
+
:'send_with_object' => :'SendWithObject',
|
44
|
+
:'name' => :'Name',
|
45
|
+
:'size' => :'Size',
|
34
46
|
:'file_id' => :'FileId',
|
35
47
|
:'object_id' => :'ObjectId',
|
36
48
|
:'object_group' => :'ObjectGroup',
|
@@ -41,6 +53,9 @@ module XeroRuby::Files
|
|
41
53
|
# Attribute type mapping.
|
42
54
|
def self.openapi_types
|
43
55
|
{
|
56
|
+
:'send_with_object' => :'Boolean',
|
57
|
+
:'name' => :'String',
|
58
|
+
:'size' => :'Integer',
|
44
59
|
:'file_id' => :'String',
|
45
60
|
:'object_id' => :'String',
|
46
61
|
:'object_group' => :'ObjectGroup',
|
@@ -63,6 +78,18 @@ module XeroRuby::Files
|
|
63
78
|
h[k.to_sym] = v
|
64
79
|
}
|
65
80
|
|
81
|
+
if attributes.key?(:'send_with_object')
|
82
|
+
self.send_with_object = attributes[:'send_with_object']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'name')
|
86
|
+
self.name = attributes[:'name']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'size')
|
90
|
+
self.size = attributes[:'size']
|
91
|
+
end
|
92
|
+
|
66
93
|
if attributes.key?(:'file_id')
|
67
94
|
self.file_id = attributes[:'file_id']
|
68
95
|
end
|
@@ -98,6 +125,9 @@ module XeroRuby::Files
|
|
98
125
|
def ==(o)
|
99
126
|
return true if self.equal?(o)
|
100
127
|
self.class == o.class &&
|
128
|
+
send_with_object == o.send_with_object &&
|
129
|
+
name == o.name &&
|
130
|
+
size == o.size &&
|
101
131
|
file_id == o.file_id &&
|
102
132
|
object_id == o.object_id &&
|
103
133
|
object_group == o.object_group &&
|
@@ -113,7 +143,7 @@ module XeroRuby::Files
|
|
113
143
|
# Calculates hash code according to all attributes.
|
114
144
|
# @return [Integer] Hash code
|
115
145
|
def hash
|
116
|
-
[file_id, object_id, object_group, object_type].hash
|
146
|
+
[send_with_object, name, size, file_id, object_id, object_group, object_type].hash
|
117
147
|
end
|
118
148
|
|
119
149
|
# Builds the object from hash
|
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:
|
10
|
+
The version of the XeroOpenAPI document: 4.0.0
|
11
11
|
=end
|
12
12
|
|
13
13
|
module XeroRuby
|
14
|
-
VERSION = '
|
14
|
+
VERSION = '7.0.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:
|
4
|
+
version: 7.0.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: 2024-
|
11
|
+
date: 2024-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|