Class: PlatformAPI::Invoice

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

Overview

An invoice is an itemized bill of goods for an account which includes pricing and charges.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Invoice

Returns a new instance of Invoice.



2049
2050
2051
# File 'lib/platform-api/client.rb', line 2049

def initialize(client)
  @client = client
end

Instance Method Details

#info(invoice_number) ⇒ Object

Info for existing invoice.

Parameters:

  • invoice_number:

    human readable invoice number



2056
2057
2058
# File 'lib/platform-api/client.rb', line 2056

def info(invoice_number)
  @client.invoice.info(invoice_number)
end

#listObject

List existing invoices.



2061
2062
2063
# File 'lib/platform-api/client.rb', line 2061

def list()
  @client.invoice.list()
end