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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_version.rb +1 -1
  3. data/lib/stripe/object_types.rb +2 -0
  4. data/lib/stripe/params/account_create_params.rb +27 -10
  5. data/lib/stripe/params/account_person_create_params.rb +9 -9
  6. data/lib/stripe/params/account_person_update_params.rb +9 -9
  7. data/lib/stripe/params/account_update_params.rb +27 -10
  8. data/lib/stripe/params/balance_transfer_create_params.rb +66 -0
  9. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +2 -2
  10. data/lib/stripe/params/charge_capture_params.rb +941 -2
  11. data/lib/stripe/params/charge_update_params.rb +941 -2
  12. data/lib/stripe/params/checkout/session_create_params.rb +3 -3
  13. data/lib/stripe/params/customer_balance_transaction_list_params.rb +21 -1
  14. data/lib/stripe/params/customer_session_create_params.rb +1 -1
  15. data/lib/stripe/params/invoice_create_preview_params.rb +28 -1
  16. data/lib/stripe/params/invoice_payment_list_params.rb +22 -0
  17. data/lib/stripe/params/issuing/authorization_create_params.rb +16 -1
  18. data/lib/stripe/params/order_create_params.rb +938 -1
  19. data/lib/stripe/params/order_update_params.rb +938 -1
  20. data/lib/stripe/params/payment_intent_capture_params.rb +962 -13
  21. data/lib/stripe/params/payment_intent_confirm_params.rb +2017 -123
  22. data/lib/stripe/params/payment_intent_create_params.rb +2017 -123
  23. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +29 -13
  24. data/lib/stripe/params/payment_intent_update_params.rb +2017 -123
  25. data/lib/stripe/params/payment_method_list_params.rb +8 -0
  26. data/lib/stripe/params/quote_create_params.rb +18 -18
  27. data/lib/stripe/params/quote_update_params.rb +18 -18
  28. data/lib/stripe/params/radar/account_evaluation_create_params.rb +81 -0
  29. data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +15 -0
  30. data/lib/stripe/params/radar/account_evaluation_update_params.rb +18 -0
  31. data/lib/stripe/params/setup_intent_confirm_params.rb +3 -3
  32. data/lib/stripe/params/setup_intent_create_params.rb +3 -3
  33. data/lib/stripe/params/setup_intent_update_params.rb +3 -3
  34. data/lib/stripe/params/subscription_schedule_amend_params.rb +28 -1
  35. data/lib/stripe/params/tax/registration_create_params.rb +1 -1
  36. data/lib/stripe/params/terminal/configuration_create_params.rb +9 -9
  37. data/lib/stripe/params/terminal/configuration_update_params.rb +9 -9
  38. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +16 -1
  39. data/lib/stripe/params/token_create_params.rb +18 -18
  40. data/lib/stripe/params/transfer_create_params.rb +5 -5
  41. data/lib/stripe/params.rb +4 -0
  42. data/lib/stripe/resources/account.rb +19 -1
  43. data/lib/stripe/resources/application_fee.rb +2 -2
  44. data/lib/stripe/resources/balance_transfer.rb +139 -0
  45. data/lib/stripe/resources/bank_account.rb +2 -2
  46. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +2 -2
  47. data/lib/stripe/resources/billing_portal/configuration.rb +2 -0
  48. data/lib/stripe/resources/capital/financing_offer.rb +6 -6
  49. data/lib/stripe/resources/capital/financing_summary.rb +7 -7
  50. data/lib/stripe/resources/charge.rb +5 -3
  51. data/lib/stripe/resources/checkout/session.rb +3 -3
  52. data/lib/stripe/resources/confirmation_token.rb +1 -1
  53. data/lib/stripe/resources/delegated_checkout/requested_session.rb +50 -50
  54. data/lib/stripe/resources/financial_connections/account.rb +22 -0
  55. data/lib/stripe/resources/invoice.rb +1 -1
  56. data/lib/stripe/resources/issuing/card.rb +18 -0
  57. data/lib/stripe/resources/mandate.rb +3 -3
  58. data/lib/stripe/resources/payment_attempt_record.rb +8 -6
  59. data/lib/stripe/resources/payment_intent.rb +38 -26
  60. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +13 -7
  61. data/lib/stripe/resources/payment_method.rb +1 -1
  62. data/lib/stripe/resources/payment_record.rb +8 -6
  63. data/lib/stripe/resources/person.rb +36 -36
  64. data/lib/stripe/resources/quote.rb +27 -27
  65. data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
  66. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +9 -9
  67. data/lib/stripe/resources/radar/account_evaluation.rb +116 -0
  68. data/lib/stripe/resources/refund.rb +31 -0
  69. data/lib/stripe/resources/setup_attempt.rb +1 -1
  70. data/lib/stripe/resources/setup_intent.rb +3 -3
  71. data/lib/stripe/resources/subscription.rb +9 -9
  72. data/lib/stripe/resources/subscription_schedule.rb +9 -9
  73. data/lib/stripe/resources/transfer.rb +4 -4
  74. data/lib/stripe/resources.rb +2 -0
  75. data/lib/stripe/services/balance_transfer_service.rb +17 -0
  76. data/lib/stripe/services/radar/account_evaluation_service.rb +41 -0
  77. data/lib/stripe/services/radar_service.rb +2 -1
  78. data/lib/stripe/services/v1_services.rb +2 -1
  79. data/lib/stripe/services.rb +2 -0
  80. data/lib/stripe/util.rb +2 -5
  81. data/lib/stripe/version.rb +1 -1
  82. data/rbi/stripe.rbi +17737 -652
  83. metadata +10 -2
@@ -88,26 +88,32 @@ module Stripe
88
88
  end
89
89
 
90
90
  class Tax < ::Stripe::RequestParams
91
- # The total tax on an item. Non-negative integer.
91
+ # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
92
+ #
93
+ # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
92
94
  attr_accessor :total_tax_amount
93
95
 
94
96
  def initialize(total_tax_amount: nil)
95
97
  @total_tax_amount = total_tax_amount
96
98
  end
97
99
  end
98
- # The amount an item was discounted for. Positive integer.
100
+ # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
101
+ #
102
+ # This field is mutually exclusive with the `amount_details[discount_amount]` field.
99
103
  attr_accessor :discount_amount
100
104
  # Payment method-specific information for line items.
101
105
  attr_accessor :payment_method_options
102
- # Unique identifier of the product. At most 12 characters long.
106
+ # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
103
107
  attr_accessor :product_code
104
- # Name of the product. At most 100 characters long.
108
+ # The product name of the line item. Required for L3 rates. At most 1024 characters long.
109
+ #
110
+ # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
105
111
  attr_accessor :product_name
106
- # Number of items of the product. Positive integer.
112
+ # The quantity of items. Required for L3 rates. An integer greater than 0.
107
113
  attr_accessor :quantity
108
114
  # Contains information about the tax on the item.
109
115
  attr_accessor :tax
110
- # Cost of the product. Non-negative integer.
116
+ # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
111
117
  attr_accessor :unit_cost
112
118
  # A unit of measure for the line item, such as gallons, feet, meters, etc.
113
119
  attr_accessor :unit_of_measure
@@ -134,11 +140,11 @@ module Stripe
134
140
  end
135
141
 
136
142
  class Shipping < ::Stripe::RequestParams
137
- # Portion of the amount that is for shipping.
143
+ # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0.
138
144
  attr_accessor :amount
139
- # The postal code that represents the shipping source.
145
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
140
146
  attr_accessor :from_postal_code
141
- # The postal code that represents the shipping destination.
147
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
142
148
  attr_accessor :to_postal_code
143
149
 
144
150
  def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@@ -149,14 +155,18 @@ module Stripe
149
155
  end
150
156
 
151
157
  class Tax < ::Stripe::RequestParams
152
- # Total portion of the amount that is for tax.
158
+ # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
159
+ #
160
+ # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
153
161
  attr_accessor :total_tax_amount
154
162
 
155
163
  def initialize(total_tax_amount: nil)
156
164
  @total_tax_amount = total_tax_amount
157
165
  end
158
166
  end
159
- # The total discount applied on the transaction.
167
+ # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
168
+ #
169
+ # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
160
170
  attr_accessor :discount_amount
161
171
  # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
162
172
  attr_accessor :line_items
@@ -473,6 +483,364 @@ module Stripe
473
483
  end
474
484
  end
475
485
 
