Class: CheckoutSdk::Balances::BalancesQuery
- Inherits:
-
Object
- Object
- CheckoutSdk::Balances::BalancesQuery
- Defined in:
- lib/checkout_sdk/balances/balances_query.rb
Overview
Query parameters accepted by GET /balances/id.
Instance Attribute Summary collapse
-
#balances_at ⇒ String
Serialised as ‘balancesAt`.
-
#query ⇒ String
Search expression (e.g. “currency:EUR”).
-
#with_currency_account_id ⇒ TrueClass, FalseClass
Serialised as ‘withCurrencyAccountId`.
Instance Method Summary collapse
-
#to_h ⇒ Object
Returns the params in the camelCase form expected by the API.
Instance Attribute Details
#balances_at ⇒ String
Serialised as ‘balancesAt`.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/checkout_sdk/balances/balances_query.rb', line 17 class BalancesQuery attr_accessor :query, :with_currency_account_id, :balances_at # Returns the params in the camelCase form expected by the API. def to_h { query: query, withCurrencyAccountId: with_currency_account_id, balancesAt: balances_at }.compact end end |
#query ⇒ String
Returns Search expression (e.g. “currency:EUR”).
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/checkout_sdk/balances/balances_query.rb', line 17 class BalancesQuery attr_accessor :query, :with_currency_account_id, :balances_at # Returns the params in the camelCase form expected by the API. def to_h { query: query, withCurrencyAccountId: with_currency_account_id, balancesAt: balances_at }.compact end end |
#with_currency_account_id ⇒ TrueClass, FalseClass
Serialised as ‘withCurrencyAccountId`.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/checkout_sdk/balances/balances_query.rb', line 17 class BalancesQuery attr_accessor :query, :with_currency_account_id, :balances_at # Returns the params in the camelCase form expected by the API. def to_h { query: query, withCurrencyAccountId: with_currency_account_id, balancesAt: balances_at }.compact end end |
Instance Method Details
#to_h ⇒ Object
Returns the params in the camelCase form expected by the API.
23 24 25 26 27 28 29 |
# File 'lib/checkout_sdk/balances/balances_query.rb', line 23 def to_h { query: query, withCurrencyAccountId: with_currency_account_id, balancesAt: balances_at }.compact end |