xero-ruby 7.0.0 → 9.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d67efc5594cf08152e6c19e21be97c9d10523fb57b0417f8e25bae32c661529
4
- data.tar.gz: b1450c96d030b62fc025c5487e8d6f3df56cc3a76cec6528adab922de24b66f5
3
+ metadata.gz: c06e7f06863e1752368fac13b1819641f1e23aef142f325a996f29a5c42f8344
4
+ data.tar.gz: b9e0c0c50bb722dba71e110f7b3cd6edc9b61ca91ff455969212ddbee05ba9d1
5
5
  SHA512:
6
- metadata.gz: 33c8ac8aff08468d9a45d5b6c07c567d0af5ba22ac0e10354669c219d87436f3c37a19fd694e6fec9124966722dde4f3b1a397ccc4d354cf9a292922d8c7b6ac
7
- data.tar.gz: be35c7fb0ecc15333ab0cca08a694ca2d237d2c9be91a534d3bfc0ff6990a05f77789400cd5fee62ed1ce83568ca0c06dc2a82e85b86c6b5e9e2f5b88553ffed
6
+ metadata.gz: 51779b2df43078b8f388f64e10bd999c086de90320c7966a21b8b342ffa18a9498f8a7887c627907591157378555f27dd9de2c5777caadedfd623ab7b9797ca9
7
+ data.tar.gz: e34c11a0874de9ef9f0969ef437449b9f3aef6fc63eb1b202d3bbcb74c02bd048e71a1694c71390451ab2290fd53de1c6ac82ce676287e5e03edb8dda0e52a0a
data/README.md CHANGED
@@ -46,7 +46,7 @@ Sample apps can get you started quickly with simple auth flows to advanced usage
46
46
  | --- | --- | --- |
