Class: Stripe::OrderUpdateParams::LineItem::ProductData::PackageDimensions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/order_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

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

Returns a new instance of PackageDimensions.



162
163
164
165
166
167
# File 'lib/stripe/params/order_update_params.rb', line 162

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.



154
155
156
# File 'lib/stripe/params/order_update_params.rb', line 154

def height
  @height
end

#lengthObject

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



156
157
158
# File 'lib/stripe/params/order_update_params.rb', line 156

def length
  @length
end

#weightObject

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



158
159
160
# File 'lib/stripe/params/order_update_params.rb', line 158

def weight
  @weight
end

#widthObject

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



160
161
162
# File 'lib/stripe/params/order_update_params.rb', line 160

def width
  @width
end