Class: Roistat::Resources::Billing

Inherits:
Base
  • Object
show all
Defined in:
lib/roistat/resources/billing.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Roistat::Resources::Base

Instance Method Details

#transactions_export_excel(period:) ⇒ Object

POST /user/billing/transactions/list/export/excel



10
11
12
13
14
15
16
# File 'lib/roistat/resources/billing.rb', line 10

def transactions_export_excel(period:)
  client.post(
    "user/billing/transactions/list/export/excel",
    body: {period: period},
    parse: :binary
  )
end

#transactions_list(period:) ⇒ Object

POST /user/billing/transactions/list



5
6
7
# File 'lib/roistat/resources/billing.rb', line 5

def transactions_list(period:)
  client.post("user/billing/transactions/list", body: {period: period})
end