Class: Telnyx::Resources::LedgerBillingGroupReports

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/ledger_billing_group_reports.rb

Overview

Ledger billing reports

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ LedgerBillingGroupReports

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of LedgerBillingGroupReports.

Parameters:



54
55
56
# File 'lib/telnyx/resources/ledger_billing_group_reports.rb', line 54

def initialize(client:)
  @client = client
end

Instance Method Details

#create(month: nil, year: nil, request_options: {}) ⇒ Telnyx::Models::LedgerBillingGroupReportCreateResponse

Create a ledger billing group report

Parameters:

  • month (Integer)

    Month of the ledger billing group report

  • year (Integer)

    Year of the ledger billing group report

  • request_options (Telnyx::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



20
21
22
23
24
25
26
27
28
29
# File 'lib/telnyx/resources/ledger_billing_group_reports.rb', line 20

def create(params = {})
  parsed, options = Telnyx::LedgerBillingGroupReportCreateParams.dump_request(params)
  @client.request(
    method: :post,
    path: "ledger_billing_group_reports",
    body: parsed,
    model: Telnyx::Models::LedgerBillingGroupReportCreateResponse,
    options: options
  )
end

#retrieve(id, request_options: {}) ⇒ Telnyx::Models::LedgerBillingGroupReportRetrieveResponse

Get a ledger billing group report

Parameters:

  • id (String)

    The id of the ledger billing group report

  • request_options (Telnyx::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



42
43
44
45
46
47
48
49
# File 'lib/telnyx/resources/ledger_billing_group_reports.rb', line 42

def retrieve(id, params = {})
  @client.request(
    method: :get,
    path: ["ledger_billing_group_reports/%1$s", id],
    model: Telnyx::Models::LedgerBillingGroupReportRetrieveResponse,
    options: params[:request_options]
  )
end