Module: QboApi::Supporting

Included in:
QboApi
Defined in:
lib/qbo_api/supporting.rb

Instance Method Summary collapse

Instance Method Details

#batch(payload) ⇒ Object



10
11
12
13
# File 'lib/qbo_api/supporting.rb', line 10

def batch(payload)
  path = "#{realm_id}/batch"
  request(:post, path: path, payload: payload)
end

#cdc(entities:, changed_since:) ⇒ Object



4
5
6
7
8
# File 'lib/qbo_api/supporting.rb', line 4

def cdc(entities:, changed_since:)
  path = "#{realm_id}/cdc"
  path = add_params_to_path(path: path, params: { entities: entities, changedSince: cdc_time(changed_since) })
  request(:get, path: path)
end

#reports(name:, params: nil) ⇒ Object



15
16
17
18
19
# File 'lib/qbo_api/supporting.rb', line 15

def reports(name:, params: nil)
  path = "#{realm_id}/reports/#{name}"
  path = add_params_to_path(path: path, params: params) if params
  request(:get, path: path)
end