Class: Stripe::ShippingRate::FixedAmount

Inherits:
Stripe::StripeObject show all
Defined in:
lib/stripe/resources/shipping_rate.rb

Defined Under Namespace

Classes: CurrencyOptions

Constant Summary

Constants inherited from Stripe::StripeObject

Stripe::StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from Stripe::StripeObject

#last_response

Method Summary

Methods inherited from Stripe::StripeObject

#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#amountObject (readonly)

A non-negative integer in cents representing how much to charge.



49
50
51
# File 'lib/stripe/resources/shipping_rate.rb', line 49

def amount
  @amount
end

#currencyObject (readonly)

Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](stripe.com/docs/currencies).



52
53
54
# File 'lib/stripe/resources/shipping_rate.rb', line 52

def currency
  @currency
end

#currency_optionsObject (readonly)

Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html) and a [supported currency](stripe.com/docs/currencies).



55
56
57
# File 'lib/stripe/resources/shipping_rate.rb', line 55

def currency_options
  @currency_options
end