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
@@ -495,6 +505,364 @@ module Stripe
495
505
  end
496
506
  end
497
507
 
508
+ class CarRentalDatum < ::Stripe::RequestParams
509
+ class Affiliate < ::Stripe::RequestParams
510
+ # Affiliate partner code.
511
+ attr_accessor :code
512
+ # Name of affiliate partner.
513
+ attr_accessor :name
514
+
515
+ def initialize(code: nil, name: nil)
516
+ @code = code
517
+ @name = name
518
+ end
519
+ end
520
+
521
+ class Distance < ::Stripe::RequestParams
522
+ # Distance traveled.
523
+ attr_accessor :amount
524
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
525
+ attr_accessor :unit
526
+
527
+ def initialize(amount: nil, unit: nil)
528
+ @amount = amount
529
+ @unit = unit
530
+ end
531
+ end
532
+
533
+ class Driver < ::Stripe::RequestParams
534
+ class DateOfBirth < ::Stripe::RequestParams
535
+ # Day of birth (1-31).
536
+ attr_accessor :day
537
+ # Month of birth (1-12).
538
+ attr_accessor :month
539
+ # Year of birth (must be greater than 1900).
540
+ attr_accessor :year
541
+
542
+ def initialize(day: nil, month: nil, year: nil)
543
+ @day = day
544
+ @month = month
545
+ @year = year
546
+ end
547
+ end
548
+ # Driver's date of birth.
549
+ attr_accessor :date_of_birth
550
+ # Driver's identification number.
551
+ attr_accessor :driver_identification_number
552
+ # Driver's tax number.
553
+ attr_accessor :driver_tax_number
554
+ # Driver's full name.
555
+ attr_accessor :name
556
+
557
+ def initialize(
558
+ date_of_birth: nil,
559
+ driver_identification_number: nil,
560
+ driver_tax_number: nil,
561
+ name: nil
562
+ )
563
+ @date_of_birth = date_of_birth
564
+ @driver_identification_number = driver_identification_number
565
+ @driver_tax_number = driver_tax_number
566
+ @name = name
567
+ end
568
+ end
569
+
570
+ class DropOff < ::Stripe::RequestParams
571
+ class Address < ::Stripe::RequestParams
572
+ # City, district, suburb, town, or village.
573
+ attr_accessor :city
574
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
575
+ attr_accessor :country
576
+ # Address line 1, such as the street, PO Box, or company name.
577
+ attr_accessor :line1
578
+ # Address line 2, such as the apartment, suite, unit, or building.
579
+ attr_accessor :line2
580
+ # ZIP or postal code.
581
+ attr_accessor :postal_code
582
+ # State, county, province, or region.
583
+ attr_accessor :state
584
+
585
+ def initialize(
586
+ city: nil,
587
+ country: nil,
588
+ line1: nil,
589
+ line2: nil,
590
+ postal_code: nil,
591
+ state: nil
592
+ )
593
+ @city = city
594
+ @country = country
595
+ @line1 = line1
596
+ @line2 = line2
597
+ @postal_code = postal_code
598
+ @state = state
599
+ end
600
+ end
601
+ # Address of the rental location.
602
+ attr_accessor :address
603
+ # Location name.
604
+ attr_accessor :location_name
605
+ # Timestamp for the location.
606
+ attr_accessor :time
607
+
608
+ def initialize(address: nil, location_name: nil, time: nil)
609
+ @address = address
610
+ @location_name = location_name
611
+ @time = time
612
+ end
613
+ end
614
+
615
+ class Insurance < ::Stripe::RequestParams
616
+ # Amount of the insurance coverage in cents.
617
+ attr_accessor :amount
618
+ # Currency of the insurance amount.
619
+ attr_accessor :currency
620
+ # Name of the insurance company.
621
+ attr_accessor :insurance_company_name
622
+ # Type of insurance coverage.
623
+ attr_accessor :insurance_type
624
+
625
+ def initialize(
626
+ amount: nil,
627
+ currency: nil,
628
+ insurance_company_name: nil,
629
+ insurance_type: nil
630
+ )
631
+ @amount = amount
632
+ @currency = currency
633
+ @insurance_company_name = insurance_company_name
634
+ @insurance_type = insurance_type
635
+ end
636
+ end
637
+
638
+ class Pickup < ::Stripe::RequestParams
639
+ class Address < ::Stripe::RequestParams
640
+ # City, district, suburb, town, or village.
641
+ attr_accessor :city
642
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
643
+ attr_accessor :country
644
+ # Address line 1, such as the street, PO Box, or company name.
645
+ attr_accessor :line1
646
+ # Address line 2, such as the apartment, suite, unit, or building.
647
+ attr_accessor :line2
648
+ # ZIP or postal code.
649
+ attr_accessor :postal_code
650
+ # State, county, province, or region.
651
+ attr_accessor :state
652
+
653
+ def initialize(
654
+ city: nil,
655
+ country: nil,
656
+ line1: nil,
657
+ line2: nil,
658
+ postal_code: nil,
659
+ state: nil
660
+ )
661
+ @city = city
662
+ @country = country
663
+ @line1 = line1
664
+ @line2 = line2
665
+ @postal_code = postal_code
666
+ @state = state
667
+ end
668
+ end
669
+ # Address of the rental location.
670
+ attr_accessor :address
671
+ # Location name.
672
+ attr_accessor :location_name
673
+ # Timestamp for the location.
674
+ attr_accessor :time
675
+
676
+ def initialize(address: nil, location_name: nil, time: nil)
677
+ @address = address
678
+ @location_name = location_name
679
+ @time = time
680
+ end
681
+ end
682
+
683
+ class Total < ::Stripe::RequestParams
684
+ class Discounts < ::Stripe::RequestParams
685
+ # Corporate client discount code.
686
+ attr_accessor :corporate_client_code
687
+ # Coupon code applied to the rental.
688
+ attr_accessor :coupon
689
+ # Maximum number of free miles or kilometers included.
690
+ attr_accessor :maximum_free_miles_or_kilometers
691
+
692
+ def initialize(
693
+ corporate_client_code: nil,
694
+ coupon: nil,
695
+ maximum_free_miles_or_kilometers: nil
696
+ )
697
+ @corporate_client_code = corporate_client_code
698
+ @coupon = coupon
699
+ @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
700
+ end
701
+ end
702
+
703
+ class ExtraCharge < ::Stripe::RequestParams
704
+ # Amount of the extra charge in cents.
705
+ attr_accessor :amount
706
+ # Type of extra charge.
707
+ attr_accessor :type
708
+
709
+ def initialize(amount: nil, type: nil)
710
+ @amount = amount
711
+ @type = type
712
+ end
713
+ end
714
+
715
+ class Tax < ::Stripe::RequestParams
716
+ class Tax < ::Stripe::RequestParams
717
+ # Tax amount.
718
+ attr_accessor :amount
719
+ # Tax rate applied.
720
+ attr_accessor :rate
721
+ # Type of tax applied.
722
+ attr_accessor :type
723
+
724
+ def initialize(amount: nil, rate: nil, type: nil)
725
+ @amount = amount
726
+ @rate = rate
727
+ @type = type
728
+ end
729
+ end
730
+ # Indicates if the transaction is tax exempt.
731
+ attr_accessor :tax_exempt_indicator
732
+ # Array of tax details.
733
+ attr_accessor :taxes
734
+
735
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
736
+ @tax_exempt_indicator = tax_exempt_indicator
737
+ @taxes = taxes
738
+ end
739
+ end
740
+ # Total amount in cents.
741
+ attr_accessor :amount
742
+ # Currency of the amount.
743
+ attr_accessor :currency
744
+ # Discount details for the rental.
745
+ attr_accessor :discounts
746
+ # Additional charges for the rental.
747
+ attr_accessor :extra_charges
748
+ # Rate per unit for the rental.
749
+ attr_accessor :rate_per_unit
750
+ # Unit of measurement for the rate.
751
+ attr_accessor :rate_unit
752
+ # Tax breakdown for the rental.
753
+ attr_accessor :tax
754
+
755
+ def initialize(
756
+ amount: nil,
757
+ currency: nil,
758
+ discounts: nil,
759
+ extra_charges: nil,
760
+ rate_per_unit: nil,
761
+ rate_unit: nil,
762
+ tax: nil
763
+ )
764
+ @amount = amount
765
+ @currency = currency
766
+ @discounts = discounts
767
+ @extra_charges = extra_charges
768
+ @rate_per_unit = rate_per_unit
769
+ @rate_unit = rate_unit
770
+ @tax = tax
771
+ end
772
+ end
773
+
774
+ class Vehicle < ::Stripe::RequestParams
775
+ # Make of the rental vehicle.
776
+ attr_accessor :make
777
+ # Model of the rental vehicle.
778
+ attr_accessor :model
779
+ # Odometer reading at the time of rental.
780
+ attr_accessor :odometer
781
+ # Type of the rental vehicle.
782
+ attr_accessor :type
783
+ # Class of the rental vehicle.
784
+ attr_accessor :vehicle_class
785
+ # Vehicle identification number (VIN).
786
+ attr_accessor :vehicle_identification_number
787
+
788
+ def initialize(
789
+ make: nil,
790
+ model: nil,
791
+ odometer: nil,
792
+ type: nil,
793
+ vehicle_class: nil,
794
+ vehicle_identification_number: nil
795
+ )
796
+ @make = make
797
+ @model = model
798
+ @odometer = odometer
799
+ @type = type
800
+ @vehicle_class = vehicle_class
801
+ @vehicle_identification_number = vehicle_identification_number
802
+ end
803
+ end
804
+ # Affiliate (such as travel agency) details for the rental.
805
+ attr_accessor :affiliate
806
+ # Booking confirmation number for the car rental.
807
+ attr_accessor :booking_number
808
+ # Name of the car rental company.
809
+ attr_accessor :carrier_name
810
+ # Customer service phone number for the car rental company.
811
+ attr_accessor :customer_service_phone_number
812
+ # Number of days the car is being rented.
813
+ attr_accessor :days_rented
814
+ # Distance details for the rental.
815
+ attr_accessor :distance
816
+ # List of drivers for the rental.
817
+ attr_accessor :drivers
818
+ # Drop-off location details.
819
+ attr_accessor :drop_off
820
+ # Insurance details for the rental.
821
+ attr_accessor :insurances
822
+ # Indicates if the customer was a no-show.
823
+ attr_accessor :no_show_indicator
824
+ # Pickup location details.
825
+ attr_accessor :pickup
826
+ # Name of the person renting the vehicle.
827
+ attr_accessor :renter_name
828
+ # Total cost breakdown for the rental.
829
+ attr_accessor :total
830
+ # Vehicle details for the rental.
831
+ attr_accessor :vehicle
832
+
833
+ def initialize(
834
+ affiliate: nil,
835
+ booking_number: nil,
836
+ carrier_name: nil,
837
+ customer_service_phone_number: nil,
838
+ days_rented: nil,
839
+ distance: nil,
840
+ drivers: nil,
841
+ drop_off: nil,
842
+ insurances: nil,
843
+ no_show_indicator: nil,
844
+ pickup: nil,
845
+ renter_name: nil,
846
+ total: nil,
847
+ vehicle: nil
848
+ )
849
+ @affiliate = affiliate
850
+ @booking_number = booking_number
851
+ @carrier_name = carrier_name
852
+ @customer_service_phone_number = customer_service_phone_number
853
+ @days_rented = days_rented
854
+ @distance = distance
855
+ @drivers = drivers
856
+ @drop_off = drop_off
857
+ @insurances = insurances
858
+ @no_show_indicator = no_show_indicator
859
+ @pickup = pickup
860
+ @renter_name = renter_name
861
+ @total = total
862
+ @vehicle = vehicle
863
+ end
864
+ end
865
+
498
866
  class EventDetails < ::Stripe::RequestParams