486
+ class CarRentalDatum < ::Stripe::RequestParams
487
+ class Affiliate < ::Stripe::RequestParams
488
+ # Affiliate partner code.
489
+ attr_accessor :code
490
+ # Name of affiliate partner.
491
+ attr_accessor :name
492
+
493
+ def initialize(code: nil, name: nil)
494
+ @code = code
495
+ @name = name
496
+ end
497
+ end
498
+
499
+ class Distance < ::Stripe::RequestParams
500
+ # Distance traveled.
501
+ attr_accessor :amount
502
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
503
+ attr_accessor :unit
504
+
505
+ def initialize(amount: nil, unit: nil)
506
+ @amount = amount
507
+ @unit = unit
508
+ end
509
+ end
510
+
511
+ class Driver < ::Stripe::RequestParams
512
+ class DateOfBirth < ::Stripe::RequestParams
513
+ # Day of birth (1-31).
514
+ attr_accessor :day
515
+ # Month of birth (1-12).
516
+ attr_accessor :month
517
+ # Year of birth (must be greater than 1900).
518
+ attr_accessor :year
519
+
520
+ def initialize(day: nil, month: nil, year: nil)
521
+ @day = day
522
+ @month = month
523
+ @year = year
524
+ end
525
+ end
526
+ # Driver's date of birth.
527
+ attr_accessor :date_of_birth
528
+ # Driver's identification number.
529
+ attr_accessor :driver_identification_number
530
+ # Driver's tax number.
531
+ attr_accessor :driver_tax_number
532
+ # Driver's full name.
533
+ attr_accessor :name
534
+
535
+ def initialize(
536
+ date_of_birth: nil,
537
+ driver_identification_number: nil,
538
+ driver_tax_number: nil,
539
+ name: nil
540
+ )
541
+ @date_of_birth = date_of_birth
542
+ @driver_identification_number = driver_identification_number
543
+ @driver_tax_number = driver_tax_number
544
+ @name = name
545
+ end
546
+ end
547
+
548
+ class DropOff < ::Stripe::RequestParams
549
+ class Address < ::Stripe::RequestParams
550
+ # City, district, suburb, town, or village.
551
+ attr_accessor :city
552
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
553
+ attr_accessor :country
554
+ # Address line 1, such as the street, PO Box, or company name.
555
+ attr_accessor :line1
556
+ # Address line 2, such as the apartment, suite, unit, or building.
557
+ attr_accessor :line2
558
+ # ZIP or postal code.
559
+ attr_accessor :postal_code
560
+ # State, county, province, or region.
561
+ attr_accessor :state
562
+
563
+ def initialize(
564
+ city: nil,
565
+ country: nil,
566
+ line1: nil,
567
+ line2: nil,
568
+ postal_code: nil,
569
+ state: nil
570
+ )
571
+ @city = city
572
+ @country = country
573
+ @line1 = line1
574
+ @line2 = line2
575
+ @postal_code = postal_code
576
+ @state = state
577
+ end
578
+ end
579
+ # Address of the rental location.
580
+ attr_accessor :address
581
+ # Location name.
582
+ attr_accessor :location_name
583
+ # Timestamp for the location.
584
+ attr_accessor :time
585
+
586
+ def initialize(address: nil, location_name: nil, time: nil)
587
+ @address = address
588
+ @location_name = location_name
589
+ @time = time
590
+ end
591
+ end
592
+
593
+ class Insurance < ::Stripe::RequestParams
594
+ # Amount of the insurance coverage in cents.
595
+ attr_accessor :amount
596
+ # Currency of the insurance amount.
597
+ attr_accessor :currency
598
+ # Name of the insurance company.
599
+ attr_accessor :insurance_company_name
600
+ # Type of insurance coverage.
601
+ attr_accessor :insurance_type
602
+
603
+ def initialize(
604
+ amount: nil,
605
+ currency: nil,
606
+ insurance_company_name: nil,
607
+ insurance_type: nil
608
+ )
609
+ @amount = amount
610
+ @currency = currency
611
+ @insurance_company_name = insurance_company_name
612
+ @insurance_type = insurance_type
613
+ end
614
+ end
615
+
616
+ class Pickup < ::Stripe::RequestParams
617
+ class Address < ::Stripe::RequestParams
618
+ # City, district, suburb, town, or village.
619
+ attr_accessor :city
620
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
621
+ attr_accessor :country
622
+ # Address line 1, such as the street, PO Box, or company name.
623
+ attr_accessor :line1
624
+ # Address line 2, such as the apartment, suite, unit, or building.
625
+ attr_accessor :line2
626
+ # ZIP or postal code.
627
+ attr_accessor :postal_code
628
+ # State, county, province, or region.
629
+ attr_accessor :state
630
+
631
+ def initialize(
632
+ city: nil,
633
+ country: nil,
634
+ line1: nil,
635
+ line2: nil,
636
+ postal_code: nil,
637
+ state: nil
638
+ )
639
+ @city = city
640
+ @country = country
641
+ @line1 = line1
642
+ @line2 = line2
643
+ @postal_code = postal_code
644
+ @state = state
645
+ end
646
+ end
647
+ # Address of the rental location.
648
+ attr_accessor :address
649
+ # Location name.
650
+ attr_accessor :location_name
651
+ # Timestamp for the location.
652
+ attr_accessor :time
653
+
654
+ def initialize(address: nil, location_name: nil, time: nil)
655
+ @address = address
656
+ @location_name = location_name
657
+ @time = time
658
+ end
659
+ end
660
+
661
+ class Total < ::Stripe::RequestParams
662
+ class Discounts < ::Stripe::RequestParams
663
+ # Corporate client discount code.
664
+ attr_accessor :corporate_client_code
665
+ # Coupon code applied to the rental.
666
+ attr_accessor :coupon
667
+ # Maximum number of free miles or kilometers included.
668
+ attr_accessor :maximum_free_miles_or_kilometers
669
+
670
+ def initialize(
671
+ corporate_client_code: nil,
672
+ coupon: nil,
673
+ maximum_free_miles_or_kilometers: nil
674
+ )
675
+ @corporate_client_code = corporate_client_code
676
+ @coupon = coupon
677
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
678
+ end
679
+ end
680
+
681
+ class ExtraCharge < ::Stripe::RequestParams
682
+ # Amount of the extra charge in cents.
683
+ attr_accessor :amount
684
+ # Type of extra charge.
685
+ attr_accessor :type
686
+
687
+ def initialize(amount: nil, type: nil)
688
+ @amount = amount
689
+ @type = type
690
+ end
691
+ end
692
+
693
+ class Tax < ::Stripe::RequestParams
694
+ class Tax < ::Stripe::RequestParams
695
+ # Tax amount.
696
+ attr_accessor :amount
697
+ # Tax rate applied.
698
+ attr_accessor :rate
699
+ # Type of tax applied.
700
+ attr_accessor :type
701
+
702
+ def initialize(amount: nil, rate: nil, type: nil)
703
+ @amount = amount
704
+ @rate = rate
705
+ @type = type
706
+ end
707
+ end
708
+ # Indicates if the transaction is tax exempt.
709
+ attr_accessor :tax_exempt_indicator
710
+ # Array of tax details.
711
+ attr_accessor :taxes
712
+
713
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
714
+ @tax_exempt_indicator = tax_exempt_indicator
715
+ @taxes = taxes
716
+ end
717
+ end
718
+ # Total amount in cents.
719
+ attr_accessor :amount
720
+ # Currency of the amount.
721
+ attr_accessor :currency
722
+ # Discount details for the rental.
723
+ attr_accessor :discounts
724
+ # Additional charges for the rental.
725
+ attr_accessor :extra_charges
726
+ # Rate per unit for the rental.
727
+ attr_accessor :rate_per_unit
728
+ # Unit of measurement for the rate.
729
+ attr_accessor :rate_unit
730
+ # Tax breakdown for the rental.
731
+ attr_accessor :tax
732
+
733
+ def initialize(
734
+ amount: nil,
735
+ currency: nil,
736
+ discounts: nil,
737
+ extra_charges: nil,
738
+ rate_per_unit: nil,
739
+ rate_unit: nil,
740
+ tax: nil
741
+ )
742
+ @amount = amount
743
+ @currency = currency
744
+ @discounts = discounts
745
+ @extra_charges = extra_charges
746
+ @rate_per_unit = rate_per_unit
747
+ @rate_unit = rate_unit
748
+ @tax = tax
749
+ end
750
+ end
751
+
752
+ class Vehicle < ::Stripe::RequestParams
753
+ # Make of the rental vehicle.
754
+ attr_accessor :make
755
+ # Model of the rental vehicle.
756
+ attr_accessor :model
757
+ # Odometer reading at the time of rental.
758
+ attr_accessor :odometer
759
+ # Type of the rental vehicle.
760
+ attr_accessor :type
761
+ # Class of the rental vehicle.
762
+ attr_accessor :vehicle_class
763
+ # Vehicle identification number (VIN).
764
+ attr_accessor :vehicle_identification_number
765
+
766
+ def initialize(
767
+ make: nil,
768
+ model: nil,
769
+ odometer: nil,
770
+ type: nil,
771
+ vehicle_class: nil,
772
+ vehicle_identification_number: nil
773
+ )
774
+ @make = make
775
+ @model = model
776
+ @odometer = odometer
777
+ @type = type
778
+ @vehicle_class = vehicle_class
779
+ @vehicle_identification_number = vehicle_identification_number
780
+ end
781
+ end
782
+ # Affiliate (such as travel agency) details for the rental.
783
+ attr_accessor :affiliate
784
+ # Booking confirmation number for the car rental.
785
+ attr_accessor :booking_number
786
+ # Name of the car rental company.
787
+ attr_accessor :carrier_name
788
+ # Customer service phone number for the car rental company.
789
+ attr_accessor :customer_service_phone_number
790
+ # Number of days the car is being rented.
791
+ attr_accessor :days_rented
792
+ # Distance details for the rental.
793
+ attr_accessor :distance
794
+ # List of drivers for the rental.
795
+ attr_accessor :drivers
796
+ # Drop-off location details.
797
+ attr_accessor :drop_off
798
+ # Insurance details for the rental.
799
+ attr_accessor :insurances
800
+ # Indicates if the customer was a no-show.
801
+ attr_accessor :no_show_indicator
802
+ # Pickup location details.
803
+ attr_accessor :pickup
804
+ # Name of the person renting the vehicle.
805
+ attr_accessor :renter_name
806
+ # Total cost breakdown for the rental.
807
+ attr_accessor :total
808
+ # Vehicle details for the rental.
809
+ attr_accessor :vehicle
810
+
811
+ def initialize(
812
+ affiliate: nil,
813
+ booking_number: nil,
814
+ carrier_name: nil,
815
+ customer_service_phone_number: nil,
816
+ days_rented: nil,
817
+ distance: nil,
818
+ drivers: nil,
819
+ drop_off: nil,
820
+ insurances: nil,
821
+ no_show_indicator: nil,
822
+ pickup: nil,
823
+ renter_name: nil,
824
+ total: nil,
825
+ vehicle: nil
826
+ )
827
+ @affiliate = affiliate
828
+ @booking_number = booking_number
829
+ @carrier_name = carrier_name
830
+ @customer_service_phone_number = customer_service_phone_number
831
+ @days_rented = days_rented
832
+ @distance = distance
833
+ @drivers = drivers
834
+ @drop_off = drop_off
835
+ @insurances = insurances
836
+ @no_show_indicator = no_show_indicator
837
+ @pickup = pickup
838
+ @renter_name = renter_name
839
+ @total = total
840
+ @vehicle = vehicle
841
+ end
842
+ end
843
+
476
844
  class EventDetails < ::Stripe::RequestParams
477
845
  class Address < ::Stripe::RequestParams
478
846
  # City, district, suburb, town, or village.
@@ -702,6 +1070,275 @@ module Stripe
702
1070
  end
703
1071
  end
704
1072
 
