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.



1686
1687
1688
1689
1690
1691
# File 'lib/stripe/resources/order.rb', line 1686

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.



1678
1679
1680
# File 'lib/stripe/resources/order.rb', line 1678

def height
  @height
end

#lengthObject

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



1680
1681
1682
# File 'lib/stripe/resources/order.rb', line 1680

def length
  @length
end

#weightObject

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



1682
1683
1684
# File 'lib/stripe/resources/order.rb', line 1682

def weight
  @weight
end

#widthObject

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



1684
1685
1686
# File 'lib/stripe/resources/order.rb', line 1684

def width
  @width
end