Class: Nova::API::Resource::Card::Tax

Inherits:
Utils::BaseStruct show all
Defined in:
lib/nova/api/resource/card.rb

Defined Under Namespace

Modules: TYPE

Constant Summary collapse

ALLOWED_ATTRIBUTES =
%i[]

Constants inherited from Utils::BaseStruct

Utils::BaseStruct::DATE_REGEX

Instance Method Summary collapse

Methods inherited from Utils::BaseStruct

#allowed_attributes

Instance Method Details

#bank_slip?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/nova/api/resource/card.rb', line 31

def bank_slip?
  type == TYPE::BANK_SLIP
end

#credit?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/nova/api/resource/card.rb', line 27

def credit?
  type == TYPE::CREDIT || type == TYPE::CREDIT_WITH_INSTALLMENTS
end

#debit?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/nova/api/resource/card.rb', line 23

def debit?
  type == TYPE::DEBIT
end

#pix?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/nova/api/resource/card.rb', line 35

def pix?
  type == TYPE::PIX
end