Class: CheckoutSdk::Payments::Product

Inherits:
Object
  • Object
show all
Defined in:
lib/checkout_sdk/payments/product.rb

Instance Attribute Summary collapse

Instance Attribute Details

#commodity_codeString

Returns:

  • (String)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#discount_amountInteger

Returns:

  • (Integer)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#image_urlString

Returns:

  • (String)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#nameString

Returns:

  • (String)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#quantityInteger

Returns:

  • (Integer)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#referenceString

Returns:

  • (String)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#skuString

Returns:

  • (String)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#tax_amountInteger

Returns:

  • (Integer)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#tax_rateInteger

Returns:

  • (Integer)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#total_amountInteger

Returns:

  • (Integer)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#unit_of_measureString

Returns:

  • (String)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#unit_priceInteger

Returns:

  • (Integer)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#urlString

Returns:

  • (String)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end

#wxpay_goods_idString

Returns:

  • (String)


33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/checkout_sdk/payments/product.rb', line 33

class Product
  attr_accessor :name,
                :quantity,
                :unit_price,
                :reference,
                :commodity_code,
                :unit_of_measure,
                :total_amount,
                :tax_amount,
                :tax_rate,
                :discount_amount,
                :wxpay_goods_id,
                :image_url,
                :url,
                :sku
end