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.



1637
1638
1639
# File 'lib/platform-api/client.rb', line 1637

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



1645
1646
1647
# File 'lib/platform-api/client.rb', line 1645

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



1652
1653
1654
# File 'lib/platform-api/client.rb', line 1652

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