Class: Stripe::PaymentIntentService::ConfirmParams::AmountDetails::Shipping

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



8749
8750
8751
8752
8753
# File 'lib/stripe/services/payment_intent_service.rb', line 8749

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.



8743
8744
8745
# File 'lib/stripe/services/payment_intent_service.rb', line 8743

def amount
  @amount
end

#from_postal_codeObject

The postal code that represents the shipping source.



8745
8746
8747
# File 'lib/stripe/services/payment_intent_service.rb', line 8745

def from_postal_code
  @from_postal_code
end

#to_postal_codeObject

The postal code that represents the shipping destination.



8747
8748
8749
# File 'lib/stripe/services/payment_intent_service.rb', line 8747

def to_postal_code
  @to_postal_code
end