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

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/payment_intent.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.



14348
14349
14350
14351
14352
# File 'lib/stripe/resources/payment_intent.rb', line 14348

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.



14342
14343
14344
# File 'lib/stripe/resources/payment_intent.rb', line 14342

def amount
  @amount
end

#from_postal_codeObject

The postal code that represents the shipping source.



14344
14345
14346
# File 'lib/stripe/resources/payment_intent.rb', line 14344

def from_postal_code
  @from_postal_code
end

#to_postal_codeObject

The postal code that represents the shipping destination.



14346
14347
14348
# File 'lib/stripe/resources/payment_intent.rb', line 14346

def to_postal_code
  @to_postal_code
end