Class: Mollie::Payment::Line

Inherits:
Base
  • Object
show all
Defined in:
lib/mollie/payment/line.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

all, #assign_attributes, cancel, create, #delete, delete, get, id_param, #initialize, parent_id, request, resource_name, update, #update

Constructor Details

This class inherits a constructor from Mollie::Base

Instance Attribute Details

#categoriesObject

Returns the value of attribute categories.



4
5
6
# File 'lib/mollie/payment/line.rb', line 4

def categories
  @categories
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/mollie/payment/line.rb', line 4

def description
  @description
end

#discount_amountObject

Returns the value of attribute discount_amount.



14
15
16
# File 'lib/mollie/payment/line.rb', line 14

def discount_amount
  @discount_amount
end

#image_urlObject

Returns the value of attribute image_url.



4
5
6
# File 'lib/mollie/payment/line.rb', line 4

def image_url
  @image_url
end

#product_urlObject

Returns the value of attribute product_url.



4
5
6
# File 'lib/mollie/payment/line.rb', line 4

def product_url
  @product_url
end

#quantityObject

Returns the value of attribute quantity.



4
5
6
# File 'lib/mollie/payment/line.rb', line 4

def quantity
  @quantity
end

#quantity_unitObject

Returns the value of attribute quantity_unit.



4
5
6
# File 'lib/mollie/payment/line.rb', line 4

def quantity_unit
  @quantity_unit
end

#recurringObject

Returns the value of attribute recurring.



14
15
16
# File 'lib/mollie/payment/line.rb', line 14

def recurring
  @recurring
end

#skuObject

Returns the value of attribute sku.



4
5
6
# File 'lib/mollie/payment/line.rb', line 4

def sku
  @sku
end

#total_amountObject

Returns the value of attribute total_amount.



14
15
16
# File 'lib/mollie/payment/line.rb', line 14

def total_amount
  @total_amount
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/mollie/payment/line.rb', line 4

def type
  @type
end

#unit_priceObject

Returns the value of attribute unit_price.



14
15
16
# File 'lib/mollie/payment/line.rb', line 14

def unit_price
  @unit_price
end

#vat_amountObject

Returns the value of attribute vat_amount.



14
15
16
# File 'lib/mollie/payment/line.rb', line 14

def vat_amount
  @vat_amount
end

#vat_rateObject

Returns the value of attribute vat_rate.



4
5
6
# File 'lib/mollie/payment/line.rb', line 4

def vat_rate
  @vat_rate
end

Instance Method Details

#discounted?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/mollie/payment/line.rb', line 20

def discounted?
  !@discount_amount.nil?
end