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.



2030
2031
2032
# File 'lib/platform-api/client.rb', line 2030

def initialize(client)
  @client = client
end

Instance Method Details

#infoObject

Retrieve existing invoice address.



2035
2036
2037
# File 'lib/platform-api/client.rb', line 2035

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



2042
2043
2044
# File 'lib/platform-api/client.rb', line 2042

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