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.



1887
1888
1889
# File 'lib/platform-api/client.rb', line 1887

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



1894
1895
1896
# File 'lib/platform-api/client.rb', line 1894

def create(body = {})
  @client.payment.create(body)
end