499
867
  class Address < ::Stripe::RequestParams
500
868
  # City, district, suburb, town, or village.
@@ -724,6 +1092,275 @@ module Stripe
724
1092
  end
725
1093
  end
726
1094
 
1095
+ class FlightDatum < ::Stripe::RequestParams
1096
+ class Affiliate < ::Stripe::RequestParams
1097
+ # Affiliate partner code.
1098
+ attr_accessor :code
1099
+ # Name of affiliate partner.
1100
+ attr_accessor :name
1101
+ # Code provided by the company to a travel agent authorizing ticket issuance.
1102
+ attr_accessor :travel_authorization_code
1103
+
1104
+ def initialize(code: nil, name: nil, travel_authorization_code: nil)
1105
+ @code = code
1106
+ @name = name
1107
+ @travel_authorization_code = travel_authorization_code
1108
+ end
1109
+ end
1110
+
1111
+ class Insurance < ::Stripe::RequestParams
1112
+ # Insurance cost.
1113
+ attr_accessor :amount
1114
+ # Insurance currency.
1115
+ attr_accessor :currency
1116
+ # Insurance company name.
1117
+ attr_accessor :insurance_company_name
1118
+ # Type of insurance.
1119
+ attr_accessor :insurance_type
1120
+
1121
+ def initialize(
1122
+ amount: nil,
1123
+ currency: nil,
1124
+ insurance_company_name: nil,
1125
+ insurance_type: nil
1126
+ )
1127
+ @amount = amount
1128
+ @currency = currency
1129
+ @insurance_company_name = insurance_company_name
1130
+ @insurance_type = insurance_type
1131
+ end
1132
+ end
1133
+
1134
+ class Passenger < ::Stripe::RequestParams
1135
+ # Passenger's full name.
1136
+ attr_accessor :name
1137
+
1138
+ def initialize(name: nil)
1139
+ @name = name
1140
+ end
1141
+ end
1142
+
1143
+ class Segment < ::Stripe::RequestParams
1144
+ class Arrival < ::Stripe::RequestParams
1145
+ # Arrival airport IATA code.
1146
+ attr_accessor :airport
1147
+ # Arrival date/time.
1148
+ attr_accessor :arrives_at
1149
+ # Arrival city.
1150
+ attr_accessor :city
1151
+ # Arrival country.
1152
+ attr_accessor :country
1153
+
1154
+ def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1155
+ @airport = airport
1156
+ @arrives_at = arrives_at
1157
+ @city = city
1158
+ @country = country
1159
+ end
1160
+ end
1161
+
1162
+ class Departure < ::Stripe::RequestParams
1163
+ # Departure airport IATA code.
1164
+ attr_accessor :airport
1165
+ # Departure city.
1166
+ attr_accessor :city
1167
+ # Departure country.
1168
+ attr_accessor :country
1169
+ # Departure date/time.
1170
+ attr_accessor :departs_at
1171
+
1172
+ def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1173
+ @airport = airport
1174
+ @city = city
1175
+ @country = country
1176
+ @departs_at = departs_at
1177
+ end
1178
+ end
1179
+ # Segment fare amount.
1180
+ attr_accessor :amount
1181
+ # Arrival details.
1182
+ attr_accessor :arrival
1183
+ # Airline carrier code.
1184
+ attr_accessor :carrier_code
1185
+ # Carrier name.
1186
+ attr_accessor :carrier_name
1187
+ # Segment currency.
1188
+ attr_accessor :currency
1189
+ # Departure details.
1190
+ attr_accessor :departure
1191
+ # Exchange ticket number.
1192
+ attr_accessor :exchange_ticket_number
1193
+ # Fare basis code.
1194
+ attr_accessor :fare_basis_code
1195
+ # Additional fees.
1196
+ attr_accessor :fees
1197
+ # Flight number.
1198
+ attr_accessor :flight_number
1199
+ # Stopover indicator.
1200
+ attr_accessor :is_stop_over_indicator
1201
+ # Refundable ticket indicator.
1202
+ attr_accessor :refundable
1203
+ # Class of service.
1204
+ attr_accessor :service_class
1205
+ # Tax amount for segment.
1206
+ attr_accessor :tax_amount
1207
+ # Ticket number.
1208
+ attr_accessor :ticket_number
1209
+
1210
+ def initialize(
1211
+ amount: nil,
1212
+ arrival: nil,
1213
+ carrier_code: nil,
1214
+ carrier_name: nil,
1215
+ currency: nil,
1216
+ departure: nil,
1217
+ exchange_ticket_number: nil,
1218
+ fare_basis_code: nil,
1219
+ fees: nil,
1220
+ flight_number: nil,
1221
+ is_stop_over_indicator: nil,
1222
+ refundable: nil,
1223
+ service_class: nil,
1224
+ tax_amount: nil,
1225
+ ticket_number: nil
1226
+ )
1227
+ @amount = amount
1228
+ @arrival = arrival
1229
+ @carrier_code = carrier_code
1230
+ @carrier_name = carrier_name
1231
+ @currency = currency
1232
+ @departure = departure
1233
+ @exchange_ticket_number = exchange_ticket_number
1234
+ @fare_basis_code = fare_basis_code
1235
+ @fees = fees
1236
+ @flight_number = flight_number
1237
+ @is_stop_over_indicator = is_stop_over_indicator
1238
+ @refundable = refundable
1239
+ @service_class = service_class
1240
+ @tax_amount = tax_amount
1241
+ @ticket_number = ticket_number
1242
+ end
1243
+ end
1244
+
1245
+ class Total < ::Stripe::RequestParams
1246
+ class Discounts < ::Stripe::RequestParams
1247
+ # Corporate client discount code.
1248
+ attr_accessor :corporate_client_code
1249
+
1250
+ def initialize(corporate_client_code: nil)
1251
+ @corporate_client_code = corporate_client_code
1252
+ end
1253
+ end
1254
+
1255
+ class ExtraCharge < ::Stripe::RequestParams
1256
+ # Amount of additional charges.
1257
+ attr_accessor :amount
1258
+ # Type of additional charges.
1259
+ attr_accessor :type
1260
+
1261
+ def initialize(amount: nil, type: nil)
1262
+ @amount = amount
1263
+ @type = type
1264
+ end
1265
+ end
1266
+
1267
+ class Tax < ::Stripe::RequestParams
1268
+ class Tax < ::Stripe::RequestParams
1269
+ # Tax amount.
1270
+ attr_accessor :amount
1271
+ # Tax rate.
1272
+ attr_accessor :rate
1273
+ # Type of tax.
1274
+ attr_accessor :type
1275
+
1276
+ def initialize(amount: nil, rate: nil, type: nil)
1277
+ @amount = amount
1278
+ @rate = rate
1279
+ @type = type
1280
+ end
1281
+ end
1282
+ # Array of tax details.
1283
+ attr_accessor :taxes
1284
+
1285
+ def initialize(taxes: nil)
1286
+ @taxes = taxes
1287
+ end
1288
+ end
1289
+ # Total flight amount.
1290
+ attr_accessor :amount
1291
+ # Reason for credit.
1292
+ attr_accessor :credit_reason
1293
+ # Total currency.
1294
+ attr_accessor :currency
1295
+ # Discount details.
1296
+ attr_accessor :discounts
1297
+ # Additional charges.
1298
+ attr_accessor :extra_charges
1299
+ # Tax breakdown.
1300
+ attr_accessor :tax
1301
+
1302
+ def initialize(
1303
+ amount: nil,
1304
+ credit_reason: nil,
1305
+ currency: nil,
1306
+ discounts: nil,
1307
+ extra_charges: nil,
1308
+ tax: nil
1309
+ )
1310
+ @amount = amount
1311
+ @credit_reason = credit_reason
1312
+ @currency = currency
1313
+ @discounts = discounts
1314
+ @extra_charges = extra_charges
1315
+ @tax = tax
1316
+ end
1317
+ end
1318
+ # Affiliate details if applicable.
1319
+ attr_accessor :affiliate
1320
+ # Reservation reference.
1321
+ attr_accessor :booking_number
1322
+ # Computerized reservation system used to make the reservation and purchase the ticket.
1323
+ attr_accessor :computerized_reservation_system
1324
+ # Ticket restrictions.
1325
+ attr_accessor :endorsements_and_restrictions
1326
+ # List of insurances.
1327
+ attr_accessor :insurances
1328
+ # List of passengers.
1329
+ attr_accessor :passengers
1330
+ # List of flight segments.
1331
+ attr_accessor :segments
1332
+ # Electronic ticket indicator.
1333
+ attr_accessor :ticket_electronically_issued_indicator
1334
+ # Total cost breakdown.
1335
+ attr_accessor :total
1336
+ # Type of flight transaction.
1337
+ attr_accessor :transaction_type
1338
+
1339
+ def initialize(
1340
+ affiliate: nil,
1341
+ booking_number: nil,
1342
+ computerized_reservation_system: nil,
1343
+ endorsements_and_restrictions: nil,
1344
+ insurances: nil,
1345
+ passengers: nil,
1346
+ segments: nil,
1347
+ ticket_electronically_issued_indicator: nil,
1348
+ total: nil,
1349
+ transaction_type: nil
1350
+ )
1351
+ @affiliate = affiliate
1352
+ @booking_number = booking_number
1353
+ @computerized_reservation_system = computerized_reservation_system
1354
+ @endorsements_and_restrictions = endorsements_and_restrictions
1355
+ @insurances = insurances
1356
+ @passengers = passengers
1357
+ @segments = segments
1358
+ @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1359
+ @total = total
1360
+ @transaction_type = transaction_type
1361
+ end
1362
+ end
1363
+
727
1364
  class Lodging < ::Stripe::RequestParams
