Class: PlatformAPI::OrganizationPaymentMethod
- Inherits:
-
Object
- Object
- PlatformAPI::OrganizationPaymentMethod
- Defined in:
- lib/platform-api/client.rb
Overview
The on file payment method for an account
Instance Method Summary collapse
-
#get(organization_name) ⇒ Object
Get the current payment method for an account.
-
#initialize(client) ⇒ OrganizationPaymentMethod
constructor
A new instance of OrganizationPaymentMethod.
-
#update(organization_name, body) ⇒ Object
Update an existing payment method for an account.
Constructor Details
#initialize(client) ⇒ OrganizationPaymentMethod
Returns a new instance of OrganizationPaymentMethod.
1619 1620 1621 |
# File 'lib/platform-api/client.rb', line 1619 def initialize(client) @client = client end |
Instance Method Details
#get(organization_name) ⇒ Object
Get the current payment method for an account.
1634 1635 1636 |
# File 'lib/platform-api/client.rb', line 1634 def get(organization_name) @client.organization_payment_method.get(organization_name) end |
#update(organization_name, body) ⇒ Object
Update an existing payment method for an account.
1627 1628 1629 |
# File 'lib/platform-api/client.rb', line 1627 def update(organization_name, body) @client.organization_payment_method.update(organization_name, body) end |