Class: PlatformAPI::InvoiceAddress

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

Overview

An invoice address represents the address that should be listed on an invoice.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ InvoiceAddress

Returns a new instance of InvoiceAddress.



2032
2033
2034
# File 'lib/platform-api/client.rb', line 2032

def initialize(client)
  @client = client
end

Instance Method Details

#infoObject

Retrieve existing invoice address.



2037
2038
2039
# File 'lib/platform-api/client.rb', line 2037

def info()
  @client.invoice_address.info()
end

#update(body = {}) ⇒ Object

Update invoice address for an account.

Parameters:

  • body:

    the object to pass as the request payload



2044
2045
2046
# File 'lib/platform-api/client.rb', line 2044

def update(body = {})
  @client.invoice_address.update(body)
end