Class: Stripe::InvoiceCreateParams::ShippingCost::ShippingRateData::DeliveryEstimate::Maximum

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/invoice_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(unit: nil, value: nil) ⇒ Maximum

Returns a new instance of Maximum.



461
462
463
464
# File 'lib/stripe/params/invoice_create_params.rb', line 461

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

Instance Attribute Details

#unitObject

A unit of time.



457
458
459
# File 'lib/stripe/params/invoice_create_params.rb', line 457

def unit
  @unit
end

#valueObject

Must be greater than 0.



459
460
461
# File 'lib/stripe/params/invoice_create_params.rb', line 459

def value
  @value
end