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