Class: Stripe::PaymentIntentConfirmParams::PaymentMethodOptions::Klarna::SupplementaryPurchaseData::BusReservationDetail

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

Defined Under Namespace

Classes: Arrival, Departure, Insurance, Passenger

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(affiliate_name: nil, arrival: nil, carrier_name: nil, currency: nil, departure: nil, insurances: nil, passengers: nil, price: nil, ticket_class: nil) ⇒ BusReservationDetail

Returns a new instance of BusReservationDetail.



3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 3625

def initialize(
  affiliate_name: nil,
  arrival: nil,
  carrier_name: nil,
  currency: nil,
  departure: nil,
  insurances: nil,
  passengers: nil,
  price: nil,
  ticket_class: nil
)
  @affiliate_name = affiliate_name
  @arrival = arrival
  @carrier_name = carrier_name
  @currency = currency
  @departure = departure
  @insurances = insurances
  @passengers = passengers
  @price = price
  @ticket_class = ticket_class
end

Instance Attribute Details

#affiliate_nameObject

Name of associated or partner company for the service.



3607
3608
3609
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 3607

def affiliate_name
  @affiliate_name
end

#arrivalObject

Arrival details.



3609
3610
3611
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 3609

def arrival
  @arrival
end

#carrier_nameObject

Name of transportation company.



3611
3612
3613
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 3611

def carrier_name
  @carrier_name
end

#currencyObject

Currency.



3613
3614
3615
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 3613

def currency
  @currency
end

#departureObject

Departure details.



3615
3616
3617
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 3615

def departure
  @departure
end

#insurancesObject

List of insurances for this reservation.



3617
3618
3619
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 3617

def insurances
  @insurances
end

#passengersObject

List of passengers that this reservation applies to.



3619
3620
3621
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 3619

def passengers
  @passengers
end

#priceObject

Price in cents.



3621
3622
3623
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 3621

def price
  @price
end

#ticket_classObject

Ticket class.



3623
3624
3625
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 3623

def ticket_class
  @ticket_class
end