Skip to content

Commit

Permalink
Buid from OAS 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
manishT72x committed Jun 21, 2024
1 parent c1d8727 commit ded44af
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4062,7 +4062,7 @@
"Class" : {
"type" : "string",
"description" : "Organisation Classes describe which plan the Xero organisation is on (e.g. DEMO, TRIAL, PREMIUM)",
"enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE" ]
"enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "IGNITE", "GROW", "COMPREHENSIVE" ]
},
"Edition" : {
"type" : "string",
Expand Down Expand Up @@ -6100,7 +6100,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>7.0.0</li>
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
<li data-group="Accounting" data-name="createAccount" class="">
<a href="#api-Accounting-createAccount">createAccount</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/app_store/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>7.0.0</li>
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
<li data-group="AppStore" data-name="getSubscription" class="">
<a href="#api-AppStore-getSubscription">getSubscription</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>7.0.0</li>
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
<li data-group="Asset" data-name="createAsset" class="">
<a href="#api-Asset-createAsset">createAsset</a>
Expand Down
8 changes: 7 additions & 1 deletion docs/files/Association.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**send_with_object** | **Boolean** | 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. | [optional]
**name** | **String** | The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint. | [optional]
**size** | **Integer** | The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint. | [optional]
**file_id** | **String** | The unique identifier of the file | [optional]
**object_id** | **String** | The identifier of the object that the file is being associated with (e.g. InvoiceID, BankTransactionID, ContactID) | [optional]
**object_group** | [**ObjectGroup**](ObjectGroup.md) | | [optional]
Expand All @@ -14,7 +17,10 @@ Name | Type | Description | Notes
```ruby
require 'XeroRuby::Files'

instance = XeroRuby::Files::Association.new(file_id: null,
instance = XeroRuby::Files::Association.new(send_with_object: true,
name: Test.pdf,
size: 12357,
file_id: null,
object_id: null,
object_group: null,
object_type: null)
Expand Down
17 changes: 16 additions & 1 deletion docs/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,21 @@
"title" : "",
"type" : "object",
"properties" : {
"SendWithObject" : {
"type" : "boolean",
"description" : "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.",
"example" : true
},
"Name" : {
"type" : "string",
"description" : "The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.",
"example" : "Test.pdf"
},
"Size" : {
"type" : "integer",
"description" : "The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.",
"example" : 12357
},
"FileId" : {
"type" : "string",
"description" : "The unique identifier of the file",
Expand Down Expand Up @@ -1155,7 +1170,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>7.0.0</li>
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
<li data-group="Files" data-name="createFileAssociation" class="">
<a href="#api-Files-createFileAssociation">createFileAssociation</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/finance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2734,7 +2734,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>7.0.0</li>
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/payroll_au/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3412,7 +3412,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>7.0.0</li>
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/payroll_nz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3843,7 +3843,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>7.0.0</li>
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/payroll_uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3510,7 +3510,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>7.0.0</li>
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>6.0.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>7.0.0</li>
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
<li data-group="Project" data-name="createProject" class="">
<a href="#api-Project-createProject">createProject</a>
Expand Down
7 changes: 5 additions & 2 deletions lib/xero-ruby/models/accounting/organisation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ class Organisation
NON_GST_CASHBOOK ||= "NON_GST_CASHBOOK".freeze
ULTIMATE ||= "ULTIMATE".freeze
LITE ||= "LITE".freeze
IGNITE ||= "IGNITE".freeze
GROW ||= "GROW".freeze
COMPREHENSIVE ||= "COMPREHENSIVE".freeze

# BUSINESS or PARTNER. Partner edition organisations are sold exclusively through accounting partners and have restricted functionality (e.g. no access to invoicing)
attr_accessor :edition
Expand Down Expand Up @@ -463,7 +466,7 @@ def valid?
return false unless sales_tax_period_validator.valid?(@sales_tax_period)
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"])
return false unless organisation_entity_type_validator.valid?(@organisation_entity_type)
_class_validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE"])
_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"])
return false unless _class_validator.valid?(@_class)
edition_validator = EnumAttributeValidator.new('String', ["BUSINESS", "PARTNER"])
return false unless edition_validator.valid?(@edition)
Expand Down Expand Up @@ -523,7 +526,7 @@ def organisation_entity_type=(organisation_entity_type)
# Custom attribute writer method checking allowed values (enum).
# @param [Object] _class Object to be assigned
def _class=(_class)
validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE"])
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"])
unless validator.valid?(_class)
fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
end
Expand Down
32 changes: 31 additions & 1 deletion lib/xero-ruby/models/files/association.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ module XeroRuby::Files
require 'bigdecimal'

class Association
# 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.
attr_accessor :send_with_object

# The name of the associated file. Note- The Name element is only returned when using /Associations/{ObjectId} endpoint.
attr_accessor :name

# The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.
attr_accessor :size

# The unique identifier of the file
attr_accessor :file_id

Expand All @@ -31,6 +40,9 @@ class Association
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'send_with_object' => :'SendWithObject',
:'name' => :'Name',
:'size' => :'Size',
:'file_id' => :'FileId',
:'object_id' => :'ObjectId',
:'object_group' => :'ObjectGroup',
Expand All @@ -41,6 +53,9 @@ def self.attribute_map
# Attribute type mapping.
def self.openapi_types
{
:'send_with_object' => :'Boolean',
:'name' => :'String',
:'size' => :'Integer',
:'file_id' => :'String',
:'object_id' => :'String',
:'object_group' => :'ObjectGroup',
Expand All @@ -63,6 +78,18 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'send_with_object')
self.send_with_object = attributes[:'send_with_object']
end

if attributes.key?(:'name')
self.name = attributes[:'name']
end

if attributes.key?(:'size')
self.size = attributes[:'size']
end

if attributes.key?(:'file_id')
self.file_id = attributes[:'file_id']
end
Expand Down Expand Up @@ -98,6 +125,9 @@ def valid?
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
send_with_object == o.send_with_object &&
name == o.name &&
size == o.size &&
file_id == o.file_id &&
object_id == o.object_id &&
object_group == o.object_group &&
Expand All @@ -113,7 +143,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[file_id, object_id, object_group, object_type].hash
[send_with_object, name, size, file_id, object_id, object_group, object_type].hash
end

# Builds the object from hash
Expand Down
4 changes: 2 additions & 2 deletions lib/xero-ruby/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.3.1

The version of the XeroOpenAPI document: 3.0.3
The version of the XeroOpenAPI document: 4.0.0
=end

module XeroRuby
VERSION = '6.0.0'
VERSION = '7.0.0'
end

0 comments on commit ded44af

Please sign in to comment.