Skip to content

Commit 45e98de

Browse files
author
sangeet-joy_xero
committed
Build for version - 12.0.0
1 parent baa28fa commit 45e98de

File tree

11 files changed

+53
-18
lines changed

11 files changed

+53
-18
lines changed

docs/accounting/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6220,7 +6220,7 @@
62206220
"OrganisationRole" : {
62216221
"type" : "string",
62226222
"description" : "User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)",
6223-
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN" ]
6223+
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN", "REMOVED" ]
62246224
}
62256225
},
62266226
"description" : "",

docs/app_store/Product.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**id** | **String** | The unique identifier for the product | [optional]
88
**name** | **String** | The name of the product | [optional]
99
**seat_unit** | **String** | The unit of the per seat product. e.g. \"user\", \"organisation\", \"SMS\", etc | [optional]
10-
**type** | **String** | 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 | [optional]
10+
**type** | **String** | 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 * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature | [optional]
1111
**usage_unit** | **String** | The unit of the usage product. e.g. \"user\", \"minutes\", \"SMS\", etc | [optional]
1212

1313
## Code Sample

docs/app_store/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,8 +976,8 @@
976976
},
977977
"type" : {
978978
"type" : "string",
979-
"description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n",
980-
"enum" : [ "FIXED", "PER_SEAT", "METERED" ]
979+
"description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n* SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature\n",
980+
"enum" : [ "FIXED", "PER_SEAT", "METERED", "SIMPLE" ]
981981
},
982982
"usageUnit" : {
983983
"type" : "string",

docs/files/FilesApi.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,9 @@ opts = {
745745

746746
page: 2, # Integer | number of records to skip for pagination
747747

748-
sort: 'CreatedDateUTC DESC' # String | values to sort by
748+
sort: 'CreatedDateUTC', # String | values to sort by
749+
750+
direction: 'ASC' # String | sort direction
749751
}
750752

751753
begin
@@ -766,6 +768,7 @@ Name | Type | Description | Notes
766768
**pagesize** | **Integer**| pass an optional page size value | [optional]
767769
**page** | **Integer**| number of records to skip for pagination | [optional]
768770
**sort** | **String**| values to sort by | [optional]
771+
**direction** | **String**| sort direction | [optional]
769772

770773
### Return type
771774

docs/files/index.html

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2625,10 +2625,11 @@ <h3>Usage and SDK Samples</h3>
26252625
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
26262626
pagesize = 50
26272627
page = 2
2628-
sort = 'CreatedDateUTC DESC'
2628+
sort = 'CreatedDateUTC'
2629+
direction = 'ASC'
26292630

26302631
begin
2631-
response = xero_client.accounting_api.get_files(xero_tenant_id, pagesize, page, sort)
2632+
response = xero_client.accounting_api.get_files(xero_tenant_id, pagesize, page, sort, direction)
26322633
return response
26332634
rescue XeroRuby::ApiError => e
26342635
puts "Exception when calling get_files: #{e}"
@@ -2745,6 +2746,26 @@ <h2>Parameters</h2>
27452746
</div>
27462747
</div>
27472748
</td>
2749+
</tr>
2750+
2751+
<tr><td style="width:150px;">direction</td>
2752+
<td>
2753+
2754+
2755+
<div id="d2e199_getFiles_direction">
2756+
<div class="json-schema-view">
2757+
<div class="primitive">
2758+
<span class="type">
2759+
String
2760+
</span>
2761+
2762+
<div class="inner description marked">
2763+
sort direction
2764+
</div>
2765+
</div>
2766+
</div>
2767+
</div>
2768+
</td>
27482769
</tr>
27492770

27502771
</table>

docs/payroll_uk/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,7 @@
19541954
"leaveType" : {
19551955
"type" : "string",
19561956
"description" : "The type of statutory leave",
1957-
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
1957+
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
19581958
},
19591959
"balanceRemaining" : {
19601960
"type" : "number",
@@ -2002,7 +2002,7 @@
20022002
"type" : {
20032003
"type" : "string",
20042004
"description" : "The category of statutory leave",
2005-
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
2005+
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
20062006
},
20072007
"startDate" : {
20082008
"type" : "string",

lib/xero-ruby/api/files_api.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ def get_file_content_with_http_info(xero_tenant_id, file_id, options = {})
835835
# @option opts [Integer] :pagesize pass an optional page size value
836836
# @option opts [Integer] :page number of records to skip for pagination
837837
# @option opts [String] :sort values to sort by
838+
# @option opts [String] :direction sort direction
838839
# @return [Files]
839840
def get_files(xero_tenant_id, opts = {})
840841
data, _status_code, _headers = get_files_with_http_info(xero_tenant_id, opts)
@@ -847,6 +848,7 @@ def get_files(xero_tenant_id, opts = {})
847848
# @option opts [Integer] :pagesize pass an optional page size value
848849
# @option opts [Integer] :page number of records to skip for pagination
849850
# @option opts [String] :sort values to sort by
851+
# @option opts [String] :direction sort direction
850852
# @return [Array<(Files, Integer, Hash)>] Files data, response status code and response headers
851853
def get_files_with_http_info(xero_tenant_id, options = {})
852854
opts = options.dup
@@ -869,6 +871,10 @@ def get_files_with_http_info(xero_tenant_id, options = {})
869871
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
870872
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
871873
end
874+
allowable_values = ["ASC", "DESC"]
875+
if @api_client.config.client_side_validation && opts[:'direction'] && !allowable_values.include?(opts[:'direction'])
876+
fail ArgumentError, "invalid value for \"direction\", must be one of #{allowable_values}"
877+
end
872878
# resource path
873879
local_var_path = '/Files'
874880

@@ -880,6 +886,7 @@ def get_files_with_http_info(xero_tenant_id, options = {})
880886
query_params[:'pagesize'] = opts[:'pagesize'] if !opts[:'pagesize'].nil?
881887
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
882888
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
889+
query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
883890

884891
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
885892
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?

lib/xero-ruby/models/accounting/user.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class User
4343
MANAGEDCLIENT ||= "MANAGEDCLIENT".freeze
4444
CASHBOOKCLIENT ||= "CASHBOOKCLIENT".freeze
4545
UNKNOWN ||= "UNKNOWN".freeze
46+
REMOVED ||= "REMOVED".freeze
4647

4748
class EnumAttributeValidator
4849
attr_reader :datatype
@@ -146,15 +147,15 @@ def list_invalid_properties
146147
# Check to see if the all the properties in the model are valid
147148
# @return true if the model is valid
148149
def valid?
149-
organisation_role_validator = EnumAttributeValidator.new('String', ["READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN"])
150+
organisation_role_validator = EnumAttributeValidator.new('String', ["READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN", "REMOVED"])
150151
return false unless organisation_role_validator.valid?(@organisation_role)
151152
true
152153
end
153154

154155
# Custom attribute writer method checking allowed values (enum).
155156
# @param [Object] organisation_role Object to be assigned
156157
def organisation_role=(organisation_role)
157-
validator = EnumAttributeValidator.new('String', ["READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN"])
158+
validator = EnumAttributeValidator.new('String', ["READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN", "REMOVED"])
158159
unless validator.valid?(organisation_role)
159160
fail ArgumentError, "invalid value for \"organisation_role\", must be one of #{validator.allowable_values}."
160161
end

lib/xero-ruby/models/app_store/product.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ class Product
2525
# The unit of the per seat product. e.g. \"user\", \"organisation\", \"SMS\", etc
2626
attr_accessor :seat_unit
2727

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
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 * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature
2929
attr_accessor :type
3030
FIXED ||= "FIXED".freeze
3131
PER_SEAT ||= "PER_SEAT".freeze
3232
METERED ||= "METERED".freeze
33+
SIMPLE ||= "SIMPLE".freeze
3334

3435
# The unit of the usage product. e.g. \"user\", \"minutes\", \"SMS\", etc
3536
attr_accessor :usage_unit
@@ -124,15 +125,15 @@ def list_invalid_properties
124125
# Check to see if the all the properties in the model are valid
125126
# @return true if the model is valid
126127
def valid?
127-
type_validator = EnumAttributeValidator.new('String', ["FIXED", "PER_SEAT", "METERED"])
128+
type_validator = EnumAttributeValidator.new('String', ["FIXED", "PER_SEAT", "METERED", "SIMPLE"])
128129
return false unless type_validator.valid?(@type)
129130
true
130131
end
131132

132133
# Custom attribute writer method checking allowed values (enum).
133134
# @param [Object] type Object to be assigned
134135
def type=(type)
135-
validator = EnumAttributeValidator.new('String', ["FIXED", "PER_SEAT", "METERED"])
136+
validator = EnumAttributeValidator.new('String', ["FIXED", "PER_SEAT", "METERED", "SIMPLE"])
136137
unless validator.valid?(type)
137138
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
138139
end

lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class EmployeeStatutoryLeaveBalance
2424
PATERNITY ||= "Paternity".freeze
2525
SHAREDPARENTAL ||= "Sharedparental".freeze
2626
BEREAVEMENT ||= "Bereavement".freeze
27+
NEONATAL_CARE ||= "NeonatalCare".freeze
2728

2829
# The balance remaining for the corresponding leave type as of specified date.
2930
attr_accessor :balance_remaining
@@ -110,7 +111,7 @@ def list_invalid_properties
110111
# Check to see if the all the properties in the model are valid
111112
# @return true if the model is valid
112113
def valid?
113-
leave_type_validator = EnumAttributeValidator.new('String', ["Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement"])
114+
leave_type_validator = EnumAttributeValidator.new('String', ["Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare"])
114115
return false unless leave_type_validator.valid?(@leave_type)
115116
units_validator = EnumAttributeValidator.new('String', ["Hours"])
116117
return false unless units_validator.valid?(@units)
@@ -120,7 +121,7 @@ def valid?
120121
# Custom attribute writer method checking allowed values (enum).
121122
# @param [Object] leave_type Object to be assigned
122123
def leave_type=(leave_type)
123-
validator = EnumAttributeValidator.new('String', ["Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement"])
124+
validator = EnumAttributeValidator.new('String', ["Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare"])
124125
unless validator.valid?(leave_type)
125126
fail ArgumentError, "invalid value for \"leave_type\", must be one of #{validator.allowable_values}."
126127
end

0 commit comments

Comments
 (0)