1073
+ class FlightDatum < ::Stripe::RequestParams
1074
+ class Affiliate < ::Stripe::RequestParams
1075
+ # Affiliate partner code.
1076
+ attr_accessor :code
1077
+ # Name of affiliate partner.
1078
+ attr_accessor :name
1079
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1080
+ attr_accessor :travel_authorization_code
1081
+
1082
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1083
+ @code = code
1084
+ @name = name
1085
+ @travel_authorization_code = travel_authorization_code
1086
+ end
1087
+ end
1088
+
1089
+ class Insurance < ::Stripe::RequestParams
1090
+ # Insurance cost.
1091
+ attr_accessor :amount
1092
+ # Insurance currency.
1093
+ attr_accessor :currency
1094
+ # Insurance company name.
1095
+ attr_accessor :insurance_company_name
1096
+ # Type of insurance.
1097
+ attr_accessor :insurance_type
1098
+
1099
+ def initialize(
1100
+ amount: nil,
1101
+ currency: nil,
1102
+ insurance_company_name: nil,
1103
+ insurance_type: nil
1104
+ )
1105
+ @amount = amount
1106
+ @currency = currency
1107
+ @insurance_company_name = insurance_company_name
1108
+ @insurance_type = insurance_type
1109
+ end
1110
+ end
1111
+
1112
+ class Passenger < ::Stripe::RequestParams
1113
+ # Passenger's full name.
1114
+ attr_accessor :name
1115
+
1116
+ def initialize(name: nil)
1117
+ @name = name
1118
+ end
1119
+ end
1120
+
1121
+ class Segment < ::Stripe::RequestParams
1122
+ class Arrival < ::Stripe::RequestParams
1123
+ # Arrival airport IATA code.
1124
+ attr_accessor :airport
1125
+ # Arrival date/time.
1126
+ attr_accessor :arrives_at
1127
+ # Arrival city.
1128
+ attr_accessor :city
1129
+ # Arrival country.
1130
+ attr_accessor :country
1131
+
1132
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1133
+ @airport = airport
1134
+ @arrives_at = arrives_at
1135
+ @city = city
1136
+ @country = country
1137
+ end
1138
+ end
1139
+
1140
+ class Departure < ::Stripe::RequestParams
1141
+ # Departure airport IATA code.
1142
+ attr_accessor :airport
1143
+ # Departure city.
1144
+ attr_accessor :city
1145
+ # Departure country.
1146
+ attr_accessor :country
1147
+ # Departure date/time.
1148
+ attr_accessor :departs_at
1149
+
1150
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1151
+ @airport = airport
1152
+ @city = city
1153
+ @country = country
1154
+ @departs_at = departs_at
1155
+ end
1156
+ end
1157
+ # Segment fare amount.
1158
+ attr_accessor :amount
1159
+ # Arrival details.
1160
+ attr_accessor :arrival
1161
+ # Airline carrier code.
1162
+ attr_accessor :carrier_code
1163
+ # Carrier name.
1164
+ attr_accessor :carrier_name
1165
+ # Segment currency.
1166
+ attr_accessor :currency
1167
+ # Departure details.
1168
+ attr_accessor :departure
1169
+ # Exchange ticket number.
1170
+ attr_accessor :exchange_ticket_number
1171
+ # Fare basis code.
1172
+ attr_accessor :fare_basis_code
1173
+ # Additional fees.
1174
+ attr_accessor :fees
1175
+ # Flight number.
1176
+ attr_accessor :flight_number
1177
+ # Stopover indicator.
1178
+ attr_accessor :is_stop_over_indicator
1179
+ # Refundable ticket indicator.
1180
+ attr_accessor :refundable
1181
+ # Class of service.
1182
+ attr_accessor :service_class
1183
+ # Tax amount for segment.
1184
+ attr_accessor :tax_amount
1185
+ # Ticket number.
1186
+ attr_accessor :ticket_number
1187
+
1188
+ def initialize(
1189
+ amount: nil,
1190
+ arrival: nil,
1191
+ carrier_code: nil,
1192
+ carrier_name: nil,
1193
+ currency: nil,
1194
+ departure: nil,
1195
+ exchange_ticket_number: nil,
1196
+ fare_basis_code: nil,
1197
+ fees: nil,
1198
+ flight_number: nil,
1199
+ is_stop_over_indicator: nil,
1200
+ refundable: nil,
1201
+ service_class: nil,
1202
+ tax_amount: nil,
1203
+ ticket_number: nil
1204
+ )
1205
+ @amount = amount
1206
+ @arrival = arrival
1207
+ @carrier_code = carrier_code
1208
+ @carrier_name = carrier_name
1209
+ @currency = currency
1210
+ @departure = departure
1211
+ @exchange_ticket_number = exchange_ticket_number
1212
+ @fare_basis_code = fare_basis_code
1213
+ @fees = fees
1214
+ @flight_number = flight_number
1215
+ @is_stop_over_indicator = is_stop_over_indicator
1216
+ @refundable = refundable
1217
+ @service_class = service_class
1218
+ @tax_amount = tax_amount
1219
+ @ticket_number = ticket_number
1220
+ end
1221
+ end
1222
+
1223
+ class Total < ::Stripe::RequestParams
1224
+ class Discounts < ::Stripe::RequestParams
1225
+ # Corporate client discount code.
1226
+ attr_accessor :corporate_client_code
1227
+
1228
+ def initialize(corporate_client_code: nil)
1229
+ @corporate_client_code = corporate_client_code
1230
+ end
1231
+ end
1232
+
1233
+ class ExtraCharge < ::Stripe::RequestParams
1234
+ # Amount of additional charges.
1235
+ attr_accessor :amount
1236
+ # Type of additional charges.
1237
+ attr_accessor :type
1238
+
1239
+ def initialize(amount: nil, type: nil)
1240
+ @amount = amount
1241
+ @type = type
1242
+ end
1243
+ end
1244
+
1245
+ class Tax < ::Stripe::RequestParams
1246
+ class Tax < ::Stripe::RequestParams
1247
+ # Tax amount.
1248
+ attr_accessor :amount
1249
+ # Tax rate.
1250
+ attr_accessor :rate
1251
+ # Type of tax.
1252
+ attr_accessor :type
1253
+
1254
+ def initialize(amount: nil, rate: nil, type: nil)
1255
+ @amount = amount
1256
+ @rate = rate
1257
+ @type = type
1258
+ end
1259
+ end
1260
+ # Array of tax details.
1261
+ attr_accessor :taxes
1262
+
1263
+ def initialize(taxes: nil)
1264
+ @taxes = taxes
1265
+ end
1266
+ end
1267
+ # Total flight amount.
1268
+ attr_accessor :amount
1269
+ # Reason for credit.
1270
+ attr_accessor :credit_reason
1271
+ # Total currency.
1272
+ attr_accessor :currency
1273
+ # Discount details.
1274
+ attr_accessor :discounts
1275
+ # Additional charges.
1276
+ attr_accessor :extra_charges
1277
+ # Tax breakdown.
1278
+ attr_accessor :tax
1279
+
1280
+ def initialize(
1281
+ amount: nil,
1282
+ credit_reason: nil,
1283
+ currency: nil,
1284
+ discounts: nil,
1285
+ extra_charges: nil,
1286
+ tax: nil
1287
+ )
1288
+ @amount = amount
1289
+ @credit_reason = credit_reason
1290
+ @currency = currency
1291
+ @discounts = discounts
1292
+ @extra_charges = extra_charges
1293
+ @tax = tax
1294
+ end
1295
+ end
1296
+ # Affiliate details if applicable.
1297
+ attr_accessor :affiliate
1298
+ # Reservation reference.
1299
+ attr_accessor :booking_number
1300
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1301
+ attr_accessor :computerized_reservation_system
1302
+ # Ticket restrictions.
1303
+ attr_accessor :endorsements_and_restrictions
1304
+ # List of insurances.
1305
+ attr_accessor :insurances
1306
+ # List of passengers.
1307
+ attr_accessor :passengers
1308
+ # List of flight segments.
1309
+ attr_accessor :segments
1310
+ # Electronic ticket indicator.
1311
+ attr_accessor :ticket_electronically_issued_indicator
1312
+ # Total cost breakdown.
1313
+ attr_accessor :total
1314
+ # Type of flight transaction.
1315
+ attr_accessor :transaction_type
1316
+
1317
+ def initialize(
1318
+ affiliate: nil,
1319
+ booking_number: nil,
1320
+ computerized_reservation_system: nil,
1321
+ endorsements_and_restrictions: nil,
1322
+ insurances: nil,
1323
+ passengers: nil,
1324
+ segments: nil,
1325
+ ticket_electronically_issued_indicator: nil,
1326
+ total: nil,
1327
+ transaction_type: nil
1328
+ )
1329
+ @affiliate = affiliate
1330
+ @booking_number = booking_number
1331
+ @computerized_reservation_system = computerized_reservation_system
1332
+ @endorsements_and_restrictions = endorsements_and_restrictions
1333
+ @insurances = insurances
1334
+ @passengers = passengers
1335
+ @segments = segments
1336
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1337
+ @total = total
1338
+ @transaction_type = transaction_type
1339
+ end
1340
+ end
1341
+
705
1342
  class Lodging < ::Stripe::RequestParams
706
1343
  class Address < ::Stripe::RequestParams
707
1344
  # City, district, suburb, town, or village.
@@ -734,136 +1371,430 @@ module Stripe
734
1371
  end
735
1372
  end
736
1373
 
