Class: Stripe::ShippingRate::FixedAmount
- Inherits:
-
Stripe::StripeObject
- Object
- Stripe::StripeObject
- Stripe::ShippingRate::FixedAmount
- 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
-
#amount ⇒ Object
readonly
A non-negative integer in cents representing how much to charge.
-
#currency ⇒ Object
readonly
Three-letter [ISO currency code](www.iso.org/iso-4217-currency-codes.html), in lowercase.
-
#currency_options ⇒ Object
readonly
Shipping rates defined in each available currency option.
Attributes inherited from Stripe::StripeObject
Class Method Summary collapse
Methods inherited from Stripe::StripeObject
#==, #[], #[]=, #_get_inner_class_type, 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
#amount ⇒ Object (readonly)
A non-negative integer in cents representing how much to charge.
77 78 79 |
# File 'lib/stripe/resources/shipping_rate.rb', line 77 def amount @amount end |
#currency ⇒ Object (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).
79 80 81 |
# File 'lib/stripe/resources/shipping_rate.rb', line 79 def currency @currency end |
#currency_options ⇒ Object (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).
81 82 83 |
# File 'lib/stripe/resources/shipping_rate.rb', line 81 def end |
Class Method Details
.field_remappings ⇒ Object
87 88 89 |
# File 'lib/stripe/resources/shipping_rate.rb', line 87 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
83 84 85 |
# File 'lib/stripe/resources/shipping_rate.rb', line 83 def self.inner_class_types @inner_class_types = { currency_options: CurrencyOptions } end |