Class: Stripe::PaymentIntentService::ConfirmParams::PaymentDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_intent_service.rb

Defined Under Namespace

Classes: CarRental, EventDetails, Flight, Lodging, Subscription

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(car_rental: nil, event_details: nil, flight: nil, lodging: nil, subscription: nil) ⇒ PaymentDetails

Returns a new instance of PaymentDetails.



8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
# File 'lib/stripe/services/payment_intent_service.rb', line 8506

def initialize(
  car_rental: nil,
  event_details: nil,
  flight: nil,
  lodging: nil,
  subscription: nil
)
  @car_rental = car_rental
  @event_details = event_details
  @flight = flight
  @lodging = lodging
  @subscription = subscription
end

Instance Attribute Details

#car_rentalObject

Car rental details for this PaymentIntent.



8496
8497
8498
# File 'lib/stripe/services/payment_intent_service.rb', line 8496

def car_rental
  @car_rental
end

#event_detailsObject

Event details for this PaymentIntent



8498
8499
8500
# File 'lib/stripe/services/payment_intent_service.rb', line 8498

def event_details
  @event_details
end

#flightObject

Flight reservation details for this PaymentIntent



8500
8501
8502
# File 'lib/stripe/services/payment_intent_service.rb', line 8500

def flight
  @flight
end

#lodgingObject

Lodging reservation details for this PaymentIntent



8502
8503
8504
# File 'lib/stripe/services/payment_intent_service.rb', line 8502

def lodging
  @lodging
end

#subscriptionObject

Subscription details for this PaymentIntent



8504
8505
8506
# File 'lib/stripe/services/payment_intent_service.rb', line 8504

def subscription
  @subscription
end