Class: PlatformAPI::Payment

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

A payment represents money collected for an account

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Payment

Returns a new instance of Payment.



1813
1814
1815
# File 'lib/platform-api/client.rb', line 1813

def initialize(client)
  @client = client
end

Instance Method Details

#create(body) ⇒ Object

Create a payment on an existing account

Parameters:

  • body:

    the object to pass as the request payload



1820
1821
1822
# File 'lib/platform-api/client.rb', line 1820

def create(body)
  @client.payment.create(body)
end