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.



1863
1864
1865
# File 'lib/platform-api/client.rb', line 1863

def initialize(client)
  @client = client
end

Instance Method Details

#info(organization_name_or_organization_id, organization_invoice_number) ⇒ Object

Info for existing invoice.

Parameters:

  • organization_name_or_organization_id:

    unique name of organization or unique identifier of organization

  • organization_invoice_number:

    human readable invoice number



1871
1872
1873
# File 'lib/platform-api/client.rb', line 1871

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

#list(organization_name_or_organization_id) ⇒ Object

List existing invoices.

Parameters:

  • organization_name_or_organization_id:

    unique name of organization or unique identifier of organization



1878
1879
1880
# File 'lib/platform-api/client.rb', line 1878

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