737
- class Affiliate < ::Stripe::RequestParams
738
- # The name of the affiliate that originated the purchase.
739
- attr_accessor :name
1374
+ class Affiliate < ::Stripe::RequestParams
1375
+ # The name of the affiliate that originated the purchase.
1376
+ attr_accessor :name
1377
+
1378
+ def initialize(name: nil)
1379
+ @name = name
1380
+ end
1381
+ end
1382
+
1383
+ class Delivery < ::Stripe::RequestParams
1384
+ class Recipient < ::Stripe::RequestParams
1385
+ # The email of the recipient the ticket is delivered to.
1386
+ attr_accessor :email
1387
+ # The name of the recipient the ticket is delivered to.
1388
+ attr_accessor :name
1389
+ # The phone number of the recipient the ticket is delivered to.
1390
+ attr_accessor :phone
1391
+
1392
+ def initialize(email: nil, name: nil, phone: nil)
1393
+ @email = email
1394
+ @name = name
1395
+ @phone = phone
1396
+ end
1397
+ end
1398
+ # The delivery method for the payment
1399
+ attr_accessor :mode
1400
+ # Details of the recipient.
1401
+ attr_accessor :recipient
1402
+
1403
+ def initialize(mode: nil, recipient: nil)
1404
+ @mode = mode
1405
+ @recipient = recipient
1406
+ end
1407
+ end
1408
+
1409
+ class Passenger < ::Stripe::RequestParams
1410
+ # Full name of the person or entity on the lodging reservation.
1411
+ attr_accessor :name
1412
+
1413
+ def initialize(name: nil)
1414
+ @name = name
1415
+ end
1416
+ end
1417
+ # The lodging location's address.
1418
+ attr_accessor :address
1419
+ # The number of adults on the booking
1420
+ attr_accessor :adults
1421
+ # Affiliate details for this purchase.
1422
+ attr_accessor :affiliate
1423
+ # The booking number associated with the lodging reservation.
1424
+ attr_accessor :booking_number
1425
+ # The lodging category
1426
+ attr_accessor :category
1427
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1428
+ attr_accessor :checkin_at
1429
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1430
+ attr_accessor :checkout_at
1431
+ # The customer service phone number of the lodging company.
1432
+ attr_accessor :customer_service_phone_number
1433
+ # The daily lodging room rate.
1434
+ attr_accessor :daily_room_rate_amount
1435
+ # Delivery details for this purchase.
1436
+ attr_accessor :delivery
1437
+ # List of additional charges being billed.
1438
+ attr_accessor :extra_charges
1439
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1440
+ attr_accessor :fire_safety_act_compliance
1441
+ # The name of the lodging location.
1442
+ attr_accessor :name
1443
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1444
+ attr_accessor :no_show
1445
+ # The number of rooms on the booking
1446
+ attr_accessor :number_of_rooms
1447
+ # The details of the passengers in the travel reservation
1448
+ attr_accessor :passengers
1449
+ # The phone number of the lodging location.
1450
+ attr_accessor :property_phone_number
1451
+ # The room class for this purchase.
1452
+ attr_accessor :room_class
1453
+ # The number of room nights
1454
+ attr_accessor :room_nights
1455
+ # The total tax amount associating with the room reservation.
1456
+ attr_accessor :total_room_tax_amount
1457
+ # The total tax amount
1458
+ attr_accessor :total_tax_amount
1459
+
1460
+ def initialize(
1461
+ address: nil,
1462
+ adults: nil,
1463
+ affiliate: nil,
1464
+ booking_number: nil,
1465
+ category: nil,
1466
+ checkin_at: nil,
1467
+ checkout_at: nil,
1468
+ customer_service_phone_number: nil,
1469
+ daily_room_rate_amount: nil,
1470
+ delivery: nil,
1471
+ extra_charges: nil,
1472
+ fire_safety_act_compliance: nil,
1473
+ name: nil,
1474
+ no_show: nil,
1475
+ number_of_rooms: nil,
1476
+ passengers: nil,
1477
+ property_phone_number: nil,
1478
+ room_class: nil,
1479
+ room_nights: nil,
1480
+ total_room_tax_amount: nil,
1481
+ total_tax_amount: nil
1482
+ )
1483
+ @address = address
1484
+ @adults = adults
1485
+ @affiliate = affiliate
1486
+ @booking_number = booking_number
1487
+ @category = category
1488
+ @checkin_at = checkin_at
1489
+ @checkout_at = checkout_at
1490
+ @customer_service_phone_number = customer_service_phone_number
1491
+ @daily_room_rate_amount = daily_room_rate_amount
1492
+ @delivery = delivery
1493
+ @extra_charges = extra_charges
1494
+ @fire_safety_act_compliance = fire_safety_act_compliance
1495
+ @name = name
1496
+ @no_show = no_show
1497
+ @number_of_rooms = number_of_rooms
1498
+ @passengers = passengers
1499
+ @property_phone_number = property_phone_number
1500
+ @room_class = room_class
1501
+ @room_nights = room_nights
1502
+ @total_room_tax_amount = total_room_tax_amount
1503
+ @total_tax_amount = total_tax_amount
1504
+ end
1505
+ end
1506
+
1507
+ class LodgingDatum < ::Stripe::RequestParams
1508
+ class Accommodation < ::Stripe::RequestParams
1509
+ # Type of accommodation.
1510
+ attr_accessor :accommodation_type
1511
+ # Bed type.
1512
+ attr_accessor :bed_type
1513
+ # Daily accommodation rate in cents.
1514
+ attr_accessor :daily_rate_amount
1515
+ # Number of nights.
1516
+ attr_accessor :nights
1517
+ # Number of rooms, cabanas, apartments, and so on.
1518
+ attr_accessor :number_of_rooms
1519
+ # Rate type.
1520
+ attr_accessor :rate_type
1521
+ # Whether smoking is allowed.
1522
+ attr_accessor :smoking_indicator
1523
+
1524
+ def initialize(
1525
+ accommodation_type: nil,
1526
+ bed_type: nil,
1527
+ daily_rate_amount: nil,
1528
+ nights: nil,
1529
+ number_of_rooms: nil,
1530
+ rate_type: nil,
1531
+ smoking_indicator: nil
1532
+ )
1533
+ @accommodation_type = accommodation_type
1534
+ @bed_type = bed_type
1535
+ @daily_rate_amount = daily_rate_amount
1536
+ @nights = nights
1537
+ @number_of_rooms = number_of_rooms
1538
+ @rate_type = rate_type
1539
+ @smoking_indicator = smoking_indicator
1540
+ end
1541
+ end
1542
+
1543
+ class Affiliate < ::Stripe::RequestParams
1544
+ # Affiliate partner code.
1545
+ attr_accessor :code
1546
+ # Affiliate partner name.
1547
+ attr_accessor :name
1548
+
1549
+ def initialize(code: nil, name: nil)
1550
+ @code = code
1551
+ @name = name
1552
+ end
1553
+ end
1554
+
1555
+ class Guest < ::Stripe::RequestParams
1556
+ # Guest's full name.
1557
+ attr_accessor :name
1558
+
1559
+ def initialize(name: nil)
1560
+ @name = name
1561
+ end
1562
+ end
1563
+
1564
+ class Host < ::Stripe::RequestParams
1565
+ class Address < ::Stripe::RequestParams
1566
+ # City, district, suburb, town, or village.
1567
+ attr_accessor :city
1568
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1569
+ attr_accessor :country
1570
+ # Address line 1, such as the street, PO Box, or company name.
1571
+ attr_accessor :line1
1572
+ # Address line 2, such as the apartment, suite, unit, or building.
1573
+ attr_accessor :line2
1574
+ # ZIP or postal code.
1575
+ attr_accessor :postal_code
1576
+ # State, county, province, or region.
1577
+ attr_accessor :state
1578
+
1579
+ def initialize(
1580
+ city: nil,
1581
+ country: nil,
1582
+ line1: nil,
1583
+ line2: nil,
1584
+ postal_code: nil,
1585
+ state: nil
1586
+ )
1587
+ @city = city
1588
+ @country = country
1589
+ @line1 = line1
1590
+ @line2 = line2
1591
+ @postal_code = postal_code
1592
+ @state = state
1593
+ end
1594
+ end
1595
+ # Address of the host.
1596
+ attr_accessor :address
1597
+ # Host's country of domicile.
1598
+ attr_accessor :country_of_domicile
1599
+ # Reference number for the host.
1600
+ attr_accessor :host_reference
1601
+ # Type of host.
1602
+ attr_accessor :host_type
1603
+ # Name of the lodging property or host.
1604
+ attr_accessor :name
1605
+ # Total number of reservations for the host.
1606
+ attr_accessor :number_of_reservations
1607
+ # Property phone number.
1608
+ attr_accessor :property_phone_number
1609
+ # Host's registration date.
1610
+ attr_accessor :registered_at
1611
+
1612
+ def initialize(
1613
+ address: nil,
1614
+ country_of_domicile: nil,
1615
+ host_reference: nil,
1616
+ host_type: nil,
1617
+ name: nil,
1618
+ number_of_reservations: nil,
1619
+ property_phone_number: nil,
1620
+ registered_at: nil
1621
+ )
1622
+ @address = address
1623
+ @country_of_domicile = country_of_domicile
1624
+ @host_reference = host_reference
1625
+ @host_type = host_type
1626
+ @name = name
1627
+ @number_of_reservations = number_of_reservations
1628
+ @property_phone_number = property_phone_number
1629
+ @registered_at = registered_at
1630
+ end
1631
+ end
1632
+
1633
+ class Insurance < ::Stripe::RequestParams
1634
+ # Price of the insurance coverage in cents.
1635
+ attr_accessor :amount
1636
+ # Currency of the insurance amount.
1637
+ attr_accessor :currency
1638
+ # Name of the insurance company.
1639
+ attr_accessor :insurance_company_name
1640
+ # Type of insurance coverage.
1641
+ attr_accessor :insurance_type
1642
+
1643
+ def initialize(
1644
+ amount: nil,
1645
+ currency: nil,
1646
+ insurance_company_name: nil,
1647
+ insurance_type: nil
1648
+ )
1649
+ @amount = amount
1650
+ @currency = currency
1651
+ @insurance_company_name = insurance_company_name
1652
+ @insurance_type = insurance_type
1653
+ end
1654
+ end
1655
+
1656
+ class Total < ::Stripe::RequestParams
1657
+ class Discounts < ::Stripe::RequestParams
1658
+ # Corporate client discount code.
1659
+ attr_accessor :corporate_client_code
1660
+ # Coupon code.
1661
+ attr_accessor :coupon
740
1662
 
741
- def initialize(name: nil)
742
- @name = name
1663
+ def initialize(corporate_client_code: nil, coupon: nil)
1664
+ @corporate_client_code = corporate_client_code
1665
+ @coupon = coupon
1666
+ end
743
1667
  end
744
- end
745
1668
 
746
- class Delivery < ::Stripe::RequestParams
747
- class Recipient < ::Stripe::RequestParams
748
- # The email of the recipient the ticket is delivered to.
749
- attr_accessor :email
750
- # The name of the recipient the ticket is delivered to.
751
- attr_accessor :name
752
- # The phone number of the recipient the ticket is delivered to.
753
- attr_accessor :phone
1669
+ class ExtraCharge < ::Stripe::RequestParams
1670
+ # Amount of the extra charge in cents.
1671
+ attr_accessor :amount
1672
+ # Type of extra charge.
1673
+ attr_accessor :type
754
1674
 
755
- def initialize(email: nil, name: nil, phone: nil)
756
- @email = email
757
- @name = name
758
- @phone = phone
1675
+ def initialize(amount: nil, type: nil)
1676
+ @amount = amount
1677
+ @type = type
759
1678
  end
760
1679
  end
761
- # The delivery method for the payment
762
- attr_accessor :mode
763
- # Details of the recipient.
764
- attr_accessor :recipient
765
1680
 
766
- def initialize(mode: nil, recipient: nil)
767
- @mode = mode
768
- @recipient = recipient
1681
+ class Tax < ::Stripe::RequestParams
1682
+ class Tax < ::Stripe::RequestParams
1683
+ # Tax amount in cents.
1684
+ attr_accessor :amount
1685
+ # Tax rate.
1686
+ attr_accessor :rate
1687
+ # Type of tax applied.
1688
+ attr_accessor :type
1689
+
1690
+ def initialize(amount: nil, rate: nil, type: nil)
1691
+ @amount = amount
1692
+ @rate = rate
1693
+ @type = type
1694
+ end
1695
+ end
1696
+ # Indicates whether the transaction is tax exempt.
1697
+ attr_accessor :tax_exempt_indicator
1698
+ # Tax details.
1699
+ attr_accessor :taxes
1700
+
1701
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
1702
+ @tax_exempt_indicator = tax_exempt_indicator
1703
+ @taxes = taxes
1704
+ end
769
1705
  end
770
- end
771
-
772
- class Passenger < ::Stripe::RequestParams
773
- # Full name of the person or entity on the lodging reservation.
774
- attr_accessor :name
1706
+ # Total price of the lodging reservation in cents.
1707
+ attr_accessor :amount
1708
+ # Cash advances in cents.
1709
+ attr_accessor :cash_advances
1710
+ # Currency of the total amount.
1711
+ attr_accessor :currency
1712
+ # Discount details for the lodging.
1713
+ attr_accessor :discounts
1714
+ # Additional charges for the lodging.
1715
+ attr_accessor :extra_charges
1716
+ # Prepaid amount in cents.
1717
+ attr_accessor :prepaid_amount
1718
+ # Tax breakdown for the lodging reservation.
1719
+ attr_accessor :tax
775
1720
 
776
- def initialize(name: nil)
777
- @name = name
1721
+ def initialize(
1722
+ amount: nil,
1723
+ cash_advances: nil,
1724
+ currency: nil,
1725
+ discounts: nil,
1726
+ extra_charges: nil,
1727
+ prepaid_amount: nil,
1728
+ tax: nil
1729
+ )
1730
+ @amount = amount
1731
+ @cash_advances = cash_advances
1732
+ @currency = currency
1733
+ @discounts = discounts
1734
+ @extra_charges = extra_charges
1735
+ @prepaid_amount = prepaid_amount
1736
+ @tax = tax
778
1737
  end
779
1738
  end
780
- # The lodging location's address.
781
- attr_accessor :address
782
- # The number of adults on the booking
783
- attr_accessor :adults
784
- # Affiliate details for this purchase.
1739
+ # Accommodation details for the lodging.
1740
+ attr_accessor :accommodation
1741
+ # Affiliate details if applicable.
785
1742
  attr_accessor :affiliate
786
- # The booking number associated with the lodging reservation.
1743
+ # Booking confirmation number for the lodging.
787
1744
  attr_accessor :booking_number