728
1365
  class Address < ::Stripe::RequestParams
729
1366
  # City, district, suburb, town, or village.
@@ -756,136 +1393,430 @@ module Stripe
756
1393
  end
757
1394
  end
758
1395
 
759
- class Affiliate < ::Stripe::RequestParams
760
- # The name of the affiliate that originated the purchase.
761
- attr_accessor :name
1396
+ class Affiliate < ::Stripe::RequestParams
1397
+ # The name of the affiliate that originated the purchase.
1398
+ attr_accessor :name
1399
+
1400
+ def initialize(name: nil)
1401
+ @name = name
1402
+ end
1403
+ end
1404
+
1405
+ class Delivery < ::Stripe::RequestParams
1406
+ class Recipient < ::Stripe::RequestParams
1407
+ # The email of the recipient the ticket is delivered to.
1408
+ attr_accessor :email
1409
+ # The name of the recipient the ticket is delivered to.
1410
+ attr_accessor :name
1411
+ # The phone number of the recipient the ticket is delivered to.
1412
+ attr_accessor :phone
1413
+
1414
+ def initialize(email: nil, name: nil, phone: nil)
1415
+ @email = email
1416
+ @name = name
1417
+ @phone = phone
1418
+ end
1419
+ end
1420
+ # The delivery method for the payment
1421
+ attr_accessor :mode
1422
+ # Details of the recipient.
1423
+ attr_accessor :recipient
1424
+
1425
+ def initialize(mode: nil, recipient: nil)
1426
+ @mode = mode
1427
+ @recipient = recipient
1428
+ end
1429
+ end
1430
+
1431
+ class Passenger < ::Stripe::RequestParams
1432
+ # Full name of the person or entity on the lodging reservation.
1433
+ attr_accessor :name
1434
+
1435
+ def initialize(name: nil)
1436
+ @name = name
1437
+ end
1438
+ end
1439
+ # The lodging location's address.
1440
+ attr_accessor :address
1441
+ # The number of adults on the booking
1442
+ attr_accessor :adults
1443
+ # Affiliate details for this purchase.
1444
+ attr_accessor :affiliate
1445
+ # The booking number associated with the lodging reservation.
1446
+ attr_accessor :booking_number
1447
+ # The lodging category
1448
+ attr_accessor :category
1449
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
1450
+ attr_accessor :checkin_at
1451
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
1452
+ attr_accessor :checkout_at
1453
+ # The customer service phone number of the lodging company.
1454
+ attr_accessor :customer_service_phone_number
1455
+ # The daily lodging room rate.
1456
+ attr_accessor :daily_room_rate_amount
1457
+ # Delivery details for this purchase.
1458
+ attr_accessor :delivery
1459
+ # List of additional charges being billed.
1460
+ attr_accessor :extra_charges
1461
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
1462
+ attr_accessor :fire_safety_act_compliance
1463
+ # The name of the lodging location.
1464
+ attr_accessor :name
1465
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1466
+ attr_accessor :no_show
1467
+ # The number of rooms on the booking
1468
+ attr_accessor :number_of_rooms
1469
+ # The details of the passengers in the travel reservation
1470
+ attr_accessor :passengers
1471
+ # The phone number of the lodging location.
1472
+ attr_accessor :property_phone_number
1473
+ # The room class for this purchase.
1474
+ attr_accessor :room_class
1475
+ # The number of room nights
1476
+ attr_accessor :room_nights
1477
+ # The total tax amount associating with the room reservation.
1478
+ attr_accessor :total_room_tax_amount
1479
+ # The total tax amount
1480
+ attr_accessor :total_tax_amount
1481
+
1482
+ def initialize(
1483
+ address: nil,
1484
+ adults: nil,
1485
+ affiliate: nil,
1486
+ booking_number: nil,
1487
+ category: nil,
1488
+ checkin_at: nil,
1489
+ checkout_at: nil,
1490
+ customer_service_phone_number: nil,
1491
+ daily_room_rate_amount: nil,
1492
+ delivery: nil,
1493
+ extra_charges: nil,
1494
+ fire_safety_act_compliance: nil,
1495
+ name: nil,
1496
+ no_show: nil,
1497
+ number_of_rooms: nil,
1498
+ passengers: nil,
1499
+ property_phone_number: nil,
1500
+ room_class: nil,
1501
+ room_nights: nil,
1502
+ total_room_tax_amount: nil,
1503
+ total_tax_amount: nil
1504
+ )
1505
+ @address = address
1506
+ @adults = adults
1507
+ @affiliate = affiliate
1508
+ @booking_number = booking_number
1509
+ @category = category
1510
+ @checkin_at = checkin_at
1511
+ @checkout_at = checkout_at
1512
+ @customer_service_phone_number = customer_service_phone_number
1513
+ @daily_room_rate_amount = daily_room_rate_amount
1514
+ @delivery = delivery
1515
+ @extra_charges = extra_charges
1516
+ @fire_safety_act_compliance = fire_safety_act_compliance
1517
+ @name = name
1518
+ @no_show = no_show
1519
+ @number_of_rooms = number_of_rooms
1520
+ @passengers = passengers
1521
+ @property_phone_number = property_phone_number
1522
+ @room_class = room_class
1523
+ @room_nights = room_nights
1524
+ @total_room_tax_amount = total_room_tax_amount
1525
+ @total_tax_amount = total_tax_amount
1526
+ end
1527
+ end
1528
+
1529
+ class LodgingDatum < ::Stripe::RequestParams
1530
+ class Accommodation < ::Stripe::RequestParams
1531
+ # Type of accommodation.
1532
+ attr_accessor :accommodation_type
1533
+ # Bed type.
1534
+ attr_accessor :bed_type
1535
+ # Daily accommodation rate in cents.
1536
+ attr_accessor :daily_rate_amount
1537
+ # Number of nights.
1538
+ attr_accessor :nights
1539
+ # Number of rooms, cabanas, apartments, and so on.
1540
+ attr_accessor :number_of_rooms
1541
+ # Rate type.
1542
+ attr_accessor :rate_type
1543
+ # Whether smoking is allowed.
1544
+ attr_accessor :smoking_indicator
1545
+
1546
+ def initialize(
1547
+ accommodation_type: nil,
1548
+ bed_type: nil,
1549
+ daily_rate_amount: nil,
1550
+ nights: nil,
1551
+ number_of_rooms: nil,
1552
+ rate_type: nil,
1553
+ smoking_indicator: nil
1554
+ )
1555
+ @accommodation_type = accommodation_type
1556
+ @bed_type = bed_type
1557
+ @daily_rate_amount = daily_rate_amount
1558
+ @nights = nights
1559
+ @number_of_rooms = number_of_rooms
1560
+ @rate_type = rate_type
1561
+ @smoking_indicator = smoking_indicator
1562
+ end
1563
+ end
1564
+
1565
+ class Affiliate < ::Stripe::RequestParams
1566
+ # Affiliate partner code.
1567
+ attr_accessor :code
1568
+ # Affiliate partner name.
1569
+ attr_accessor :name
1570
+
1571
+ def initialize(code: nil, name: nil)
1572
+ @code = code
1573
+ @name = name
1574
+ end
1575
+ end
1576
+
1577
+ class Guest < ::Stripe::RequestParams
1578
+ # Guest's full name.
1579
+ attr_accessor :name
1580
+
1581
+ def initialize(name: nil)
1582
+ @name = name
1583
+ end
1584
+ end
1585
+
1586
+ class Host < ::Stripe::RequestParams
1587
+ class Address < ::Stripe::RequestParams
1588
+ # City, district, suburb, town, or village.
1589
+ attr_accessor :city
1590
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1591
+ attr_accessor :country
1592
+ # Address line 1, such as the street, PO Box, or company name.
1593
+ attr_accessor :line1
1594
+ # Address line 2, such as the apartment, suite, unit, or building.
1595
+ attr_accessor :line2
1596
+ # ZIP or postal code.
1597
+ attr_accessor :postal_code
1598
+ # State, county, province, or region.
1599
+ attr_accessor :state
1600
+
1601
+ def initialize(
1602
+ city: nil,
1603
+ country: nil,
1604
+ line1: nil,
1605
+ line2: nil,
1606
+ postal_code: nil,
1607
+ state: nil
1608
+ )
1609
+ @city = city
1610
+ @country = country
1611
+ @line1 = line1
1612
+ @line2 = line2
1613
+ @postal_code = postal_code
1614
+ @state = state
1615
+ end
1616
+ end
1617
+ # Address of the host.
1618
+ attr_accessor :address
1619
+ # Host's country of domicile.
1620
+ attr_accessor :country_of_domicile
1621
+ # Reference number for the host.
1622
+ attr_accessor :host_reference
1623
+ # Type of host.
1624
+ attr_accessor :host_type
1625
+ # Name of the lodging property or host.
1626
+ attr_accessor :name
1627
+ # Total number of reservations for the host.
1628
+ attr_accessor :number_of_reservations
1629
+ # Property phone number.
1630
+ attr_accessor :property_phone_number
1631
+ # Host's registration date.
1632
+ attr_accessor :registered_at
1633
+
1634
+ def initialize(
1635
+ address: nil,
1636
+ country_of_domicile: nil,
1637
+ host_reference: nil,
1638
+ host_type: nil,
1639
+ name: nil,
1640
+ number_of_reservations: nil,
1641
+ property_phone_number: nil,
1642
+ registered_at: nil
1643
+ )
1644
+ @address = address
1645
+ @country_of_domicile = country_of_domicile
1646
+ @host_reference = host_reference
1647
+ @host_type = host_type
1648
+ @name = name
1649
+ @number_of_reservations = number_of_reservations
1650
+ @property_phone_number = property_phone_number
1651
+ @registered_at = registered_at
1652
+ end
1653
+ end
1654
+
1655
+ class Insurance < ::Stripe::RequestParams
1656
+ # Price of the insurance coverage in cents.
1657
+ attr_accessor :amount
1658
+ # Currency of the insurance amount.
1659
+ attr_accessor :currency
1660
+ # Name of the insurance company.
1661
+ attr_accessor :insurance_company_name
1662
+ # Type of insurance coverage.
1663
+ attr_accessor :insurance_type
1664
+
1665
+ def initialize(
1666
+ amount: nil,
1667
+ currency: nil,
1668
+ insurance_company_name: nil,
1669
+ insurance_type: nil
1670
+ )
1671
+ @amount = amount
1672
+ @currency = currency
1673
+ @insurance_company_name = insurance_company_name
1674
+ @insurance_type = insurance_type
1675
+ end
1676
+ end
1677
+
1678
+ class Total < ::Stripe::RequestParams
1679
+ class Discounts < ::Stripe::RequestParams
1680
+ # Corporate client discount code.
1681
+ attr_accessor :corporate_client_code
1682
+ # Coupon code.
1683
+ attr_accessor :coupon
762
1684
 
