Class: Stripe::PaymentIntentService::UpdateParams::AmountDetails::Shipping
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntentService::UpdateParams::AmountDetails::Shipping
- Defined in:
- lib/stripe/services/payment_intent_service.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Portion of the amount that is for shipping.
-
#from_postal_code ⇒ Object
The postal code that represents the shipping source.
-
#to_postal_code ⇒ Object
The postal code that represents the shipping destination.
Instance Method Summary collapse
-
#initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) ⇒ Shipping
constructor
A new instance of Shipping.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) ⇒ Shipping
Returns a new instance of Shipping.
4027 4028 4029 4030 4031 |
# File 'lib/stripe/services/payment_intent_service.rb', line 4027 def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) @amount = amount @from_postal_code = from_postal_code @to_postal_code = to_postal_code end |
Instance Attribute Details
#amount ⇒ Object
Portion of the amount that is for shipping.
4021 4022 4023 |
# File 'lib/stripe/services/payment_intent_service.rb', line 4021 def amount @amount end |
#from_postal_code ⇒ Object
The postal code that represents the shipping source.
4023 4024 4025 |
# File 'lib/stripe/services/payment_intent_service.rb', line 4023 def from_postal_code @from_postal_code end |
#to_postal_code ⇒ Object
The postal code that represents the shipping destination.
4025 4026 4027 |
# File 'lib/stripe/services/payment_intent_service.rb', line 4025 def to_postal_code @to_postal_code end |