788
- # The lodging category
789
- attr_accessor :category
790
- # Lodging check-in time. Measured in seconds since the Unix epoch.
1745
+ # Check-in date.
791
1746
  attr_accessor :checkin_at
792
- # Lodging check-out time. Measured in seconds since the Unix epoch.
1747
+ # Check-out date.
793
1748
  attr_accessor :checkout_at
794
- # The customer service phone number of the lodging company.
1749
+ # Customer service phone number for the lodging company.
795
1750
  attr_accessor :customer_service_phone_number
796
- # The daily lodging room rate.
797
- attr_accessor :daily_room_rate_amount
798
- # Delivery details for this purchase.
799
- attr_accessor :delivery
800
- # List of additional charges being billed.
801
- attr_accessor :extra_charges
802
- # Indicates whether the lodging location is compliant with the Fire Safety Act.
803
- attr_accessor :fire_safety_act_compliance
804
- # The name of the lodging location.
805
- attr_accessor :name
806
- # Indicates if the customer did not keep their booking while failing to cancel the reservation.
807
- attr_accessor :no_show
808
- # The number of rooms on the booking
809
- attr_accessor :number_of_rooms
810
- # The details of the passengers in the travel reservation
811
- attr_accessor :passengers
812
- # The phone number of the lodging location.
813
- attr_accessor :property_phone_number
814
- # The room class for this purchase.
815
- attr_accessor :room_class
816
- # The number of room nights
817
- attr_accessor :room_nights
818
- # The total tax amount associating with the room reservation.
819
- attr_accessor :total_room_tax_amount
820
- # The total tax amount
821
- attr_accessor :total_tax_amount
1751
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1752
+ attr_accessor :fire_safety_act_compliance_indicator
1753
+ # List of guests for the lodging.
1754
+ attr_accessor :guests
1755
+ # Host details for the lodging.
1756
+ attr_accessor :host
1757
+ # List of insurances for the lodging.
1758
+ attr_accessor :insurances
1759
+ # Whether the renter is a no-show.
1760
+ attr_accessor :no_show_indicator
1761
+ # Renter ID number for the lodging.
1762
+ attr_accessor :renter_id_number
1763
+ # Renter name for the lodging.
1764
+ attr_accessor :renter_name
1765
+ # Total details for the lodging.
1766
+ attr_accessor :total
822
1767
 
823
1768
  def initialize(
824
- address: nil,
825
- adults: nil,
1769
+ accommodation: nil,
826
1770
  affiliate: nil,
827
1771
  booking_number: nil,
828
- category: nil,
829
1772
  checkin_at: nil,
830
1773
  checkout_at: nil,
831
1774
  customer_service_phone_number: nil,
832
- daily_room_rate_amount: nil,
833
- delivery: nil,
834
- extra_charges: nil,
835
- fire_safety_act_compliance: nil,
836
- name: nil,
837
- no_show: nil,
838
- number_of_rooms: nil,
839
- passengers: nil,
840
- property_phone_number: nil,
841
- room_class: nil,
842
- room_nights: nil,
843
- total_room_tax_amount: nil,
844
- total_tax_amount: nil
1775
+ fire_safety_act_compliance_indicator: nil,
1776
+ guests: nil,
1777
+ host: nil,
1778
+ insurances: nil,
1779
+ no_show_indicator: nil,
1780
+ renter_id_number: nil,
1781
+ renter_name: nil,
1782
+ total: nil
845
1783
  )
846
- @address = address
847
- @adults = adults
1784
+ @accommodation = accommodation
848
1785
  @affiliate = affiliate
849
1786
  @booking_number = booking_number
850
- @category = category
851
1787
  @checkin_at = checkin_at
852
1788
  @checkout_at = checkout_at
853
1789
  @customer_service_phone_number = customer_service_phone_number
854
- @daily_room_rate_amount = daily_room_rate_amount
855
- @delivery = delivery
856
- @extra_charges = extra_charges
857
- @fire_safety_act_compliance = fire_safety_act_compliance
858
- @name = name
859
- @no_show = no_show
860
- @number_of_rooms = number_of_rooms
861
- @passengers = passengers
862
- @property_phone_number = property_phone_number
863
- @room_class = room_class
864
- @room_nights = room_nights
865
- @total_room_tax_amount = total_room_tax_amount
866
- @total_tax_amount = total_tax_amount
1790
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1791
+ @guests = guests
1792
+ @host = host
1793
+ @insurances = insurances
1794
+ @no_show_indicator = no_show_indicator
1795
+ @renter_id_number = renter_id_number
1796
+ @renter_name = renter_name
1797
+ @total = total
867
1798
  end
868
1799
  end
869
1800
 
@@ -921,15 +1852,27 @@ module Stripe
921
1852
  attr_accessor :benefit
922
1853
  # Car rental details for this PaymentIntent.
923
1854
  attr_accessor :car_rental
924
- # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
1855
+ # Car rental data for this PaymentIntent.
1856
+ attr_accessor :car_rental_data
1857
+ # A unique value to identify the customer. This field is available only for card payments.
1858
+ #
1859
+ # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
925
1860
  attr_accessor :customer_reference
926
1861
  # Event details for this PaymentIntent
927
1862
  attr_accessor :event_details
928
1863
  # Flight reservation details for this PaymentIntent
929
1864
  attr_accessor :flight
1865
+ # Flight data for this PaymentIntent.
1866
+ attr_accessor :flight_data
930
1867
  # Lodging reservation details for this PaymentIntent
931
1868
  attr_accessor :lodging
932
- # A unique value assigned by the business to identify the transaction.
1869
+ # Lodging data for this PaymentIntent.
1870
+ attr_accessor :lodging_data
1871
+ # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1872
+ #
1873
+ # 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`.
1874
+ #
1875
+ # 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.
933
1876
  attr_accessor :order_reference
934
1877
  # Subscription details for this PaymentIntent
935
1878
  attr_accessor :subscription
@@ -937,19 +1880,25 @@ module Stripe
937
1880
  def initialize(
938
1881
  benefit: nil,
939
1882
  car_rental: nil,
1883
+ car_rental_data: nil,
940
1884
  customer_reference: nil,
941
1885
  event_details: nil,
942
1886
  flight: nil,
1887
+ flight_data: nil,
943
1888
  lodging: nil,
1889
+ lodging_data: nil,
944
1890
  order_reference: nil,
945
1891
  subscription: nil
946
1892
  )
947
1893
  @benefit = benefit
948
1894
  @car_rental = car_rental
1895
+ @car_rental_data = car_rental_data
949
1896
  @customer_reference = customer_reference
950
1897
  @event_details = event_details
951
1898
  @flight = flight
1899
+ @flight_data = flight_data
952
1900
  @lodging = lodging
1901
+ @lodging_data = lodging_data
953
1902
  @order_reference = order_reference
954
1903
  @subscription = subscription
955
1904
  end
@@ -2161,6 +3110,12 @@ module Stripe
2161
3110
  @requested_priority = requested_priority
2162
3111
  end
2163
3112
  end
3113
+ # Controls when the funds are captured from the customer's account.
3114
+ #
3115
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
3116
+ #
3117
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
3118
+ attr_accessor :capture_method
2164
3119
  # Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
2165
3120
  attr_accessor :request_extended_authorization
2166
3121
  # Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
@@ -2169,10 +3124,12 @@ module Stripe
2169
3124
  attr_accessor :routing
2170
3125
 
2171
3126
  def initialize(
3127
+ capture_method: nil,
2172
3128
  request_extended_authorization: nil,
2173
3129
  request_incremental_authorization_support: nil,
2174
3130
  routing: nil
2175
3131
  )
3132
+ @capture_method = capture_method
2176
3133
  @request_extended_authorization = request_extended_authorization
2177
3134
  @request_incremental_authorization_support = request_incremental_authorization_support
2178
3135
  @routing = routing
@@ -2481,6 +3438,939 @@ module Stripe
2481
3438
  @reference = reference
2482
3439
  end
2483
3440
  end
