Class: Stripe::Checkout::SessionCreateParams::ShippingOption::ShippingRateData::DeliveryEstimate::Maximum

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(unit: nil, value: nil) ⇒ Maximum

Returns a new instance of Maximum.



1943
1944
1945
1946
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1943

def initialize(unit: nil, value: nil)
  @unit = unit
  @value = value
end

Instance Attribute Details

#unitObject

A unit of time.



1939
1940
1941
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1939

def unit
  @unit
end

#valueObject

Must be greater than 0.



1941
1942
1943
# File 'lib/stripe/params/checkout/session_create_params.rb', line 1941

def value
  @value
end