47
47
  | [`xero-ruby-oauth2-starter`](https://github.com/XeroAPI/Xero-ruby-oauth2-starter) | A Sinatra application showing the basic getting started code to work with the sdk | <img src="https://i.imgur.com/9H4F98M.png" alt="drawing" width="300"/>
48
48
  | [`xero-ruby-oauth2-app`](https://github.com/XeroAPI/Xero-ruby-oauth2-app) | Complete rails app with +95% of api set examples, complex filters, pagination, and user/token management in postgres | <img src="https://i.imgur.com/XsAp9Ww.png" alt="drawing" width="500"/>
49
- | [`xero-ruby-custom-connections-starter`](https://github.com/XeroAPI/xero-ruby-custom-connections-starter) | A getting started Sinatra app showing Custom Connections - a Xero [premium option](https://developer.xero.com/documentation/guides/oauth2/custom-connections) for building M2M integrations to a single org | <img src="https://i.imgur.com/YEkScui.png" alt="drawing" width="300"/>
49
+ | [`xero-ruby-custom-connections-starter`](https://github.com/XeroAPI/xero-ruby-custom-connections-starter) | A getting started Sinatra app showing Custom Connections - a Xero [premium option](https://developer.xero.com/documentation/oauth2/custom-connections) for building M2M integrations to a single org | <img src="https://i.imgur.com/YEkScui.png" alt="drawing" width="300"/>
50
50
  | [`xero-ruby-sso-form`](https://github.com/XeroAPI/xero-ruby-sso-form) | A basic Sinatra app showing how to implement SSU to Lead | <img src="https://i.imgur.com/Nf95GVd.png" alt="drawing" width="300"/>
51
51
 
52
52
  <hr>
@@ -6679,6 +6679,7 @@ module XeroRuby
6679
6679
  # @option opts [String] :order Order by an any element
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&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
6682
+ # @option opts [Integer] :page_size Number of records to retrieve per page
6682
6683
  # @return [BankTransactions]
6683
6684
  def get_bank_transactions(xero_tenant_id, opts = {})
6684
6685
  data, _status_code, _headers = get_bank_transactions_with_http_info(xero_tenant_id, opts)
@@ -6693,6 +6694,7 @@ module XeroRuby
6693
6694
  # @option opts [String] :order Order by an any element
6694
6695
  # @option opts [Integer] :page Up to 100 bank transactions will be returned in a single API call with line items details
6695
6696
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
6697
+ # @option opts [Integer] :page_size Number of records to retrieve per page
6696
6698
  # @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
6697
6699
  def get_bank_transactions_with_http_info(xero_tenant_id, options = {})
6698
6700
  opts = options.dup
@@ -6715,6 +6717,7 @@ module XeroRuby
6715
6717
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
6716
6718
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
6717
6719
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
6720
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
6718
6721
 
6719
6722
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
6720
6723
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -8627,6 +8630,7 @@ module XeroRuby
8627
8630
  # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Contacts with a status of ARCHIVED will be included in the response
8628
8631
  # @option opts [Boolean] :summary_only Use summaryOnly&#x3D;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)
8629
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
+ # @option opts [Integer] :page_size Number of records to retrieve per page
8630
8634
  # @return [Contacts]
8631
8635
  def get_contacts(xero_tenant_id, opts = {})
8632
8636
  data, _status_code, _headers = get_contacts_with_http_info(xero_tenant_id, opts)
@@ -8644,6 +8648,7 @@ module XeroRuby
8644
8648
  # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Contacts with a status of ARCHIVED will be included in the response
8645
8649
  # @option opts [Boolean] :summary_only Use summaryOnly&#x3D;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.
8646
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
+ # @option opts [Integer] :page_size Number of records to retrieve per page
8647
8652
  # @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
8648
8653
  def get_contacts_with_http_info(xero_tenant_id, options = {})
8649
8654
  opts = options.dup
@@ -8669,6 +8674,7 @@ module XeroRuby
8669
8674
  query_params[:'includeArchived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil?
8670
8675
  query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil?
8671
8676
  query_params[:'searchTerm'] = opts[:'search_term'] if !opts[:'search_term'].nil?
8677
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
8672
8678
 
8673
8679
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
8674
8680
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -9196,6 +9202,7 @@ module XeroRuby
9196
9202
  # @option opts [String] :order Order by an any element
9197
9203
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note
9198
9204
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
9205
+ # @option opts [Integer] :page_size Number of records to retrieve per page
9199
9206
  # @return [CreditNotes]
9200
9207
  def get_credit_notes(xero_tenant_id, opts = {})
9201
9208
  data, _status_code, _headers = get_credit_notes_with_http_info(xero_tenant_id, opts)
@@ -9210,6 +9217,7 @@ module XeroRuby
9210
9217
  # @option opts [String] :order Order by an any element
9211
9218
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note
9212
9219
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
9220
+ # @option opts [Integer] :page_size Number of records to retrieve per page
9213
9221
  # @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
9214
9222
  def get_credit_notes_with_http_info(xero_tenant_id, options = {})
9215
9223
  opts = options.dup
@@ -9232,6 +9240,7 @@ module XeroRuby
9232
9240
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
9233
9241
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
9234
9242
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
9243
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
9235
9244
 
9236
9245
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9237
9246
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -10291,6 +10300,8 @@ module XeroRuby
10291
10300
  # @option opts [Boolean] :created_by_my_app When set to true you&#39;ll only retrieve Invoices created by your app
10292
10301
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
10293
10302
  # @option opts [Boolean] :summary_only Use summaryOnly&#x3D;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
+ # @option opts [Integer] :page_size Number of records to retrieve per page
10304
+ # @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the fields e.g. InvoiceNumber, Reference.
10294
10305
  # @return [Invoices]
10295
10306
  def get_invoices(xero_tenant_id, opts = {})
10296
10307
  data, _status_code, _headers = get_invoices_with_http_info(xero_tenant_id, opts)
@@ -10312,6 +10323,8 @@ module XeroRuby
10312
10323
  # @option opts [Boolean] :created_by_my_app When set to true you&#39;ll only retrieve Invoices created by your app
10313
10324
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
10314
10325
  # @option opts [Boolean] :summary_only Use summaryOnly&#x3D;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.
10326
+ # @option opts [Integer] :page_size Number of records to retrieve per page
10327
+ # @option opts [String] :search_term Search parameter that performs a case-insensitive text search across the fields e.g. InvoiceNumber, Reference.
10315
10328
  # @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
10316
10329
  def get_invoices_with_http_info(xero_tenant_id, options = {})
10317
10330
  opts = options.dup
@@ -10341,6 +10354,8 @@ module XeroRuby
10341
10354
  query_params[:'createdByMyApp'] = opts[:'created_by_my_app'] if !opts[:'created_by_my_app'].nil?
10342
10355
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
10343
10356
  query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil?
10357
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
10358
+ query_params[:'searchTerm'] = opts[:'search_term'] if !opts[:'search_term'].nil?
10344
10359
 
10345
10360
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10346
10361
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -11338,6 +11353,7 @@ module XeroRuby
11338
11353
  # @option opts [String] :where Filter by an any element
11339
11354
  # @option opts [String] :order Order by an any element
11340
11355
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment
11356
+ # @option opts [Integer] :page_size Number of records to retrieve per page
11341
11357
  # @return [ManualJournals]
11342
11358
  def get_manual_journals(xero_tenant_id, opts = {})
11343
11359
  data, _status_code, _headers = get_manual_journals_with_http_info(xero_tenant_id, opts)
@@ -11351,6 +11367,7 @@ module XeroRuby
11351
11367
  # @option opts [String] :where Filter by an any element
11352
11368
  # @option opts [String] :order Order by an any element
11353
11369
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment
11370
+ # @option opts [Integer] :page_size Number of records to retrieve per page
11354
11371
  # @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
11355
11372
  def get_manual_journals_with_http_info(xero_tenant_id, options = {})
11356
11373
  opts = options.dup
@@ -11372,6 +11389,7 @@ module XeroRuby
11372
11389
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
11373
11390
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
11374
11391
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
11392
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
11375
11393
 
11376
11394
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11377
11395
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -11933,6 +11951,7 @@ module XeroRuby
11933
11951
  # @option opts [String] :order Order by an any element
11934
11952
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment
11935
11953
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
11954
+ # @option opts [Integer] :page_size Number of records to retrieve per page
11936
11955
  # @return [Overpayments]
11937
11956
  def get_overpayments(xero_tenant_id, opts = {})
11938
11957
  data, _status_code, _headers = get_overpayments_with_http_info(xero_tenant_id, opts)
@@ -11947,6 +11966,7 @@ module XeroRuby
11947
11966
  # @option opts [String] :order Order by an any element
11948
11967
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment
11949
11968
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
11969
+ # @option opts [Integer] :page_size Number of records to retrieve per page
11950
11970
  # @return [Array<(Overpayments, Integer, Hash)>] Overpayments data, response status code and response headers
11951
11971
  def get_overpayments_with_http_info(xero_tenant_id, options = {})
11952
11972
  opts = options.dup
@@ -11969,6 +11989,7 @@ module XeroRuby
11969
11989
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
11970
11990
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
11971
11991
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
11992
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
11972
11993
 
11973
11994
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11974
11995
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -12235,6 +12256,7 @@ module XeroRuby
12235
12256
  # @option opts [String] :where Filter by an any element
12236
12257
  # @option opts [String] :order Order by an any element
12237
12258
  # @option opts [Integer] :page Up to 100 payments will be returned in a single API call
12259
+ # @option opts [Integer] :page_size Number of records to retrieve per page
12238
12260
  # @return [Payments]
12239
12261
  def get_payments(xero_tenant_id, opts = {})
12240
12262
  data, _status_code, _headers = get_payments_with_http_info(xero_tenant_id, opts)
@@ -12248,6 +12270,7 @@ module XeroRuby
12248
12270
  # @option opts [String] :where Filter by an any element
12249
12271
  # @option opts [String] :order Order by an any element
12250
12272
  # @option opts [Integer] :page Up to 100 payments will be returned in a single API call
12273
+ # @option opts [Integer] :page_size Number of records to retrieve per page
12251
12274
  # @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
12252
12275
  def get_payments_with_http_info(xero_tenant_id, options = {})
12253
12276
  opts = options.dup
@@ -12269,6 +12292,7 @@ module XeroRuby
12269
12292
  query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil?
12270
12293
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
12271
12294
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
12295
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
12272
12296
 
12273
12297
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12274
12298
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -12467,6 +12491,7 @@ module XeroRuby
12467
12491
  # @option opts [String] :order Order by an any element
12468
12492
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
12469
12493
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
12494
+ # @option opts [Integer] :page_size Number of records to retrieve per page
12470
12495
  # @return [Prepayments]
12471
12496
  def get_prepayments(xero_tenant_id, opts = {})
12472
12497
  data, _status_code, _headers = get_prepayments_with_http_info(xero_tenant_id, opts)
@@ -12481,6 +12506,7 @@ module XeroRuby
12481
12506
  # @option opts [String] :order Order by an any element
12482
12507
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
12483
12508
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
12509
+ # @option opts [Integer] :page_size Number of records to retrieve per page
12484
12510
  # @return [Array<(Prepayments, Integer, Hash)>] Prepayments data, response status code and response headers
12485
12511
  def get_prepayments_with_http_info(xero_tenant_id, options = {})
12486
12512
  opts = options.dup
@@ -12503,6 +12529,7 @@ module XeroRuby
12503
12529
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
12504
12530
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
12505
12531
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
12532
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
12506
12533
 
12507
12534
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
12508
12535
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -13103,6 +13130,7 @@ module XeroRuby
13103
13130
  # @option opts [String] :date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom&#x3D;2015-12-01&amp;DateTo&#x3D;2015-12-31
13104
13131
  # @option opts [String] :order Order by an any element
13105
13132
  # @option opts [Integer] :page To specify a page, append the page parameter to the URL e.g. ?page&#x3D;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&#x3D;2 and continuing this process until no more results are returned.
13133
+ # @option opts [Integer] :page_size Number of records to retrieve per page
13106
13134
  # @return [PurchaseOrders]
13107
13135
  def get_purchase_orders(xero_tenant_id, opts = {})
13108
13136
  data, _status_code, _headers = get_purchase_orders_with_http_info(xero_tenant_id, opts)
@@ -13118,6 +13146,7 @@ module XeroRuby
13118
13146
  # @option opts [String] :date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom&#x3D;2015-12-01&amp;DateTo&#x3D;2015-12-31
13119
13147
  # @option opts [String] :order Order by an any element
13120
13148
  # @option opts [Integer] :page To specify a page, append the page parameter to the URL e.g. ?page&#x3D;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&#x3D;2 and continuing this process until no more results are returned.
13149
+ # @option opts [Integer] :page_size Number of records to retrieve per page
13121
13150
  # @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
13122
13151
  def get_purchase_orders_with_http_info(xero_tenant_id, options = {})
13123
13152
  opts = options.dup
@@ -13145,6 +13174,7 @@ module XeroRuby
13145
13174
  query_params[:'DateTo'] = opts[:'date_to'] if !opts[:'date_to'].nil?
13146
13175
  query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
13147
13176
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
13177
+ query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
13148
13178
 
13149
13179
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13150
13180
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -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
@@ -0,0 +1,252 @@
1
+ =begin
2
+ #Xero Accounting API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ Contact: api@xero.com
7
+ Generated by: https://openapi-generator.tech
8
+ OpenAPI Generator version: 4.3.1
9
+
10
+ =end
11
+
12
+ require 'time'
13
+ require 'date'
14
+
15
+ module XeroRuby::Accounting
16
+ require 'bigdecimal'
17
+
18
+ class Pagination
19
+
20
+ attr_accessor :page
21
+
22
+
23
+ attr_accessor :page_size
24
+
25
+
26
+ attr_accessor :page_count
27
+
28
+
29
+ attr_accessor :item_count
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'page' => :'page',
35
+ :'page_size' => :'pageSize',
36
+ :'page_count' => :'pageCount',
37
+ :'item_count' => :'itemCount'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'page' => :'Integer',
45
+ :'page_size' => :'Integer',
46
+ :'page_count' => :'Integer',
47
+ :'item_count' => :'Integer'
48
+ }
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `XeroRuby::Accounting::Pagination` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `XeroRuby::Accounting::Pagination`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'page')
67
+ self.page = attributes[:'page']
68
+ end
69
+
70
+ if attributes.key?(:'page_size')
71
+ self.page_size = attributes[:'page_size']
72
+ end
73
+
74
+ if attributes.key?(:'page_count')
75
+ self.page_count = attributes[:'page_count']
76
+ end
77
+
78
+ if attributes.key?(:'item_count')
79
+ self.item_count = attributes[:'item_count']
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ invalid_properties = Array.new
87
+ invalid_properties
88
+ end
89
+
90
+ # Check to see if the all the properties in the model are valid
91
+ # @return true if the model is valid
92
+ def valid?
93
+ true
94
+ end
95
+
96
+ # Checks equality by comparing each attribute.
97
+ # @param [Object] Object to be compared
98
+ def ==(o)
99
+ return true if self.equal?(o)
100
+ self.class == o.class &&
101
+ page == o.page &&
102
+ page_size == o.page_size &&
103
+ page_count == o.page_count &&
104
+ item_count == o.item_count
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ def hash
116
+ [page, page_size, page_count, item_count].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def self.build_from_hash(attributes)
123
+ new.build_from_hash(attributes)
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ self.class.openapi_types.each_pair do |key, type|
132
+ if type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the attribute
134
+ # is documented as an array but the input is not
135
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
137
+ end
138
+ elsif !attributes[self.class.attribute_map[key]].nil?
139
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
141
+ end
142
+
143
+ self
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def _deserialize(type, value)
151
+ case type.to_sym
152
+ when :DateTime
153
+ DateTime.parse(parse_date(value))
154
+ when :Date
155
+ Date.parse(parse_date(value))
156
+ when :String
157
+ value.to_s
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :BigDecimal
163
+ BigDecimal(value.to_s)
164
+ when :Boolean
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ XeroRuby::Accounting.const_get(type).build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ # Returns the string representation of the object
190
+ # @return [String] String presentation of the object
191
+ def to_s
192
+ to_hash.to_s
193
+ end
194
+
195
+ # to_body is an alias to to_hash (backward compatibility)
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_body
198
+ to_hash
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash(downcase: false)
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ next if value.nil?
208
+ key = downcase ? attr : param
209
+ hash[key] = _to_hash(value, downcase: downcase)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Returns the object in the form of hash with snake_case
215
+ def to_attributes
216
+ to_hash(downcase: true)
217
+ end
218
+
219
+ # Outputs non-array value in the form of hash
220
+ # For object, use to_hash. Otherwise, just return the value
221
+ # @param [Object] value Any valid value
222
+ # @return [Hash] Returns the value in the form of hash
223
+ def _to_hash(value, downcase: false)
224
+ if value.is_a?(Array)
225
+ value.map do |v|
226
+ v.to_hash(downcase: downcase)
227
+ end
228
+ elsif value.is_a?(Hash)
229
+ {}.tap do |hash|
230
+ value.map { |k, v| hash[k] = _to_hash(v, downcase: downcase) }
231
+ end
232
+ elsif value.respond_to? :to_hash
233
+ value.to_hash(downcase: downcase)
234
+ else
235
+ value
236
+ end
237
+ end
238
+
239
+ def parse_date(datestring)
240
+ if datestring.include?('Date')
241
+ date_pattern = /\/Date\((-?\d+)(\+\d+)?\)\//
242
+ original, date, timezone = *date_pattern.match(datestring)
243
+ date = (date.to_i / 1000)
244
+ Time.at(date).utc.strftime('%Y-%m-%dT%H:%M:%S%z').to_s
245
+ elsif /(\d\d\d\d)-(\d\d)/.match(datestring) # handles dates w/out Days: YYYY-MM*-DD
246
+ Time.parse(datestring + '-01').strftime('%Y-%m-%dT%H:%M:%S').to_s
247
+ else # handle date 'types' for small subset of payroll API's
248
+ Time.parse(datestring).strftime('%Y-%m-%dT%H:%M:%S').to_s
249
+ end
250
+ end
251
+ end
252
+ end
@@ -17,11 +17,15 @@ module XeroRuby::Accounting
17
17
 
18
18
  class Payments
19
19
 
20
+ attr_accessor :pagination
21
+
22
+
20
23
  attr_accessor :payments
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
  :'payments' => :'Payments'
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
  :'payments' => :'Array<Payment>'
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?(:'payments')
52
61
  if (value = attributes[:'payments']).is_a?(Array)
53
62
  self.payments = 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
  payments == o.payments
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
- [payments].hash
98
+ [pagination, payments].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 Prepayments
19
19
 
20
+ attr_accessor :pagination
21
+
22
+
20
23
  attr_accessor :prepayments
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
  :'prepayments' => :'Prepayments'
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
  :'prepayments' => :'Array<Prepayment>'
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?(:'prepayments')
52
61
  if (value = attributes[:'prepayments']).is_a?(Array)
53
62
  self.prepayments = 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
  prepayments == o.prepayments
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
- [prepayments].hash
98
+ [pagination, prepayments].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 PurchaseOrders
19
19
 
20
+ attr_accessor :pagination
21
+
22
+
20
23
  attr_accessor :purchase_orders
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
  :'purchase_orders' => :'PurchaseOrders'
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
  :'purchase_orders' => :'Array<PurchaseOrder>'
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?(:'purchase_orders')
52
61
  if (value = attributes[:'purchase_orders']).is_a?(Array)
53
62
  self.purchase_orders = 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
  purchase_orders == o.purchase_orders
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
- [purchase_orders].hash
98
+ [pagination, purchase_orders].hash
89
99
  end
90
100
 
91
101
  # Builds the object from hash
@@ -16,49 +16,49 @@ module XeroRuby::Finance
16
16
  require 'bigdecimal'
17
17
 
18
18
  class DataSourceResponse
19
- # Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data.
19
+ # Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data.
20
20
  attr_accessor :direct_bank_feed
21
21
 
22
- # Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data.
22
+ # No longer in use.
23
23
  attr_accessor :indirect_bank_feed
24
24
 
25
- # Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data.
25
+ # Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data.
26
26
  attr_accessor :file_upload
27
27
 
28
- # Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data.
28
+ # Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data.
29
29
  attr_accessor :manual
30
30
 
31
- # Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
31
+ # Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
32
32
  attr_accessor :direct_bank_feed_pos
33
33
 
34
- # Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
34
+ # No longer in use.
35
35
  attr_accessor :indirect_bank_feed_pos
36
36
 
37
- # Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
37
+ # Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
38
38
  attr_accessor :file_upload_pos
39
39
 
40
- # Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
40
+ # Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
41
41
  attr_accessor :manual_pos
42
42
 
43
- # Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
43
+ # Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
44
44
  attr_accessor :direct_bank_feed_neg
45
45
 
46
- # Sum of the amounts of all statement lines where the source of the data was a indirect bank feed to Xero (usually via Yodlee). This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
46
+ # No longer in use.
47
47
  attr_accessor :indirect_bank_feed_neg
48
48
 
49
- # Sum of the amounts of all statement lines where the source of the data was a CSV file upload in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
49
+ # Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
50
50
  attr_accessor :file_upload_neg
51
51
 
52
- # Sum of the amounts of all statement lines where the source of the data was manually keyed in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
52
+ # Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
53
53
  attr_accessor :manual_neg
54
54
 
55
- # Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
55
+ # Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.
56
56
  attr_accessor :other_pos
57
57
 
58
- # Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
58
+ # Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.
59
59
  attr_accessor :other_neg
60
60
 
61
- # Sum of the amounts of all statement lines where the source of the data was any other category. This gives an indication on the certainty of correctness of the data.
61
+ # Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data.
62
62
  attr_accessor :other
63
63
 
64
64
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -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: 4.0.0
10
+ The version of the XeroOpenAPI document: 6.0.0
11
11
  =end
12
12
 
13
13
  module XeroRuby
14
- VERSION = '7.0.0'
14
+ VERSION = '9.0.0'
15
15
  end
data/lib/xero-ruby.rb CHANGED
@@ -483,6 +483,7 @@ require 'xero-ruby/models/accounting/organisation'
483
483
  require 'xero-ruby/models/accounting/organisations'
484
484
  require 'xero-ruby/models/accounting/overpayment'
485
485
  require 'xero-ruby/models/accounting/overpayments'
486
+ require 'xero-ruby/models/accounting/pagination'
486
487
  require 'xero-ruby/models/accounting/payment'
487
488
  require 'xero-ruby/models/accounting/payment_delete'
488
489
  require 'xero-ruby/models/accounting/payment_service'
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: 7.0.0
4
+ version: 9.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xero API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-21 00:00:00.000000000 Z
11
+ date: 2024-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -196,6 +196,7 @@ files:
196
196
  - lib/xero-ruby/models/accounting/organisations.rb
197
197
  - lib/xero-ruby/models/accounting/overpayment.rb
198
198
  - lib/xero-ruby/models/accounting/overpayments.rb
199
+ - lib/xero-ruby/models/accounting/pagination.rb
199
200
  - lib/xero-ruby/models/accounting/payment.rb
200
201
  - lib/xero-ruby/models/accounting/payment_delete.rb
201
202
  - lib/xero-ruby/models/accounting/payment_service.rb