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

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

#amountObject (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

#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).



79
80
81
# File 'lib/stripe/resources/shipping_rate.rb', line 79

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).



81
82
83
# File 'lib/stripe/resources/shipping_rate.rb', line 81

def currency_options
  @currency_options
end

Class Method Details

.field_remappingsObject



87
88
89
# File 'lib/stripe/resources/shipping_rate.rb', line 87

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



83
84
85
# File 'lib/stripe/resources/shipping_rate.rb', line 83

def self.inner_class_types
  @inner_class_types = { currency_options: CurrencyOptions }
end