xero-ruby 8.0.0 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/xero-ruby/api/accounting_api.rb +36 -27
- data/lib/xero-ruby/api/payroll_nz_api.rb +330 -7
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +23 -1
- data/lib/xero-ruby/models/accounting/contacts.rb +23 -1
- data/lib/xero-ruby/models/accounting/credit_notes.rb +23 -1
- data/lib/xero-ruby/models/accounting/invoices.rb +23 -1
- data/lib/xero-ruby/models/accounting/journals.rb +13 -1
- data/lib/xero-ruby/models/accounting/manual_journals.rb +23 -1
- data/lib/xero-ruby/models/accounting/organisation.rb +6 -2
- data/lib/xero-ruby/models/accounting/overpayments.rb +23 -1
- data/lib/xero-ruby/models/accounting/{page_info.rb → pagination.rb} +18 -19
- data/lib/xero-ruby/models/accounting/payments.rb +23 -1
- data/lib/xero-ruby/models/accounting/prepayments.rb +23 -1
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +23 -1
- data/lib/xero-ruby/models/payroll_nz/employee.rb +24 -4
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +24 -4
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +14 -4
- data/lib/xero-ruby/models/payroll_nz/employee_working_pattern.rb +242 -0
- data/lib/xero-ruby/models/{accounting/get_payments_response.rb → payroll_nz/employee_working_pattern_with_working_weeks.rb} +39 -59
- data/lib/xero-ruby/models/payroll_nz/employee_working_pattern_with_working_weeks_object.rb +242 -0
- data/lib/xero-ruby/models/{accounting/get_invoices_response.rb → payroll_nz/employee_working_pattern_with_working_weeks_request.rb} +32 -62
- data/lib/xero-ruby/models/{accounting/get_contacts_response.rb → payroll_nz/employee_working_patterns_object.rb} +27 -57
- data/lib/xero-ruby/models/payroll_nz/employment.rb +24 -4
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +28 -4
- data/lib/xero-ruby/models/{accounting/get_manual_journals_response.rb → payroll_nz/working_week.rb} +95 -52
- data/lib/xero-ruby/version.rb +2 -2
- data/lib/xero-ruby.rb +7 -10
- metadata +9 -12
- data/lib/xero-ruby/models/accounting/get_bank_transactions_response.rb +0 -274
- data/lib/xero-ruby/models/accounting/get_credit_notes_response.rb +0 -274
- data/lib/xero-ruby/models/accounting/get_overpayments_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: b5cea31dc5f734a38373693bed82c5598029105edde9f559abe4c0de476b6366
         | 
| 4 | 
            +
              data.tar.gz: 53ac2c9bebabc20d027d92bc0c0413cb9e8084e8fa97e7c436800171abd7d219
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 7d0c022507703485caf76b9e937fcf3f90f71f88e8273770519b3bfdf87d962d15b1aa2ff8eca4cdf346c4f9333e65b9be86f934742c48679fbc838c85f71ef5
         | 
| 7 | 
            +
              data.tar.gz: c34ecc936d2efa3c3f80d155549bcaf6225bdaa5bdd5851d156ebcca705234bc520f4891f680a5d162646248c23dbd5ac00d37d3db51232e315cba3dc95564f5
         | 
| @@ -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']
         |