763
- def initialize(name: nil)
764
- @name = name
1685
+ def initialize(corporate_client_code: nil, coupon: nil)
1686
+ @corporate_client_code = corporate_client_code
1687
+ @coupon = coupon
1688
+ end
765
1689
  end
766
- end
767
1690
 
768
- class Delivery < ::Stripe::RequestParams
769
- class Recipient < ::Stripe::RequestParams
770
- # The email of the recipient the ticket is delivered to.
771
- attr_accessor :email
772
- # The name of the recipient the ticket is delivered to.
773
- attr_accessor :name
774
- # The phone number of the recipient the ticket is delivered to.
775
- attr_accessor :phone
1691
+ class ExtraCharge < ::Stripe::RequestParams
1692
+ # Amount of the extra charge in cents.
1693
+ attr_accessor :amount
1694
+ # Type of extra charge.
1695
+ attr_accessor :type
776
1696
 
777
- def initialize(email: nil, name: nil, phone: nil)
778
- @email = email
779
- @name = name
780
- @phone = phone
1697
+ def initialize(amount: nil, type: nil)
1698
+ @amount = amount
1699
+ @type = type
781
1700
  end
782
1701
  end
783
- # The delivery method for the payment
784
- attr_accessor :mode
785
- # Details of the recipient.
786
- attr_accessor :recipient
787
1702
 
788
- def initialize(mode: nil, recipient: nil)
789
- @mode = mode
790
- @recipient = recipient
1703
+ class Tax < ::Stripe::RequestParams
1704
+ class Tax < ::Stripe::RequestParams
1705
+ # Tax amount in cents.
1706
+ attr_accessor :amount
1707
+ # Tax rate.
1708
+ attr_accessor :rate
1709
+ # Type of tax applied.
1710
+ attr_accessor :type
1711
+
1712
+ def initialize(amount: nil, rate: nil, type: nil)
1713
+ @amount = amount
1714
+ @rate = rate
1715
+ @type = type
1716
+ end
1717
+ end
1718
+ # Indicates whether the transaction is tax exempt.
1719
+ attr_accessor :tax_exempt_indicator
1720
+ # Tax details.
1721
+ attr_accessor :taxes
1722
+
1723
+ def initialize(tax_exempt_indicator: nil, taxes: nil)
1724
+ @tax_exempt_indicator = tax_exempt_indicator
1725
+ @taxes = taxes
1726
+ end
791
1727
  end
792
- end
793
-
794
- class Passenger < ::Stripe::RequestParams
795
- # Full name of the person or entity on the lodging reservation.
796
- attr_accessor :name
1728
+ # Total price of the lodging reservation in cents.
1729
+ attr_accessor :amount
1730
+ # Cash advances in cents.
1731
+ attr_accessor :cash_advances
1732
+ # Currency of the total amount.
1733
+ attr_accessor :currency
1734
+ # Discount details for the lodging.
1735
+ attr_accessor :discounts
1736
+ # Additional charges for the lodging.
1737
+ attr_accessor :extra_charges
1738
+ # Prepaid amount in cents.
1739
+ attr_accessor :prepaid_amount
1740
+ # Tax breakdown for the lodging reservation.
1741
+ attr_accessor :tax
797
1742
 
798
- def initialize(name: nil)
799
- @name = name
1743
+ def initialize(
1744
+ amount: nil,
1745
+ cash_advances: nil,
1746
+ currency: nil,
1747
+ discounts: nil,
1748
+ extra_charges: nil,
1749
+ prepaid_amount: nil,
1750
+ tax: nil
1751
+ )
1752
+ @amount = amount
1753
+ @cash_advances = cash_advances
1754
+ @currency = currency
1755
+ @discounts = discounts
1756
+ @extra_charges = extra_charges
1757
+ @prepaid_amount = prepaid_amount
1758
+ @tax = tax
800
1759
  end
801
1760
  end
802
- # The lodging location's address.
803
- attr_accessor :address
804
- # The number of adults on the booking
805
- attr_accessor :adults
806
- # Affiliate details for this purchase.
1761
+ # Accommodation details for the lodging.
1762
+ attr_accessor :accommodation
1763
+ # Affiliate details if applicable.
807
1764
  attr_accessor :affiliate
808
- # The booking number associated with the lodging reservation.
1765
+ # Booking confirmation number for the lodging.
809
1766
  attr_accessor :booking_number
810
- # The lodging category
811
- attr_accessor :category
812
- # Lodging check-in time. Measured in seconds since the Unix epoch.
1767
+ # Check-in date.
813
1768
  attr_accessor :checkin_at
814
- # Lodging check-out time. Measured in seconds since the Unix epoch.
1769
+ # Check-out date.
815
1770
  attr_accessor :checkout_at
816
- # The customer service phone number of the lodging company.
1771
+ # Customer service phone number for the lodging company.
817
1772
  attr_accessor :customer_service_phone_number
818
- # The daily lodging room rate.
819
- attr_accessor :daily_room_rate_amount
820
- # Delivery details for this purchase.
821
- attr_accessor :delivery
822
- # List of additional charges being billed.
823
- attr_accessor :extra_charges
824
- # Indicates whether the lodging location is compliant with the Fire Safety Act.
825
- attr_accessor :fire_safety_act_compliance
826
- # The name of the lodging location.
827
- attr_accessor :name
828
- # Indicates if the customer did not keep their booking while failing to cancel the reservation.
829
- attr_accessor :no_show
830
- # The number of rooms on the booking
831
- attr_accessor :number_of_rooms
832
- # The details of the passengers in the travel reservation
833
- attr_accessor :passengers
834
- # The phone number of the lodging location.
835
- attr_accessor :property_phone_number
836
- # The room class for this purchase.
837
- attr_accessor :room_class
838
- # The number of room nights
839
- attr_accessor :room_nights
840
- # The total tax amount associating with the room reservation.
841
- attr_accessor :total_room_tax_amount
842
- # The total tax amount
843
- attr_accessor :total_tax_amount
1773
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1774
+ attr_accessor :fire_safety_act_compliance_indicator
1775
+ # List of guests for the lodging.
1776
+ attr_accessor :guests
1777
+ # Host details for the lodging.
1778
+ attr_accessor :host
1779
+ # List of insurances for the lodging.
1780
+ attr_accessor :insurances
1781
+ # Whether the renter is a no-show.
1782
+ attr_accessor :no_show_indicator
1783
+ # Renter ID number for the lodging.
1784
+ attr_accessor :renter_id_number
1785
+ # Renter name for the lodging.
1786
+ attr_accessor :renter_name
1787
+ # Total details for the lodging.
1788
+ attr_accessor :total
844
1789
 
845
1790
  def initialize(
846
- address: nil,
847
- adults: nil,
1791
+ accommodation: nil,
848
1792
  affiliate: nil,
849
1793
  booking_number: nil,
850
- category: nil,
851
1794
  checkin_at: nil,
852
1795
  checkout_at: nil,
853
1796
  customer_service_phone_number: nil,
854
- daily_room_rate_amount: nil,
855
- delivery: nil,
856
- extra_charges: nil,
857
- fire_safety_act_compliance: nil,
858
- name: nil,
859
- no_show: nil,
860
- number_of_rooms: nil,
861
- passengers: nil,
862
- property_phone_number: nil,
863
- room_class: nil,
864
- room_nights: nil,
865
- total_room_tax_amount: nil,
866
- total_tax_amount: nil
1797
+ fire_safety_act_compliance_indicator: nil,
1798
+ guests: nil,
1799
+ host: nil,
1800
+ insurances: nil,
1801
+ no_show_indicator: nil,
1802
+ renter_id_number: nil,
1803
+ renter_name: nil,
1804
+ total: nil
867
1805
  )
868
- @address = address
869
- @adults = adults
1806
+ @accommodation = accommodation
870
1807
  @affiliate = affiliate
871
1808
  @booking_number = booking_number
872
- @category = category
873
1809
  @checkin_at = checkin_at
874
1810
  @checkout_at = checkout_at
875
1811
  @customer_service_phone_number = customer_service_phone_number
876
- @daily_room_rate_amount = daily_room_rate_amount
877
- @delivery = delivery
878
- @extra_charges = extra_charges
879
- @fire_safety_act_compliance = fire_safety_act_compliance
880
- @name = name
881
- @no_show = no_show
882
- @number_of_rooms = number_of_rooms
883
- @passengers = passengers
884
- @property_phone_number = property_phone_number
885
- @room_class = room_class
886
- @room_nights = room_nights
887
- @total_room_tax_amount = total_room_tax_amount
888
- @total_tax_amount = total_tax_amount
1812
+ @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1813
+ @guests = guests
1814
+ @host = host
1815
+ @insurances = insurances
1816
+ @no_show_indicator = no_show_indicator
1817
+ @renter_id_number = renter_id_number
1818
+ @renter_name = renter_name
1819
+ @total = total
889
1820
  end
