Class: Stripe::PaymentIntent::ConfirmParams::AmountDetails::Shipping
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentIntent::ConfirmParams::AmountDetails::Shipping
- Defined in:
- lib/stripe/resources/payment_intent.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.
10740 10741 10742 10743 10744 |
# File 'lib/stripe/resources/payment_intent.rb', line 10740 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.
10734 10735 10736 |
# File 'lib/stripe/resources/payment_intent.rb', line 10734 def amount @amount end |
#from_postal_code ⇒ Object
The postal code that represents the shipping source.
10736 10737 10738 |
# File 'lib/stripe/resources/payment_intent.rb', line 10736 def from_postal_code @from_postal_code end |
#to_postal_code ⇒ Object
The postal code that represents the shipping destination.
10738 10739 10740 |
# File 'lib/stripe/resources/payment_intent.rb', line 10738 def to_postal_code @to_postal_code end |