Class: PlatformAPI::OrganizationInvoice

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ OrganizationInvoice

Returns a new instance of OrganizationInvoice.



1681
1682
1683
# File 'lib/platform-api/client.rb', line 1681

def initialize(client)
  @client = client
end

Instance Method Details

#info(organization_name, organization_invoice_number) ⇒ Object

Info for existing invoice.

Parameters:

  • organization_name:

    unique name of organization

  • organization_invoice_number:

    human readable invoice number



1689
1690
1691
# File 'lib/platform-api/client.rb', line 1689

def info(organization_name, organization_invoice_number)
  @client.organization_invoice.info(organization_name, organization_invoice_number)
end

#list(organization_name) ⇒ Object

List existing invoices.

Parameters:

  • organization_name:

    unique name of organization



1696
1697
1698
# File 'lib/platform-api/client.rb', line 1696

def list(organization_name)
  @client.organization_invoice.list(organization_name)
end