Class: Nova::API::Resource::Card::Tax
- Inherits:
-
Utils::BaseStruct
- Object
- Dry::Struct
- Utils::BaseStruct
- Nova::API::Resource::Card::Tax
- Defined in:
- lib/nova/api/resource/card.rb
Defined Under Namespace
Modules: TYPE
Constant Summary collapse
- ALLOWED_ATTRIBUTES =
%i[]
Constants inherited from Utils::BaseStruct
Instance Method Summary collapse
Methods inherited from Utils::BaseStruct
#allowed_attributes, generate_valid_value_for, initialize_empty_model_with_id, value_for_field
Instance Method Details
#bank_slip? ⇒ Boolean
31 32 33 |
# File 'lib/nova/api/resource/card.rb', line 31 def bank_slip? type == TYPE::BANK_SLIP end |
#credit? ⇒ Boolean
27 28 29 |
# File 'lib/nova/api/resource/card.rb', line 27 def credit? type == TYPE::CREDIT || type == TYPE::CREDIT_WITH_INSTALLMENTS end |