Class: Stripe::V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Shipping
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Payments::OffSessionPaymentCreateParams::AmountDetails::Shipping
- Defined in:
- lib/stripe/params/v2/payments/off_session_payment_create_params.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.
56 57 58 59 60 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 56 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.
50 51 52 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 50 def amount @amount end |
#from_postal_code ⇒ Object
The postal code that represents the shipping source.
52 53 54 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 52 def from_postal_code @from_postal_code end |
#to_postal_code ⇒ Object
The postal code that represents the shipping destination.
54 55 56 |
# File 'lib/stripe/params/v2/payments/off_session_payment_create_params.rb', line 54 def to_postal_code @to_postal_code end |