890
1821
  end
891
1822
 
@@ -943,15 +1874,27 @@ module Stripe
943
1874
  attr_accessor :benefit
944
1875
  # Car rental details for this PaymentIntent.
945
1876
  attr_accessor :car_rental
946
- # 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.
1877
+ # Car rental data for this PaymentIntent.
1878
+ attr_accessor :car_rental_data
1879
+ # A unique value to identify the customer. This field is available only for card payments.
1880
+ #
1881
+ # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
947
1882
  attr_accessor :customer_reference
948
1883
  # Event details for this PaymentIntent
949
1884
  attr_accessor :event_details
950
1885
  # Flight reservation details for this PaymentIntent
951
1886
  attr_accessor :flight
1887
+ # Flight data for this PaymentIntent.
1888
+ attr_accessor :flight_data
952
1889
  # Lodging reservation details for this PaymentIntent
953
1890
  attr_accessor :lodging
954
- # A unique value assigned by the business to identify the transaction.
1891
+ # Lodging data for this PaymentIntent.
1892
+ attr_accessor :lodging_data
1893
+ # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1894
+ #
1895
+ # 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`.
1896
+ #
1897
+ # 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.
955
1898
  attr_accessor :order_reference
956
1899
  # Subscription details for this PaymentIntent
957
1900
  attr_accessor :subscription
@@ -959,19 +1902,25 @@ module Stripe
959
1902
  def initialize(
960
1903
  benefit: nil,
961
1904
  car_rental: nil,
1905
+ car_rental_data: nil,
962
1906
  customer_reference: nil,
963
1907
  event_details: nil,
964
1908
  flight: nil,
1909
+ flight_data: nil,
965
1910
  lodging: nil,
1911
+ lodging_data: nil,
966
1912
  order_reference: nil,
967
1913
  subscription: nil
968
1914
  )
969
1915
  @benefit = benefit
970
1916
  @car_rental = car_rental
1917
+ @car_rental_data = car_rental_data
971
1918
  @customer_reference = customer_reference
972
1919
  @event_details = event_details
973
1920
  @flight = flight
1921
+ @flight_data = flight_data
974
1922
  @lodging = lodging
1923
+ @lodging_data = lodging_data
975
1924
  @order_reference = order_reference
976
1925
  @subscription = subscription
977
1926
  end
@@ -2183,6 +3132,12 @@ module Stripe
2183
3132
  @requested_priority = requested_priority
2184
3133
  end
2185
3134
  end
3135
+ # Controls when the funds are captured from the customer's account.
3136
+ #
3137
+ # 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.
3138
+ #
3139
+ # 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.
3140
+ attr_accessor :capture_method
2186
3141
  # Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
2187
3142
  attr_accessor :request_extended_authorization
2188
3143
  # 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.
@@ -2191,10 +3146,12 @@ module Stripe
2191
3146
  attr_accessor :routing
2192
3147
 
2193
3148
  def initialize(
3149
+ capture_method: nil,
2194
3150
  request_extended_authorization: nil,
2195
3151
  request_incremental_authorization_support: nil,
2196
3152
  routing: nil
2197
3153
  )
3154
+ @capture_method = capture_method
2198
3155
  @request_extended_authorization = request_extended_authorization
2199
3156
  @request_incremental_authorization_support = request_incremental_authorization_support
2200
3157
  @routing = routing
@@ -2503,6 +3460,939 @@ module Stripe
2503
3460
  @reference = reference
2504
3461
  end
2505
3462
  end
