Class: Stripe::PaymentIntent::AmountDetails::Shipping
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::PaymentIntent::AmountDetails::Shipping
- Defined in:
- lib/stripe/resources/payment_intent.rb
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal).
-
#from_postal_code ⇒ Object
readonly
If a physical good is being shipped, the postal code of where it is being shipped from.
-
#to_postal_code ⇒ Object
readonly
If a physical good is being shipped, the postal code of where it is being shipped to.
Attributes inherited from StripeObject
Class Method Summary collapse
Methods inherited from 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)
If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0.
33 34 35 |
# File 'lib/stripe/resources/payment_intent.rb', line 33 def amount @amount end |
#from_postal_code ⇒ Object (readonly)
If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
35 36 37 |
# File 'lib/stripe/resources/payment_intent.rb', line 35 def from_postal_code @from_postal_code end |
#to_postal_code ⇒ Object (readonly)
If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
37 38 39 |
# File 'lib/stripe/resources/payment_intent.rb', line 37 def to_postal_code @to_postal_code end |
Class Method Details
.field_remappings ⇒ Object
43 44 45 |
# File 'lib/stripe/resources/payment_intent.rb', line 43 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
39 40 41 |
# File 'lib/stripe/resources/payment_intent.rb', line 39 def self.inner_class_types @inner_class_types = {} end |