Class: PlatformAPI::OrganizationInvoice

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

Overview

Deprecated: 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.



2252
2253
2254
# File 'lib/platform-api/client.rb', line 2252

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



2260
2261
2262
# File 'lib/platform-api/client.rb', line 2260

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



2267
2268
2269
# File 'lib/platform-api/client.rb', line 2267

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