Class: Increase::Resources::RealTimePaymentsTransfers
- Inherits:
-
Object
- Object
- Increase::Resources::RealTimePaymentsTransfers
- Defined in:
- lib/increase/resources/real_time_payments_transfers.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::RealTimePaymentsTransfer
Create a Real-Time Payments Transfer.
-
#initialize(client:) ⇒ RealTimePaymentsTransfers
constructor
A new instance of RealTimePaymentsTransfers.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::RealTimePaymentsTransfer>
List Real-Time Payments Transfers.
-
#retrieve(real_time_payments_transfer_id, opts = {}) ⇒ Increase::Models::RealTimePaymentsTransfer
Retrieve a Real-Time Payments Transfer.
Constructor Details
#initialize(client:) ⇒ RealTimePaymentsTransfers
Returns a new instance of RealTimePaymentsTransfers.
6 7 8 |
# File 'lib/increase/resources/real_time_payments_transfers.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::RealTimePaymentsTransfer
Create a Real-Time Payments Transfer
35 36 37 38 39 40 41 42 |
# File 'lib/increase/resources/real_time_payments_transfers.rb', line 35 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/real_time_payments_transfers" req[:body] = params req[:model] = Increase::Models::RealTimePaymentsTransfer @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::RealTimePaymentsTransfer>
List Real-Time Payments Transfers
76 77 78 79 80 81 82 83 84 |
# File 'lib/increase/resources/real_time_payments_transfers.rb', line 76 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/real_time_payments_transfers" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::RealTimePaymentsTransfer @client.request(req, opts) end |
#retrieve(real_time_payments_transfer_id, opts = {}) ⇒ Increase::Models::RealTimePaymentsTransfer
Retrieve a Real-Time Payments Transfer
50 51 52 53 54 55 56 |
# File 'lib/increase/resources/real_time_payments_transfers.rb', line 50 def retrieve(real_time_payments_transfer_id, opts = {}) req = {} req[:method] = :get req[:path] = "/real_time_payments_transfers/#{real_time_payments_transfer_id}" req[:model] = Increase::Models::RealTimePaymentsTransfer @client.request(req, opts) end |