Class: Telnyx::Resources::LedgerBillingGroupReports
- Inherits:
-
Object
- Object
- Telnyx::Resources::LedgerBillingGroupReports
- Defined in:
- lib/telnyx/resources/ledger_billing_group_reports.rb
Overview
Ledger billing reports
Instance Method Summary collapse
-
#create(month: nil, year: nil, request_options: {}) ⇒ Telnyx::Models::LedgerBillingGroupReportCreateResponse
Create a ledger billing group report.
-
#initialize(client:) ⇒ LedgerBillingGroupReports
constructor
private
A new instance of LedgerBillingGroupReports.
-
#retrieve(id, request_options: {}) ⇒ Telnyx::Models::LedgerBillingGroupReportRetrieveResponse
Get a ledger billing group report.
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.
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
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, = Telnyx::LedgerBillingGroupReportCreateParams.dump_request(params) @client.request( method: :post, path: "ledger_billing_group_reports", body: parsed, model: Telnyx::Models::LedgerBillingGroupReportCreateResponse, options: ) end |
#retrieve(id, request_options: {}) ⇒ Telnyx::Models::LedgerBillingGroupReportRetrieveResponse
Get a ledger billing group report
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 |