3441
+
3442
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
3443
+ class BusReservationDetail < ::Stripe::RequestParams
3444
+ class Arrival < ::Stripe::RequestParams
3445
+ class Address < ::Stripe::RequestParams
3446
+ # The city or town.
3447
+ attr_accessor :city
3448
+ # The country in ISO 3166-1 alpha-2 format.
3449
+ attr_accessor :country
3450
+ # The postal code formatted according to country.
3451
+ attr_accessor :postal_code
3452
+ # The state, county, province, or region formatted according to country.
3453
+ attr_accessor :region
3454
+ # Line 1 of the street address.
3455
+ attr_accessor :street_address
3456
+ # Line 2 of the street address.
3457
+ attr_accessor :street_address2
3458
+
3459
+ def initialize(
3460
+ city: nil,
3461
+ country: nil,
3462
+ postal_code: nil,
3463
+ region: nil,
3464
+ street_address: nil,
3465
+ street_address2: nil
3466
+ )
3467
+ @city = city
3468
+ @country = country
3469
+ @postal_code = postal_code
3470
+ @region = region
3471
+ @street_address = street_address
3472
+ @street_address2 = street_address2
3473
+ end
3474
+ end
3475
+ # Address of the arrival location.
3476
+ attr_accessor :address
3477
+ # Identifier name or reference for the arrival location.
3478
+ attr_accessor :arrival_location
3479
+
3480
+ def initialize(address: nil, arrival_location: nil)
3481
+ @address = address
3482
+ @arrival_location = arrival_location
3483
+ end
3484
+ end
3485
+
3486
+ class Departure < ::Stripe::RequestParams
3487
+ class Address < ::Stripe::RequestParams
3488
+ # The city or town.
3489
+ attr_accessor :city
3490
+ # The country in ISO 3166-1 alpha-2 format.
3491
+ attr_accessor :country
3492
+ # The postal code formatted according to country.
3493
+ attr_accessor :postal_code
3494
+ # The state, county, province, or region formatted according to country.
3495
+ attr_accessor :region
3496
+ # Line 1 of the street address.
3497
+ attr_accessor :street_address
3498
+ # Line 2 of the street address.
3499
+ attr_accessor :street_address2
3500
+
3501
+ def initialize(
3502
+ city: nil,
3503
+ country: nil,
3504
+ postal_code: nil,
3505
+ region: nil,
3506
+ street_address: nil,
3507
+ street_address2: nil
3508
+ )
3509
+ @city = city
3510
+ @country = country
3511
+ @postal_code = postal_code
3512
+ @region = region
3513
+ @street_address = street_address
3514
+ @street_address2 = street_address2
3515
+ end
3516
+ end
3517
+ # Address of the departure location.
3518
+ attr_accessor :address
3519
+ # Timestamp of departure.
3520
+ attr_accessor :departs_at
3521
+ # Identifier name or reference for the origin location.
3522
+ attr_accessor :departure_location
3523
+
3524
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3525
+ @address = address
3526
+ @departs_at = departs_at
3527
+ @departure_location = departure_location
3528
+ end
3529
+ end
3530
+
3531
+ class Insurance < ::Stripe::RequestParams
3532
+ # Insurance currency.
3533
+ attr_accessor :currency
3534
+ # Name of the company providing the insurance.
3535
+ attr_accessor :insurance_company_name
3536
+ # Type of insurance.
3537
+ attr_accessor :insurance_type
3538
+ # Price of insurance in cents.
3539
+ attr_accessor :price
3540
+
3541
+ def initialize(
3542
+ currency: nil,
3543
+ insurance_company_name: nil,
3544
+ insurance_type: nil,
3545
+ price: nil
3546
+ )
3547
+ @currency = currency
3548
+ @insurance_company_name = insurance_company_name
3549
+ @insurance_type = insurance_type
3550
+ @price = price
3551
+ end
3552
+ end
3553
+
3554
+ class Passenger < ::Stripe::RequestParams
3555
+ # The family name of the person.
3556
+ attr_accessor :family_name
3557
+ # The given name of the person.
3558
+ attr_accessor :given_name
3559
+
3560
+ def initialize(family_name: nil, given_name: nil)
3561
+ @family_name = family_name
3562
+ @given_name = given_name
3563
+ end
3564
+ end
3565
+ # Name of associated or partner company for the service.
3566
+ attr_accessor :affiliate_name
3567
+ # Arrival details.
3568
+ attr_accessor :arrival
3569
+ # Name of transportation company.
3570
+ attr_accessor :carrier_name
3571
+ # Currency.
3572
+ attr_accessor :currency
3573
+ # Departure details.
3574
+ attr_accessor :departure
3575
+ # List of insurances for this reservation.
3576
+ attr_accessor :insurances
3577
+ # List of passengers that this reservation applies to.
3578
+ attr_accessor :passengers
3579
+ # Price in cents.
3580
+ attr_accessor :price
3581
+ # Ticket class.
3582
+ attr_accessor :ticket_class
3583
+
3584
+ def initialize(
3585
+ affiliate_name: nil,
3586
+ arrival: nil,
3587
+ carrier_name: nil,
3588
+ currency: nil,
3589
+ departure: nil,
3590
+ insurances: nil,
3591
+ passengers: nil,
3592
+ price: nil,
3593
+ ticket_class: nil
3594
+ )
3595
+ @affiliate_name = affiliate_name
3596
+ @arrival = arrival
3597
+ @carrier_name = carrier_name
3598
+ @currency = currency
3599
+ @departure = departure
3600
+ @insurances = insurances
3601
+ @passengers = passengers
3602
+ @price = price
3603
+ @ticket_class = ticket_class
3604
+ end
3605
+ end
3606
+
3607
+ class EventReservationDetail < ::Stripe::RequestParams
3608
+ class Address < ::Stripe::RequestParams
3609
+ # The city or town.
3610
+ attr_accessor :city
3611
+ # The country in ISO 3166-1 alpha-2 format.
3612
+ attr_accessor :country
3613
+ # The postal code formatted according to country.
3614
+ attr_accessor :postal_code
3615
+ # The state, county, province, or region formatted according to country.
3616
+ attr_accessor :region
3617
+ # Line 1 of the street address.
3618
+ attr_accessor :street_address
3619
+ # Line 2 of the street address.
3620
+ attr_accessor :street_address2
3621
+
3622
+ def initialize(
3623
+ city: nil,
3624
+ country: nil,
3625
+ postal_code: nil,
3626
+ region: nil,
3627
+ street_address: nil,
3628
+ street_address2: nil
3629
+ )
3630
+ @city = city
3631
+ @country = country
3632
+ @postal_code = postal_code
3633
+ @region = region
3634
+ @street_address = street_address
3635
+ @street_address2 = street_address2
3636
+ end
3637
+ end
3638
+
3639
+ class Insurance < ::Stripe::RequestParams
3640
+ # Insurance currency.
3641
+ attr_accessor :currency
3642
+ # Name of the company providing the insurance.
3643
+ attr_accessor :insurance_company_name
3644
+ # Type of insurance.
3645
+ attr_accessor :insurance_type
3646
+ # Price of insurance in cents.
3647
+ attr_accessor :price
3648
+
3649
+ def initialize(
3650
+ currency: nil,
3651
+ insurance_company_name: nil,
3652
+ insurance_type: nil,
3653
+ price: nil
3654
+ )
3655
+ @currency = currency
3656
+ @insurance_company_name = insurance_company_name
3657
+ @insurance_type = insurance_type
3658
+ @price = price
3659
+ end
3660
+ end
3661
+ # Indicates if the tickets are digitally checked when entering the venue.
3662
+ attr_accessor :access_controlled_venue
3663
+ # Address of the event.
3664
+ attr_accessor :address
3665
+ # Name of associated or partner company for the service.
3666
+ attr_accessor :affiliate_name
3667
+ # End timestamp of the event.
3668
+ attr_accessor :ends_at
3669
+ # Company selling the ticket.
3670
+ attr_accessor :event_company_name
3671
+ # Name of the event.
3672
+ attr_accessor :event_name
3673
+ # Type of the event.
3674
+ attr_accessor :event_type
3675
+ # List of insurances for this event.
3676
+ attr_accessor :insurances
3677
+ # Start timestamp of the event.
3678
+ attr_accessor :starts_at
3679
+ # Name of the venue where the event takes place.
3680
+ attr_accessor :venue_name
3681
+
3682
+ def initialize(
3683
+ access_controlled_venue: nil,
3684
+ address: nil,
3685
+ affiliate_name: nil,
3686
+ ends_at: nil,
3687
+ event_company_name: nil,
3688
+ event_name: nil,
3689
+ event_type: nil,
3690
+ insurances: nil,
3691
+ starts_at: nil,
3692
+ venue_name: nil
3693
+ )
3694
+ @access_controlled_venue = access_controlled_venue
3695
+ @address = address
3696
+ @affiliate_name = affiliate_name
3697
+ @ends_at = ends_at
3698
+ @event_company_name = event_company_name
3699
+ @event_name = event_name
3700
+ @event_type = event_type
3701
+ @insurances = insurances
3702
+ @starts_at = starts_at
3703
+ @venue_name = venue_name
3704
+ end
3705
+ end
3706
+
3707
+ class FerryReservationDetail < ::Stripe::RequestParams
3708
+ class Arrival < ::Stripe::RequestParams
3709
+ class Address < ::Stripe::RequestParams
3710
+ # The city or town.
3711
+ attr_accessor :city
3712
+ # The country in ISO 3166-1 alpha-2 format.
3713
+ attr_accessor :country
3714
+ # The postal code formatted according to country.
3715
+ attr_accessor :postal_code
3716
+ # The state, county, province, or region formatted according to country.
3717
+ attr_accessor :region
3718
+ # Line 1 of the street address.
3719
+ attr_accessor :street_address
3720
+ # Line 2 of the street address.
3721
+ attr_accessor :street_address2
3722
+
3723
+ def initialize(
3724
+ city: nil,
3725
+ country: nil,
3726
+ postal_code: nil,
3727
+ region: nil,
3728
+ street_address: nil,
3729
+ street_address2: nil
3730
+ )
3731
+ @city = city
3732
+ @country = country
3733
+ @postal_code = postal_code
3734
+ @region = region
3735
+ @street_address = street_address
3736
+ @street_address2 = street_address2
3737
+ end
3738
+ end
3739
+ # Address of the arrival location.
3740
+ attr_accessor :address
3741
+ # Identifier name or reference for the arrival location.
3742
+ attr_accessor :arrival_location
3743
+
3744
+ def initialize(address: nil, arrival_location: nil)
3745
+ @address = address
3746
+ @arrival_location = arrival_location
3747
+ end
3748
+ end
3749
+
3750
+ class Departure < ::Stripe::RequestParams
3751
+ class Address < ::Stripe::RequestParams
3752
+ # The city or town.
3753
+ attr_accessor :city
3754
+ # The country in ISO 3166-1 alpha-2 format.
3755
+ attr_accessor :country
3756
+ # The postal code formatted according to country.
3757
+ attr_accessor :postal_code
3758
+ # The state, county, province, or region formatted according to country.
3759
+ attr_accessor :region
3760
+ # Line 1 of the street address.
3761
+ attr_accessor :street_address
3762
+ # Line 2 of the street address.
3763
+ attr_accessor :street_address2
3764
+
3765
+ def initialize(
3766
+ city: nil,
3767
+ country: nil,
3768
+ postal_code: nil,
3769
+ region: nil,
3770
+ street_address: nil,
3771
+ street_address2: nil
3772
+ )
3773
+ @city = city
3774
+ @country = country
3775
+ @postal_code = postal_code
3776
+ @region = region
3777
+ @street_address = street_address
3778
+ @street_address2 = street_address2
3779
+ end
3780
+ end
3781
+ # Address of the departure location.
3782
+ attr_accessor :address
3783
+ # Timestamp of departure.
3784
+ attr_accessor :departs_at
3785
+ # Identifier name or reference for the origin location.
3786
+ attr_accessor :departure_location
3787
+
3788
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3789
+ @address = address
3790
+ @departs_at = departs_at
3791
+ @departure_location = departure_location
3792
+ end
3793
+ end
3794
+
3795
+ class Insurance < ::Stripe::RequestParams
3796
+ # Insurance currency.
3797
+ attr_accessor :currency
3798
+ # Name of the company providing the insurance.
3799
+ attr_accessor :insurance_company_name
3800
+ # Type of insurance.
3801
+ attr_accessor :insurance_type
3802
+ # Price of insurance in cents.
3803
+ attr_accessor :price
3804
+
3805
+ def initialize(
3806
+ currency: nil,
3807
+ insurance_company_name: nil,
3808
+ insurance_type: nil,
3809
+ price: nil
3810
+ )
3811
+ @currency = currency
3812
+ @insurance_company_name = insurance_company_name
3813
+ @insurance_type = insurance_type
3814
+ @price = price
3815
+ end
3816
+ end
3817
+
3818
+ class Passenger < ::Stripe::RequestParams
3819
+ # The family name of the person.
3820
+ attr_accessor :family_name
3821
+ # The given name of the person.
3822
+ attr_accessor :given_name
3823
+
3824
+ def initialize(family_name: nil, given_name: nil)
3825
+ @family_name = family_name
3826
+ @given_name = given_name
3827
+ end
3828
+ end
3829
+ # Name of associated or partner company for the service.
3830
+ attr_accessor :affiliate_name
3831
+ # Arrival details.
3832
+ attr_accessor :arrival
3833
+ # Name of transportation company.
3834
+ attr_accessor :carrier_name
3835
+ # Currency.
3836
+ attr_accessor :currency
3837
+ # Departure details.
3838
+ attr_accessor :departure
3839
+ # List of insurances for this reservation.
3840
+ attr_accessor :insurances
3841
+ # List of passengers that this reservation applies to.
3842
+ attr_accessor :passengers
3843
+ # Price in cents.
3844
+ attr_accessor :price
3845
+ # Ticket class.
3846
+ attr_accessor :ticket_class
3847
+
3848
+ def initialize(
3849
+ affiliate_name: nil,
3850
+ arrival: nil,
3851
+ carrier_name: nil,
3852
+ currency: nil,
3853
+ departure: nil,
3854
+ insurances: nil,
3855
+ passengers: nil,
3856
+ price: nil,
3857
+ ticket_class: nil
3858
+ )
3859
+ @affiliate_name = affiliate_name
3860
+ @arrival = arrival
3861
+ @carrier_name = carrier_name
3862
+ @currency = currency
3863
+ @departure = departure
3864
+ @insurances = insurances
3865
+ @passengers = passengers
3866
+ @price = price
3867
+ @ticket_class = ticket_class
3868
+ end
3869
+ end
3870
+
3871
+ class Insurance < ::Stripe::RequestParams
3872
+ # Insurance currency.
3873
+ attr_accessor :currency
3874
+ # Name of the company providing the insurance.
3875
+ attr_accessor :insurance_company_name
3876
+ # Type of insurance
3877
+ attr_accessor :insurance_type
3878
+ # Price of insurance in cents.
3879
+ attr_accessor :price
3880
+
3881
+ def initialize(
3882
+ currency: nil,
3883
+ insurance_company_name: nil,
3884
+ insurance_type: nil,
3885
+ price: nil
3886
+ )
3887
+ @currency = currency
3888
+ @insurance_company_name = insurance_company_name
3889
+ @insurance_type = insurance_type
3890
+ @price = price
3891
+ end
3892
+ end
3893
+
3894
+ class MarketplaceSeller < ::Stripe::RequestParams
3895
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
3896
+ # The city or town.
3897
+ attr_accessor :city
3898
+ # The country in ISO 3166-1 alpha-2 format.
3899
+ attr_accessor :country
3900
+ # The postal code formatted according to country.
3901
+ attr_accessor :postal_code
3902
+ # The state, county, province, or region formatted according to country.
3903
+ attr_accessor :region
3904
+ # Line 1 of the street address.
3905
+ attr_accessor :street_address
3906
+ # Line 2 of the street address.
3907
+ attr_accessor :street_address2
3908
+
3909
+ def initialize(
3910
+ city: nil,
3911
+ country: nil,
3912
+ postal_code: nil,
3913
+ region: nil,
3914
+ street_address: nil,
3915
+ street_address2: nil
3916
+ )
3917
+ @city = city
3918
+ @country = country
3919
+ @postal_code = postal_code
3920
+ @region = region
3921
+ @street_address = street_address
3922
+ @street_address2 = street_address2
3923
+ end
3924
+ end
3925
+ # The references to line items for purchases with multiple associated sub-sellers.
3926
+ attr_accessor :line_item_references
3927
+ # The address of the selling or delivering merchant.
3928
+ attr_accessor :marketplace_seller_address
3929
+ # The name of the marketplace seller.
3930
+ attr_accessor :marketplace_seller_name
3931
+ # The unique identifier for the marketplace seller.
3932
+ attr_accessor :marketplace_seller_reference
3933
+ # The number of transactions the sub-seller completed in the last 12 months.
3934
+ attr_accessor :number_of_transactions
3935
+ # The category of the product.
3936
+ attr_accessor :product_category
3937
+ # The date when the seller's account with the marketplace was last logged in.
3938
+ attr_accessor :seller_last_login_at
3939
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3940
+ attr_accessor :seller_rating
3941
+ # The date when the seller's account with the marketplace was created.
3942
+ attr_accessor :seller_registered_at
3943
+ # The date when the seller's account with the marketplace was last updated.
3944
+ attr_accessor :seller_updated_at
3945
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
3946
+ attr_accessor :shipping_references
3947
+ # The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
3948
+ attr_accessor :volume_of_transactions
3949
+
3950
+ def initialize(
3951
+ line_item_references: nil,
3952
+ marketplace_seller_address: nil,
3953
+ marketplace_seller_name: nil,
3954
+ marketplace_seller_reference: nil,
3955
+ number_of_transactions: nil,
3956
+ product_category: nil,
3957
+ seller_last_login_at: nil,
3958
+ seller_rating: nil,
3959
+ seller_registered_at: nil,
3960
+ seller_updated_at: nil,
3961
+ shipping_references: nil,
3962
+ volume_of_transactions: nil
3963
+ )
3964
+ @line_item_references = line_item_references
3965
+ @marketplace_seller_address = marketplace_seller_address
3966
+ @marketplace_seller_name = marketplace_seller_name
3967
+ @marketplace_seller_reference = marketplace_seller_reference
3968
+ @number_of_transactions = number_of_transactions
3969
+ @product_category = product_category
3970
+ @seller_last_login_at = seller_last_login_at
3971
+ @seller_rating = seller_rating
3972
+ @seller_registered_at = seller_registered_at
3973
+ @seller_updated_at = seller_updated_at
3974
+ @shipping_references = shipping_references
3975
+ @volume_of_transactions = volume_of_transactions
3976
+ end
3977
+ end
3978
+
3979
+ class RoundTripReservationDetail < ::Stripe::RequestParams
3980
+ class Arrival < ::Stripe::RequestParams
3981
+ class Address < ::Stripe::RequestParams
3982
+ # The city or town.
3983
+ attr_accessor :city
3984
+ # The country in ISO 3166-1 alpha-2 format.
3985
+ attr_accessor :country
3986
+ # The postal code formatted according to country.
3987
+ attr_accessor :postal_code
3988
+ # The state, county, province, or region formatted according to country.
3989
+ attr_accessor :region
3990
+ # Line 1 of the street address.
3991
+ attr_accessor :street_address
3992
+ # Line 2 of the street address.
3993
+ attr_accessor :street_address2
3994
+
3995
+ def initialize(
3996
+ city: nil,
3997
+ country: nil,
3998
+ postal_code: nil,
3999
+ region: nil,
4000
+ street_address: nil,
4001
+ street_address2: nil
4002
+ )
4003
+ @city = city
4004
+ @country = country
4005
+ @postal_code = postal_code
4006
+ @region = region
4007
+ @street_address = street_address
4008
+ @street_address2 = street_address2
4009
+ end
4010
+ end
4011
+ # Address of the arrival location.
4012
+ attr_accessor :address
4013
+ # Identifier name or reference for the arrival location.
4014
+ attr_accessor :arrival_location
4015
+
4016
+ def initialize(address: nil, arrival_location: nil)
4017
+ @address = address
4018
+ @arrival_location = arrival_location
4019
+ end
4020
+ end
4021
+
4022
+ class Departure < ::Stripe::RequestParams
4023
+ class Address < ::Stripe::RequestParams
4024
+ # The city or town.
4025
+ attr_accessor :city
4026
+ # The country in ISO 3166-1 alpha-2 format.
4027
+ attr_accessor :country
4028
+ # The postal code formatted according to country.
4029
+ attr_accessor :postal_code
4030
+ # The state, county, province, or region formatted according to country.
4031
+ attr_accessor :region
4032
+ # Line 1 of the street address.
4033
+ attr_accessor :street_address
4034
+ # Line 2 of the street address.
4035
+ attr_accessor :street_address2
4036
+
4037
+ def initialize(
4038
+ city: nil,
4039
+ country: nil,
4040
+ postal_code: nil,
4041
+ region: nil,
4042
+ street_address: nil,
4043
+ street_address2: nil
4044
+ )
4045
+ @city = city
4046
+ @country = country
4047
+ @postal_code = postal_code
4048
+ @region = region
4049
+ @street_address = street_address
4050
+ @street_address2 = street_address2
4051
+ end
4052
+ end
4053
+ # Address of the departure location.
4054
+ attr_accessor :address
4055
+ # Timestamp of departure.
4056
+ attr_accessor :departs_at
4057
+ # Identifier name or reference for the origin location.
4058
+ attr_accessor :departure_location
4059
+
4060
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4061
+ @address = address
4062
+ @departs_at = departs_at
4063
+ @departure_location = departure_location
4064
+ end
4065
+ end
4066
+
4067
+ class Insurance < ::Stripe::RequestParams
4068
+ # Insurance currency.
4069
+ attr_accessor :currency
4070
+ # Name of the company providing the insurance.
4071
+ attr_accessor :insurance_company_name
4072
+ # Type of insurance.
4073
+ attr_accessor :insurance_type
4074
+ # Price of insurance in cents.
4075
+ attr_accessor :price
4076
+
4077
+ def initialize(
4078
+ currency: nil,
4079
+ insurance_company_name: nil,
4080
+ insurance_type: nil,
4081
+ price: nil
4082
+ )
4083
+ @currency = currency
4084
+ @insurance_company_name = insurance_company_name
4085
+ @insurance_type = insurance_type
4086
+ @price = price
4087
+ end
4088
+ end
4089
+
4090
+ class Passenger < ::Stripe::RequestParams
4091
+ # The family name of the person.
4092
+ attr_accessor :family_name
4093
+ # The given name of the person.
4094
+ attr_accessor :given_name
4095
+
4096
+ def initialize(family_name: nil, given_name: nil)
4097
+ @family_name = family_name
4098
+ @given_name = given_name
4099
+ end
4100
+ end
4101
+ # Name of associated or partner company for the service.
4102
+ attr_accessor :affiliate_name
4103
+ # Arrival details.
4104
+ attr_accessor :arrival
4105
+ # Name of transportation company.
4106
+ attr_accessor :carrier_name
4107
+ # Currency.
4108
+ attr_accessor :currency
4109
+ # Departure details.
4110
+ attr_accessor :departure
4111
+ # List of insurances for this reservation.
4112
+ attr_accessor :insurances
4113
+ # List of passengers that this reservation applies to.
4114
+ attr_accessor :passengers
4115
+ # Price in cents.
4116
+ attr_accessor :price
4117
+ # Ticket class.
4118
+ attr_accessor :ticket_class
4119
+
4120
+ def initialize(
4121
+ affiliate_name: nil,
4122
+ arrival: nil,
4123
+ carrier_name: nil,
4124
+ currency: nil,
4125
+ departure: nil,
4126
+ insurances: nil,
4127
+ passengers: nil,
4128
+ price: nil,
4129
+ ticket_class: nil
4130
+ )
4131
+ @affiliate_name = affiliate_name
4132
+ @arrival = arrival
4133
+ @carrier_name = carrier_name
4134
+ @currency = currency
4135
+ @departure = departure
4136
+ @insurances = insurances
4137
+ @passengers = passengers
4138
+ @price = price
4139
+ @ticket_class = ticket_class
4140
+ end
4141
+ end
4142
+
4143
+ class TrainReservationDetail < ::Stripe::RequestParams
4144
+ class Arrival < ::Stripe::RequestParams
4145
+ class Address < ::Stripe::RequestParams
4146
+ # The city or town.
4147
+ attr_accessor :city
4148
+ # The country in ISO 3166-1 alpha-2 format.
4149
+ attr_accessor :country
4150
+ # The postal code formatted according to country.
4151
+ attr_accessor :postal_code
4152
+ # The state, county, province, or region formatted according to country.
4153
+ attr_accessor :region
4154
+ # Line 1 of the street address.
4155
+ attr_accessor :street_address
4156
+ # Line 2 of the street address.
4157
+ attr_accessor :street_address2
4158
+
4159
+ def initialize(
4160
+ city: nil,
4161
+ country: nil,
4162
+ postal_code: nil,
4163
+ region: nil,
4164
+ street_address: nil,
4165
+ street_address2: nil
4166
+ )
4167
+ @city = city
4168
+ @country = country
4169
+ @postal_code = postal_code
4170
+ @region = region
4171
+ @street_address = street_address
4172
+ @street_address2 = street_address2
4173
+ end
4174
+ end
4175
+ # Address of the arrival location.
4176
+ attr_accessor :address
4177
+ # Identifier name or reference for the arrival location.
4178
+ attr_accessor :arrival_location
4179
+
4180
+ def initialize(address: nil, arrival_location: nil)
4181
+ @address = address
4182
+ @arrival_location = arrival_location
4183
+ end
4184
+ end
4185
+
4186
+ class Departure < ::Stripe::RequestParams
4187
+ class Address < ::Stripe::RequestParams
4188
+ # The city or town.
4189
+ attr_accessor :city
4190
+ # The country in ISO 3166-1 alpha-2 format.
4191
+ attr_accessor :country
4192
+ # The postal code formatted according to country.
4193
+ attr_accessor :postal_code
4194
+ # The state, county, province, or region formatted according to country.
4195
+ attr_accessor :region
4196
+ # Line 1 of the street address.
4197
+ attr_accessor :street_address
4198
+ # Line 2 of the street address.
4199
+ attr_accessor :street_address2
4200
+
4201
+ def initialize(
4202
+ city: nil,
4203
+ country: nil,
4204
+ postal_code: nil,
4205
+ region: nil,
4206
+ street_address: nil,
4207
+ street_address2: nil
4208
+ )
4209
+ @city = city
4210
+ @country = country
4211
+ @postal_code = postal_code
4212
+ @region = region
4213
+ @street_address = street_address
4214
+ @street_address2 = street_address2
4215
+ end
4216
+ end
4217
+ # Address of the departure location.
4218
+ attr_accessor :address
4219
+ # Timestamp of departure.
4220
+ attr_accessor :departs_at
4221
+ # Identifier name or reference for the origin location.
4222
+ attr_accessor :departure_location
4223
+
4224
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4225
+ @address = address
4226
+ @departs_at = departs_at
4227
+ @departure_location = departure_location
4228
+ end
4229
+ end
4230
+
4231
+ class Insurance < ::Stripe::RequestParams
4232
+ # Insurance currency.
4233
+ attr_accessor :currency
4234
+ # Name of the company providing the insurance.
4235
+ attr_accessor :insurance_company_name
4236
+ # Type of insurance.
4237
+ attr_accessor :insurance_type
4238
+ # Price of insurance in cents.
4239
+ attr_accessor :price
4240
+
4241
+ def initialize(
4242
+ currency: nil,
4243
+ insurance_company_name: nil,
4244
+ insurance_type: nil,
4245
+ price: nil
4246
+ )
4247
+ @currency = currency
4248
+ @insurance_company_name = insurance_company_name
4249
+ @insurance_type = insurance_type
4250
+ @price = price
4251
+ end
4252
+ end
4253
+
4254
+ class Passenger < ::Stripe::RequestParams
4255
+ # The family name of the person.
4256
+ attr_accessor :family_name
4257
+ # The given name of the person.
4258
+ attr_accessor :given_name
4259
+
4260
+ def initialize(family_name: nil, given_name: nil)
4261
+ @family_name = family_name
4262
+ @given_name = given_name
4263
+ end
4264
+ end
4265
+ # Name of associated or partner company for the service.
4266
+ attr_accessor :affiliate_name
4267
+ # Arrival details.
4268
+ attr_accessor :arrival
4269
+ # Name of transportation company.
4270
+ attr_accessor :carrier_name
4271
+ # Currency.
4272
+ attr_accessor :currency
4273
+ # Departure details.
4274
+ attr_accessor :departure
4275
+ # List of insurances for this reservation.
4276
+ attr_accessor :insurances
4277
+ # List of passengers that this reservation applies to.
4278
+ attr_accessor :passengers
4279
+ # Price in cents.
4280
+ attr_accessor :price
4281
+ # Ticket class.
4282
+ attr_accessor :ticket_class
4283
+
4284
+ def initialize(
4285
+ affiliate_name: nil,
4286
+ arrival: nil,
4287
+ carrier_name: nil,
4288
+ currency: nil,
4289
+ departure: nil,
4290
+ insurances: nil,
4291
+ passengers: nil,
4292
+ price: nil,
4293
+ ticket_class: nil
4294
+ )
4295
+ @affiliate_name = affiliate_name
4296
+ @arrival = arrival
4297
+ @carrier_name = carrier_name
4298
+ @currency = currency
4299
+ @departure = departure
4300
+ @insurances = insurances
4301
+ @passengers = passengers
4302
+ @price = price
4303
+ @ticket_class = ticket_class
4304
+ end
4305
+ end
4306
+
4307
+ class Voucher < ::Stripe::RequestParams
4308
+ # Name of associated or partner company for this voucher.
4309
+ attr_accessor :affiliate_name
4310
+ # The voucher validity end time.
4311
+ attr_accessor :ends_at
4312
+ # The voucher validity start time.
4313
+ attr_accessor :starts_at
4314
+ # The issuer or provider of this voucher.
4315
+ attr_accessor :voucher_company
4316
+ # The name or reference to identify the voucher.
4317
+ attr_accessor :voucher_name
4318
+ # The type of this voucher.
4319
+ attr_accessor :voucher_type
4320
+
4321
+ def initialize(
4322
+ affiliate_name: nil,
4323
+ ends_at: nil,
4324
+ starts_at: nil,
4325
+ voucher_company: nil,
4326
+ voucher_name: nil,
4327
+ voucher_type: nil
4328
+ )
4329
+ @affiliate_name = affiliate_name
4330
+ @ends_at = ends_at
4331
+ @starts_at = starts_at
4332
+ @voucher_company = voucher_company
4333
+ @voucher_name = voucher_name
4334
+ @voucher_type = voucher_type
4335
+ end
4336
+ end
4337
+ # Supplementary bus reservation details.
4338
+ attr_accessor :bus_reservation_details
4339
+ # Supplementary event reservation details.
4340
+ attr_accessor :event_reservation_details
4341
+ # Supplementary ferry reservation details.
4342
+ attr_accessor :ferry_reservation_details
4343
+ # Supplementary insurance details.
4344
+ attr_accessor :insurances
4345
+ # Supplementary marketplace seller details.
4346
+ attr_accessor :marketplace_sellers
4347
+ # Supplementary round trip reservation details.
4348
+ attr_accessor :round_trip_reservation_details
4349
+ # Supplementary train reservation details.
4350
+ attr_accessor :train_reservation_details
4351
+ # Voucher details, such as a gift card or discount code.
4352
+ attr_accessor :vouchers
4353
+
4354
+ def initialize(
4355
+ bus_reservation_details: nil,
4356
+ event_reservation_details: nil,
4357
+ ferry_reservation_details: nil,
4358
+ insurances: nil,
4359
+ marketplace_sellers: nil,
4360
+ round_trip_reservation_details: nil,
4361
+ train_reservation_details: nil,
4362
+ vouchers: nil
4363
+ )
4364
+ @bus_reservation_details = bus_reservation_details
4365
+ @event_reservation_details = event_reservation_details
4366
+ @ferry_reservation_details = ferry_reservation_details
4367
+ @insurances = insurances
4368
+ @marketplace_sellers = marketplace_sellers
4369
+ @round_trip_reservation_details = round_trip_reservation_details
4370
+ @train_reservation_details = train_reservation_details
4371
+ @vouchers = vouchers
4372
+ end
4373
+ end
2484
4374
  # Controls when the funds are captured from the customer's account.
