Class: Stripe::PaymentIntent::AmountDetails::Shipping

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/payment_intent.rb

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

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

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



43
44
45
# File 'lib/stripe/resources/payment_intent.rb', line 43

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



39
40
41
# File 'lib/stripe/resources/payment_intent.rb', line 39

def self.inner_class_types
  @inner_class_types = {}
end