Class: Sink::Resources::Company::Payments
- Inherits:
-
Object
- Object
- Sink::Resources::Company::Payments
- Defined in:
- lib/sink/resources/company/payments.rb
Overview
For paying Stainless $$$
Instance Method Summary collapse
-
#initialize(client:) ⇒ Payments
constructor
A new instance of Payments.
-
#retrieve(payment_id, opts = {}) ⇒ Sink::Models::CompanyPayment
Get a payment that the company made.
Constructor Details
#initialize(client:) ⇒ Payments
Returns a new instance of Payments.
9 10 11 |
# File 'lib/sink/resources/company/payments.rb', line 9 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(payment_id, opts = {}) ⇒ Sink::Models::CompanyPayment
Get a payment that the company made.
19 20 21 22 23 24 25 26 |
# File 'lib/sink/resources/company/payments.rb', line 19 def retrieve(payment_id, opts = {}) req = { method: :get, path: "/company/payments/#{payment_id}", model: Sink::Models::CompanyPayment } @client.request(req, opts) end |