2485
4375
  #
2486
4376
  # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
@@ -2503,19 +4393,23 @@ module Stripe
2503
4393
  attr_accessor :setup_future_usage
2504
4394
  # Subscription details if setting up or charging a subscription.
2505
4395
  attr_accessor :subscriptions
4396
+ # Supplementary Purchase Data for the corresponding Klarna payment
4397
+ attr_accessor :supplementary_purchase_data
2506
4398
 
2507
4399
  def initialize(
2508
4400
  capture_method: nil,
2509
4401
  on_demand: nil,
2510
4402
  preferred_locale: nil,
2511
4403
  setup_future_usage: nil,
2512
- subscriptions: nil
4404
+ subscriptions: nil,
4405
+ supplementary_purchase_data: nil
2513
4406
  )
2514
4407
  @capture_method = capture_method
2515
4408
  @on_demand = on_demand
2516
4409
  @preferred_locale = preferred_locale
2517
4410
  @setup_future_usage = setup_future_usage
2518
4411
  @subscriptions = subscriptions
4412
+ @supplementary_purchase_data = supplementary_purchase_data
2519
4413
  end
2520
4414
  end
2521
4415
 
@@ -2888,15 +4782,15 @@ module Stripe
2888
4782
  class MandateOptions < ::Stripe::RequestParams
