Class: PlatformAPI::TeamInvoice

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

Overview

A Team Invoice is an itemized bill of goods for a team which includes pricing and charges.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ TeamInvoice

Returns a new instance of TeamInvoice.



3245
3246
3247
# File 'lib/platform-api/client.rb', line 3245

def initialize(client)
  @client = client
end

Instance Method Details

#info(team_name_or_team_id, team_invoice_number) ⇒ Object

Info for existing invoice.

Parameters:

  • team_name_or_team_id:

    unique name of team or unique identifier of team

  • team_invoice_number:

    human readable invoice number



3253
3254
3255
# File 'lib/platform-api/client.rb', line 3253

def info(team_name_or_team_id, team_invoice_number)
  @client.team_invoice.info(team_name_or_team_id, team_invoice_number)
end

#list(team_name_or_team_id) ⇒ Object

List existing invoices.

Parameters:

  • team_name_or_team_id:

    unique name of team or unique identifier of team



3260
3261
3262
# File 'lib/platform-api/client.rb', line 3260

def list(team_name_or_team_id)
  @client.team_invoice.list(team_name_or_team_id)
end