3463
+
3464
+ class SupplementaryPurchaseData < ::Stripe::RequestParams
3465
+ class BusReservationDetail < ::Stripe::RequestParams
3466
+ class Arrival < ::Stripe::RequestParams
3467
+ class Address < ::Stripe::RequestParams
3468
+ # The city or town.
3469
+ attr_accessor :city
3470
+ # The country in ISO 3166-1 alpha-2 format.
3471
+ attr_accessor :country
3472
+ # The postal code formatted according to country.
3473
+ attr_accessor :postal_code
3474
+ # The state, county, province, or region formatted according to country.
3475
+ attr_accessor :region
3476
+ # Line 1 of the street address.
3477
+ attr_accessor :street_address
3478
+ # Line 2 of the street address.
3479
+ attr_accessor :street_address2
3480
+
3481
+ def initialize(
3482
+ city: nil,
3483
+ country: nil,
3484
+ postal_code: nil,
3485
+ region: nil,
3486
+ street_address: nil,
3487
+ street_address2: nil
3488
+ )
3489
+ @city = city
3490
+ @country = country
3491
+ @postal_code = postal_code
3492
+ @region = region
3493
+ @street_address = street_address
3494
+ @street_address2 = street_address2
3495
+ end
3496
+ end
3497
+ # Address of the arrival location.
3498
+ attr_accessor :address
3499
+ # Identifier name or reference for the arrival location.
3500
+ attr_accessor :arrival_location
3501
+
3502
+ def initialize(address: nil, arrival_location: nil)
3503
+ @address = address
3504
+ @arrival_location = arrival_location
3505
+ end
3506
+ end
3507
+
3508
+ class Departure < ::Stripe::RequestParams
3509
+ class Address < ::Stripe::RequestParams
3510
+ # The city or town.
3511
+ attr_accessor :city
3512
+ # The country in ISO 3166-1 alpha-2 format.
3513
+ attr_accessor :country
3514
+ # The postal code formatted according to country.
3515
+ attr_accessor :postal_code
3516
+ # The state, county, province, or region formatted according to country.
3517
+ attr_accessor :region
3518
+ # Line 1 of the street address.
3519
+ attr_accessor :street_address
3520
+ # Line 2 of the street address.
3521
+ attr_accessor :street_address2
3522
+
3523
+ def initialize(
3524
+ city: nil,
3525
+ country: nil,
3526
+ postal_code: nil,
3527
+ region: nil,
3528
+ street_address: nil,
3529
+ street_address2: nil
3530
+ )
3531
+ @city = city
3532
+ @country = country
3533
+ @postal_code = postal_code
3534
+ @region = region
3535
+ @street_address = street_address
3536
+ @street_address2 = street_address2
3537
+ end
3538
+ end
3539
+ # Address of the departure location.
3540
+ attr_accessor :address
3541
+ # Timestamp of departure.
3542
+ attr_accessor :departs_at
3543
+ # Identifier name or reference for the origin location.
3544
+ attr_accessor :departure_location
3545
+
3546
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3547
+ @address = address
3548
+ @departs_at = departs_at
3549
+ @departure_location = departure_location
3550
+ end
3551
+ end
3552
+
3553
+ class Insurance < ::Stripe::RequestParams
3554
+ # Insurance currency.
3555
+ attr_accessor :currency
3556
+ # Name of the company providing the insurance.
3557
+ attr_accessor :insurance_company_name
3558
+ # Type of insurance.
3559
+ attr_accessor :insurance_type
3560
+ # Price of insurance in cents.
3561
+ attr_accessor :price
3562
+
3563
+ def initialize(
3564
+ currency: nil,
3565
+ insurance_company_name: nil,
3566
+ insurance_type: nil,
3567
+ price: nil
3568
+ )
3569
+ @currency = currency
3570
+ @insurance_company_name = insurance_company_name
3571
+ @insurance_type = insurance_type
3572
+ @price = price
3573
+ end
3574
+ end
3575
+
3576
+ class Passenger < ::Stripe::RequestParams
3577
+ # The family name of the person.
3578
+ attr_accessor :family_name
3579
+ # The given name of the person.
3580
+ attr_accessor :given_name
3581
+
3582
+ def initialize(family_name: nil, given_name: nil)
3583
+ @family_name = family_name
3584
+ @given_name = given_name
3585
+ end
3586
+ end
3587
+ # Name of associated or partner company for the service.
3588
+ attr_accessor :affiliate_name
3589
+ # Arrival details.
3590
+ attr_accessor :arrival
3591
+ # Name of transportation company.
3592
+ attr_accessor :carrier_name
3593
+ # Currency.
3594
+ attr_accessor :currency
3595
+ # Departure details.
3596
+ attr_accessor :departure
3597
+ # List of insurances for this reservation.
3598
+ attr_accessor :insurances
3599
+ # List of passengers that this reservation applies to.
3600
+ attr_accessor :passengers
3601
+ # Price in cents.
3602
+ attr_accessor :price
3603
+ # Ticket class.
3604
+ attr_accessor :ticket_class
3605
+
3606
+ def initialize(
3607
+ affiliate_name: nil,
3608
+ arrival: nil,
3609
+ carrier_name: nil,
3610
+ currency: nil,
3611
+ departure: nil,
3612
+ insurances: nil,
3613
+ passengers: nil,
3614
+ price: nil,
3615
+ ticket_class: nil
3616
+ )
3617
+ @affiliate_name = affiliate_name
3618
+ @arrival = arrival
3619
+ @carrier_name = carrier_name
3620
+ @currency = currency
3621
+ @departure = departure
3622
+ @insurances = insurances
3623
+ @passengers = passengers
3624
+ @price = price
3625
+ @ticket_class = ticket_class
3626
+ end
3627
+ end
3628
+
3629
+ class EventReservationDetail < ::Stripe::RequestParams
3630
+ class Address < ::Stripe::RequestParams
3631
+ # The city or town.
3632
+ attr_accessor :city
3633
+ # The country in ISO 3166-1 alpha-2 format.
3634
+ attr_accessor :country
3635
+ # The postal code formatted according to country.
3636
+ attr_accessor :postal_code
3637
+ # The state, county, province, or region formatted according to country.
3638
+ attr_accessor :region
3639
+ # Line 1 of the street address.
3640
+ attr_accessor :street_address
3641
+ # Line 2 of the street address.
3642
+ attr_accessor :street_address2
3643
+
3644
+ def initialize(
3645
+ city: nil,
3646
+ country: nil,
3647
+ postal_code: nil,
3648
+ region: nil,
3649
+ street_address: nil,
3650
+ street_address2: nil
3651
+ )
3652
+ @city = city
3653
+ @country = country
3654
+ @postal_code = postal_code
3655
+ @region = region
3656
+ @street_address = street_address
3657
+ @street_address2 = street_address2
3658
+ end
3659
+ end
3660
+
3661
+ class Insurance < ::Stripe::RequestParams
3662
+ # Insurance currency.
3663
+ attr_accessor :currency
3664
+ # Name of the company providing the insurance.
3665
+ attr_accessor :insurance_company_name
3666
+ # Type of insurance.
3667
+ attr_accessor :insurance_type
3668
+ # Price of insurance in cents.
3669
+ attr_accessor :price
3670
+
3671
+ def initialize(
3672
+ currency: nil,
3673
+ insurance_company_name: nil,
3674
+ insurance_type: nil,
3675
+ price: nil
3676
+ )
3677
+ @currency = currency
3678
+ @insurance_company_name = insurance_company_name
3679
+ @insurance_type = insurance_type
3680
+ @price = price
3681
+ end
3682
+ end
3683
+ # Indicates if the tickets are digitally checked when entering the venue.
3684
+ attr_accessor :access_controlled_venue
3685
+ # Address of the event.
3686
+ attr_accessor :address
3687
+ # Name of associated or partner company for the service.
3688
+ attr_accessor :affiliate_name
3689
+ # End timestamp of the event.
3690
+ attr_accessor :ends_at
3691
+ # Company selling the ticket.
3692
+ attr_accessor :event_company_name
3693
+ # Name of the event.
3694
+ attr_accessor :event_name
3695
+ # Type of the event.
3696
+ attr_accessor :event_type
3697
+ # List of insurances for this event.
3698
+ attr_accessor :insurances
3699
+ # Start timestamp of the event.
3700
+ attr_accessor :starts_at
3701
+ # Name of the venue where the event takes place.
3702
+ attr_accessor :venue_name
3703
+
3704
+ def initialize(
3705
+ access_controlled_venue: nil,
3706
+ address: nil,
3707
+ affiliate_name: nil,
3708
+ ends_at: nil,
3709
+ event_company_name: nil,
3710
+ event_name: nil,
3711
+ event_type: nil,
3712
+ insurances: nil,
3713
+ starts_at: nil,
3714
+ venue_name: nil
3715
+ )
3716
+ @access_controlled_venue = access_controlled_venue
3717
+ @address = address
3718
+ @affiliate_name = affiliate_name
3719
+ @ends_at = ends_at
3720
+ @event_company_name = event_company_name
3721
+ @event_name = event_name
3722
+ @event_type = event_type
3723
+ @insurances = insurances
3724
+ @starts_at = starts_at
3725
+ @venue_name = venue_name
3726
+ end
3727
+ end
3728
+
3729
+ class FerryReservationDetail < ::Stripe::RequestParams
3730
+ class Arrival < ::Stripe::RequestParams
3731
+ class Address < ::Stripe::RequestParams
3732
+ # The city or town.
3733
+ attr_accessor :city
3734
+ # The country in ISO 3166-1 alpha-2 format.
3735
+ attr_accessor :country
3736
+ # The postal code formatted according to country.
3737
+ attr_accessor :postal_code
3738
+ # The state, county, province, or region formatted according to country.
3739
+ attr_accessor :region
3740
+ # Line 1 of the street address.
3741
+ attr_accessor :street_address
3742
+ # Line 2 of the street address.
3743
+ attr_accessor :street_address2
3744
+
3745
+ def initialize(
3746
+ city: nil,
3747
+ country: nil,
3748
+ postal_code: nil,
3749
+ region: nil,
3750
+ street_address: nil,
3751
+ street_address2: nil
3752
+ )
3753
+ @city = city
3754
+ @country = country
3755
+ @postal_code = postal_code
3756
+ @region = region
3757
+ @street_address = street_address
3758
+ @street_address2 = street_address2
3759
+ end
3760
+ end
3761
+ # Address of the arrival location.
3762
+ attr_accessor :address
3763
+ # Identifier name or reference for the arrival location.
3764
+ attr_accessor :arrival_location
3765
+
3766
+ def initialize(address: nil, arrival_location: nil)
3767
+ @address = address
3768
+ @arrival_location = arrival_location
3769
+ end
3770
+ end
3771
+
3772
+ class Departure < ::Stripe::RequestParams
3773
+ class Address < ::Stripe::RequestParams
3774
+ # The city or town.
3775
+ attr_accessor :city
3776
+ # The country in ISO 3166-1 alpha-2 format.
3777
+ attr_accessor :country
3778
+ # The postal code formatted according to country.
3779
+ attr_accessor :postal_code
3780
+ # The state, county, province, or region formatted according to country.
3781
+ attr_accessor :region
3782
+ # Line 1 of the street address.
3783
+ attr_accessor :street_address
3784
+ # Line 2 of the street address.
3785
+ attr_accessor :street_address2
3786
+
3787
+ def initialize(
3788
+ city: nil,
3789
+ country: nil,
3790
+ postal_code: nil,
3791
+ region: nil,
3792
+ street_address: nil,
3793
+ street_address2: nil
3794
+ )
3795
+ @city = city
3796
+ @country = country
3797
+ @postal_code = postal_code
3798
+ @region = region
3799
+ @street_address = street_address
3800
+ @street_address2 = street_address2
3801
+ end
3802
+ end
3803
+ # Address of the departure location.
3804
+ attr_accessor :address
3805
+ # Timestamp of departure.
3806
+ attr_accessor :departs_at
3807
+ # Identifier name or reference for the origin location.
3808
+ attr_accessor :departure_location
3809
+
3810
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
3811
+ @address = address
3812
+ @departs_at = departs_at
3813
+ @departure_location = departure_location
3814
+ end
3815
+ end
3816
+
3817
+ class Insurance < ::Stripe::RequestParams
3818
+ # Insurance currency.
3819
+ attr_accessor :currency
3820
+ # Name of the company providing the insurance.
3821
+ attr_accessor :insurance_company_name
3822
+ # Type of insurance.
3823
+ attr_accessor :insurance_type
3824
+ # Price of insurance in cents.
3825
+ attr_accessor :price
3826
+
3827
+ def initialize(
3828
+ currency: nil,
3829
+ insurance_company_name: nil,
3830
+ insurance_type: nil,
3831
+ price: nil
3832
+ )
3833
+ @currency = currency
3834
+ @insurance_company_name = insurance_company_name
3835
+ @insurance_type = insurance_type
3836
+ @price = price
3837
+ end
3838
+ end
3839
+
3840
+ class Passenger < ::Stripe::RequestParams
3841
+ # The family name of the person.
3842
+ attr_accessor :family_name
3843
+ # The given name of the person.
3844
+ attr_accessor :given_name
3845
+
3846
+ def initialize(family_name: nil, given_name: nil)
3847
+ @family_name = family_name
3848
+ @given_name = given_name
3849
+ end
3850
+ end
3851
+ # Name of associated or partner company for the service.
3852
+ attr_accessor :affiliate_name
3853
+ # Arrival details.
3854
+ attr_accessor :arrival
3855
+ # Name of transportation company.
3856
+ attr_accessor :carrier_name
3857
+ # Currency.
3858
+ attr_accessor :currency
3859
+ # Departure details.
3860
+ attr_accessor :departure
3861
+ # List of insurances for this reservation.
3862
+ attr_accessor :insurances
3863
+ # List of passengers that this reservation applies to.
3864
+ attr_accessor :passengers
3865
+ # Price in cents.
3866
+ attr_accessor :price
3867
+ # Ticket class.
3868
+ attr_accessor :ticket_class
3869
+
3870
+ def initialize(
3871
+ affiliate_name: nil,
3872
+ arrival: nil,
3873
+ carrier_name: nil,
3874
+ currency: nil,
3875
+ departure: nil,
3876
+ insurances: nil,
3877
+ passengers: nil,
3878
+ price: nil,
3879
+ ticket_class: nil
3880
+ )
3881
+ @affiliate_name = affiliate_name
3882
+ @arrival = arrival
3883
+ @carrier_name = carrier_name
3884
+ @currency = currency
3885
+ @departure = departure
3886
+ @insurances = insurances
3887
+ @passengers = passengers
3888
+ @price = price
3889
+ @ticket_class = ticket_class
3890
+ end
3891
+ end
3892
+
3893
+ class Insurance < ::Stripe::RequestParams
3894
+ # Insurance currency.
3895
+ attr_accessor :currency
3896
+ # Name of the company providing the insurance.
3897
+ attr_accessor :insurance_company_name
3898
+ # Type of insurance
3899
+ attr_accessor :insurance_type
3900
+ # Price of insurance in cents.
3901
+ attr_accessor :price
3902
+
3903
+ def initialize(
3904
+ currency: nil,
3905
+ insurance_company_name: nil,
3906
+ insurance_type: nil,
3907
+ price: nil
3908
+ )
3909
+ @currency = currency
3910
+ @insurance_company_name = insurance_company_name
3911
+ @insurance_type = insurance_type
3912
+ @price = price
3913
+ end
3914
+ end
3915
+
3916
+ class MarketplaceSeller < ::Stripe::RequestParams
3917
+ class MarketplaceSellerAddress < ::Stripe::RequestParams
3918
+ # The city or town.
3919
+ attr_accessor :city
3920
+ # The country in ISO 3166-1 alpha-2 format.
3921
+ attr_accessor :country
3922
+ # The postal code formatted according to country.
3923
+ attr_accessor :postal_code
3924
+ # The state, county, province, or region formatted according to country.
3925
+ attr_accessor :region
3926
+ # Line 1 of the street address.
3927
+ attr_accessor :street_address
3928
+ # Line 2 of the street address.
3929
+ attr_accessor :street_address2
3930
+
3931
+ def initialize(
3932
+ city: nil,
3933
+ country: nil,
3934
+ postal_code: nil,
3935
+ region: nil,
3936
+ street_address: nil,
3937
+ street_address2: nil
3938
+ )
3939
+ @city = city
3940
+ @country = country
3941
+ @postal_code = postal_code
3942
+ @region = region
3943
+ @street_address = street_address
3944
+ @street_address2 = street_address2
3945
+ end
3946
+ end
3947
+ # The references to line items for purchases with multiple associated sub-sellers.
3948
+ attr_accessor :line_item_references
3949
+ # The address of the selling or delivering merchant.
3950
+ attr_accessor :marketplace_seller_address
3951
+ # The name of the marketplace seller.
3952
+ attr_accessor :marketplace_seller_name
3953
+ # The unique identifier for the marketplace seller.
3954
+ attr_accessor :marketplace_seller_reference
3955
+ # The number of transactions the sub-seller completed in the last 12 months.
3956
+ attr_accessor :number_of_transactions
3957
+ # The category of the product.
3958
+ attr_accessor :product_category
3959
+ # The date when the seller's account with the marketplace was last logged in.
3960
+ attr_accessor :seller_last_login_at
3961
+ # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3962
+ attr_accessor :seller_rating
3963
+ # The date when the seller's account with the marketplace was created.
3964
+ attr_accessor :seller_registered_at
3965
+ # The date when the seller's account with the marketplace was last updated.
3966
+ attr_accessor :seller_updated_at
3967
+ # The references to shipping addresses for purchases with multiple associated sub-sellers.
3968
+ attr_accessor :shipping_references
3969
+ # 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.
3970
+ attr_accessor :volume_of_transactions
3971
+
3972
+ def initialize(
3973
+ line_item_references: nil,
3974
+ marketplace_seller_address: nil,
3975
+ marketplace_seller_name: nil,
3976
+ marketplace_seller_reference: nil,
3977
+ number_of_transactions: nil,
3978
+ product_category: nil,
3979
+ seller_last_login_at: nil,
3980
+ seller_rating: nil,
3981
+ seller_registered_at: nil,
3982
+ seller_updated_at: nil,
3983
+ shipping_references: nil,
3984
+ volume_of_transactions: nil
3985
+ )
3986
+ @line_item_references = line_item_references
3987
+ @marketplace_seller_address = marketplace_seller_address
3988
+ @marketplace_seller_name = marketplace_seller_name
3989
+ @marketplace_seller_reference = marketplace_seller_reference
3990
+ @number_of_transactions = number_of_transactions
3991
+ @product_category = product_category
3992
+ @seller_last_login_at = seller_last_login_at
3993
+ @seller_rating = seller_rating
3994
+ @seller_registered_at = seller_registered_at
3995
+ @seller_updated_at = seller_updated_at
3996
+ @shipping_references = shipping_references
3997
+ @volume_of_transactions = volume_of_transactions
3998
+ end
3999
+ end
4000
+
4001
+ class RoundTripReservationDetail < ::Stripe::RequestParams
4002
+ class Arrival < ::Stripe::RequestParams
4003
+ class Address < ::Stripe::RequestParams
4004
+ # The city or town.
4005
+ attr_accessor :city
4006
+ # The country in ISO 3166-1 alpha-2 format.
4007
+ attr_accessor :country
4008
+ # The postal code formatted according to country.
4009
+ attr_accessor :postal_code
4010
+ # The state, county, province, or region formatted according to country.
4011
+ attr_accessor :region
4012
+ # Line 1 of the street address.
4013
+ attr_accessor :street_address
4014
+ # Line 2 of the street address.
4015
+ attr_accessor :street_address2
4016
+
4017
+ def initialize(
4018
+ city: nil,
4019
+ country: nil,
4020
+ postal_code: nil,
4021
+ region: nil,
4022
+ street_address: nil,
4023
+ street_address2: nil
4024
+ )
4025
+ @city = city
4026
+ @country = country
4027
+ @postal_code = postal_code
4028
+ @region = region
4029
+ @street_address = street_address
4030
+ @street_address2 = street_address2
4031
+ end
4032
+ end
4033
+ # Address of the arrival location.
4034
+ attr_accessor :address
4035
+ # Identifier name or reference for the arrival location.
4036
+ attr_accessor :arrival_location
4037
+
4038
+ def initialize(address: nil, arrival_location: nil)
4039
+ @address = address
4040
+ @arrival_location = arrival_location
4041
+ end
4042
+ end
4043
+
4044
+ class Departure < ::Stripe::RequestParams
4045
+ class Address < ::Stripe::RequestParams
4046
+ # The city or town.
4047
+ attr_accessor :city
4048
+ # The country in ISO 3166-1 alpha-2 format.
4049
+ attr_accessor :country
4050
+ # The postal code formatted according to country.
4051
+ attr_accessor :postal_code
4052
+ # The state, county, province, or region formatted according to country.
4053
+ attr_accessor :region
4054
+ # Line 1 of the street address.
4055
+ attr_accessor :street_address
4056
+ # Line 2 of the street address.
4057
+ attr_accessor :street_address2
4058
+
4059
+ def initialize(
4060
+ city: nil,
4061
+ country: nil,
4062
+ postal_code: nil,
4063
+ region: nil,
4064
+ street_address: nil,
4065
+ street_address2: nil
4066
+ )
4067
+ @city = city
4068
+ @country = country
4069
+ @postal_code = postal_code
4070
+ @region = region
4071
+ @street_address = street_address
4072
+ @street_address2 = street_address2
4073
+ end
4074
+ end
4075
+ # Address of the departure location.
4076
+ attr_accessor :address
4077
+ # Timestamp of departure.
4078
+ attr_accessor :departs_at
4079
+ # Identifier name or reference for the origin location.
4080
+ attr_accessor :departure_location
4081
+
4082
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4083
+ @address = address
4084
+ @departs_at = departs_at
4085
+ @departure_location = departure_location
4086
+ end
4087
+ end
4088
+
4089
+ class Insurance < ::Stripe::RequestParams
4090
+ # Insurance currency.
4091
+ attr_accessor :currency
4092
+ # Name of the company providing the insurance.
4093
+ attr_accessor :insurance_company_name
4094
+ # Type of insurance.
4095
+ attr_accessor :insurance_type
4096
+ # Price of insurance in cents.
4097
+ attr_accessor :price
4098
+
4099
+ def initialize(
4100
+ currency: nil,
4101
+ insurance_company_name: nil,
4102
+ insurance_type: nil,
4103
+ price: nil
4104
+ )
4105
+ @currency = currency
4106
+ @insurance_company_name = insurance_company_name
4107
+ @insurance_type = insurance_type
4108
+ @price = price
4109
+ end
4110
+ end
4111
+
4112
+ class Passenger < ::Stripe::RequestParams
4113
+ # The family name of the person.
4114
+ attr_accessor :family_name
4115
+ # The given name of the person.
4116
+ attr_accessor :given_name
4117
+
4118
+ def initialize(family_name: nil, given_name: nil)
4119
+ @family_name = family_name
4120
+ @given_name = given_name
4121
+ end
4122
+ end
4123
+ # Name of associated or partner company for the service.
4124
+ attr_accessor :affiliate_name
4125
+ # Arrival details.
4126
+ attr_accessor :arrival
4127
+ # Name of transportation company.
4128
+ attr_accessor :carrier_name
4129
+ # Currency.
4130
+ attr_accessor :currency
4131
+ # Departure details.
4132
+ attr_accessor :departure
4133
+ # List of insurances for this reservation.
4134
+ attr_accessor :insurances
4135
+ # List of passengers that this reservation applies to.
4136
+ attr_accessor :passengers
4137
+ # Price in cents.
4138
+ attr_accessor :price
4139
+ # Ticket class.
4140
+ attr_accessor :ticket_class
4141
+
4142
+ def initialize(
4143
+ affiliate_name: nil,
4144
+ arrival: nil,
4145
+ carrier_name: nil,
4146
+ currency: nil,
4147
+ departure: nil,
4148
+ insurances: nil,
4149
+ passengers: nil,
4150
+ price: nil,
4151
+ ticket_class: nil
4152
+ )
4153
+ @affiliate_name = affiliate_name
4154
+ @arrival = arrival
4155
+ @carrier_name = carrier_name
4156
+ @currency = currency
4157
+ @departure = departure
4158
+ @insurances = insurances
4159
+ @passengers = passengers
4160
+ @price = price
4161
+ @ticket_class = ticket_class
4162
+ end
4163
+ end
4164
+
4165
+ class TrainReservationDetail < ::Stripe::RequestParams
4166
+ class Arrival < ::Stripe::RequestParams
4167
+ class Address < ::Stripe::RequestParams
4168
+ # The city or town.
4169
+ attr_accessor :city
4170
+ # The country in ISO 3166-1 alpha-2 format.
4171
+ attr_accessor :country
4172
+ # The postal code formatted according to country.
4173
+ attr_accessor :postal_code
4174
+ # The state, county, province, or region formatted according to country.
4175
+ attr_accessor :region
4176
+ # Line 1 of the street address.
4177
+ attr_accessor :street_address
4178
+ # Line 2 of the street address.
4179
+ attr_accessor :street_address2
4180
+
4181
+ def initialize(
4182
+ city: nil,
4183
+ country: nil,
4184
+ postal_code: nil,
4185
+ region: nil,
4186
+ street_address: nil,
4187
+ street_address2: nil
4188
+ )
4189
+ @city = city
4190
+ @country = country
4191
+ @postal_code = postal_code
4192
+ @region = region
4193
+ @street_address = street_address
4194
+ @street_address2 = street_address2
4195
+ end
4196
+ end
4197
+ # Address of the arrival location.
4198
+ attr_accessor :address
4199
+ # Identifier name or reference for the arrival location.
4200
+ attr_accessor :arrival_location
4201
+
4202
+ def initialize(address: nil, arrival_location: nil)
4203
+ @address = address
4204
+ @arrival_location = arrival_location
4205
+ end
4206
+ end
4207
+
4208
+ class Departure < ::Stripe::RequestParams
4209
+ class Address < ::Stripe::RequestParams
4210
+ # The city or town.
4211
+ attr_accessor :city
4212
+ # The country in ISO 3166-1 alpha-2 format.
4213
+ attr_accessor :country
4214
+ # The postal code formatted according to country.
4215
+ attr_accessor :postal_code
4216
+ # The state, county, province, or region formatted according to country.
4217
+ attr_accessor :region
4218
+ # Line 1 of the street address.
4219
+ attr_accessor :street_address
4220
+ # Line 2 of the street address.
4221
+ attr_accessor :street_address2
4222
+
4223
+ def initialize(
4224
+ city: nil,
4225
+ country: nil,
4226
+ postal_code: nil,
4227
+ region: nil,
4228
+ street_address: nil,
4229
+ street_address2: nil
4230
+ )
4231
+ @city = city
4232
+ @country = country
4233
+ @postal_code = postal_code
4234
+ @region = region
4235
+ @street_address = street_address
4236
+ @street_address2 = street_address2
4237
+ end
4238
+ end
4239
+ # Address of the departure location.
4240
+ attr_accessor :address
4241
+ # Timestamp of departure.
4242
+ attr_accessor :departs_at
4243
+ # Identifier name or reference for the origin location.
4244
+ attr_accessor :departure_location
4245
+
4246
+ def initialize(address: nil, departs_at: nil, departure_location: nil)
4247
+ @address = address
4248
+ @departs_at = departs_at
4249
+ @departure_location = departure_location
4250
+ end
4251
+ end
4252
+
4253
+ class Insurance < ::Stripe::RequestParams
4254
+ # Insurance currency.
4255
+ attr_accessor :currency
4256
+ # Name of the company providing the insurance.
4257
+ attr_accessor :insurance_company_name
4258
+ # Type of insurance.
4259
+ attr_accessor :insurance_type
4260
+ # Price of insurance in cents.
4261
+ attr_accessor :price
4262
+
4263
+ def initialize(
4264
+ currency: nil,
4265
+ insurance_company_name: nil,
4266
+ insurance_type: nil,
4267
+ price: nil
4268
+ )
4269
+ @currency = currency
4270
+ @insurance_company_name = insurance_company_name
4271
+ @insurance_type = insurance_type
4272
+ @price = price
4273
+ end
4274
+ end
4275
+
4276
+ class Passenger < ::Stripe::RequestParams
4277
+ # The family name of the person.
4278
+ attr_accessor :family_name
4279
+ # The given name of the person.
4280
+ attr_accessor :given_name
4281
+
4282
+ def initialize(family_name: nil, given_name: nil)
4283
+ @family_name = family_name
4284
+ @given_name = given_name
4285
+ end
4286
+ end
4287
+ # Name of associated or partner company for the service.
4288
+ attr_accessor :affiliate_name
4289
+ # Arrival details.
4290
+ attr_accessor :arrival
4291
+ # Name of transportation company.
4292
+ attr_accessor :carrier_name
4293
+ # Currency.
4294
+ attr_accessor :currency
4295
+ # Departure details.
4296
+ attr_accessor :departure
4297
+ # List of insurances for this reservation.
4298
+ attr_accessor :insurances
4299
+ # List of passengers that this reservation applies to.
4300
+ attr_accessor :passengers
4301
+ # Price in cents.
4302
+ attr_accessor :price
4303
+ # Ticket class.
4304
+ attr_accessor :ticket_class
4305
+
4306
+ def initialize(
4307
+ affiliate_name: nil,
4308
+ arrival: nil,
4309
+ carrier_name: nil,
4310
+ currency: nil,
4311
+ departure: nil,
4312
+ insurances: nil,
4313
+ passengers: nil,
4314
+ price: nil,
4315
+ ticket_class: nil
4316
+ )
4317
+ @affiliate_name = affiliate_name
4318
+ @arrival = arrival
4319
+ @carrier_name = carrier_name
4320
+ @currency = currency
4321
+ @departure = departure
4322
+ @insurances = insurances
4323
+ @passengers = passengers
4324
+ @price = price
4325
+ @ticket_class = ticket_class
4326
+ end
4327
+ end
4328
+
4329
+ class Voucher < ::Stripe::RequestParams
4330
+ # Name of associated or partner company for this voucher.
4331
+ attr_accessor :affiliate_name
4332
+ # The voucher validity end time.
4333
+ attr_accessor :ends_at
4334
+ # The voucher validity start time.
4335
+ attr_accessor :starts_at
4336
+ # The issuer or provider of this voucher.
4337
+ attr_accessor :voucher_company
4338
+ # The name or reference to identify the voucher.
4339
+ attr_accessor :voucher_name
4340
+ # The type of this voucher.
4341
+ attr_accessor :voucher_type
4342
+
4343
+ def initialize(
4344
+ affiliate_name: nil,
4345
+ ends_at: nil,
4346
+ starts_at: nil,
4347
+ voucher_company: nil,
4348
+ voucher_name: nil,
4349
+ voucher_type: nil
4350
+ )
4351
+ @affiliate_name = affiliate_name
4352
+ @ends_at = ends_at
4353
+ @starts_at = starts_at
4354
+ @voucher_company = voucher_company
4355
+ @voucher_name = voucher_name
4356
+ @voucher_type = voucher_type
4357
+ end
4358
+ end
4359
+ # Supplementary bus reservation details.
4360
+ attr_accessor :bus_reservation_details
4361
+ # Supplementary event reservation details.
4362
+ attr_accessor :event_reservation_details
4363
+ # Supplementary ferry reservation details.
4364
+ attr_accessor :ferry_reservation_details
4365
+ # Supplementary insurance details.
4366
+ attr_accessor :insurances
4367
+ # Supplementary marketplace seller details.
4368
+ attr_accessor :marketplace_sellers
4369
+ # Supplementary round trip reservation details.
4370
+ attr_accessor :round_trip_reservation_details
4371
+ # Supplementary train reservation details.
4372
+ attr_accessor :train_reservation_details
4373
+ # Voucher details, such as a gift card or discount code.
4374
+ attr_accessor :vouchers
4375
+
4376
+ def initialize(
4377
+ bus_reservation_details: nil,
4378
+ event_reservation_details: nil,
4379
+ ferry_reservation_details: nil,
4380
+ insurances: nil,
4381
+ marketplace_sellers: nil,
4382
+ round_trip_reservation_details: nil,
4383
+ train_reservation_details: nil,
4384
+ vouchers: nil
4385
+ )
4386
+ @bus_reservation_details = bus_reservation_details
4387
+ @event_reservation_details = event_reservation_details
4388
+ @ferry_reservation_details = ferry_reservation_details
4389
+ @insurances = insurances
4390
+ @marketplace_sellers = marketplace_sellers
4391
+ @round_trip_reservation_details = round_trip_reservation_details
4392
+ @train_reservation_details = train_reservation_details
4393
+ @vouchers = vouchers
4394
+ end
4395
+ end
2506
4396
  # Controls when the funds are captured from the customer's account.
