Class: Increase::Resources::RealTimePaymentsRequestForPayments
- Inherits:
-
Object
- Object
- Increase::Resources::RealTimePaymentsRequestForPayments
- Defined in:
- lib/increase/resources/real_time_payments_request_for_payments.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::RealTimePaymentsRequestForPayment
Create a Real-Time Payments Request for Payment.
-
#initialize(client:) ⇒ RealTimePaymentsRequestForPayments
constructor
A new instance of RealTimePaymentsRequestForPayments.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::RealTimePaymentsRequestForPayment>
List Real-Time Payments Request for Payments.
-
#retrieve(request_for_payment_id, opts = {}) ⇒ Increase::Models::RealTimePaymentsRequestForPayment
Retrieve a Real-Time Payments Request for Payment.
Constructor Details
#initialize(client:) ⇒ RealTimePaymentsRequestForPayments
Returns a new instance of RealTimePaymentsRequestForPayments.
6 7 8 |
# File 'lib/increase/resources/real_time_payments_request_for_payments.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::RealTimePaymentsRequestForPayment
Create a Real-Time Payments Request for Payment
26 27 28 29 30 31 32 33 |
# File 'lib/increase/resources/real_time_payments_request_for_payments.rb', line 26 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/real_time_payments_request_for_payments" req[:body] = params req[:model] = Increase::Models::RealTimePaymentsRequestForPayment @client.request(req, opts) end |
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::RealTimePaymentsRequestForPayment>
List Real-Time Payments Request for Payments
66 67 68 69 70 71 72 73 74 |
# File 'lib/increase/resources/real_time_payments_request_for_payments.rb', line 66 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/real_time_payments_request_for_payments" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::RealTimePaymentsRequestForPayment @client.request(req, opts) end |
#retrieve(request_for_payment_id, opts = {}) ⇒ Increase::Models::RealTimePaymentsRequestForPayment
Retrieve a Real-Time Payments Request for Payment
41 42 43 44 45 46 47 |
# File 'lib/increase/resources/real_time_payments_request_for_payments.rb', line 41 def retrieve(request_for_payment_id, opts = {}) req = {} req[:method] = :get req[:path] = "/real_time_payments_request_for_payments/#{request_for_payment_id}" req[:model] = Increase::Models::RealTimePaymentsRequestForPayment @client.request(req, opts) end |