Class: Stripe::Order::UpdateParams::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.



1731
1732
1733
1734
1735
1736
# File 'lib/stripe/resources/order.rb', line 1731

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.



1723
1724
1725
# File 'lib/stripe/resources/order.rb', line 1723

def height
  @height
end

#lengthObject

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



1725
1726
1727
# File 'lib/stripe/resources/order.rb', line 1725

def length
  @length
end

#weightObject

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



1727
1728
1729
# File 'lib/stripe/resources/order.rb', line 1727

def weight
  @weight
end

#widthObject

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



1729
1730
1731
# File 'lib/stripe/resources/order.rb', line 1729

def width
  @width
end