Class: Stripe::OrderCreateParams::LineItem::ProductData::PackageDimensions

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/order_create_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.



135
136
137
138
139
140
# File 'lib/stripe/params/order_create_params.rb', line 135

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.



127
128
129
# File 'lib/stripe/params/order_create_params.rb', line 127

def height
  @height
end

#lengthObject

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



129
130
131
# File 'lib/stripe/params/order_create_params.rb', line 129

def length
  @length
end

#weightObject

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



131
132
133
# File 'lib/stripe/params/order_create_params.rb', line 131

def weight
  @weight
end

#widthObject

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



133
134
135
# File 'lib/stripe/params/order_create_params.rb', line 133

def width
  @width
end