Class: Increase::Resources::InboundACHTransfers
- Inherits:
-
Object
- Object
- Increase::Resources::InboundACHTransfers
- Defined in:
- lib/increase/resources/inbound_ach_transfers.rb
Instance Method Summary collapse
-
#create_notification_of_change(inbound_ach_transfer_id, params = {}, opts = {}) ⇒ Increase::Models::InboundACHTransfer
Create a notification of change for an Inbound ACH Transfer.
-
#decline(inbound_ach_transfer_id, opts = {}) ⇒ Increase::Models::InboundACHTransfer
Decline an Inbound ACH Transfer.
-
#initialize(client:) ⇒ InboundACHTransfers
constructor
A new instance of InboundACHTransfers.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::InboundACHTransfer>
List Inbound ACH Transfers.
-
#retrieve(inbound_ach_transfer_id, opts = {}) ⇒ Increase::Models::InboundACHTransfer
Retrieve an Inbound ACH Transfer.
-
#transfer_return(inbound_ach_transfer_id, params = {}, opts = {}) ⇒ Increase::Models::InboundACHTransfer
Return an Inbound ACH Transfer.
Constructor Details
#initialize(client:) ⇒ InboundACHTransfers
Returns a new instance of InboundACHTransfers.
6 7 8 |
# File 'lib/increase/resources/inbound_ach_transfers.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#create_notification_of_change(inbound_ach_transfer_id, params = {}, opts = {}) ⇒ Increase::Models::InboundACHTransfer
Create a notification of change for an Inbound ACH Transfer
60 61 62 63 64 65 66 67 |
# File 'lib/increase/resources/inbound_ach_transfers.rb', line 60 def create_notification_of_change(inbound_ach_transfer_id, params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/inbound_ach_transfers/#{inbound_ach_transfer_id}/create_notification_of_change" req[:body] = params req[:model] = Increase::Models::InboundACHTransfer @client.request(req, opts) end |
#decline(inbound_ach_transfer_id, opts = {}) ⇒ Increase::Models::InboundACHTransfer
Decline an Inbound ACH Transfer
75 76 77 78 79 80 81 |
# File 'lib/increase/resources/inbound_ach_transfers.rb', line 75 def decline(inbound_ach_transfer_id, opts = {}) req = {} req[:method] = :post req[:path] = "/inbound_ach_transfers/#{inbound_ach_transfer_id}/decline" req[:model] = Increase::Models::InboundACHTransfer @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::InboundACHTransfer>
List Inbound ACH Transfers
38 39 40 41 42 43 44 45 46 |
# File 'lib/increase/resources/inbound_ach_transfers.rb', line 38 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/inbound_ach_transfers" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::InboundACHTransfer @client.request(req, opts) end |
#retrieve(inbound_ach_transfer_id, opts = {}) ⇒ Increase::Models::InboundACHTransfer
Retrieve an Inbound ACH Transfer
16 17 18 19 20 21 22 |
# File 'lib/increase/resources/inbound_ach_transfers.rb', line 16 def retrieve(inbound_ach_transfer_id, opts = {}) req = {} req[:method] = :get req[:path] = "/inbound_ach_transfers/#{inbound_ach_transfer_id}" req[:model] = Increase::Models::InboundACHTransfer @client.request(req, opts) end |
#transfer_return(inbound_ach_transfer_id, params = {}, opts = {}) ⇒ Increase::Models::InboundACHTransfer
Return an Inbound ACH Transfer
95 96 97 98 99 100 101 102 |
# File 'lib/increase/resources/inbound_ach_transfers.rb', line 95 def transfer_return(inbound_ach_transfer_id, params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/inbound_ach_transfers/#{inbound_ach_transfer_id}/transfer_return" req[:body] = params req[:model] = Increase::Models::InboundACHTransfer @client.request(req, opts) end |