Class: GenesisRuby::Api::Requests::Base::NonFinancial::BillingApi::Base

Inherits:
Graphql show all
Includes:
Mixins::Requests::NonFinancial::BillingApi::SortAttributes, Mixins::Requests::NonFinancial::DateAttributes, Mixins::Requests::NonFinancial::PagingAttributes
Defined in:
lib/genesis_ruby/api/requests/base/non_financial/billing_api/base.rb

Overview

Base class for Billing API GraphQL requests

Constant Summary

Constants inherited from GenesisRuby::Api::Request

GenesisRuby::Api::Request::AUTH_TYPE_BASIC, GenesisRuby::Api::Request::AUTH_TYPE_TOKEN, GenesisRuby::Api::Request::METHOD_DELETE, GenesisRuby::Api::Request::METHOD_GET, GenesisRuby::Api::Request::METHOD_PATCH, GenesisRuby::Api::Request::METHOD_POST, GenesisRuby::Api::Request::METHOD_PUT, GenesisRuby::Api::Request::PORT_HTTPS, GenesisRuby::Api::Request::PROTOCOL_HTTPS

Instance Attribute Summary

Attributes included from Mixins::Requests::NonFinancial::PagingAttributes

#page, #per_page

Attributes included from Mixins::Requests::NonFinancial::BillingApi::SortAttributes

#sort_by_direction, #sort_by_field

Attributes inherited from Versioned

#allowed_versions, #version

Attributes inherited from GenesisRuby::Api::Request

#api_config

Instance Method Summary collapse

Methods included from Mixins::Requests::NonFinancial::DateAttributes

#end_date, #end_date=, #end_date_from, #end_date_from=, #end_date_to, #end_date_to=, #start_date, #start_date=, #start_date_from, #start_date_from=, #start_date_to, #start_date_to=

Methods inherited from Graphql

#initialize

Methods inherited from Versioned

#initialize

Methods inherited from GenesisRuby::Api::Request

#build_document, #initialize

Constructor Details

This class inherits a constructor from GenesisRuby::Api::Requests::Base::Graphql

Instance Method Details

#billing_statementObject

List of billing statement names



20
21
22
# File 'lib/genesis_ruby/api/requests/base/non_financial/billing_api/base.rb', line 20

def billing_statement
  @billing_statement || []
end

#billing_statement=(value) ⇒ Object

List of billing statement names



25
26
27
# File 'lib/genesis_ruby/api/requests/base/non_financial/billing_api/base.rb', line 25

def billing_statement=(value)
  parse_array_of_strings attribute: __method__, value: value, allow_empty: true
end