Class: Telnyx::Resources::LedgerBillingGroupReports
- Inherits:
-
Object
- Object
- Telnyx::Resources::LedgerBillingGroupReports
- Defined in:
- lib/telnyx/resources/ledger_billing_group_reports.rb
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.
53 54 55 |
# File 'lib/telnyx/resources/ledger_billing_group_reports.rb', line 53 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
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/telnyx/resources/ledger_billing_group_reports.rb', line 19 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
41 42 43 44 45 46 47 48 |
# File 'lib/telnyx/resources/ledger_billing_group_reports.rb', line 41 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 |