Class: Stripe::ChargeService::UpdateParams::PaymentDetails

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



1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
# File 'lib/stripe/services/charge_service.rb', line 1039

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.



1025
1026
1027
# File 'lib/stripe/services/charge_service.rb', line 1025

def car_rental
  @car_rental
end

#event_detailsObject

Event details for this PaymentIntent



1028
1029
1030
# File 'lib/stripe/services/charge_service.rb', line 1028

def event_details
  @event_details
end

#flightObject

Flight reservation details for this PaymentIntent



1031
1032
1033
# File 'lib/stripe/services/charge_service.rb', line 1031

def flight
  @flight
end

#lodgingObject

Lodging reservation details for this PaymentIntent



1034
1035
1036
# File 'lib/stripe/services/charge_service.rb', line 1034

def lodging
  @lodging
end

#subscriptionObject

Subscription details for this PaymentIntent



1037
1038
1039
# File 'lib/stripe/services/charge_service.rb', line 1037

def subscription
  @subscription
end