Class: Stripe::PaymentIntentUpdateParams::AmountDetails::Shipping

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) ⇒ Shipping

Returns a new instance of Shipping.



127
128
129
130
131
# File 'lib/stripe/params/payment_intent_update_params.rb', line 127

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

#amountObject

Portion of the amount that is for shipping.



121
122
123
# File 'lib/stripe/params/payment_intent_update_params.rb', line 121

def amount
  @amount
end

#from_postal_codeObject

The postal code that represents the shipping source.



123
124
125
# File 'lib/stripe/params/payment_intent_update_params.rb', line 123

def from_postal_code
  @from_postal_code
end

#to_postal_codeObject

The postal code that represents the shipping destination.



125
126
127
# File 'lib/stripe/params/payment_intent_update_params.rb', line 125

def to_postal_code
  @to_postal_code
end