2507
4397
  #
2508
4398
  # 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.
@@ -2525,19 +4415,23 @@ module Stripe
2525
4415
  attr_accessor :setup_future_usage
2526
4416
  # Subscription details if setting up or charging a subscription.
2527
4417
  attr_accessor :subscriptions
4418
+ # Supplementary Purchase Data for the corresponding Klarna payment
4419
+ attr_accessor :supplementary_purchase_data
2528
4420
 
2529
4421
  def initialize(
2530
4422
  capture_method: nil,
2531
4423
  on_demand: nil,
2532
4424
  preferred_locale: nil,
2533
4425
  setup_future_usage: nil,
2534
- subscriptions: nil
4426
+ subscriptions: nil,
4427
+ supplementary_purchase_data: nil
2535
4428
  )
2536
4429
  @capture_method = capture_method
2537
4430
  @on_demand = on_demand
2538
4431
  @preferred_locale = preferred_locale
2539
4432
  @setup_future_usage = setup_future_usage
2540
4433
  @subscriptions = subscriptions
4434
+ @supplementary_purchase_data = supplementary_purchase_data
2541
4435
  end
2542
4436
  end
2543
4437
 
@@ -2910,15 +4804,15 @@ module Stripe
2910
4804
  class MandateOptions < ::Stripe::RequestParams
