Class: Taxes::GetTaxRate::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/taxes/get_tax_rate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(taxable: nil, tax_rate_id: nil, retrieved_on: nil, tax_type: nil, rate_goods: nil, rate_services: nil, rate_shipping: nil, source: nil, freight_tax_collectable: nil, line_items: [], message: nil, country_iso: nil) ⇒ Result

Returns a new instance of Result.



7
# File 'app/services/taxes/get_tax_rate.rb', line 7

def initialize(taxable: nil, tax_rate_id: nil, retrieved_on: nil, tax_type: nil, rate_goods: nil, rate_services: nil, rate_shipping: nil, source: nil, freight_tax_collectable: nil, line_items: [], message: nil, country_iso: nil) = super

Instance Attribute Details

#country_isoObject (readonly)

Returns the value of attribute country_iso

Returns:

  • (Object)

    the current value of country_iso



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def country_iso
  @country_iso
end

#freight_tax_collectableObject (readonly)

Returns the value of attribute freight_tax_collectable

Returns:

  • (Object)

    the current value of freight_tax_collectable



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def freight_tax_collectable
  @freight_tax_collectable
end

#line_itemsObject (readonly)

Returns the value of attribute line_items

Returns:

  • (Object)

    the current value of line_items



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def line_items
  @line_items
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def message
  @message
end

#rate_goodsObject (readonly)

Returns the value of attribute rate_goods

Returns:

  • (Object)

    the current value of rate_goods



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def rate_goods
  @rate_goods
end

#rate_servicesObject (readonly)

Returns the value of attribute rate_services

Returns:

  • (Object)

    the current value of rate_services



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def rate_services
  @rate_services
end

#rate_shippingObject (readonly)

Returns the value of attribute rate_shipping

Returns:

  • (Object)

    the current value of rate_shipping



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def rate_shipping
  @rate_shipping
end

#retrieved_onObject (readonly)

Returns the value of attribute retrieved_on

Returns:

  • (Object)

    the current value of retrieved_on



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def retrieved_on
  @retrieved_on
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def source
  @source
end

#tax_rate_idObject (readonly)

Returns the value of attribute tax_rate_id

Returns:

  • (Object)

    the current value of tax_rate_id



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def tax_rate_id
  @tax_rate_id
end

#tax_typeObject (readonly)

Returns the value of attribute tax_type

Returns:

  • (Object)

    the current value of tax_type



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def tax_type
  @tax_type
end

#taxableObject (readonly)

Returns the value of attribute taxable

Returns:

  • (Object)

    the current value of taxable



6
7
8
# File 'app/services/taxes/get_tax_rate.rb', line 6

def taxable
  @taxable
end

Instance Method Details

#taxable?Boolean

Returns:

  • (Boolean)


8
# File 'app/services/taxes/get_tax_rate.rb', line 8

def taxable? = taxable