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