Class: Eligible::Claim
Instance Attribute Summary
#api_key, #eligible_id
Class Method Summary
collapse
Methods inherited from APIResource
api_url, class_name, endpoint_name, require_param, required_param_validation, rest_api_params, send_request, url
#[], #[]=, construct_from, #each, #error, #initialize, #keys, #refresh_from, #to_hash, #to_json, #values
Class Method Details
.ack(params, opts = {}) ⇒ Object
3
4
5
6
|
# File 'lib/eligible/claim.rb', line 3
def self.ack(params, opts = {})
reference_id = Util.value(params, :reference_id)
send_request :get, "/claims/#{reference_id}/acknowledgements.json", params, **opts.merge(required_params: [:reference_id])
end
|
.acks(params, opts = {}) ⇒ Object
12
13
14
|
# File 'lib/eligible/claim.rb', line 12
def self.acks(params, opts = {})
send_request :get, '/claims/acknowledgements.json', params, **opts
end
|
.payment_report(params, opts = {}) ⇒ Object
16
17
18
19
20
21
22
|
# File 'lib/eligible/claim.rb', line 16
def self.payment_report(params, opts = {})
reference_id = Util.value(params, :reference_id)
require_param(reference_id, 'Reference id')
id = Util.value(params, :id)
url = id.nil? ? "/claims/#{reference_id}/payment_reports" : "/claims/#{reference_id}/payment_reports/#{id}"
send_request :get, url, params, **opts
end
|
.payment_reports(params, opts = {}) ⇒ Object
24
25
26
|
# File 'lib/eligible/claim.rb', line 24
def self.payment_reports(params, opts = {})
send_request :get, '/claims/payment_reports.json', params, **opts
end
|
.post(params, opts = {}) ⇒ Object
8
9
10
|
# File 'lib/eligible/claim.rb', line 8
def self.post(params, opts = {})
send_request :post, '/claims.json', params, **opts
end
|