stripe 17.3.0.pre.alpha.2 → 18.1.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +2 -0
- data/lib/stripe/params/account_create_params.rb +27 -10
- data/lib/stripe/params/account_person_create_params.rb +9 -9
- data/lib/stripe/params/account_person_update_params.rb +9 -9
- data/lib/stripe/params/account_update_params.rb +27 -10
- data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +2 -2
- data/lib/stripe/params/charge_capture_params.rb +941 -2
- data/lib/stripe/params/charge_update_params.rb +941 -2
- data/lib/stripe/params/checkout/session_create_params.rb +3 -3
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +21 -1
- data/lib/stripe/params/customer_session_create_params.rb +1 -1
- data/lib/stripe/params/invoice_create_preview_params.rb +28 -1
- data/lib/stripe/params/invoice_payment_list_params.rb +22 -0
- data/lib/stripe/params/issuing/authorization_create_params.rb +16 -1
- data/lib/stripe/params/order_create_params.rb +938 -1
- data/lib/stripe/params/order_update_params.rb +938 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +962 -13
- data/lib/stripe/params/payment_intent_confirm_params.rb +2017 -123
- data/lib/stripe/params/payment_intent_create_params.rb +2017 -123
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +29 -13
- data/lib/stripe/params/payment_intent_update_params.rb +2017 -123
- data/lib/stripe/params/payment_method_list_params.rb +8 -0
- data/lib/stripe/params/quote_create_params.rb +18 -18
- data/lib/stripe/params/quote_update_params.rb +18 -18
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +3 -3
- data/lib/stripe/params/setup_intent_create_params.rb +3 -3
- data/lib/stripe/params/setup_intent_update_params.rb +3 -3
- data/lib/stripe/params/subscription_schedule_amend_params.rb +28 -1
- data/lib/stripe/params/tax/registration_create_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +9 -9
- data/lib/stripe/params/terminal/configuration_update_params.rb +9 -9
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +16 -1
- data/lib/stripe/params/token_create_params.rb +18 -18
- data/lib/stripe/params/transfer_create_params.rb +5 -5
- data/lib/stripe/params.rb +4 -0
- data/lib/stripe/resources/account.rb +19 -1
- data/lib/stripe/resources/application_fee.rb +2 -2
- data/lib/stripe/resources/balance_transfer.rb +139 -0
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +2 -2
- data/lib/stripe/resources/billing_portal/configuration.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +6 -6
- data/lib/stripe/resources/capital/financing_summary.rb +7 -7
- data/lib/stripe/resources/charge.rb +5 -3
- data/lib/stripe/resources/checkout/session.rb +3 -3
- data/lib/stripe/resources/confirmation_token.rb +1 -1
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +50 -50
- data/lib/stripe/resources/financial_connections/account.rb +22 -0
- data/lib/stripe/resources/invoice.rb +1 -1
- data/lib/stripe/resources/issuing/card.rb +18 -0
- data/lib/stripe/resources/mandate.rb +3 -3
- data/lib/stripe/resources/payment_attempt_record.rb +8 -6
- data/lib/stripe/resources/payment_intent.rb +38 -26
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +13 -7
- data/lib/stripe/resources/payment_method.rb +1 -1
- data/lib/stripe/resources/payment_record.rb +8 -6
- data/lib/stripe/resources/person.rb +36 -36
- data/lib/stripe/resources/quote.rb +27 -27
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +9 -9
- data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
- data/lib/stripe/resources/refund.rb +31 -0
- data/lib/stripe/resources/setup_attempt.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +3 -3
- data/lib/stripe/resources/subscription.rb +9 -9
- data/lib/stripe/resources/subscription_schedule.rb +9 -9
- data/lib/stripe/resources/transfer.rb +4 -4
- data/lib/stripe/resources.rb +2 -0
- data/lib/stripe/services/balance_transfer_service.rb +17 -0
- data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +2 -1
- data/lib/stripe/services.rb +2 -0
- data/lib/stripe/util.rb +2 -5
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +17737 -652
- metadata +10 -2
|
@@ -230,6 +230,364 @@ module Stripe
|
|
|
230
230
|
end
|
|
231
231
|
end
|
|
232
232
|
|
|
233
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
234
|
+
class Affiliate < ::Stripe::RequestParams
|
|
235
|
+
# Affiliate partner code.
|
|
236
|
+
attr_accessor :code
|
|
237
|
+
# Name of affiliate partner.
|
|
238
|
+
attr_accessor :name
|
|
239
|
+
|
|
240
|
+
def initialize(code: nil, name: nil)
|
|
241
|
+
@code = code
|
|
242
|
+
@name = name
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
class Distance < ::Stripe::RequestParams
|
|
247
|
+
# Distance traveled.
|
|
248
|
+
attr_accessor :amount
|
|
249
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
250
|
+
attr_accessor :unit
|
|
251
|
+
|
|
252
|
+
def initialize(amount: nil, unit: nil)
|
|
253
|
+
@amount = amount
|
|
254
|
+
@unit = unit
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
class Driver < ::Stripe::RequestParams
|
|
259
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
260
|
+
# Day of birth (1-31).
|
|
261
|
+
attr_accessor :day
|
|
262
|
+
# Month of birth (1-12).
|
|
263
|
+
attr_accessor :month
|
|
264
|
+
# Year of birth (must be greater than 1900).
|
|
265
|
+
attr_accessor :year
|
|
266
|
+
|
|
267
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
268
|
+
@day = day
|
|
269
|
+
@month = month
|
|
270
|
+
@year = year
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
# Driver's date of birth.
|
|
274
|
+
attr_accessor :date_of_birth
|
|
275
|
+
# Driver's identification number.
|
|
276
|
+
attr_accessor :driver_identification_number
|
|
277
|
+
# Driver's tax number.
|
|
278
|
+
attr_accessor :driver_tax_number
|
|
279
|
+
# Driver's full name.
|
|
280
|
+
attr_accessor :name
|
|
281
|
+
|
|
282
|
+
def initialize(
|
|
283
|
+
date_of_birth: nil,
|
|
284
|
+
driver_identification_number: nil,
|
|
285
|
+
driver_tax_number: nil,
|
|
286
|
+
name: nil
|
|
287
|
+
)
|
|
288
|
+
@date_of_birth = date_of_birth
|
|
289
|
+
@driver_identification_number = driver_identification_number
|
|
290
|
+
@driver_tax_number = driver_tax_number
|
|
291
|
+
@name = name
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
class DropOff < ::Stripe::RequestParams
|
|
296
|
+
class Address < ::Stripe::RequestParams
|
|
297
|
+
# City, district, suburb, town, or village.
|
|
298
|
+
attr_accessor :city
|
|
299
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
300
|
+
attr_accessor :country
|
|
301
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
302
|
+
attr_accessor :line1
|
|
303
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
304
|
+
attr_accessor :line2
|
|
305
|
+
# ZIP or postal code.
|
|
306
|
+
attr_accessor :postal_code
|
|
307
|
+
# State, county, province, or region.
|
|
308
|
+
attr_accessor :state
|
|
309
|
+
|
|
310
|
+
def initialize(
|
|
311
|
+
city: nil,
|
|
312
|
+
country: nil,
|
|
313
|
+
line1: nil,
|
|
314
|
+
line2: nil,
|
|
315
|
+
postal_code: nil,
|
|
316
|
+
state: nil
|
|
317
|
+
)
|
|
318
|
+
@city = city
|
|
319
|
+
@country = country
|
|
320
|
+
@line1 = line1
|
|
321
|
+
@line2 = line2
|
|
322
|
+
@postal_code = postal_code
|
|
323
|
+
@state = state
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
# Address of the rental location.
|
|
327
|
+
attr_accessor :address
|
|
328
|
+
# Location name.
|
|
329
|
+
attr_accessor :location_name
|
|
330
|
+
# Timestamp for the location.
|
|
331
|
+
attr_accessor :time
|
|
332
|
+
|
|
333
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
334
|
+
@address = address
|
|
335
|
+
@location_name = location_name
|
|
336
|
+
@time = time
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
class Insurance < ::Stripe::RequestParams
|
|
341
|
+
# Amount of the insurance coverage in cents.
|
|
342
|
+
attr_accessor :amount
|
|
343
|
+
# Currency of the insurance amount.
|
|
344
|
+
attr_accessor :currency
|
|
345
|
+
# Name of the insurance company.
|
|
346
|
+
attr_accessor :insurance_company_name
|
|
347
|
+
# Type of insurance coverage.
|
|
348
|
+
attr_accessor :insurance_type
|
|
349
|
+
|
|
350
|
+
def initialize(
|
|
351
|
+
amount: nil,
|
|
352
|
+
currency: nil,
|
|
353
|
+
insurance_company_name: nil,
|
|
354
|
+
insurance_type: nil
|
|
355
|
+
)
|
|
356
|
+
@amount = amount
|
|
357
|
+
@currency = currency
|
|
358
|
+
@insurance_company_name = insurance_company_name
|
|
359
|
+
@insurance_type = insurance_type
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
class Pickup < ::Stripe::RequestParams
|
|
364
|
+
class Address < ::Stripe::RequestParams
|
|
365
|
+
# City, district, suburb, town, or village.
|
|
366
|
+
attr_accessor :city
|
|
367
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
368
|
+
attr_accessor :country
|
|
369
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
370
|
+
attr_accessor :line1
|
|
371
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
372
|
+
attr_accessor :line2
|
|
373
|
+
# ZIP or postal code.
|
|
374
|
+
attr_accessor :postal_code
|
|
375
|
+
# State, county, province, or region.
|
|
376
|
+
attr_accessor :state
|
|
377
|
+
|
|
378
|
+
def initialize(
|
|
379
|
+
city: nil,
|
|
380
|
+
country: nil,
|
|
381
|
+
line1: nil,
|
|
382
|
+
line2: nil,
|
|
383
|
+
postal_code: nil,
|
|
384
|
+
state: nil
|
|
385
|
+
)
|
|
386
|
+
@city = city
|
|
387
|
+
@country = country
|
|
388
|
+
@line1 = line1
|
|
389
|
+
@line2 = line2
|
|
390
|
+
@postal_code = postal_code
|
|
391
|
+
@state = state
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
# Address of the rental location.
|
|
395
|
+
attr_accessor :address
|
|
396
|
+
# Location name.
|
|
397
|
+
attr_accessor :location_name
|
|
398
|
+
# Timestamp for the location.
|
|
399
|
+
attr_accessor :time
|
|
400
|
+
|
|
401
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
402
|
+
@address = address
|
|
403
|
+
@location_name = location_name
|
|
404
|
+
@time = time
|
|
405
|
+
end
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
class Total < ::Stripe::RequestParams
|
|
409
|
+
class Discounts < ::Stripe::RequestParams
|
|
410
|
+
# Corporate client discount code.
|
|
411
|
+
attr_accessor :corporate_client_code
|
|
412
|
+
# Coupon code applied to the rental.
|
|
413
|
+
attr_accessor :coupon
|
|
414
|
+
# Maximum number of free miles or kilometers included.
|
|
415
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
416
|
+
|
|
417
|
+
def initialize(
|
|
418
|
+
corporate_client_code: nil,
|
|
419
|
+
coupon: nil,
|
|
420
|
+
maximum_free_miles_or_kilometers: nil
|
|
421
|
+
)
|
|
422
|
+
@corporate_client_code = corporate_client_code
|
|
423
|
+
@coupon = coupon
|
|
424
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
425
|
+
end
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
429
|
+
# Amount of the extra charge in cents.
|
|
430
|
+
attr_accessor :amount
|
|
431
|
+
# Type of extra charge.
|
|
432
|
+
attr_accessor :type
|
|
433
|
+
|
|
434
|
+
def initialize(amount: nil, type: nil)
|
|
435
|
+
@amount = amount
|
|
436
|
+
@type = type
|
|
437
|
+
end
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
class Tax < ::Stripe::RequestParams
|
|
441
|
+
class Tax < ::Stripe::RequestParams
|
|
442
|
+
# Tax amount.
|
|
443
|
+
attr_accessor :amount
|
|
444
|
+
# Tax rate applied.
|
|
445
|
+
attr_accessor :rate
|
|
446
|
+
# Type of tax applied.
|
|
447
|
+
attr_accessor :type
|
|
448
|
+
|
|
449
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
450
|
+
@amount = amount
|
|
451
|
+
@rate = rate
|
|
452
|
+
@type = type
|
|
453
|
+
end
|
|
454
|
+
end
|
|
455
|
+
# Indicates if the transaction is tax exempt.
|
|
456
|
+
attr_accessor :tax_exempt_indicator
|
|
457
|
+
# Array of tax details.
|
|
458
|
+
attr_accessor :taxes
|
|
459
|
+
|
|
460
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
461
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
462
|
+
@taxes = taxes
|
|
463
|
+
end
|
|
464
|
+
end
|
|
465
|
+
# Total amount in cents.
|
|
466
|
+
attr_accessor :amount
|
|
467
|
+
# Currency of the amount.
|
|
468
|
+
attr_accessor :currency
|
|
469
|
+
# Discount details for the rental.
|
|
470
|
+
attr_accessor :discounts
|
|
471
|
+
# Additional charges for the rental.
|
|
472
|
+
attr_accessor :extra_charges
|
|
473
|
+
# Rate per unit for the rental.
|
|
474
|
+
attr_accessor :rate_per_unit
|
|
475
|
+
# Unit of measurement for the rate.
|
|
476
|
+
attr_accessor :rate_unit
|
|
477
|
+
# Tax breakdown for the rental.
|
|
478
|
+
attr_accessor :tax
|
|
479
|
+
|
|
480
|
+
def initialize(
|
|
481
|
+
amount: nil,
|
|
482
|
+
currency: nil,
|
|
483
|
+
discounts: nil,
|
|
484
|
+
extra_charges: nil,
|
|
485
|
+
rate_per_unit: nil,
|
|
486
|
+
rate_unit: nil,
|
|
487
|
+
tax: nil
|
|
488
|
+
)
|
|
489
|
+
@amount = amount
|
|
490
|
+
@currency = currency
|
|
491
|
+
@discounts = discounts
|
|
492
|
+
@extra_charges = extra_charges
|
|
493
|
+
@rate_per_unit = rate_per_unit
|
|
494
|
+
@rate_unit = rate_unit
|
|
495
|
+
@tax = tax
|
|
496
|
+
end
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
class Vehicle < ::Stripe::RequestParams
|
|
500
|
+
# Make of the rental vehicle.
|
|
501
|
+
attr_accessor :make
|
|
502
|
+
# Model of the rental vehicle.
|
|
503
|
+
attr_accessor :model
|
|
504
|
+
# Odometer reading at the time of rental.
|
|
505
|
+
attr_accessor :odometer
|
|
506
|
+
# Type of the rental vehicle.
|
|
507
|
+
attr_accessor :type
|
|
508
|
+
# Class of the rental vehicle.
|
|
509
|
+
attr_accessor :vehicle_class
|
|
510
|
+
# Vehicle identification number (VIN).
|
|
511
|
+
attr_accessor :vehicle_identification_number
|
|
512
|
+
|
|
513
|
+
def initialize(
|
|
514
|
+
make: nil,
|
|
515
|
+
model: nil,
|
|
516
|
+
odometer: nil,
|
|
517
|
+
type: nil,
|
|
518
|
+
vehicle_class: nil,
|
|
519
|
+
vehicle_identification_number: nil
|
|
520
|
+
)
|
|
521
|
+
@make = make
|
|
522
|
+
@model = model
|
|
523
|
+
@odometer = odometer
|
|
524
|
+
@type = type
|
|
525
|
+
@vehicle_class = vehicle_class
|
|
526
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
527
|
+
end
|
|
528
|
+
end
|
|
529
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
530
|
+
attr_accessor :affiliate
|
|
531
|
+
# Booking confirmation number for the car rental.
|
|
532
|
+
attr_accessor :booking_number
|
|
533
|
+
# Name of the car rental company.
|
|
534
|
+
attr_accessor :carrier_name
|
|
535
|
+
# Customer service phone number for the car rental company.
|
|
536
|
+
attr_accessor :customer_service_phone_number
|
|
537
|
+
# Number of days the car is being rented.
|
|
538
|
+
attr_accessor :days_rented
|
|
539
|
+
# Distance details for the rental.
|
|
540
|
+
attr_accessor :distance
|
|
541
|
+
# List of drivers for the rental.
|
|
542
|
+
attr_accessor :drivers
|
|
543
|
+
# Drop-off location details.
|
|
544
|
+
attr_accessor :drop_off
|
|
545
|
+
# Insurance details for the rental.
|
|
546
|
+
attr_accessor :insurances
|
|
547
|
+
# Indicates if the customer was a no-show.
|
|
548
|
+
attr_accessor :no_show_indicator
|
|
549
|
+
# Pickup location details.
|
|
550
|
+
attr_accessor :pickup
|
|
551
|
+
# Name of the person renting the vehicle.
|
|
552
|
+
attr_accessor :renter_name
|
|
553
|
+
# Total cost breakdown for the rental.
|
|
554
|
+
attr_accessor :total
|
|
555
|
+
# Vehicle details for the rental.
|
|
556
|
+
attr_accessor :vehicle
|
|
557
|
+
|
|
558
|
+
def initialize(
|
|
559
|
+
affiliate: nil,
|
|
560
|
+
booking_number: nil,
|
|
561
|
+
carrier_name: nil,
|
|
562
|
+
customer_service_phone_number: nil,
|
|
563
|
+
days_rented: nil,
|
|
564
|
+
distance: nil,
|
|
565
|
+
drivers: nil,
|
|
566
|
+
drop_off: nil,
|
|
567
|
+
insurances: nil,
|
|
568
|
+
no_show_indicator: nil,
|
|
569
|
+
pickup: nil,
|
|
570
|
+
renter_name: nil,
|
|
571
|
+
total: nil,
|
|
572
|
+
vehicle: nil
|
|
573
|
+
)
|
|
574
|
+
@affiliate = affiliate
|
|
575
|
+
@booking_number = booking_number
|
|
576
|
+
@carrier_name = carrier_name
|
|
577
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
578
|
+
@days_rented = days_rented
|
|
579
|
+
@distance = distance
|
|
580
|
+
@drivers = drivers
|
|
581
|
+
@drop_off = drop_off
|
|
582
|
+
@insurances = insurances
|
|
583
|
+
@no_show_indicator = no_show_indicator
|
|
584
|
+
@pickup = pickup
|
|
585
|
+
@renter_name = renter_name
|
|
586
|
+
@total = total
|
|
587
|
+
@vehicle = vehicle
|
|
588
|
+
end
|
|
589
|
+
end
|
|
590
|
+
|
|
233
591
|
class EventDetails < ::Stripe::RequestParams
|
|
234
592
|
class Address < ::Stripe::RequestParams
|
|
235
593
|
# City, district, suburb, town, or village.
|
|
@@ -459,6 +817,275 @@ module Stripe
|
|
|
459
817
|
end
|
|
460
818
|
end
|
|
461
819
|
|
|
820
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
821
|
+
class Affiliate < ::Stripe::RequestParams
|
|
822
|
+
# Affiliate partner code.
|
|
823
|
+
attr_accessor :code
|
|
824
|
+
# Name of affiliate partner.
|
|
825
|
+
attr_accessor :name
|
|
826
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
827
|
+
attr_accessor :travel_authorization_code
|
|
828
|
+
|
|
829
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
830
|
+
@code = code
|
|
831
|
+
@name = name
|
|
832
|
+
@travel_authorization_code = travel_authorization_code
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
class Insurance < ::Stripe::RequestParams
|
|
837
|
+
# Insurance cost.
|
|
838
|
+
attr_accessor :amount
|
|
839
|
+
# Insurance currency.
|
|
840
|
+
attr_accessor :currency
|
|
841
|
+
# Insurance company name.
|
|
842
|
+
attr_accessor :insurance_company_name
|
|
843
|
+
# Type of insurance.
|
|
844
|
+
attr_accessor :insurance_type
|
|
845
|
+
|
|
846
|
+
def initialize(
|
|
847
|
+
amount: nil,
|
|
848
|
+
currency: nil,
|
|
849
|
+
insurance_company_name: nil,
|
|
850
|
+
insurance_type: nil
|
|
851
|
+
)
|
|
852
|
+
@amount = amount
|
|
853
|
+
@currency = currency
|
|
854
|
+
@insurance_company_name = insurance_company_name
|
|
855
|
+
@insurance_type = insurance_type
|
|
856
|
+
end
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
class Passenger < ::Stripe::RequestParams
|
|
860
|
+
# Passenger's full name.
|
|
861
|
+
attr_accessor :name
|
|
862
|
+
|
|
863
|
+
def initialize(name: nil)
|
|
864
|
+
@name = name
|
|
865
|
+
end
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
class Segment < ::Stripe::RequestParams
|
|
869
|
+
class Arrival < ::Stripe::RequestParams
|
|
870
|
+
# Arrival airport IATA code.
|
|
871
|
+
attr_accessor :airport
|
|
872
|
+
# Arrival date/time.
|
|
873
|
+
attr_accessor :arrives_at
|
|
874
|
+
# Arrival city.
|
|
875
|
+
attr_accessor :city
|
|
876
|
+
# Arrival country.
|
|
877
|
+
attr_accessor :country
|
|
878
|
+
|
|
879
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
880
|
+
@airport = airport
|
|
881
|
+
@arrives_at = arrives_at
|
|
882
|
+
@city = city
|
|
883
|
+
@country = country
|
|
884
|
+
end
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
class Departure < ::Stripe::RequestParams
|
|
888
|
+
# Departure airport IATA code.
|
|
889
|
+
attr_accessor :airport
|
|
890
|
+
# Departure city.
|
|
891
|
+
attr_accessor :city
|
|
892
|
+
# Departure country.
|
|
893
|
+
attr_accessor :country
|
|
894
|
+
# Departure date/time.
|
|
895
|
+
attr_accessor :departs_at
|
|
896
|
+
|
|
897
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
898
|
+
@airport = airport
|
|
899
|
+
@city = city
|
|
900
|
+
@country = country
|
|
901
|
+
@departs_at = departs_at
|
|
902
|
+
end
|
|
903
|
+
end
|
|
904
|
+
# Segment fare amount.
|
|
905
|
+
attr_accessor :amount
|
|
906
|
+
# Arrival details.
|
|
907
|
+
attr_accessor :arrival
|
|
908
|
+
# Airline carrier code.
|
|
909
|
+
attr_accessor :carrier_code
|
|
910
|
+
# Carrier name.
|
|
911
|
+
attr_accessor :carrier_name
|
|
912
|
+
# Segment currency.
|
|
913
|
+
attr_accessor :currency
|
|
914
|
+
# Departure details.
|
|
915
|
+
attr_accessor :departure
|
|
916
|
+
# Exchange ticket number.
|
|
917
|
+
attr_accessor :exchange_ticket_number
|
|
918
|
+
# Fare basis code.
|
|
919
|
+
attr_accessor :fare_basis_code
|
|
920
|
+
# Additional fees.
|
|
921
|
+
attr_accessor :fees
|
|
922
|
+
# Flight number.
|
|
923
|
+
attr_accessor :flight_number
|
|
924
|
+
# Stopover indicator.
|
|
925
|
+
attr_accessor :is_stop_over_indicator
|
|
926
|
+
# Refundable ticket indicator.
|
|
927
|
+
attr_accessor :refundable
|
|
928
|
+
# Class of service.
|
|
929
|
+
attr_accessor :service_class
|
|
930
|
+
# Tax amount for segment.
|
|
931
|
+
attr_accessor :tax_amount
|
|
932
|
+
# Ticket number.
|
|
933
|
+
attr_accessor :ticket_number
|
|
934
|
+
|
|
935
|
+
def initialize(
|
|
936
|
+
amount: nil,
|
|
937
|
+
arrival: nil,
|
|
938
|
+
carrier_code: nil,
|
|
939
|
+
carrier_name: nil,
|
|
940
|
+
currency: nil,
|
|
941
|
+
departure: nil,
|
|
942
|
+
exchange_ticket_number: nil,
|
|
943
|
+
fare_basis_code: nil,
|
|
944
|
+
fees: nil,
|
|
945
|
+
flight_number: nil,
|
|
946
|
+
is_stop_over_indicator: nil,
|
|
947
|
+
refundable: nil,
|
|
948
|
+
service_class: nil,
|
|
949
|
+
tax_amount: nil,
|
|
950
|
+
ticket_number: nil
|
|
951
|
+
)
|
|
952
|
+
@amount = amount
|
|
953
|
+
@arrival = arrival
|
|
954
|
+
@carrier_code = carrier_code
|
|
955
|
+
@carrier_name = carrier_name
|
|
956
|
+
@currency = currency
|
|
957
|
+
@departure = departure
|
|
958
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
959
|
+
@fare_basis_code = fare_basis_code
|
|
960
|
+
@fees = fees
|
|
961
|
+
@flight_number = flight_number
|
|
962
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
963
|
+
@refundable = refundable
|
|
964
|
+
@service_class = service_class
|
|
965
|
+
@tax_amount = tax_amount
|
|
966
|
+
@ticket_number = ticket_number
|
|
967
|
+
end
|
|
968
|
+
end
|
|
969
|
+
|
|
970
|
+
class Total < ::Stripe::RequestParams
|
|
971
|
+
class Discounts < ::Stripe::RequestParams
|
|
972
|
+
# Corporate client discount code.
|
|
973
|
+
attr_accessor :corporate_client_code
|
|
974
|
+
|
|
975
|
+
def initialize(corporate_client_code: nil)
|
|
976
|
+
@corporate_client_code = corporate_client_code
|
|
977
|
+
end
|
|
978
|
+
end
|
|
979
|
+
|
|
980
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
981
|
+
# Amount of additional charges.
|
|
982
|
+
attr_accessor :amount
|
|
983
|
+
# Type of additional charges.
|
|
984
|
+
attr_accessor :type
|
|
985
|
+
|
|
986
|
+
def initialize(amount: nil, type: nil)
|
|
987
|
+
@amount = amount
|
|
988
|
+
@type = type
|
|
989
|
+
end
|
|
990
|
+
end
|
|
991
|
+
|
|
992
|
+
class Tax < ::Stripe::RequestParams
|
|
993
|
+
class Tax < ::Stripe::RequestParams
|
|
994
|
+
# Tax amount.
|
|
995
|
+
attr_accessor :amount
|
|
996
|
+
# Tax rate.
|
|
997
|
+
attr_accessor :rate
|
|
998
|
+
# Type of tax.
|
|
999
|
+
attr_accessor :type
|
|
1000
|
+
|
|
1001
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1002
|
+
@amount = amount
|
|
1003
|
+
@rate = rate
|
|
1004
|
+
@type = type
|
|
1005
|
+
end
|
|
1006
|
+
end
|
|
1007
|
+
# Array of tax details.
|
|
1008
|
+
attr_accessor :taxes
|
|
1009
|
+
|
|
1010
|
+
def initialize(taxes: nil)
|
|
1011
|
+
@taxes = taxes
|
|
1012
|
+
end
|
|
1013
|
+
end
|
|
1014
|
+
# Total flight amount.
|
|
1015
|
+
attr_accessor :amount
|
|
1016
|
+
# Reason for credit.
|
|
1017
|
+
attr_accessor :credit_reason
|
|
1018
|
+
# Total currency.
|
|
1019
|
+
attr_accessor :currency
|
|
1020
|
+
# Discount details.
|
|
1021
|
+
attr_accessor :discounts
|
|
1022
|
+
# Additional charges.
|
|
1023
|
+
attr_accessor :extra_charges
|
|
1024
|
+
# Tax breakdown.
|
|
1025
|
+
attr_accessor :tax
|
|
1026
|
+
|
|
1027
|
+
def initialize(
|
|
1028
|
+
amount: nil,
|
|
1029
|
+
credit_reason: nil,
|
|
1030
|
+
currency: nil,
|
|
1031
|
+
discounts: nil,
|
|
1032
|
+
extra_charges: nil,
|
|
1033
|
+
tax: nil
|
|
1034
|
+
)
|
|
1035
|
+
@amount = amount
|
|
1036
|
+
@credit_reason = credit_reason
|
|
1037
|
+
@currency = currency
|
|
1038
|
+
@discounts = discounts
|
|
1039
|
+
@extra_charges = extra_charges
|
|
1040
|
+
@tax = tax
|
|
1041
|
+
end
|
|
1042
|
+
end
|
|
1043
|
+
# Affiliate details if applicable.
|
|
1044
|
+
attr_accessor :affiliate
|
|
1045
|
+
# Reservation reference.
|
|
1046
|
+
attr_accessor :booking_number
|
|
1047
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1048
|
+
attr_accessor :computerized_reservation_system
|
|
1049
|
+
# Ticket restrictions.
|
|
1050
|
+
attr_accessor :endorsements_and_restrictions
|
|
1051
|
+
# List of insurances.
|
|
1052
|
+
attr_accessor :insurances
|
|
1053
|
+
# List of passengers.
|
|
1054
|
+
attr_accessor :passengers
|
|
1055
|
+
# List of flight segments.
|
|
1056
|
+
attr_accessor :segments
|
|
1057
|
+
# Electronic ticket indicator.
|
|
1058
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1059
|
+
# Total cost breakdown.
|
|
1060
|
+
attr_accessor :total
|
|
1061
|
+
# Type of flight transaction.
|
|
1062
|
+
attr_accessor :transaction_type
|
|
1063
|
+
|
|
1064
|
+
def initialize(
|
|
1065
|
+
affiliate: nil,
|
|
1066
|
+
booking_number: nil,
|
|
1067
|
+
computerized_reservation_system: nil,
|
|
1068
|
+
endorsements_and_restrictions: nil,
|
|
1069
|
+
insurances: nil,
|
|
1070
|
+
passengers: nil,
|
|
1071
|
+
segments: nil,
|
|
1072
|
+
ticket_electronically_issued_indicator: nil,
|
|
1073
|
+
total: nil,
|
|
1074
|
+
transaction_type: nil
|
|
1075
|
+
)
|
|
1076
|
+
@affiliate = affiliate
|
|
1077
|
+
@booking_number = booking_number
|
|
1078
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1079
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1080
|
+
@insurances = insurances
|
|
1081
|
+
@passengers = passengers
|
|
1082
|
+
@segments = segments
|
|
1083
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1084
|
+
@total = total
|
|
1085
|
+
@transaction_type = transaction_type
|
|
1086
|
+
end
|
|
1087
|
+
end
|
|
1088
|
+
|
|
462
1089
|
class Lodging < ::Stripe::RequestParams
|
|
463
1090
|
class Address < ::Stripe::RequestParams
|
|
464
1091
|
# City, district, suburb, town, or village.
|
|
@@ -624,6 +1251,300 @@ module Stripe
|
|
|
624
1251
|
end
|
|
625
1252
|
end
|
|
626
1253
|
|
|
1254
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1255
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1256
|
+
# Type of accommodation.
|
|
1257
|
+
attr_accessor :accommodation_type
|
|
1258
|
+
# Bed type.
|
|
1259
|
+
attr_accessor :bed_type
|
|
1260
|
+
# Daily accommodation rate in cents.
|
|
1261
|
+
attr_accessor :daily_rate_amount
|
|
1262
|
+
# Number of nights.
|
|
1263
|
+
attr_accessor :nights
|
|
1264
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1265
|
+
attr_accessor :number_of_rooms
|
|
1266
|
+
# Rate type.
|
|
1267
|
+
attr_accessor :rate_type
|
|
1268
|
+
# Whether smoking is allowed.
|
|
1269
|
+
attr_accessor :smoking_indicator
|
|
1270
|
+
|
|
1271
|
+
def initialize(
|
|
1272
|
+
accommodation_type: nil,
|
|
1273
|
+
bed_type: nil,
|
|
1274
|
+
daily_rate_amount: nil,
|
|
1275
|
+
nights: nil,
|
|
1276
|
+
number_of_rooms: nil,
|
|
1277
|
+
rate_type: nil,
|
|
1278
|
+
smoking_indicator: nil
|
|
1279
|
+
)
|
|
1280
|
+
@accommodation_type = accommodation_type
|
|
1281
|
+
@bed_type = bed_type
|
|
1282
|
+
@daily_rate_amount = daily_rate_amount
|
|
1283
|
+
@nights = nights
|
|
1284
|
+
@number_of_rooms = number_of_rooms
|
|
1285
|
+
@rate_type = rate_type
|
|
1286
|
+
@smoking_indicator = smoking_indicator
|
|
1287
|
+
end
|
|
1288
|
+
end
|
|
1289
|
+
|
|
1290
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1291
|
+
# Affiliate partner code.
|
|
1292
|
+
attr_accessor :code
|
|
1293
|
+
# Affiliate partner name.
|
|
1294
|
+
attr_accessor :name
|
|
1295
|
+
|
|
1296
|
+
def initialize(code: nil, name: nil)
|
|
1297
|
+
@code = code
|
|
1298
|
+
@name = name
|
|
1299
|
+
end
|
|
1300
|
+
end
|
|
1301
|
+
|
|
1302
|
+
class Guest < ::Stripe::RequestParams
|
|
1303
|
+
# Guest's full name.
|
|
1304
|
+
attr_accessor :name
|
|
1305
|
+
|
|
1306
|
+
def initialize(name: nil)
|
|
1307
|
+
@name = name
|
|
1308
|
+
end
|
|
1309
|
+
end
|
|
1310
|
+
|
|
1311
|
+
class Host < ::Stripe::RequestParams
|
|
1312
|
+
class Address < ::Stripe::RequestParams
|
|
1313
|
+
# City, district, suburb, town, or village.
|
|
1314
|
+
attr_accessor :city
|
|
1315
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1316
|
+
attr_accessor :country
|
|
1317
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1318
|
+
attr_accessor :line1
|
|
1319
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1320
|
+
attr_accessor :line2
|
|
1321
|
+
# ZIP or postal code.
|
|
1322
|
+
attr_accessor :postal_code
|
|
1323
|
+
# State, county, province, or region.
|
|
1324
|
+
attr_accessor :state
|
|
1325
|
+
|
|
1326
|
+
def initialize(
|
|
1327
|
+
city: nil,
|
|
1328
|
+
country: nil,
|
|
1329
|
+
line1: nil,
|
|
1330
|
+
line2: nil,
|
|
1331
|
+
postal_code: nil,
|
|
1332
|
+
state: nil
|
|
1333
|
+
)
|
|
1334
|
+
@city = city
|
|
1335
|
+
@country = country
|
|
1336
|
+
@line1 = line1
|
|
1337
|
+
@line2 = line2
|
|
1338
|
+
@postal_code = postal_code
|
|
1339
|
+
@state = state
|
|
1340
|
+
end
|
|
1341
|
+
end
|
|
1342
|
+
# Address of the host.
|
|
1343
|
+
attr_accessor :address
|
|
1344
|
+
# Host's country of domicile.
|
|
1345
|
+
attr_accessor :country_of_domicile
|
|
1346
|
+
# Reference number for the host.
|
|
1347
|
+
attr_accessor :host_reference
|
|
1348
|
+
# Type of host.
|
|
1349
|
+
attr_accessor :host_type
|
|
1350
|
+
# Name of the lodging property or host.
|
|
1351
|
+
attr_accessor :name
|
|
1352
|
+
# Total number of reservations for the host.
|
|
1353
|
+
attr_accessor :number_of_reservations
|
|
1354
|
+
# Property phone number.
|
|
1355
|
+
attr_accessor :property_phone_number
|
|
1356
|
+
# Host's registration date.
|
|
1357
|
+
attr_accessor :registered_at
|
|
1358
|
+
|
|
1359
|
+
def initialize(
|
|
1360
|
+
address: nil,
|
|
1361
|
+
country_of_domicile: nil,
|
|
1362
|
+
host_reference: nil,
|
|
1363
|
+
host_type: nil,
|
|
1364
|
+
name: nil,
|
|
1365
|
+
number_of_reservations: nil,
|
|
1366
|
+
property_phone_number: nil,
|
|
1367
|
+
registered_at: nil
|
|
1368
|
+
)
|
|
1369
|
+
@address = address
|
|
1370
|
+
@country_of_domicile = country_of_domicile
|
|
1371
|
+
@host_reference = host_reference
|
|
1372
|
+
@host_type = host_type
|
|
1373
|
+
@name = name
|
|
1374
|
+
@number_of_reservations = number_of_reservations
|
|
1375
|
+
@property_phone_number = property_phone_number
|
|
1376
|
+
@registered_at = registered_at
|
|
1377
|
+
end
|
|
1378
|
+
end
|
|
1379
|
+
|
|
1380
|
+
class Insurance < ::Stripe::RequestParams
|
|
1381
|
+
# Price of the insurance coverage in cents.
|
|
1382
|
+
attr_accessor :amount
|
|
1383
|
+
# Currency of the insurance amount.
|
|
1384
|
+
attr_accessor :currency
|
|
1385
|
+
# Name of the insurance company.
|
|
1386
|
+
attr_accessor :insurance_company_name
|
|
1387
|
+
# Type of insurance coverage.
|
|
1388
|
+
attr_accessor :insurance_type
|
|
1389
|
+
|
|
1390
|
+
def initialize(
|
|
1391
|
+
amount: nil,
|
|
1392
|
+
currency: nil,
|
|
1393
|
+
insurance_company_name: nil,
|
|
1394
|
+
insurance_type: nil
|
|
1395
|
+
)
|
|
1396
|
+
@amount = amount
|
|
1397
|
+
@currency = currency
|
|
1398
|
+
@insurance_company_name = insurance_company_name
|
|
1399
|
+
@insurance_type = insurance_type
|
|
1400
|
+
end
|
|
1401
|
+
end
|
|
1402
|
+
|
|
1403
|
+
class Total < ::Stripe::RequestParams
|
|
1404
|
+
class Discounts < ::Stripe::RequestParams
|
|
1405
|
+
# Corporate client discount code.
|
|
1406
|
+
attr_accessor :corporate_client_code
|
|
1407
|
+
# Coupon code.
|
|
1408
|
+
attr_accessor :coupon
|
|
1409
|
+
|
|
1410
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1411
|
+
@corporate_client_code = corporate_client_code
|
|
1412
|
+
@coupon = coupon
|
|
1413
|
+
end
|
|
1414
|
+
end
|
|
1415
|
+
|
|
1416
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1417
|
+
# Amount of the extra charge in cents.
|
|
1418
|
+
attr_accessor :amount
|
|
1419
|
+
# Type of extra charge.
|
|
1420
|
+
attr_accessor :type
|
|
1421
|
+
|
|
1422
|
+
def initialize(amount: nil, type: nil)
|
|
1423
|
+
@amount = amount
|
|
1424
|
+
@type = type
|
|
1425
|
+
end
|
|
1426
|
+
end
|
|
1427
|
+
|
|
1428
|
+
class Tax < ::Stripe::RequestParams
|
|
1429
|
+
class Tax < ::Stripe::RequestParams
|
|
1430
|
+
# Tax amount in cents.
|
|
1431
|
+
attr_accessor :amount
|
|
1432
|
+
# Tax rate.
|
|
1433
|
+
attr_accessor :rate
|
|
1434
|
+
# Type of tax applied.
|
|
1435
|
+
attr_accessor :type
|
|
1436
|
+
|
|
1437
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1438
|
+
@amount = amount
|
|
1439
|
+
@rate = rate
|
|
1440
|
+
@type = type
|
|
1441
|
+
end
|
|
1442
|
+
end
|
|
1443
|
+
# Indicates whether the transaction is tax exempt.
|
|
1444
|
+
attr_accessor :tax_exempt_indicator
|
|
1445
|
+
# Tax details.
|
|
1446
|
+
attr_accessor :taxes
|
|
1447
|
+
|
|
1448
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1449
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1450
|
+
@taxes = taxes
|
|
1451
|
+
end
|
|
1452
|
+
end
|
|
1453
|
+
# Total price of the lodging reservation in cents.
|
|
1454
|
+
attr_accessor :amount
|
|
1455
|
+
# Cash advances in cents.
|
|
1456
|
+
attr_accessor :cash_advances
|
|
1457
|
+
# Currency of the total amount.
|
|
1458
|
+
attr_accessor :currency
|
|
1459
|
+
# Discount details for the lodging.
|
|
1460
|
+
attr_accessor :discounts
|
|
1461
|
+
# Additional charges for the lodging.
|
|
1462
|
+
attr_accessor :extra_charges
|
|
1463
|
+
# Prepaid amount in cents.
|
|
1464
|
+
attr_accessor :prepaid_amount
|
|
1465
|
+
# Tax breakdown for the lodging reservation.
|
|
1466
|
+
attr_accessor :tax
|
|
1467
|
+
|
|
1468
|
+
def initialize(
|
|
1469
|
+
amount: nil,
|
|
1470
|
+
cash_advances: nil,
|
|
1471
|
+
currency: nil,
|
|
1472
|
+
discounts: nil,
|
|
1473
|
+
extra_charges: nil,
|
|
1474
|
+
prepaid_amount: nil,
|
|
1475
|
+
tax: nil
|
|
1476
|
+
)
|
|
1477
|
+
@amount = amount
|
|
1478
|
+
@cash_advances = cash_advances
|
|
1479
|
+
@currency = currency
|
|
1480
|
+
@discounts = discounts
|
|
1481
|
+
@extra_charges = extra_charges
|
|
1482
|
+
@prepaid_amount = prepaid_amount
|
|
1483
|
+
@tax = tax
|
|
1484
|
+
end
|
|
1485
|
+
end
|
|
1486
|
+
# Accommodation details for the lodging.
|
|
1487
|
+
attr_accessor :accommodation
|
|
1488
|
+
# Affiliate details if applicable.
|
|
1489
|
+
attr_accessor :affiliate
|
|
1490
|
+
# Booking confirmation number for the lodging.
|
|
1491
|
+
attr_accessor :booking_number
|
|
1492
|
+
# Check-in date.
|
|
1493
|
+
attr_accessor :checkin_at
|
|
1494
|
+
# Check-out date.
|
|
1495
|
+
attr_accessor :checkout_at
|
|
1496
|
+
# Customer service phone number for the lodging company.
|
|
1497
|
+
attr_accessor :customer_service_phone_number
|
|
1498
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1499
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1500
|
+
# List of guests for the lodging.
|
|
1501
|
+
attr_accessor :guests
|
|
1502
|
+
# Host details for the lodging.
|
|
1503
|
+
attr_accessor :host
|
|
1504
|
+
# List of insurances for the lodging.
|
|
1505
|
+
attr_accessor :insurances
|
|
1506
|
+
# Whether the renter is a no-show.
|
|
1507
|
+
attr_accessor :no_show_indicator
|
|
1508
|
+
# Renter ID number for the lodging.
|
|
1509
|
+
attr_accessor :renter_id_number
|
|
1510
|
+
# Renter name for the lodging.
|
|
1511
|
+
attr_accessor :renter_name
|
|
1512
|
+
# Total details for the lodging.
|
|
1513
|
+
attr_accessor :total
|
|
1514
|
+
|
|
1515
|
+
def initialize(
|
|
1516
|
+
accommodation: nil,
|
|
1517
|
+
affiliate: nil,
|
|
1518
|
+
booking_number: nil,
|
|
1519
|
+
checkin_at: nil,
|
|
1520
|
+
checkout_at: nil,
|
|
1521
|
+
customer_service_phone_number: nil,
|
|
1522
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1523
|
+
guests: nil,
|
|
1524
|
+
host: nil,
|
|
1525
|
+
insurances: nil,
|
|
1526
|
+
no_show_indicator: nil,
|
|
1527
|
+
renter_id_number: nil,
|
|
1528
|
+
renter_name: nil,
|
|
1529
|
+
total: nil
|
|
1530
|
+
)
|
|
1531
|
+
@accommodation = accommodation
|
|
1532
|
+
@affiliate = affiliate
|
|
1533
|
+
@booking_number = booking_number
|
|
1534
|
+
@checkin_at = checkin_at
|
|
1535
|
+
@checkout_at = checkout_at
|
|
1536
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1537
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1538
|
+
@guests = guests
|
|
1539
|
+
@host = host
|
|
1540
|
+
@insurances = insurances
|
|
1541
|
+
@no_show_indicator = no_show_indicator
|
|
1542
|
+
@renter_id_number = renter_id_number
|
|
1543
|
+
@renter_name = renter_name
|
|
1544
|
+
@total = total
|
|
1545
|
+
end
|
|
1546
|
+
end
|
|
1547
|
+
|
|
627
1548
|
class Subscription < ::Stripe::RequestParams
|
|
628
1549
|
class Affiliate < ::Stripe::RequestParams
|
|
629
1550
|
# The name of the affiliate that originated the purchase.
|
|
@@ -676,33 +1597,51 @@ module Stripe
|
|
|
676
1597
|
end
|
|
677
1598
|
# Car rental details for this PaymentIntent.
|
|
678
1599
|
attr_accessor :car_rental
|
|
679
|
-
#
|
|
1600
|
+
# Car rental data for this PaymentIntent.
|
|
1601
|
+
attr_accessor :car_rental_data
|
|
1602
|
+
# A unique value to identify the customer. This field is available only for card payments.
|
|
1603
|
+
#
|
|
1604
|
+
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
680
1605
|
attr_accessor :customer_reference
|
|
681
1606
|
# Event details for this PaymentIntent
|
|
682
1607
|
attr_accessor :event_details
|
|
683
1608
|
# Flight reservation details for this PaymentIntent
|
|
684
1609
|
attr_accessor :flight
|
|
1610
|
+
# Flight data for this PaymentIntent.
|
|
1611
|
+
attr_accessor :flight_data
|
|
685
1612
|
# Lodging reservation details for this PaymentIntent
|
|
686
1613
|
attr_accessor :lodging
|
|
687
|
-
#
|
|
1614
|
+
# Lodging data for this PaymentIntent.
|
|
1615
|
+
attr_accessor :lodging_data
|
|
1616
|
+
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1617
|
+
#
|
|
1618
|
+
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
|
|
1619
|
+
#
|
|
1620
|
+
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
|
|
688
1621
|
attr_accessor :order_reference
|
|
689
1622
|
# Subscription details for this PaymentIntent
|
|
690
1623
|
attr_accessor :subscription
|
|
691
1624
|
|
|
692
1625
|
def initialize(
|
|
693
1626
|
car_rental: nil,
|
|
1627
|
+
car_rental_data: nil,
|
|
694
1628
|
customer_reference: nil,
|
|
695
1629
|
event_details: nil,
|
|
696
1630
|
flight: nil,
|
|
1631
|
+
flight_data: nil,
|
|
697
1632
|
lodging: nil,
|
|
1633
|
+
lodging_data: nil,
|
|
698
1634
|
order_reference: nil,
|
|
699
1635
|
subscription: nil
|
|
700
1636
|
)
|
|
701
1637
|
@car_rental = car_rental
|
|
1638
|
+
@car_rental_data = car_rental_data
|
|
702
1639
|
@customer_reference = customer_reference
|
|
703
1640
|
@event_details = event_details
|
|
704
1641
|
@flight = flight
|
|
1642
|
+
@flight_data = flight_data
|
|
705
1643
|
@lodging = lodging
|
|
1644
|
+
@lodging_data = lodging_data
|
|
706
1645
|
@order_reference = order_reference
|
|
707
1646
|
@subscription = subscription
|
|
708
1647
|
end
|