Class: Stripe::Charge::UpdateParams::PaymentDetails

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



2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
# File 'lib/stripe/resources/charge.rb', line 2588

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.



2574
2575
2576
# File 'lib/stripe/resources/charge.rb', line 2574

def car_rental
  @car_rental
end

#event_detailsObject

Event details for this PaymentIntent



2577
2578
2579
# File 'lib/stripe/resources/charge.rb', line 2577

def event_details
  @event_details
end

#flightObject

Flight reservation details for this PaymentIntent



2580
2581
2582
# File 'lib/stripe/resources/charge.rb', line 2580

def flight
  @flight
end

#lodgingObject

Lodging reservation details for this PaymentIntent



2583
2584
2585
# File 'lib/stripe/resources/charge.rb', line 2583

def lodging
  @lodging
end

#subscriptionObject

Subscription details for this PaymentIntent



2586
2587
2588
# File 'lib/stripe/resources/charge.rb', line 2586

def subscription
  @subscription
end