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.



1743
1744
1745
# File 'lib/platform-api/client.rb', line 1743

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



1750
1751
1752
# File 'lib/platform-api/client.rb', line 1750

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