2889
4783
  # Amount that will be collected. It is required when `amount_type` is `fixed`.
2890
4784
  attr_accessor :amount
2891
- # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
4785
+ # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
2892
4786
  attr_accessor :amount_type
2893
4787
  # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2894
4788
  attr_accessor :end_date
2895
- # The periodicity at which payments will be collected.
4789
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
2896
4790
  attr_accessor :payment_schedule
2897
4791
  # The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
2898
4792
  attr_accessor :payments_per_period
2899
- # The purpose for which payments are made. Defaults to retail.
4793
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
2900
4794
  attr_accessor :purpose
2901
4795
 
2902
4796
  def initialize(
@@ -3660,6 +5554,8 @@ module Stripe
3660
5554
  @amount = amount
3661
5555
  end
3662
5556
  end
5557
+ # Allocated Funds configuration for this PaymentIntent.
5558
+ attr_accessor :allocated_funds
3663
5559
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
3664
5560
  attr_accessor :amount
3665
5561
  # Provides industry-specific information about the amount.
@@ -3734,10 +5630,9 @@ module Stripe
3734
5630
  attr_accessor :transfer_data
3735
5631
  # A string that identifies the resulting payment as part of a group. You can only provide `transfer_group` if it hasn't been set. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
3736
5632
  attr_accessor :transfer_group
3737
- # Allocated Funds configuration for this PaymentIntent.
3738
- attr_accessor :allocated_funds
3739
5633
 
3740
5634
  def initialize(
5635
+ allocated_funds: nil,
3741
5636
  amount: nil,
3742
5637
  amount_details: nil,
3743
5638
  application_fee_amount: nil,
@@ -3764,9 +5659,9 @@ module Stripe
3764
5659
  statement_descriptor: nil,
3765
5660
  statement_descriptor_suffix: nil,
3766
5661
  transfer_data: nil,
3767
- transfer_group: nil,
3768
- allocated_funds: nil
5662
+ transfer_group: nil
3769
5663
  )
5664
+ @allocated_funds = allocated_funds
3770
5665
  @amount = amount
3771
5666
  @amount_details = amount_details
3772
5667
  @application_fee_amount = application_fee_amount
@@ -3794,7 +5689,6 @@ module Stripe
3794
5689
  @statement_descriptor_suffix = statement_descriptor_suffix
3795
5690
  @transfer_data = transfer_data
3796
5691
  @transfer_group = transfer_group
3797
- @allocated_funds = allocated_funds
3798
5692
  end
3799
5693
  end
3800
5694
  end