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.



4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4180

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.



4162
4163
4164
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4162

def affiliate_name
  @affiliate_name
end

#arrivalObject

Arrival details.



4164
4165
4166
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4164

def arrival
  @arrival
end

#carrier_nameObject

Name of transportation company.



4166
4167
4168
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4166

def carrier_name
  @carrier_name
end

#currencyObject

Currency.



4168
4169
4170
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4168

def currency
  @currency
end

#departureObject

Departure details.



4170
4171
4172
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4170

def departure
  @departure
end

#insurancesObject

List of insurances for this reservation.



4172
4173
4174
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4172

def insurances
  @insurances
end

#passengersObject

List of passengers that this reservation applies to.



4174
4175
4176
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4174

def passengers
  @passengers
end

#priceObject

Price in cents.



4176
4177
4178
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4176

def price
  @price
end

#ticket_classObject

Ticket class.



4178
4179
4180
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 4178

def ticket_class
  @ticket_class
end