Class: PlatformAPI::PaymentMethod

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

Overview

The on file payment method for an account

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ PaymentMethod

Returns a new instance of PaymentMethod.



1387
1388
1389
# File 'lib/platform-api/client.rb', line 1387

def initialize(client)
  @client = client
end

Instance Method Details

#getObject

Get the current payment method for an account.



1399
1400
1401
# File 'lib/platform-api/client.rb', line 1399

def get()
  @client.payment_method.get()
end

#update(body) ⇒ Object

Update an existing payment method for an account.

Parameters:

  • body:

    the object to pass as the request payload



1394
1395
1396
# File 'lib/platform-api/client.rb', line 1394

def update(body)
  @client.payment_method.update(body)
end