Class: Stripe::Order::CreateParams::LineItem::ProductData::PackageDimensions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(height: nil, length: nil, weight: nil, width: nil) ⇒ PackageDimensions

Returns a new instance of PackageDimensions.



974
975
976
977
978
979
# File 'lib/stripe/resources/order.rb', line 974

def initialize(height: nil, length: nil, weight: nil, width: nil)
  @height = height
  @length = length
  @weight = weight
  @width = width
end

Instance Attribute Details

#heightObject

Height, in inches. Maximum precision is 2 decimal places.



966
967
968
# File 'lib/stripe/resources/order.rb', line 966

def height
  @height
end

#lengthObject

Length, in inches. Maximum precision is 2 decimal places.



968
969
970
# File 'lib/stripe/resources/order.rb', line 968

def length
  @length
end

#weightObject

Weight, in ounces. Maximum precision is 2 decimal places.



970
971
972
# File 'lib/stripe/resources/order.rb', line 970

def weight
  @weight
end

#widthObject

Width, in inches. Maximum precision is 2 decimal places.



972
973
974
# File 'lib/stripe/resources/order.rb', line 972

def width
  @width
end