2911
4805
  # Amount that will be collected. It is required when `amount_type` is `fixed`.
2912
4806
  attr_accessor :amount
2913
- # 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.
4807
+ # 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`.
2914
4808
  attr_accessor :amount_type
2915
4809
  # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2916
4810
  attr_accessor :end_date
2917
- # The periodicity at which payments will be collected.
4811
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
2918
4812
  attr_accessor :payment_schedule
2919
4813
  # 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.
2920
4814
  attr_accessor :payments_per_period
2921
- # The purpose for which payments are made. Defaults to retail.
4815
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
2922
4816
  attr_accessor :purpose
2923
4817
 
2924
4818
  def initialize(
@@ -3703,6 +5597,8 @@ module Stripe
3703
5597
  @destination = destination
3704
5598
  end
3705
5599
  end
5600
+ # Allocated Funds configuration for this PaymentIntent.
5601
+ attr_accessor :allocated_funds
3706
5602
  # 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).
3707
5603
  attr_accessor :amount
3708
5604
  # Provides industry-specific information about the amount.
@@ -3806,10 +5702,9 @@ module Stripe
3806
5702
  attr_accessor :transfer_group
3807
5703
  # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
3808
5704
  attr_accessor :use_stripe_sdk
3809
- # Allocated Funds configuration for this PaymentIntent.
3810
- attr_accessor :allocated_funds
3811
5705
 
3812
5706
  def initialize(
5707
+ allocated_funds: nil,
3813
5708
  amount: nil,
3814
5709
  amount_details: nil,
3815
5710
  application_fee_amount: nil,
@@ -3848,9 +5743,9 @@ module Stripe
3848
5743
  statement_descriptor_suffix: nil,
3849
5744
  transfer_data: nil,
3850
5745
  transfer_group: nil,
3851
- use_stripe_sdk: nil,
3852
- allocated_funds: nil
5746
+ use_stripe_sdk: nil
3853
5747
  )
5748
+ @allocated_funds = allocated_funds
3854
5749
  @amount = amount
3855
5750
  @amount_details = amount_details
3856
5751
  @application_fee_amount = application_fee_amount
@@ -3890,7 +5785,6 @@ module Stripe
3890
5785
  @transfer_data = transfer_data
3891
5786
  @transfer_group = transfer_group
3892
5787
  @use_stripe_sdk = use_stripe_sdk
3893
- @allocated_funds = allocated_funds
3894
5788
  end
3895
5789
  end
3896
5790
  end