Class: Stripe::Charge::CaptureParams::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.



2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
# File 'lib/stripe/resources/charge.rb', line 2884

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.



2874
2875
2876
# File 'lib/stripe/resources/charge.rb', line 2874

def car_rental
  @car_rental
end

#event_detailsObject

Event details for this PaymentIntent



2876
2877
2878
# File 'lib/stripe/resources/charge.rb', line 2876

def event_details
  @event_details
end

#flightObject

Flight reservation details for this PaymentIntent



2878
2879
2880
# File 'lib/stripe/resources/charge.rb', line 2878

def flight
  @flight
end

#lodgingObject

Lodging reservation details for this PaymentIntent



2880
2881
2882
# File 'lib/stripe/resources/charge.rb', line 2880

def lodging
  @lodging
end

#subscriptionObject

Subscription details for this PaymentIntent



2882
2883
2884
# File 'lib/stripe/resources/charge.rb', line 2882

def subscription
  @subscription
end