Class: Sink::Resources::Company::Payments

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/company/payments.rb

Overview

For paying Stainless $$$

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Payments

Returns a new instance of Payments.

Parameters:



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.

Parameters:

  • payment_id (String)
  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



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