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.



2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
# File 'lib/stripe/resources/charge.rb', line 2114

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.



2104
2105
2106
# File 'lib/stripe/resources/charge.rb', line 2104

def car_rental
  @car_rental
end

#event_detailsObject

Event details for this PaymentIntent



2106
2107
2108
# File 'lib/stripe/resources/charge.rb', line 2106

def event_details
  @event_details
end

#flightObject

Flight reservation details for this PaymentIntent



2108
2109
2110
# File 'lib/stripe/resources/charge.rb', line 2108

def flight
  @flight
end

#lodgingObject

Lodging reservation details for this PaymentIntent



2110
2111
2112
# File 'lib/stripe/resources/charge.rb', line 2110

def lodging
  @lodging
end

#subscriptionObject

Subscription details for this PaymentIntent



2112
2113
2114
# File 'lib/stripe/resources/charge.rb', line 2112

def subscription
  @subscription
end