Class: Stripe::PaymentIntentUpdateParams::PaymentDetails::FlightDatum::Segment

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_intent_update_params.rb

Defined Under Namespace

Classes: Arrival, Departure

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, arrival: nil, carrier_code: nil, carrier_name: nil, currency: nil, departure: nil, exchange_ticket_number: nil, fare_basis_code: nil, fees: nil, flight_number: nil, is_stop_over_indicator: nil, refundable: nil, service_class: nil, tax_amount: nil, ticket_number: nil) ⇒ Segment

Returns a new instance of Segment.



1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1175

def initialize(
  amount: nil,
  arrival: nil,
  carrier_code: nil,
  carrier_name: nil,
  currency: nil,
  departure: nil,
  exchange_ticket_number: nil,
  fare_basis_code: nil,
  fees: nil,
  flight_number: nil,
  is_stop_over_indicator: nil,
  refundable: nil,
  service_class: nil,
  tax_amount: nil,
  ticket_number: nil
)
  @amount = amount
  @arrival = arrival
  @carrier_code = carrier_code
  @carrier_name = carrier_name
  @currency = currency
  @departure = departure
  @exchange_ticket_number = exchange_ticket_number
  @fare_basis_code = fare_basis_code
  @fees = fees
  @flight_number = flight_number
  @is_stop_over_indicator = is_stop_over_indicator
  @refundable = refundable
  @service_class = service_class
  @tax_amount = tax_amount
  @ticket_number = ticket_number
end

Instance Attribute Details

#amountObject

Segment fare amount.



1145
1146
1147
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1145

def amount
  @amount
end

#arrivalObject

Arrival details.



1147
1148
1149
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1147

def arrival
  @arrival
end

#carrier_codeObject

Airline carrier code.



1149
1150
1151
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1149

def carrier_code
  @carrier_code
end

#carrier_nameObject

Carrier name.



1151
1152
1153
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1151

def carrier_name
  @carrier_name
end

#currencyObject

Segment currency.



1153
1154
1155
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1153

def currency
  @currency
end

#departureObject

Departure details.



1155
1156
1157
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1155

def departure
  @departure
end

#exchange_ticket_numberObject

Exchange ticket number.



1157
1158
1159
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1157

def exchange_ticket_number
  @exchange_ticket_number
end

#fare_basis_codeObject

Fare basis code.



1159
1160
1161
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1159

def fare_basis_code
  @fare_basis_code
end

#feesObject

Additional fees.



1161
1162
1163
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1161

def fees
  @fees
end

#flight_numberObject

Flight number.



1163
1164
1165
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1163

def flight_number
  @flight_number
end

#is_stop_over_indicatorObject

Stopover indicator.



1165
1166
1167
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1165

def is_stop_over_indicator
  @is_stop_over_indicator
end

#refundableObject

Refundable ticket indicator.



1167
1168
1169
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1167

def refundable
  @refundable
end

#service_classObject

Class of service.



1169
1170
1171
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1169

def service_class
  @service_class
end

#tax_amountObject

Tax amount for segment.



1171
1172
1173
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1171

def tax_amount
  @tax_amount
end

#ticket_numberObject

Ticket number.



1173
1174
1175
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1173

def ticket_number
  @ticket_number
end