Class: ColumnApi::AchReturnResource
- Inherits:
-
Resource
- Object
- Resource
- ColumnApi::AchReturnResource
show all
- Defined in:
- lib/column_api/resources/ach_return_resource.rb
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
#create(ach_transfer_id:, params: {}) ⇒ Object
14
15
16
|
# File 'lib/column_api/resources/ach_return_resource.rb', line 14
def create(ach_transfer_id:, params: {})
AchReturn.new post_request("transfers/ach/#{ach_transfer_id}/return", body: params).body
end
|
#list(params = {}) ⇒ Object
5
6
7
8
|
# File 'lib/column_api/resources/ach_return_resource.rb', line 5
def list(params = {})
response = get_request("transfers/ach/returns", params: params).body
Collection.from_response(response, key: "ach_returns", type: AchReturn)
end
|
#retrieve(ach_transfer_id:) ⇒ Object
10
11
12
|
# File 'lib/column_api/resources/ach_return_resource.rb', line 10
def retrieve(ach_transfer_id:)
AchReturn.new get_request("transfers/ach/#{ach_transfer_id}/return").body
end
|