Class: Increase::Resources::CheckTransfers
- Inherits:
-
Object
- Object
- Increase::Resources::CheckTransfers
- Defined in:
- lib/increase/resources/check_transfers.rb
Instance Method Summary collapse
-
#approve(check_transfer_id, opts = {}) ⇒ Increase::Models::CheckTransfer
Approve a Check Transfer.
-
#cancel(check_transfer_id, opts = {}) ⇒ Increase::Models::CheckTransfer
Cancel a pending Check Transfer.
-
#create(params = {}, opts = {}) ⇒ Increase::Models::CheckTransfer
Create a Check Transfer.
-
#initialize(client:) ⇒ CheckTransfers
constructor
A new instance of CheckTransfers.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::CheckTransfer>
List Check Transfers.
-
#retrieve(check_transfer_id, opts = {}) ⇒ Increase::Models::CheckTransfer
Retrieve a Check Transfer.
-
#stop_payment(check_transfer_id, params = {}, opts = {}) ⇒ Increase::Models::CheckTransfer
Request a stop payment on a Check Transfer.
Constructor Details
#initialize(client:) ⇒ CheckTransfers
Returns a new instance of CheckTransfers.
6 7 8 |
# File 'lib/increase/resources/check_transfers.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#approve(check_transfer_id, opts = {}) ⇒ Increase::Models::CheckTransfer
Approve a Check Transfer
84 85 86 87 88 89 90 |
# File 'lib/increase/resources/check_transfers.rb', line 84 def approve(check_transfer_id, opts = {}) req = {} req[:method] = :post req[:path] = "/check_transfers/#{check_transfer_id}/approve" req[:model] = Increase::Models::CheckTransfer @client.request(req, opts) end |
#cancel(check_transfer_id, opts = {}) ⇒ Increase::Models::CheckTransfer
Cancel a pending Check Transfer
98 99 100 101 102 103 104 |
# File 'lib/increase/resources/check_transfers.rb', line 98 def cancel(check_transfer_id, opts = {}) req = {} req[:method] = :post req[:path] = "/check_transfers/#{check_transfer_id}/cancel" req[:model] = Increase::Models::CheckTransfer @client.request(req, opts) end |
#create(params = {}, opts = {}) ⇒ Increase::Models::CheckTransfer
Create a Check Transfer
29 30 31 32 33 34 35 36 |
# File 'lib/increase/resources/check_transfers.rb', line 29 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/check_transfers" req[:body] = params req[:model] = Increase::Models::CheckTransfer @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::CheckTransfer>
List Check Transfers
68 69 70 71 72 73 74 75 76 |
# File 'lib/increase/resources/check_transfers.rb', line 68 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/check_transfers" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::CheckTransfer @client.request(req, opts) end |
#retrieve(check_transfer_id, opts = {}) ⇒ Increase::Models::CheckTransfer
Retrieve a Check Transfer
44 45 46 47 48 49 50 |
# File 'lib/increase/resources/check_transfers.rb', line 44 def retrieve(check_transfer_id, opts = {}) req = {} req[:method] = :get req[:path] = "/check_transfers/#{check_transfer_id}" req[:model] = Increase::Models::CheckTransfer @client.request(req, opts) end |
#stop_payment(check_transfer_id, params = {}, opts = {}) ⇒ Increase::Models::CheckTransfer
Request a stop payment on a Check Transfer
116 117 118 119 120 121 122 123 |
# File 'lib/increase/resources/check_transfers.rb', line 116 def stop_payment(check_transfer_id, params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/check_transfers/#{check_transfer_id}/stop_payment" req[:body] = params req[:model] = Increase::Models::CheckTransfer @client.request(req, opts) end |