xero-ruby 3.3.0 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xero-ruby/api/accounting_api.rb +11 -2
- data/lib/xero-ruby/api/payroll_au_api.rb +14 -14
- data/lib/xero-ruby/api/payroll_nz_api.rb +18 -12
- data/lib/xero-ruby/api/payroll_uk_api.rb +14 -2
- data/lib/xero-ruby/api_client.rb +1 -1
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +35 -1
- data/lib/xero-ruby/models/accounting/budget_balance.rb +2 -2
- data/lib/xero-ruby/models/app_store/product.rb +14 -4
- data/lib/xero-ruby/models/payroll_au/earnings_type.rb +2 -0
- data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +1 -0
- data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +4 -4
- data/lib/xero-ruby/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56932ad60695de77fdeaa92e9537a6be406fbd5e88440d4343d34284ce602fda
|
4
|
+
data.tar.gz: 1b02a5bbbce8d6877551cf6304eadf021e66372460f70a9c7191a1e6c21ea079
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72cf45f6aa6524961b54515b247e782dfa70ddd621ff5bfefb208b37b5603347adeef570683e97513f05a32ba1159c9694789afa6a203405fafa48796e8bfef1
|
7
|
+
data.tar.gz: 8f732496a99e5a118acb7d5ecc6ee1be2f35d1f7d9b06805f3c017473a9d7d9ae5fa64800a7af8855efcae3c403a2f32c8b04bfeaa5ee8248783d28f31b1cfa2
|
@@ -7018,20 +7018,24 @@ module XeroRuby
|
|
7018
7018
|
return data, status_code, headers
|
7019
7019
|
end
|
7020
7020
|
|
7021
|
-
# Retrieves a specific
|
7021
|
+
# Retrieves a specific budget, which includes budget lines
|
7022
7022
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
7023
7023
|
# @param budget_id [String] Unique identifier for Budgets
|
7024
7024
|
# @param [Hash] opts the optional parameters
|
7025
|
+
# @option opts [Date] :date_to Filter by start date
|
7026
|
+
# @option opts [Date] :date_from Filter by end date
|
7025
7027
|
# @return [Budgets]
|
7026
7028
|
def get_budget(xero_tenant_id, budget_id, opts = {})
|
7027
7029
|
data, _status_code, _headers = get_budget_with_http_info(xero_tenant_id, budget_id, opts)
|
7028
7030
|
data
|
7029
7031
|
end
|
7030
7032
|
|
7031
|
-
# Retrieves a specific
|
7033
|
+
# Retrieves a specific budget, which includes budget lines
|
7032
7034
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
7033
7035
|
# @param budget_id [String] Unique identifier for Budgets
|
7034
7036
|
# @param [Hash] opts the optional parameters
|
7037
|
+
# @option opts [Date] :date_to Filter by start date
|
7038
|
+
# @option opts [Date] :date_from Filter by end date
|
7035
7039
|
# @return [Array<(Budgets, Integer, Hash)>] Budgets data, response status code and response headers
|
7036
7040
|
def get_budget_with_http_info(xero_tenant_id, budget_id, options = {})
|
7037
7041
|
opts = options.dup
|
@@ -7054,6 +7058,8 @@ module XeroRuby
|
|
7054
7058
|
|
7055
7059
|
# query parameters
|
7056
7060
|
query_params = opts[:query_params] || {}
|
7061
|
+
query_params[:'DateTo'] = opts[:'date_to'] if !opts[:'date_to'].nil?
|
7062
|
+
query_params[:'DateFrom'] = opts[:'date_from'] if !opts[:'date_from'].nil?
|
7057
7063
|
|
7058
7064
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
7059
7065
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
@@ -7882,6 +7888,7 @@ module XeroRuby
|
|
7882
7888
|
# @option opts [Integer] :page e.g. page=1 - Up to 100 contacts will be returned in a single API call.
|
7883
7889
|
# @option opts [Boolean] :include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response
|
7884
7890
|
# @option opts [Boolean] :summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (default to false)
|
7891
|
+
# @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields.
|
7885
7892
|
# @return [Contacts]
|
7886
7893
|
def get_contacts(xero_tenant_id, opts = {})
|
7887
7894
|
data, _status_code, _headers = get_contacts_with_http_info(xero_tenant_id, opts)
|
@@ -7898,6 +7905,7 @@ module XeroRuby
|
|
7898
7905
|
# @option opts [Integer] :page e.g. page=1 - Up to 100 contacts will be returned in a single API call.
|
7899
7906
|
# @option opts [Boolean] :include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response
|
7900
7907
|
# @option opts [Boolean] :summary_only Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
|
7908
|
+
# @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields.
|
7901
7909
|
# @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
|
7902
7910
|
def get_contacts_with_http_info(xero_tenant_id, options = {})
|
7903
7911
|
opts = options.dup
|
@@ -7922,6 +7930,7 @@ module XeroRuby
|
|
7922
7930
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
7923
7931
|
query_params[:'includeArchived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil?
|
7924
7932
|
query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil?
|
7933
|
+
query_params[:'searchTerm'] = opts[:'search_term'] if !opts[:'search_term'].nil?
|
7925
7934
|
|
7926
7935
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
7927
7936
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
@@ -633,7 +633,7 @@ module XeroRuby
|
|
633
633
|
# Searches payroll employees
|
634
634
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
635
635
|
# @param [Hash] opts the optional parameters
|
636
|
-
# @option opts [
|
636
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
637
637
|
# @option opts [String] :where Filter by an any element
|
638
638
|
# @option opts [String] :order Order by an any element
|
639
639
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 employees will be returned in a single API call
|
@@ -646,7 +646,7 @@ module XeroRuby
|
|
646
646
|
# Searches payroll employees
|
647
647
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
648
648
|
# @param [Hash] opts the optional parameters
|
649
|
-
# @option opts [
|
649
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
650
650
|
# @option opts [String] :where Filter by an any element
|
651
651
|
# @option opts [String] :order Order by an any element
|
652
652
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 employees will be returned in a single API call
|
@@ -789,7 +789,7 @@ module XeroRuby
|
|
789
789
|
# Retrieves leave applications
|
790
790
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
791
791
|
# @param [Hash] opts the optional parameters
|
792
|
-
# @option opts [
|
792
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
793
793
|
# @option opts [String] :where Filter by an any element
|
794
794
|
# @option opts [String] :order Order by an any element
|
795
795
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
|
@@ -802,7 +802,7 @@ module XeroRuby
|
|
802
802
|
# Retrieves leave applications
|
803
803
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
804
804
|
# @param [Hash] opts the optional parameters
|
805
|
-
# @option opts [
|
805
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
806
806
|
# @option opts [String] :where Filter by an any element
|
807
807
|
# @option opts [String] :order Order by an any element
|
808
808
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
|
@@ -870,7 +870,7 @@ module XeroRuby
|
|
870
870
|
# Retrieves pay items
|
871
871
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
872
872
|
# @param [Hash] opts the optional parameters
|
873
|
-
# @option opts [
|
873
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
874
874
|
# @option opts [String] :where Filter by an any element
|
875
875
|
# @option opts [String] :order Order by an any element
|
876
876
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
|
@@ -883,7 +883,7 @@ module XeroRuby
|
|
883
883
|
# Retrieves pay items
|
884
884
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
885
885
|
# @param [Hash] opts the optional parameters
|
886
|
-
# @option opts [
|
886
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
887
887
|
# @option opts [String] :where Filter by an any element
|
888
888
|
# @option opts [String] :order Order by an any element
|
889
889
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
|
@@ -1026,7 +1026,7 @@ module XeroRuby
|
|
1026
1026
|
# Retrieves pay runs
|
1027
1027
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1028
1028
|
# @param [Hash] opts the optional parameters
|
1029
|
-
# @option opts [
|
1029
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1030
1030
|
# @option opts [String] :where Filter by an any element
|
1031
1031
|
# @option opts [String] :order Order by an any element
|
1032
1032
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 PayRuns will be returned in a single API call
|
@@ -1039,7 +1039,7 @@ module XeroRuby
|
|
1039
1039
|
# Retrieves pay runs
|
1040
1040
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1041
1041
|
# @param [Hash] opts the optional parameters
|
1042
|
-
# @option opts [
|
1042
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1043
1043
|
# @option opts [String] :where Filter by an any element
|
1044
1044
|
# @option opts [String] :order Order by an any element
|
1045
1045
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 PayRuns will be returned in a single API call
|
@@ -1182,7 +1182,7 @@ module XeroRuby
|
|
1182
1182
|
# Retrieves payroll calendars
|
1183
1183
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1184
1184
|
# @param [Hash] opts the optional parameters
|
1185
|
-
# @option opts [
|
1185
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1186
1186
|
# @option opts [String] :where Filter by an any element
|
1187
1187
|
# @option opts [String] :order Order by an any element
|
1188
1188
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
|
@@ -1195,7 +1195,7 @@ module XeroRuby
|
|
1195
1195
|
# Retrieves payroll calendars
|
1196
1196
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1197
1197
|
# @param [Hash] opts the optional parameters
|
1198
|
-
# @option opts [
|
1198
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1199
1199
|
# @option opts [String] :where Filter by an any element
|
1200
1200
|
# @option opts [String] :order Order by an any element
|
1201
1201
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
|
@@ -1557,7 +1557,7 @@ module XeroRuby
|
|
1557
1557
|
# Retrieves superfunds
|
1558
1558
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1559
1559
|
# @param [Hash] opts the optional parameters
|
1560
|
-
# @option opts [
|
1560
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1561
1561
|
# @option opts [String] :where Filter by an any element
|
1562
1562
|
# @option opts [String] :order Order by an any element
|
1563
1563
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 SuperFunds will be returned in a single API call
|
@@ -1570,7 +1570,7 @@ module XeroRuby
|
|
1570
1570
|
# Retrieves superfunds
|
1571
1571
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1572
1572
|
# @param [Hash] opts the optional parameters
|
1573
|
-
# @option opts [
|
1573
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1574
1574
|
# @option opts [String] :where Filter by an any element
|
1575
1575
|
# @option opts [String] :order Order by an any element
|
1576
1576
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 SuperFunds will be returned in a single API call
|
@@ -1713,7 +1713,7 @@ module XeroRuby
|
|
1713
1713
|
# Retrieves timesheets
|
1714
1714
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1715
1715
|
# @param [Hash] opts the optional parameters
|
1716
|
-
# @option opts [
|
1716
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1717
1717
|
# @option opts [String] :where Filter by an any element
|
1718
1718
|
# @option opts [String] :order Order by an any element
|
1719
1719
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 timesheets will be returned in a single API call
|
@@ -1726,7 +1726,7 @@ module XeroRuby
|
|
1726
1726
|
# Retrieves timesheets
|
1727
1727
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1728
1728
|
# @param [Hash] opts the optional parameters
|
1729
|
-
# @option opts [
|
1729
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1730
1730
|
# @option opts [String] :where Filter by an any element
|
1731
1731
|
# @option opts [String] :order Order by an any element
|
1732
1732
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 timesheets will be returned in a single API call
|
@@ -3150,8 +3150,7 @@ module XeroRuby
|
|
3150
3150
|
# Retrieves employees
|
3151
3151
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3152
3152
|
# @param [Hash] opts the optional parameters
|
3153
|
-
# @option opts [String] :
|
3154
|
-
# @option opts [String] :last_name Filter by last name
|
3153
|
+
# @option opts [String] :filter Filter by first name and/or lastname
|
3155
3154
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
3156
3155
|
# @return [Employees]
|
3157
3156
|
def get_employees(xero_tenant_id, opts = {})
|
@@ -3162,8 +3161,7 @@ module XeroRuby
|
|
3162
3161
|
# Retrieves employees
|
3163
3162
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3164
3163
|
# @param [Hash] opts the optional parameters
|
3165
|
-
# @option opts [String] :
|
3166
|
-
# @option opts [String] :last_name Filter by last name
|
3164
|
+
# @option opts [String] :filter Filter by first name and/or lastname
|
3167
3165
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
3168
3166
|
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
3169
3167
|
def get_employees_with_http_info(xero_tenant_id, options = {})
|
@@ -3183,8 +3181,7 @@ module XeroRuby
|
|
3183
3181
|
|
3184
3182
|
# query parameters
|
3185
3183
|
query_params = opts[:query_params] || {}
|
3186
|
-
query_params[:'
|
3187
|
-
query_params[:'lastName'] = opts[:'last_name'] if !opts[:'last_name'].nil?
|
3184
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
3188
3185
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
3189
3186
|
|
3190
3187
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
@@ -4419,8 +4416,11 @@ module XeroRuby
|
|
4419
4416
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4420
4417
|
# @param [Hash] opts the optional parameters
|
4421
4418
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
4422
|
-
# @option opts [String] :
|
4423
|
-
# @option opts [String] :
|
4419
|
+
# @option opts [String] :filter Filter by employeeId and/or payrollCalendarId
|
4420
|
+
# @option opts [String] :status filter results by any timesheets with a matching timesheet status
|
4421
|
+
# @option opts [String] :start_date filter results by any timesheets with a startDate on or after the provided date
|
4422
|
+
# @option opts [String] :end_date filter results by any timesheets with a endDate on or before the provided date
|
4423
|
+
# @option opts [String] :sort sort the order of timesheets returned. The default is based on the timesheets createdDate, sorted oldest to newest. Currently, the only other option is to reverse the order based on the timesheets startDate, sorted newest to oldest.
|
4424
4424
|
# @return [Timesheets]
|
4425
4425
|
def get_timesheets(xero_tenant_id, opts = {})
|
4426
4426
|
data, _status_code, _headers = get_timesheets_with_http_info(xero_tenant_id, opts)
|
@@ -4431,8 +4431,11 @@ module XeroRuby
|
|
4431
4431
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4432
4432
|
# @param [Hash] opts the optional parameters
|
4433
4433
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
4434
|
-
# @option opts [String] :
|
4435
|
-
# @option opts [String] :
|
4434
|
+
# @option opts [String] :filter Filter by employeeId and/or payrollCalendarId
|
4435
|
+
# @option opts [String] :status filter results by any timesheets with a matching timesheet status
|
4436
|
+
# @option opts [String] :start_date filter results by any timesheets with a startDate on or after the provided date
|
4437
|
+
# @option opts [String] :end_date filter results by any timesheets with a endDate on or before the provided date
|
4438
|
+
# @option opts [String] :sort sort the order of timesheets returned. The default is based on the timesheets createdDate, sorted oldest to newest. Currently, the only other option is to reverse the order based on the timesheets startDate, sorted newest to oldest.
|
4436
4439
|
# @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
|
4437
4440
|
def get_timesheets_with_http_info(xero_tenant_id, options = {})
|
4438
4441
|
opts = options.dup
|
@@ -4452,8 +4455,11 @@ module XeroRuby
|
|
4452
4455
|
# query parameters
|
4453
4456
|
query_params = opts[:query_params] || {}
|
4454
4457
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
4455
|
-
query_params[:'
|
4456
|
-
query_params[:'
|
4458
|
+
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
4459
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
4460
|
+
query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
4461
|
+
query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
4462
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
4457
4463
|
|
4458
4464
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
4459
4465
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
@@ -4644,7 +4644,11 @@ module XeroRuby
|
|
4644
4644
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4645
4645
|
# @param [Hash] opts the optional parameters
|
4646
4646
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
4647
|
-
# @option opts [String] :filter Filter by
|
4647
|
+
# @option opts [String] :filter Filter by employeeId and/or payrollCalendarId
|
4648
|
+
# @option opts [String] :status filter results by any timesheets with a matching timesheet status
|
4649
|
+
# @option opts [String] :start_date filter results by any timesheets with a startDate on or after the provided date
|
4650
|
+
# @option opts [String] :end_date filter results by any timesheets with a endDate on or before the provided date
|
4651
|
+
# @option opts [String] :sort sort the order of timesheets returned. The default is based on the timesheets createdDate, sorted oldest to newest. Currently, the only other option is to reverse the order based on the timesheets startDate, sorted newest to oldest.
|
4648
4652
|
# @return [Timesheets]
|
4649
4653
|
def get_timesheets(xero_tenant_id, opts = {})
|
4650
4654
|
data, _status_code, _headers = get_timesheets_with_http_info(xero_tenant_id, opts)
|
@@ -4655,7 +4659,11 @@ module XeroRuby
|
|
4655
4659
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4656
4660
|
# @param [Hash] opts the optional parameters
|
4657
4661
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
4658
|
-
# @option opts [String] :filter Filter by
|
4662
|
+
# @option opts [String] :filter Filter by employeeId and/or payrollCalendarId
|
4663
|
+
# @option opts [String] :status filter results by any timesheets with a matching timesheet status
|
4664
|
+
# @option opts [String] :start_date filter results by any timesheets with a startDate on or after the provided date
|
4665
|
+
# @option opts [String] :end_date filter results by any timesheets with a endDate on or before the provided date
|
4666
|
+
# @option opts [String] :sort sort the order of timesheets returned. The default is based on the timesheets createdDate, sorted oldest to newest. Currently, the only other option is to reverse the order based on the timesheets startDate, sorted newest to oldest.
|
4659
4667
|
# @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
|
4660
4668
|
def get_timesheets_with_http_info(xero_tenant_id, options = {})
|
4661
4669
|
opts = options.dup
|
@@ -4676,6 +4684,10 @@ module XeroRuby
|
|
4676
4684
|
query_params = opts[:query_params] || {}
|
4677
4685
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
4678
4686
|
query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
4687
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
4688
|
+
query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
4689
|
+
query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
4690
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
4679
4691
|
|
4680
4692
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
4681
4693
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
data/lib/xero-ruby/api_client.rb
CHANGED
@@ -289,7 +289,7 @@ module XeroRuby
|
|
289
289
|
end
|
290
290
|
|
291
291
|
connection = Faraday.new(:url => method_base_url, :ssl => ssl_options) do |conn|
|
292
|
-
conn.basic_auth
|
292
|
+
conn.request(:basic_auth, config.username, config.password)
|
293
293
|
if opts[:header_params]["Content-Type"] == "multipart/form-data"
|
294
294
|
conn.request :multipart
|
295
295
|
conn.request :url_encoded
|
@@ -40,6 +40,15 @@ module XeroRuby::Accounting
|
|
40
40
|
# The Bank Transaction ID for the destination account
|
41
41
|
attr_accessor :to_bank_transaction_id
|
42
42
|
|
43
|
+
# The Bank Transaction boolean to show if it is reconciled for the source account
|
44
|
+
attr_accessor :from_is_reconciled
|
45
|
+
|
46
|
+
# The Bank Transaction boolean to show if it is reconciled for the destination account
|
47
|
+
attr_accessor :to_is_reconciled
|
48
|
+
|
49
|
+
# Reference for the transactions.
|
50
|
+
attr_accessor :reference
|
51
|
+
|
43
52
|
# Boolean to indicate if a Bank Transfer has an attachment
|
44
53
|
attr_accessor :has_attachments
|
45
54
|
|
@@ -60,6 +69,9 @@ module XeroRuby::Accounting
|
|
60
69
|
:'currency_rate' => :'CurrencyRate',
|
61
70
|
:'from_bank_transaction_id' => :'FromBankTransactionID',
|
62
71
|
:'to_bank_transaction_id' => :'ToBankTransactionID',
|
72
|
+
:'from_is_reconciled' => :'FromIsReconciled',
|
73
|
+
:'to_is_reconciled' => :'ToIsReconciled',
|
74
|
+
:'reference' => :'Reference',
|
63
75
|
:'has_attachments' => :'HasAttachments',
|
64
76
|
:'created_date_utc' => :'CreatedDateUTC',
|
65
77
|
:'validation_errors' => :'ValidationErrors'
|
@@ -77,6 +89,9 @@ module XeroRuby::Accounting
|
|
77
89
|
:'currency_rate' => :'BigDecimal',
|
78
90
|
:'from_bank_transaction_id' => :'String',
|
79
91
|
:'to_bank_transaction_id' => :'String',
|
92
|
+
:'from_is_reconciled' => :'Boolean',
|
93
|
+
:'to_is_reconciled' => :'Boolean',
|
94
|
+
:'reference' => :'String',
|
80
95
|
:'has_attachments' => :'Boolean',
|
81
96
|
:'created_date_utc' => :'DateTime',
|
82
97
|
:'validation_errors' => :'Array<ValidationError>'
|
@@ -130,6 +145,22 @@ module XeroRuby::Accounting
|
|
130
145
|
self.to_bank_transaction_id = attributes[:'to_bank_transaction_id']
|
131
146
|
end
|
132
147
|
|
148
|
+
if attributes.key?(:'from_is_reconciled')
|
149
|
+
self.from_is_reconciled = attributes[:'from_is_reconciled']
|
150
|
+
else
|
151
|
+
self.from_is_reconciled = false
|
152
|
+
end
|
153
|
+
|
154
|
+
if attributes.key?(:'to_is_reconciled')
|
155
|
+
self.to_is_reconciled = attributes[:'to_is_reconciled']
|
156
|
+
else
|
157
|
+
self.to_is_reconciled = false
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'reference')
|
161
|
+
self.reference = attributes[:'reference']
|
162
|
+
end
|
163
|
+
|
133
164
|
if attributes.key?(:'has_attachments')
|
134
165
|
self.has_attachments = attributes[:'has_attachments']
|
135
166
|
else
|
@@ -188,6 +219,9 @@ module XeroRuby::Accounting
|
|
188
219
|
currency_rate == o.currency_rate &&
|
189
220
|
from_bank_transaction_id == o.from_bank_transaction_id &&
|
190
221
|
to_bank_transaction_id == o.to_bank_transaction_id &&
|
222
|
+
from_is_reconciled == o.from_is_reconciled &&
|
223
|
+
to_is_reconciled == o.to_is_reconciled &&
|
224
|
+
reference == o.reference &&
|
191
225
|
has_attachments == o.has_attachments &&
|
192
226
|
created_date_utc == o.created_date_utc &&
|
193
227
|
validation_errors == o.validation_errors
|
@@ -202,7 +236,7 @@ module XeroRuby::Accounting
|
|
202
236
|
# Calculates hash code according to all attributes.
|
203
237
|
# @return [Integer] Hash code
|
204
238
|
def hash
|
205
|
-
[from_bank_account, to_bank_account, amount, date, bank_transfer_id, currency_rate, from_bank_transaction_id, to_bank_transaction_id, has_attachments, created_date_utc, validation_errors].hash
|
239
|
+
[from_bank_account, to_bank_account, amount, date, bank_transfer_id, currency_rate, from_bank_transaction_id, to_bank_transaction_id, from_is_reconciled, to_is_reconciled, reference, has_attachments, created_date_utc, validation_errors].hash
|
206
240
|
end
|
207
241
|
|
208
242
|
# Builds the object from hash
|
@@ -27,6 +27,9 @@ module XeroRuby::AppStore
|
|
27
27
|
FIXED = "FIXED".freeze
|
28
28
|
PER_SEAT = "PER_SEAT".freeze
|
29
29
|
|
30
|
+
# The unit of the per seat product. e.g. \"user\", \"organisation\", \"SMS\", etc
|
31
|
+
attr_accessor :seat_unit
|
32
|
+
|
30
33
|
class EnumAttributeValidator
|
31
34
|
attr_reader :datatype
|
32
35
|
attr_reader :allowable_values
|
@@ -54,7 +57,8 @@ module XeroRuby::AppStore
|
|
54
57
|
{
|
55
58
|
:'id' => :'id',
|
56
59
|
:'name' => :'name',
|
57
|
-
:'type' => :'type'
|
60
|
+
:'type' => :'type',
|
61
|
+
:'seat_unit' => :'seatUnit'
|
58
62
|
}
|
59
63
|
end
|
60
64
|
|
@@ -63,7 +67,8 @@ module XeroRuby::AppStore
|
|
63
67
|
{
|
64
68
|
:'id' => :'String',
|
65
69
|
:'name' => :'String',
|
66
|
-
:'type' => :'String'
|
70
|
+
:'type' => :'String',
|
71
|
+
:'seat_unit' => :'String'
|
67
72
|
}
|
68
73
|
end
|
69
74
|
|
@@ -93,6 +98,10 @@ module XeroRuby::AppStore
|
|
93
98
|
if attributes.key?(:'type')
|
94
99
|
self.type = attributes[:'type']
|
95
100
|
end
|
101
|
+
|
102
|
+
if attributes.key?(:'seat_unit')
|
103
|
+
self.seat_unit = attributes[:'seat_unit']
|
104
|
+
end
|
96
105
|
end
|
97
106
|
|
98
107
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -127,7 +136,8 @@ module XeroRuby::AppStore
|
|
127
136
|
self.class == o.class &&
|
128
137
|
id == o.id &&
|
129
138
|
name == o.name &&
|
130
|
-
type == o.type
|
139
|
+
type == o.type &&
|
140
|
+
seat_unit == o.seat_unit
|
131
141
|
end
|
132
142
|
|
133
143
|
# @see the `==` method
|
@@ -139,7 +149,7 @@ module XeroRuby::AppStore
|
|
139
149
|
# Calculates hash code according to all attributes.
|
140
150
|
# @return [Integer] Hash code
|
141
151
|
def hash
|
142
|
-
[id, name, type].hash
|
152
|
+
[id, name, type, seat_unit].hash
|
143
153
|
end
|
144
154
|
|
145
155
|
# Builds the object from hash
|
@@ -24,6 +24,8 @@ module XeroRuby::PayrollAu
|
|
24
24
|
LUMPSUMB = "LUMPSUMB".freeze
|
25
25
|
BONUSESANDCOMMISSIONS = "BONUSESANDCOMMISSIONS".freeze
|
26
26
|
LUMPSUME = "LUMPSUME".freeze
|
27
|
+
LUMPSUMW = "LUMPSUMW".freeze
|
28
|
+
DIRECTORSFEES = "DIRECTORSFEES".freeze
|
27
29
|
|
28
30
|
# Builds the enum from string
|
29
31
|
# @param [String] The enum value in the form of the string
|
@@ -19,6 +19,7 @@ module XeroRuby::PayrollAu
|
|
19
19
|
ETPRMANUAL = "ETPRMANUAL".freeze
|
20
20
|
SCHEDULE5_MANUAL = "SCHEDULE5MANUAL".freeze
|
21
21
|
SCHEDULE5_STSLMANUAL = "SCHEDULE5STSLMANUAL".freeze
|
22
|
+
SCHEDULE4_MANUAL = "SCHEDULE4MANUAL".freeze
|
22
23
|
|
23
24
|
# Builds the enum from string
|
24
25
|
# @param [String] The enum value in the form of the string
|
@@ -44,8 +44,8 @@ module XeroRuby::PayrollUk
|
|
44
44
|
STATUTORY_SHARED_PARENTAL_PAY_NON_PENSIONABLE = "StatutorySharedParentalPayNonPensionable".freeze
|
45
45
|
STATUTORY_SICK_PAY = "StatutorySickPay".freeze
|
46
46
|
STATUTORY_SICK_PAY_NON_PENSIONABLE = "StatutorySickPayNonPensionable".freeze
|
47
|
-
|
48
|
-
|
47
|
+
TIPS_NON_DIRECT = "TipsNonDirect".freeze
|
48
|
+
TIPS_DIRECT = "TipsDirect".freeze
|
49
49
|
TERMINATION_PAY = "TerminationPay".freeze
|
50
50
|
|
51
51
|
# Indicates the type of the earning rate
|
@@ -214,7 +214,7 @@ module XeroRuby::PayrollUk
|
|
214
214
|
def valid?
|
215
215
|
return false if @name.nil?
|
216
216
|
return false if @earnings_type.nil?
|
217
|
-
earnings_type_validator = EnumAttributeValidator.new('String', ["Allowance", "Backpay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "
|
217
|
+
earnings_type_validator = EnumAttributeValidator.new('String', ["Allowance", "Backpay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay"])
|
218
218
|
return false unless earnings_type_validator.valid?(@earnings_type)
|
219
219
|
return false if @rate_type.nil?
|
220
220
|
rate_type_validator = EnumAttributeValidator.new('String', ["RatePerUnit", "MultipleOfOrdinaryEarningsRate", "FixedAmount"])
|
@@ -227,7 +227,7 @@ module XeroRuby::PayrollUk
|
|
227
227
|
# Custom attribute writer method checking allowed values (enum).
|
228
228
|
# @param [Object] earnings_type Object to be assigned
|
229
229
|
def earnings_type=(earnings_type)
|
230
|
-
validator = EnumAttributeValidator.new('String', ["Allowance", "Backpay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "
|
230
|
+
validator = EnumAttributeValidator.new('String', ["Allowance", "Backpay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay"])
|
231
231
|
unless validator.valid?(earnings_type)
|
232
232
|
fail ArgumentError, "invalid value for \"earnings_type\", must be one of #{validator.allowable_values}."
|
233
233
|
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.17.1
|
11
11
|
=end
|
12
12
|
|
13
13
|
module XeroRuby
|
14
|
-
VERSION = '3.
|
14
|
+
VERSION = '3.4.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.4.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: 2021-
|
11
|
+
date: 2021-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -1013,7 +1013,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1013
1013
|
- !ruby/object:Gem::Version
|
1014
1014
|
version: '0'
|
1015
1015
|
requirements: []
|
1016
|
-
rubygems_version: 3.
|
1016
|
+
rubygems_version: 3.2.3
|
1017
1017
|
signing_key:
|
1018
1018
|
specification_version: 4
|
1019
1019
|
summary: Xero Accounting API Ruby Gem
|