Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::FlightDatum::Segment

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



1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1131

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.



1101
1102
1103
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1101

def amount
  @amount
end

#arrivalObject

Arrival details.



1103
1104
1105
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1103

def arrival
  @arrival
end

#carrier_codeObject

Airline carrier code.



1105
1106
1107
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1105

def carrier_code
  @carrier_code
end

#carrier_nameObject

Carrier name.



1107
1108
1109
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1107

def carrier_name
  @carrier_name
end

#currencyObject

Segment currency.



1109
1110
1111
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1109

def currency
  @currency
end

#departureObject

Departure details.



1111
1112
1113
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1111

def departure
  @departure
end

#exchange_ticket_numberObject

Exchange ticket number.



1113
1114
1115
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1113

def exchange_ticket_number
  @exchange_ticket_number
end

#fare_basis_codeObject

Fare basis code.



1115
1116
1117
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1115

def fare_basis_code
  @fare_basis_code
end

#feesObject

Additional fees.



1117
1118
1119
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1117

def fees
  @fees
end

#flight_numberObject

Flight number.



1119
1120
1121
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1119

def flight_number
  @flight_number
end

#is_stop_over_indicatorObject

Stopover indicator.



1121
1122
1123
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1121

def is_stop_over_indicator
  @is_stop_over_indicator
end

#refundableObject

Refundable ticket indicator.



1123
1124
1125
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1123

def refundable
  @refundable
end

#service_classObject

Class of service.



1125
1126
1127
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1125

def service_class
  @service_class
end

#tax_amountObject

Tax amount for segment.



1127
1128
1129
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1127

def tax_amount
  @tax_amount
end

#ticket_numberObject

Ticket number.



1129
1130
1131
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1129

def ticket_number
  @ticket_number
end