xero-ruby 8.0.0 → 9.0.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 +36 -27
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +11 -1
- data/lib/xero-ruby/models/accounting/contacts.rb +11 -1
- data/lib/xero-ruby/models/accounting/credit_notes.rb +11 -1
- data/lib/xero-ruby/models/accounting/invoices.rb +11 -1
- data/lib/xero-ruby/models/accounting/manual_journals.rb +11 -1
- data/lib/xero-ruby/models/accounting/organisation.rb +6 -2
- data/lib/xero-ruby/models/accounting/overpayments.rb +11 -1
- data/lib/xero-ruby/models/accounting/{page_info.rb → pagination.rb} +18 -19
- data/lib/xero-ruby/models/accounting/payments.rb +11 -1
- data/lib/xero-ruby/models/accounting/prepayments.rb +11 -1
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +11 -1
- data/lib/xero-ruby/version.rb +2 -2
- data/lib/xero-ruby.rb +1 -10
- metadata +3 -12
- data/lib/xero-ruby/models/accounting/get_bank_transactions_response.rb +0 -274
- data/lib/xero-ruby/models/accounting/get_contacts_response.rb +0 -274
- data/lib/xero-ruby/models/accounting/get_credit_notes_response.rb +0 -274
- data/lib/xero-ruby/models/accounting/get_invoices_response.rb +0 -274
- data/lib/xero-ruby/models/accounting/get_manual_journals_response.rb +0 -274
- data/lib/xero-ruby/models/accounting/get_overpayments_response.rb +0 -274
- data/lib/xero-ruby/models/accounting/get_payments_response.rb +0 -274
- data/lib/xero-ruby/models/accounting/get_prepayments_response.rb +0 -274
- data/lib/xero-ruby/models/accounting/get_purchase_orders_response.rb +0 -274
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c06e7f06863e1752368fac13b1819641f1e23aef142f325a996f29a5c42f8344
|
4
|
+
data.tar.gz: b9e0c0c50bb722dba71e110f7b3cd6edc9b61ca91ff455969212ddbee05ba9d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51779b2df43078b8f388f64e10bd999c086de90320c7966a21b8b342ffa18a9498f8a7887c627907591157378555f27dd9de2c5777caadedfd623ab7b9797ca9
|
7
|
+
data.tar.gz: e34c11a0874de9ef9f0969ef437449b9f3aef6fc63eb1b202d3bbcb74c02bd048e71a1694c71390451ab2290fd53de1c6ac82ce676287e5e03edb8dda0e52a0a
|
@@ -6680,7 +6680,7 @@ module XeroRuby
|
|
6680
6680
|
# @option opts [Integer] :page Up to 100 bank transactions will be returned in a single API call with line items details
|
6681
6681
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
6682
6682
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
6683
|
-
# @return [
|
6683
|
+
# @return [BankTransactions]
|
6684
6684
|
def get_bank_transactions(xero_tenant_id, opts = {})
|
6685
6685
|
data, _status_code, _headers = get_bank_transactions_with_http_info(xero_tenant_id, opts)
|
6686
6686
|
data
|
@@ -6695,7 +6695,7 @@ module XeroRuby
|
|
6695
6695
|
# @option opts [Integer] :page Up to 100 bank transactions will be returned in a single API call with line items details
|
6696
6696
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
6697
6697
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
6698
|
-
# @return [Array<(
|
6698
|
+
# @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
|
6699
6699
|
def get_bank_transactions_with_http_info(xero_tenant_id, options = {})
|
6700
6700
|
opts = options.dup
|
6701
6701
|
if @api_client.config.debugging
|
@@ -6737,7 +6737,7 @@ module XeroRuby
|
|
6737
6737
|
post_body = opts[:body]
|
6738
6738
|
|
6739
6739
|
# return_type
|
6740
|
-
return_type = opts[:return_type] || '
|
6740
|
+
return_type = opts[:return_type] || 'BankTransactions'
|
6741
6741
|
|
6742
6742
|
# auth_names
|
6743
6743
|
auth_names = opts[:auth_names] || ['OAuth2']
|
@@ -8631,7 +8631,7 @@ module XeroRuby
|
|
8631
8631
|
# @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)
|
8632
8632
|
# @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields.
|
8633
8633
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
8634
|
-
# @return [
|
8634
|
+
# @return [Contacts]
|
8635
8635
|
def get_contacts(xero_tenant_id, opts = {})
|
8636
8636
|
data, _status_code, _headers = get_contacts_with_http_info(xero_tenant_id, opts)
|
8637
8637
|
data
|
@@ -8649,7 +8649,7 @@ module XeroRuby
|
|
8649
8649
|
# @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.
|
8650
8650
|
# @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields.
|
8651
8651
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
8652
|
-
# @return [Array<(
|
8652
|
+
# @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
|
8653
8653
|
def get_contacts_with_http_info(xero_tenant_id, options = {})
|
8654
8654
|
opts = options.dup
|
8655
8655
|
if @api_client.config.debugging
|
@@ -8694,7 +8694,7 @@ module XeroRuby
|
|
8694
8694
|
post_body = opts[:body]
|
8695
8695
|
|
8696
8696
|
# return_type
|
8697
|
-
return_type = opts[:return_type] || '
|
8697
|
+
return_type = opts[:return_type] || 'Contacts'
|
8698
8698
|
|
8699
8699
|
# auth_names
|
8700
8700
|
auth_names = opts[:auth_names] || ['OAuth2']
|
@@ -9203,7 +9203,7 @@ module XeroRuby
|
|
9203
9203
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note
|
9204
9204
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
9205
9205
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
9206
|
-
# @return [
|
9206
|
+
# @return [CreditNotes]
|
9207
9207
|
def get_credit_notes(xero_tenant_id, opts = {})
|
9208
9208
|
data, _status_code, _headers = get_credit_notes_with_http_info(xero_tenant_id, opts)
|
9209
9209
|
data
|
@@ -9218,7 +9218,7 @@ module XeroRuby
|
|
9218
9218
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note
|
9219
9219
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
9220
9220
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
9221
|
-
# @return [Array<(
|
9221
|
+
# @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
|
9222
9222
|
def get_credit_notes_with_http_info(xero_tenant_id, options = {})
|
9223
9223
|
opts = options.dup
|
9224
9224
|
if @api_client.config.debugging
|
@@ -9260,7 +9260,7 @@ module XeroRuby
|
|
9260
9260
|
post_body = opts[:body]
|
9261
9261
|
|
9262
9262
|
# return_type
|
9263
|
-
return_type = opts[:return_type] || '
|
9263
|
+
return_type = opts[:return_type] || 'CreditNotes'
|
9264
9264
|
|
9265
9265
|
# auth_names
|
9266
9266
|
auth_names = opts[:auth_names] || ['OAuth2']
|
@@ -10301,7 +10301,8 @@ module XeroRuby
|
|
10301
10301
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
10302
10302
|
# @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)
|
10303
10303
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
10304
|
-
# @
|
10304
|
+
# @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the fields e.g. InvoiceNumber, Reference.
|
10305
|
+
# @return [Invoices]
|
10305
10306
|
def get_invoices(xero_tenant_id, opts = {})
|
10306
10307
|
data, _status_code, _headers = get_invoices_with_http_info(xero_tenant_id, opts)
|
10307
10308
|
data
|
@@ -10323,7 +10324,8 @@ module XeroRuby
|
|
10323
10324
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
10324
10325
|
# @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.
|
10325
10326
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
10326
|
-
# @
|
10327
|
+
# @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the fields e.g. InvoiceNumber, Reference.
|
10328
|
+
# @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
|
10327
10329
|
def get_invoices_with_http_info(xero_tenant_id, options = {})
|
10328
10330
|
opts = options.dup
|
10329
10331
|
if @api_client.config.debugging
|
@@ -10353,6 +10355,7 @@ module XeroRuby
|
|
10353
10355
|
query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
|
10354
10356
|
query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil?
|
10355
10357
|
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
10358
|
+
query_params[:'searchTerm'] = opts[:'search_term'] if !opts[:'search_term'].nil?
|
10356
10359
|
|
10357
10360
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
10358
10361
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
@@ -10372,7 +10375,7 @@ module XeroRuby
|
|
10372
10375
|
post_body = opts[:body]
|
10373
10376
|
|
10374
10377
|
# return_type
|
10375
|
-
return_type = opts[:return_type] || '
|
10378
|
+
return_type = opts[:return_type] || 'Invoices'
|
10376
10379
|
|
10377
10380
|
# auth_names
|
10378
10381
|
auth_names = opts[:auth_names] || ['OAuth2']
|
@@ -11351,7 +11354,7 @@ module XeroRuby
|
|
11351
11354
|
# @option opts [String] :order Order by an any element
|
11352
11355
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment
|
11353
11356
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
11354
|
-
# @return [
|
11357
|
+
# @return [ManualJournals]
|
11355
11358
|
def get_manual_journals(xero_tenant_id, opts = {})
|
11356
11359
|
data, _status_code, _headers = get_manual_journals_with_http_info(xero_tenant_id, opts)
|
11357
11360
|
data
|
@@ -11365,7 +11368,7 @@ module XeroRuby
|
|
11365
11368
|
# @option opts [String] :order Order by an any element
|
11366
11369
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment
|
11367
11370
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
11368
|
-
# @return [Array<(
|
11371
|
+
# @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
|
11369
11372
|
def get_manual_journals_with_http_info(xero_tenant_id, options = {})
|
11370
11373
|
opts = options.dup
|
11371
11374
|
if @api_client.config.debugging
|
@@ -11406,7 +11409,7 @@ module XeroRuby
|
|
11406
11409
|
post_body = opts[:body]
|
11407
11410
|
|
11408
11411
|
# return_type
|
11409
|
-
return_type = opts[:return_type] || '
|
11412
|
+
return_type = opts[:return_type] || 'ManualJournals'
|
11410
11413
|
|
11411
11414
|
# auth_names
|
11412
11415
|
auth_names = opts[:auth_names] || ['OAuth2']
|
@@ -11948,7 +11951,8 @@ module XeroRuby
|
|
11948
11951
|
# @option opts [String] :order Order by an any element
|
11949
11952
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment
|
11950
11953
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
11951
|
-
# @
|
11954
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
11955
|
+
# @return [Overpayments]
|
11952
11956
|
def get_overpayments(xero_tenant_id, opts = {})
|
11953
11957
|
data, _status_code, _headers = get_overpayments_with_http_info(xero_tenant_id, opts)
|
11954
11958
|
data
|
@@ -11962,7 +11966,8 @@ module XeroRuby
|
|
11962
11966
|
# @option opts [String] :order Order by an any element
|
11963
11967
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment
|
11964
11968
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
11965
|
-
# @
|
11969
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
11970
|
+
# @return [Array<(Overpayments, Integer, Hash)>] Overpayments data, response status code and response headers
|
11966
11971
|
def get_overpayments_with_http_info(xero_tenant_id, options = {})
|
11967
11972
|
opts = options.dup
|
11968
11973
|
if @api_client.config.debugging
|
@@ -11984,6 +11989,7 @@ module XeroRuby
|
|
11984
11989
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
11985
11990
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
11986
11991
|
query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
|
11992
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
11987
11993
|
|
11988
11994
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
11989
11995
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
@@ -12003,7 +12009,7 @@ module XeroRuby
|
|
12003
12009
|
post_body = opts[:body]
|
12004
12010
|
|
12005
12011
|
# return_type
|
12006
|
-
return_type = opts[:return_type] || '
|
12012
|
+
return_type = opts[:return_type] || 'Overpayments'
|
12007
12013
|
|
12008
12014
|
# auth_names
|
12009
12015
|
auth_names = opts[:auth_names] || ['OAuth2']
|
@@ -12251,7 +12257,7 @@ module XeroRuby
|
|
12251
12257
|
# @option opts [String] :order Order by an any element
|
12252
12258
|
# @option opts [Integer] :page Up to 100 payments will be returned in a single API call
|
12253
12259
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
12254
|
-
# @return [
|
12260
|
+
# @return [Payments]
|
12255
12261
|
def get_payments(xero_tenant_id, opts = {})
|
12256
12262
|
data, _status_code, _headers = get_payments_with_http_info(xero_tenant_id, opts)
|
12257
12263
|
data
|
@@ -12265,7 +12271,7 @@ module XeroRuby
|
|
12265
12271
|
# @option opts [String] :order Order by an any element
|
12266
12272
|
# @option opts [Integer] :page Up to 100 payments will be returned in a single API call
|
12267
12273
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
12268
|
-
# @return [Array<(
|
12274
|
+
# @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
|
12269
12275
|
def get_payments_with_http_info(xero_tenant_id, options = {})
|
12270
12276
|
opts = options.dup
|
12271
12277
|
if @api_client.config.debugging
|
@@ -12306,7 +12312,7 @@ module XeroRuby
|
|
12306
12312
|
post_body = opts[:body]
|
12307
12313
|
|
12308
12314
|
# return_type
|
12309
|
-
return_type = opts[:return_type] || '
|
12315
|
+
return_type = opts[:return_type] || 'Payments'
|
12310
12316
|
|
12311
12317
|
# auth_names
|
12312
12318
|
auth_names = opts[:auth_names] || ['OAuth2']
|
@@ -12485,7 +12491,8 @@ module XeroRuby
|
|
12485
12491
|
# @option opts [String] :order Order by an any element
|
12486
12492
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
|
12487
12493
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
12488
|
-
# @
|
12494
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
12495
|
+
# @return [Prepayments]
|
12489
12496
|
def get_prepayments(xero_tenant_id, opts = {})
|
12490
12497
|
data, _status_code, _headers = get_prepayments_with_http_info(xero_tenant_id, opts)
|
12491
12498
|
data
|
@@ -12499,7 +12506,8 @@ module XeroRuby
|
|
12499
12506
|
# @option opts [String] :order Order by an any element
|
12500
12507
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
|
12501
12508
|
# @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
12502
|
-
# @
|
12509
|
+
# @option opts [Integer] :page_size Number of records to retrieve per page
|
12510
|
+
# @return [Array<(Prepayments, Integer, Hash)>] Prepayments data, response status code and response headers
|
12503
12511
|
def get_prepayments_with_http_info(xero_tenant_id, options = {})
|
12504
12512
|
opts = options.dup
|
12505
12513
|
if @api_client.config.debugging
|
@@ -12521,6 +12529,7 @@ module XeroRuby
|
|
12521
12529
|
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
12522
12530
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
12523
12531
|
query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
|
12532
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
12524
12533
|
|
12525
12534
|
# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
|
12526
12535
|
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
|
@@ -12540,7 +12549,7 @@ module XeroRuby
|
|
12540
12549
|
post_body = opts[:body]
|
12541
12550
|
|
12542
12551
|
# return_type
|
12543
|
-
return_type = opts[:return_type] || '
|
12552
|
+
return_type = opts[:return_type] || 'Prepayments'
|
12544
12553
|
|
12545
12554
|
# auth_names
|
12546
12555
|
auth_names = opts[:auth_names] || ['OAuth2']
|
@@ -13122,7 +13131,7 @@ module XeroRuby
|
|
13122
13131
|
# @option opts [String] :order Order by an any element
|
13123
13132
|
# @option opts [Integer] :page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned.
|
13124
13133
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
13125
|
-
# @return [
|
13134
|
+
# @return [PurchaseOrders]
|
13126
13135
|
def get_purchase_orders(xero_tenant_id, opts = {})
|
13127
13136
|
data, _status_code, _headers = get_purchase_orders_with_http_info(xero_tenant_id, opts)
|
13128
13137
|
data
|
@@ -13138,7 +13147,7 @@ module XeroRuby
|
|
13138
13147
|
# @option opts [String] :order Order by an any element
|
13139
13148
|
# @option opts [Integer] :page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned.
|
13140
13149
|
# @option opts [Integer] :page_size Number of records to retrieve per page
|
13141
|
-
# @return [Array<(
|
13150
|
+
# @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
|
13142
13151
|
def get_purchase_orders_with_http_info(xero_tenant_id, options = {})
|
13143
13152
|
opts = options.dup
|
13144
13153
|
if @api_client.config.debugging
|
@@ -13185,7 +13194,7 @@ module XeroRuby
|
|
13185
13194
|
post_body = opts[:body]
|
13186
13195
|
|
13187
13196
|
# return_type
|
13188
|
-
return_type = opts[:return_type] || '
|
13197
|
+
return_type = opts[:return_type] || 'PurchaseOrders'
|
13189
13198
|
|
13190
13199
|
# auth_names
|
13191
13200
|
auth_names = opts[:auth_names] || ['OAuth2']
|
@@ -17,11 +17,15 @@ module XeroRuby::Accounting
|
|
17
17
|
|
18
18
|
class BankTransactions
|
19
19
|
|
20
|
+
attr_accessor :pagination
|
21
|
+
|
22
|
+
|
20
23
|
attr_accessor :bank_transactions
|
21
24
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
28
|
+
:'pagination' => :'pagination',
|
25
29
|
:'bank_transactions' => :'BankTransactions'
|
26
30
|
}
|
27
31
|
end
|
@@ -29,6 +33,7 @@ module XeroRuby::Accounting
|
|
29
33
|
# Attribute type mapping.
|
30
34
|
def self.openapi_types
|
31
35
|
{
|
36
|
+
:'pagination' => :'Pagination',
|
32
37
|
:'bank_transactions' => :'Array<BankTransaction>'
|
33
38
|
}
|
34
39
|
end
|
@@ -48,6 +53,10 @@ module XeroRuby::Accounting
|
|
48
53
|
h[k.to_sym] = v
|
49
54
|
}
|
50
55
|
|
56
|
+
if attributes.key?(:'pagination')
|
57
|
+
self.pagination = attributes[:'pagination']
|
58
|
+
end
|
59
|
+
|
51
60
|
if attributes.key?(:'bank_transactions')
|
52
61
|
if (value = attributes[:'bank_transactions']).is_a?(Array)
|
53
62
|
self.bank_transactions = value
|
@@ -73,6 +82,7 @@ module XeroRuby::Accounting
|
|
73
82
|
def ==(o)
|
74
83
|
return true if self.equal?(o)
|
75
84
|
self.class == o.class &&
|
85
|
+
pagination == o.pagination &&
|
76
86
|
bank_transactions == o.bank_transactions
|
77
87
|
end
|
78
88
|
|
@@ -85,7 +95,7 @@ module XeroRuby::Accounting
|
|
85
95
|
# Calculates hash code according to all attributes.
|
86
96
|
# @return [Integer] Hash code
|
87
97
|
def hash
|
88
|
-
[bank_transactions].hash
|
98
|
+
[pagination, bank_transactions].hash
|
89
99
|
end
|
90
100
|
|
91
101
|
# Builds the object from hash
|
@@ -17,11 +17,15 @@ module XeroRuby::Accounting
|
|
17
17
|
|
18
18
|
class Contacts
|
19
19
|
|
20
|
+
attr_accessor :pagination
|
21
|
+
|
22
|
+
|
20
23
|
attr_accessor :contacts
|
21
24
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
28
|
+
:'pagination' => :'pagination',
|
25
29
|
:'contacts' => :'Contacts'
|
26
30
|
}
|
27
31
|
end
|
@@ -29,6 +33,7 @@ module XeroRuby::Accounting
|
|
29
33
|
# Attribute type mapping.
|
30
34
|
def self.openapi_types
|
31
35
|
{
|
36
|
+
:'pagination' => :'Pagination',
|
32
37
|
:'contacts' => :'Array<Contact>'
|
33
38
|
}
|
34
39
|
end
|
@@ -48,6 +53,10 @@ module XeroRuby::Accounting
|
|
48
53
|
h[k.to_sym] = v
|
49
54
|
}
|
50
55
|
|
56
|
+
if attributes.key?(:'pagination')
|
57
|
+
self.pagination = attributes[:'pagination']
|
58
|
+
end
|
59
|
+
|
51
60
|
if attributes.key?(:'contacts')
|
52
61
|
if (value = attributes[:'contacts']).is_a?(Array)
|
53
62
|
self.contacts = value
|
@@ -73,6 +82,7 @@ module XeroRuby::Accounting
|
|
73
82
|
def ==(o)
|
74
83
|
return true if self.equal?(o)
|
75
84
|
self.class == o.class &&
|
85
|
+
pagination == o.pagination &&
|
76
86
|
contacts == o.contacts
|
77
87
|
end
|
78
88
|
|
@@ -85,7 +95,7 @@ module XeroRuby::Accounting
|
|
85
95
|
# Calculates hash code according to all attributes.
|
86
96
|
# @return [Integer] Hash code
|
87
97
|
def hash
|
88
|
-
[contacts].hash
|
98
|
+
[pagination, contacts].hash
|
89
99
|
end
|
90
100
|
|
91
101
|
# Builds the object from hash
|
@@ -17,11 +17,15 @@ module XeroRuby::Accounting
|
|
17
17
|
|
18
18
|
class CreditNotes
|
19
19
|
|
20
|
+
attr_accessor :pagination
|
21
|
+
|
22
|
+
|
20
23
|
attr_accessor :credit_notes
|
21
24
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
28
|
+
:'pagination' => :'pagination',
|
25
29
|
:'credit_notes' => :'CreditNotes'
|
26
30
|
}
|
27
31
|
end
|
@@ -29,6 +33,7 @@ module XeroRuby::Accounting
|
|
29
33
|
# Attribute type mapping.
|
30
34
|
def self.openapi_types
|
31
35
|
{
|
36
|
+
:'pagination' => :'Pagination',
|
32
37
|
:'credit_notes' => :'Array<CreditNote>'
|
33
38
|
}
|
34
39
|
end
|
@@ -48,6 +53,10 @@ module XeroRuby::Accounting
|
|
48
53
|
h[k.to_sym] = v
|
49
54
|
}
|
50
55
|
|
56
|
+
if attributes.key?(:'pagination')
|
57
|
+
self.pagination = attributes[:'pagination']
|
58
|
+
end
|
59
|
+
|
51
60
|
if attributes.key?(:'credit_notes')
|
52
61
|
if (value = attributes[:'credit_notes']).is_a?(Array)
|
53
62
|
self.credit_notes = value
|
@@ -73,6 +82,7 @@ module XeroRuby::Accounting
|
|
73
82
|
def ==(o)
|
74
83
|
return true if self.equal?(o)
|
75
84
|
self.class == o.class &&
|
85
|
+
pagination == o.pagination &&
|
76
86
|
credit_notes == o.credit_notes
|
77
87
|
end
|
78
88
|
|
@@ -85,7 +95,7 @@ module XeroRuby::Accounting
|
|
85
95
|
# Calculates hash code according to all attributes.
|
86
96
|
# @return [Integer] Hash code
|
87
97
|
def hash
|
88
|
-
[credit_notes].hash
|
98
|
+
[pagination, credit_notes].hash
|
89
99
|
end
|
90
100
|
|
91
101
|
# Builds the object from hash
|
@@ -17,11 +17,15 @@ module XeroRuby::Accounting
|
|
17
17
|
|
18
18
|
class Invoices
|
19
19
|
|
20
|
+
attr_accessor :pagination
|
21
|
+
|
22
|
+
|
20
23
|
attr_accessor :invoices
|
21
24
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
28
|
+
:'pagination' => :'pagination',
|
25
29
|
:'invoices' => :'Invoices'
|
26
30
|
}
|
27
31
|
end
|
@@ -29,6 +33,7 @@ module XeroRuby::Accounting
|
|
29
33
|
# Attribute type mapping.
|
30
34
|
def self.openapi_types
|
31
35
|
{
|
36
|
+
:'pagination' => :'Pagination',
|
32
37
|
:'invoices' => :'Array<Invoice>'
|
33
38
|
}
|
34
39
|
end
|
@@ -48,6 +53,10 @@ module XeroRuby::Accounting
|
|
48
53
|
h[k.to_sym] = v
|
49
54
|
}
|
50
55
|
|
56
|
+
if attributes.key?(:'pagination')
|
57
|
+
self.pagination = attributes[:'pagination']
|
58
|
+
end
|
59
|
+
|
51
60
|
if attributes.key?(:'invoices')
|
52
61
|
if (value = attributes[:'invoices']).is_a?(Array)
|
53
62
|
self.invoices = value
|
@@ -73,6 +82,7 @@ module XeroRuby::Accounting
|
|
73
82
|
def ==(o)
|
74
83
|
return true if self.equal?(o)
|
75
84
|
self.class == o.class &&
|
85
|
+
pagination == o.pagination &&
|
76
86
|
invoices == o.invoices
|
77
87
|
end
|
78
88
|
|
@@ -85,7 +95,7 @@ module XeroRuby::Accounting
|
|
85
95
|
# Calculates hash code according to all attributes.
|
86
96
|
# @return [Integer] Hash code
|
87
97
|
def hash
|
88
|
-
[invoices].hash
|
98
|
+
[pagination, invoices].hash
|
89
99
|
end
|
90
100
|
|
91
101
|
# Builds the object from hash
|
@@ -17,11 +17,15 @@ module XeroRuby::Accounting
|
|
17
17
|
|
18
18
|
class ManualJournals
|
19
19
|
|
20
|
+
attr_accessor :pagination
|
21
|
+
|
22
|
+
|
20
23
|
attr_accessor :manual_journals
|
21
24
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
28
|
+
:'pagination' => :'pagination',
|
25
29
|
:'manual_journals' => :'ManualJournals'
|
26
30
|
}
|
27
31
|
end
|
@@ -29,6 +33,7 @@ module XeroRuby::Accounting
|
|
29
33
|
# Attribute type mapping.
|
30
34
|
def self.openapi_types
|
31
35
|
{
|
36
|
+
:'pagination' => :'Pagination',
|
32
37
|
:'manual_journals' => :'Array<ManualJournal>'
|
33
38
|
}
|
34
39
|
end
|
@@ -48,6 +53,10 @@ module XeroRuby::Accounting
|
|
48
53
|
h[k.to_sym] = v
|
49
54
|
}
|
50
55
|
|
56
|
+
if attributes.key?(:'pagination')
|
57
|
+
self.pagination = attributes[:'pagination']
|
58
|
+
end
|
59
|
+
|
51
60
|
if attributes.key?(:'manual_journals')
|
52
61
|
if (value = attributes[:'manual_journals']).is_a?(Array)
|
53
62
|
self.manual_journals = value
|
@@ -73,6 +82,7 @@ module XeroRuby::Accounting
|
|
73
82
|
def ==(o)
|
74
83
|
return true if self.equal?(o)
|
75
84
|
self.class == o.class &&
|
85
|
+
pagination == o.pagination &&
|
76
86
|
manual_journals == o.manual_journals
|
77
87
|
end
|
78
88
|
|
@@ -85,7 +95,7 @@ module XeroRuby::Accounting
|
|
85
95
|
# Calculates hash code according to all attributes.
|
86
96
|
# @return [Integer] Hash code
|
87
97
|
def hash
|
88
|
-
[manual_journals].hash
|
98
|
+
[pagination, manual_journals].hash
|
89
99
|
end
|
90
100
|
|
91
101
|
# Builds the object from hash
|
@@ -168,6 +168,10 @@ module XeroRuby::Accounting
|
|
168
168
|
NON_GST_CASHBOOK ||= "NON_GST_CASHBOOK".freeze
|
169
169
|
ULTIMATE ||= "ULTIMATE".freeze
|
170
170
|
LITE ||= "LITE".freeze
|
171
|
+
ULTIMATE_10 ||= "ULTIMATE_10".freeze
|
172
|
+
ULTIMATE_20 ||= "ULTIMATE_20".freeze
|
173
|
+
ULTIMATE_50 ||= "ULTIMATE_50".freeze
|
174
|
+
ULTIMATE_100 ||= "ULTIMATE_100".freeze
|
171
175
|
IGNITE ||= "IGNITE".freeze
|
172
176
|
GROW ||= "GROW".freeze
|
173
177
|
COMPREHENSIVE ||= "COMPREHENSIVE".freeze
|
@@ -466,7 +470,7 @@ module XeroRuby::Accounting
|
|
466
470
|
return false unless sales_tax_period_validator.valid?(@sales_tax_period)
|
467
471
|
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"])
|
468
472
|
return false unless organisation_entity_type_validator.valid?(@organisation_entity_type)
|
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"])
|
473
|
+
_class_validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "ULTIMATE_10", "ULTIMATE_20", "ULTIMATE_50", "ULTIMATE_100", "IGNITE", "GROW", "COMPREHENSIVE"])
|
470
474
|
return false unless _class_validator.valid?(@_class)
|
471
475
|
edition_validator = EnumAttributeValidator.new('String', ["BUSINESS", "PARTNER"])
|
472
476
|
return false unless edition_validator.valid?(@edition)
|
@@ -526,7 +530,7 @@ module XeroRuby::Accounting
|
|
526
530
|
# Custom attribute writer method checking allowed values (enum).
|
527
531
|
# @param [Object] _class Object to be assigned
|
528
532
|
def _class=(_class)
|
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"])
|
533
|
+
validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "ULTIMATE_10", "ULTIMATE_20", "ULTIMATE_50", "ULTIMATE_100", "IGNITE", "GROW", "COMPREHENSIVE"])
|
530
534
|
unless validator.valid?(_class)
|
531
535
|
fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
|
532
536
|
end
|
@@ -17,11 +17,15 @@ module XeroRuby::Accounting
|
|
17
17
|
|
18
18
|
class Overpayments
|
19
19
|
|
20
|
+
attr_accessor :pagination
|
21
|
+
|
22
|
+
|
20
23
|
attr_accessor :overpayments
|
21
24
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
28
|
+
:'pagination' => :'pagination',
|
25
29
|
:'overpayments' => :'Overpayments'
|
26
30
|
}
|
27
31
|
end
|
@@ -29,6 +33,7 @@ module XeroRuby::Accounting
|
|
29
33
|
# Attribute type mapping.
|
30
34
|
def self.openapi_types
|
31
35
|
{
|
36
|
+
:'pagination' => :'Pagination',
|
32
37
|
:'overpayments' => :'Array<Overpayment>'
|
33
38
|
}
|
34
39
|
end
|
@@ -48,6 +53,10 @@ module XeroRuby::Accounting
|
|
48
53
|
h[k.to_sym] = v
|
49
54
|
}
|
50
55
|
|
56
|
+
if attributes.key?(:'pagination')
|
57
|
+
self.pagination = attributes[:'pagination']
|
58
|
+
end
|
59
|
+
|
51
60
|
if attributes.key?(:'overpayments')
|
52
61
|
if (value = attributes[:'overpayments']).is_a?(Array)
|
53
62
|
self.overpayments = value
|
@@ -73,6 +82,7 @@ module XeroRuby::Accounting
|
|
73
82
|
def ==(o)
|
74
83
|
return true if self.equal?(o)
|
75
84
|
self.class == o.class &&
|
85
|
+
pagination == o.pagination &&
|
76
86
|
overpayments == o.overpayments
|
77
87
|
end
|
78
88
|
|
@@ -85,7 +95,7 @@ module XeroRuby::Accounting
|
|
85
95
|
# Calculates hash code according to all attributes.
|
86
96
|
# @return [Integer] Hash code
|
87
97
|
def hash
|
88
|
-
[overpayments].hash
|
98
|
+
[pagination, overpayments].hash
|
89
99
|
end
|
90
100
|
|
91
101
|
# Builds the object from hash
|