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
|
@@ -79,26 +79,32 @@ module Stripe
|
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
class Tax < ::Stripe::RequestParams
|
|
82
|
-
# The total tax on
|
|
82
|
+
# 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.
|
|
83
|
+
#
|
|
84
|
+
# This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
|
|
83
85
|
attr_accessor :total_tax_amount
|
|
84
86
|
|
|
85
87
|
def initialize(total_tax_amount: nil)
|
|
86
88
|
@total_tax_amount = total_tax_amount
|
|
87
89
|
end
|
|
88
90
|
end
|
|
89
|
-
# The
|
|
91
|
+
# 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.
|
|
92
|
+
#
|
|
93
|
+
# This field is mutually exclusive with the `amount_details[discount_amount]` field.
|
|
90
94
|
attr_accessor :discount_amount
|
|
91
95
|
# Payment method-specific information for line items.
|
|
92
96
|
attr_accessor :payment_method_options
|
|
93
|
-
#
|
|
97
|
+
# The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
|
|
94
98
|
attr_accessor :product_code
|
|
95
|
-
#
|
|
99
|
+
# The product name of the line item. Required for L3 rates. At most 1024 characters long.
|
|
100
|
+
#
|
|
101
|
+
# 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.
|
|
96
102
|
attr_accessor :product_name
|
|
97
|
-
#
|
|
103
|
+
# The quantity of items. Required for L3 rates. An integer greater than 0.
|
|
98
104
|
attr_accessor :quantity
|
|
99
105
|
# Contains information about the tax on the item.
|
|
100
106
|
attr_accessor :tax
|
|
101
|
-
#
|
|
107
|
+
# 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.
|
|
102
108
|
attr_accessor :unit_cost
|
|
103
109
|
# A unit of measure for the line item, such as gallons, feet, meters, etc.
|
|
104
110
|
attr_accessor :unit_of_measure
|
|
@@ -125,11 +131,11 @@ module Stripe
|
|
|
125
131
|
end
|
|
126
132
|
|
|
127
133
|
class Shipping < ::Stripe::RequestParams
|
|
128
|
-
#
|
|
134
|
+
# 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.
|
|
129
135
|
attr_accessor :amount
|
|
130
|
-
#
|
|
136
|
+
# 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.
|
|
131
137
|
attr_accessor :from_postal_code
|
|
132
|
-
#
|
|
138
|
+
# 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.
|
|
133
139
|
attr_accessor :to_postal_code
|
|
134
140
|
|
|
135
141
|
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
|
|
@@ -140,14 +146,18 @@ module Stripe
|
|
|
140
146
|
end
|
|
141
147
|
|
|
142
148
|
class Tax < ::Stripe::RequestParams
|
|
143
|
-
#
|
|
149
|
+
# 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.
|
|
150
|
+
#
|
|
151
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
144
152
|
attr_accessor :total_tax_amount
|
|
145
153
|
|
|
146
154
|
def initialize(total_tax_amount: nil)
|
|
147
155
|
@total_tax_amount = total_tax_amount
|
|
148
156
|
end
|
|
149
157
|
end
|
|
150
|
-
# The total discount applied on the transaction.
|
|
158
|
+
# 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.
|
|
159
|
+
#
|
|
160
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
151
161
|
attr_accessor :discount_amount
|
|
152
162
|
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
|
|
153
163
|
attr_accessor :line_items
|
|
@@ -416,6 +426,364 @@ module Stripe
|
|
|
416
426
|
end
|
|
417
427
|
end
|
|
418
428
|
|
|
429
|
+
class CarRentalDatum < ::Stripe::RequestParams
|
|
430
|
+
class Affiliate < ::Stripe::RequestParams
|
|
431
|
+
# Affiliate partner code.
|
|
432
|
+
attr_accessor :code
|
|
433
|
+
# Name of affiliate partner.
|
|
434
|
+
attr_accessor :name
|
|
435
|
+
|
|
436
|
+
def initialize(code: nil, name: nil)
|
|
437
|
+
@code = code
|
|
438
|
+
@name = name
|
|
439
|
+
end
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
class Distance < ::Stripe::RequestParams
|
|
443
|
+
# Distance traveled.
|
|
444
|
+
attr_accessor :amount
|
|
445
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
446
|
+
attr_accessor :unit
|
|
447
|
+
|
|
448
|
+
def initialize(amount: nil, unit: nil)
|
|
449
|
+
@amount = amount
|
|
450
|
+
@unit = unit
|
|
451
|
+
end
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
class Driver < ::Stripe::RequestParams
|
|
455
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
456
|
+
# Day of birth (1-31).
|
|
457
|
+
attr_accessor :day
|
|
458
|
+
# Month of birth (1-12).
|
|
459
|
+
attr_accessor :month
|
|
460
|
+
# Year of birth (must be greater than 1900).
|
|
461
|
+
attr_accessor :year
|
|
462
|
+
|
|
463
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
464
|
+
@day = day
|
|
465
|
+
@month = month
|
|
466
|
+
@year = year
|
|
467
|
+
end
|
|
468
|
+
end
|
|
469
|
+
# Driver's date of birth.
|
|
470
|
+
attr_accessor :date_of_birth
|
|
471
|
+
# Driver's identification number.
|
|
472
|
+
attr_accessor :driver_identification_number
|
|
473
|
+
# Driver's tax number.
|
|
474
|
+
attr_accessor :driver_tax_number
|
|
475
|
+
# Driver's full name.
|
|
476
|
+
attr_accessor :name
|
|
477
|
+
|
|
478
|
+
def initialize(
|
|
479
|
+
date_of_birth: nil,
|
|
480
|
+
driver_identification_number: nil,
|
|
481
|
+
driver_tax_number: nil,
|
|
482
|
+
name: nil
|
|
483
|
+
)
|
|
484
|
+
@date_of_birth = date_of_birth
|
|
485
|
+
@driver_identification_number = driver_identification_number
|
|
486
|
+
@driver_tax_number = driver_tax_number
|
|
487
|
+
@name = name
|
|
488
|
+
end
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
class DropOff < ::Stripe::RequestParams
|
|
492
|
+
class Address < ::Stripe::RequestParams
|
|
493
|
+
# City, district, suburb, town, or village.
|
|
494
|
+
attr_accessor :city
|
|
495
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
496
|
+
attr_accessor :country
|
|
497
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
498
|
+
attr_accessor :line1
|
|
499
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
500
|
+
attr_accessor :line2
|
|
501
|
+
# ZIP or postal code.
|
|
502
|
+
attr_accessor :postal_code
|
|
503
|
+
# State, county, province, or region.
|
|
504
|
+
attr_accessor :state
|
|
505
|
+
|
|
506
|
+
def initialize(
|
|
507
|
+
city: nil,
|
|
508
|
+
country: nil,
|
|
509
|
+
line1: nil,
|
|
510
|
+
line2: nil,
|
|
511
|
+
postal_code: nil,
|
|
512
|
+
state: nil
|
|
513
|
+
)
|
|
514
|
+
@city = city
|
|
515
|
+
@country = country
|
|
516
|
+
@line1 = line1
|
|
517
|
+
@line2 = line2
|
|
518
|
+
@postal_code = postal_code
|
|
519
|
+
@state = state
|
|
520
|
+
end
|
|
521
|
+
end
|
|
522
|
+
# Address of the rental location.
|
|
523
|
+
attr_accessor :address
|
|
524
|
+
# Location name.
|
|
525
|
+
attr_accessor :location_name
|
|
526
|
+
# Timestamp for the location.
|
|
527
|
+
attr_accessor :time
|
|
528
|
+
|
|
529
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
530
|
+
@address = address
|
|
531
|
+
@location_name = location_name
|
|
532
|
+
@time = time
|
|
533
|
+
end
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
class Insurance < ::Stripe::RequestParams
|
|
537
|
+
# Amount of the insurance coverage in cents.
|
|
538
|
+
attr_accessor :amount
|
|
539
|
+
# Currency of the insurance amount.
|
|
540
|
+
attr_accessor :currency
|
|
541
|
+
# Name of the insurance company.
|
|
542
|
+
attr_accessor :insurance_company_name
|
|
543
|
+
# Type of insurance coverage.
|
|
544
|
+
attr_accessor :insurance_type
|
|
545
|
+
|
|
546
|
+
def initialize(
|
|
547
|
+
amount: nil,
|
|
548
|
+
currency: nil,
|
|
549
|
+
insurance_company_name: nil,
|
|
550
|
+
insurance_type: nil
|
|
551
|
+
)
|
|
552
|
+
@amount = amount
|
|
553
|
+
@currency = currency
|
|
554
|
+
@insurance_company_name = insurance_company_name
|
|
555
|
+
@insurance_type = insurance_type
|
|
556
|
+
end
|
|
557
|
+
end
|
|
558
|
+
|
|
559
|
+
class Pickup < ::Stripe::RequestParams
|
|
560
|
+
class Address < ::Stripe::RequestParams
|
|
561
|
+
# City, district, suburb, town, or village.
|
|
562
|
+
attr_accessor :city
|
|
563
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
564
|
+
attr_accessor :country
|
|
565
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
566
|
+
attr_accessor :line1
|
|
567
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
568
|
+
attr_accessor :line2
|
|
569
|
+
# ZIP or postal code.
|
|
570
|
+
attr_accessor :postal_code
|
|
571
|
+
# State, county, province, or region.
|
|
572
|
+
attr_accessor :state
|
|
573
|
+
|
|
574
|
+
def initialize(
|
|
575
|
+
city: nil,
|
|
576
|
+
country: nil,
|
|
577
|
+
line1: nil,
|
|
578
|
+
line2: nil,
|
|
579
|
+
postal_code: nil,
|
|
580
|
+
state: nil
|
|
581
|
+
)
|
|
582
|
+
@city = city
|
|
583
|
+
@country = country
|
|
584
|
+
@line1 = line1
|
|
585
|
+
@line2 = line2
|
|
586
|
+
@postal_code = postal_code
|
|
587
|
+
@state = state
|
|
588
|
+
end
|
|
589
|
+
end
|
|
590
|
+
# Address of the rental location.
|
|
591
|
+
attr_accessor :address
|
|
592
|
+
# Location name.
|
|
593
|
+
attr_accessor :location_name
|
|
594
|
+
# Timestamp for the location.
|
|
595
|
+
attr_accessor :time
|
|
596
|
+
|
|
597
|
+
def initialize(address: nil, location_name: nil, time: nil)
|
|
598
|
+
@address = address
|
|
599
|
+
@location_name = location_name
|
|
600
|
+
@time = time
|
|
601
|
+
end
|
|
602
|
+
end
|
|
603
|
+
|
|
604
|
+
class Total < ::Stripe::RequestParams
|
|
605
|
+
class Discounts < ::Stripe::RequestParams
|
|
606
|
+
# Corporate client discount code.
|
|
607
|
+
attr_accessor :corporate_client_code
|
|
608
|
+
# Coupon code applied to the rental.
|
|
609
|
+
attr_accessor :coupon
|
|
610
|
+
# Maximum number of free miles or kilometers included.
|
|
611
|
+
attr_accessor :maximum_free_miles_or_kilometers
|
|
612
|
+
|
|
613
|
+
def initialize(
|
|
614
|
+
corporate_client_code: nil,
|
|
615
|
+
coupon: nil,
|
|
616
|
+
maximum_free_miles_or_kilometers: nil
|
|
617
|
+
)
|
|
618
|
+
@corporate_client_code = corporate_client_code
|
|
619
|
+
@coupon = coupon
|
|
620
|
+
@maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
|
|
621
|
+
end
|
|
622
|
+
end
|
|
623
|
+
|
|
624
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
625
|
+
# Amount of the extra charge in cents.
|
|
626
|
+
attr_accessor :amount
|
|
627
|
+
# Type of extra charge.
|
|
628
|
+
attr_accessor :type
|
|
629
|
+
|
|
630
|
+
def initialize(amount: nil, type: nil)
|
|
631
|
+
@amount = amount
|
|
632
|
+
@type = type
|
|
633
|
+
end
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
class Tax < ::Stripe::RequestParams
|
|
637
|
+
class Tax < ::Stripe::RequestParams
|
|
638
|
+
# Tax amount.
|
|
639
|
+
attr_accessor :amount
|
|
640
|
+
# Tax rate applied.
|
|
641
|
+
attr_accessor :rate
|
|
642
|
+
# Type of tax applied.
|
|
643
|
+
attr_accessor :type
|
|
644
|
+
|
|
645
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
646
|
+
@amount = amount
|
|
647
|
+
@rate = rate
|
|
648
|
+
@type = type
|
|
649
|
+
end
|
|
650
|
+
end
|
|
651
|
+
# Indicates if the transaction is tax exempt.
|
|
652
|
+
attr_accessor :tax_exempt_indicator
|
|
653
|
+
# Array of tax details.
|
|
654
|
+
attr_accessor :taxes
|
|
655
|
+
|
|
656
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
657
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
658
|
+
@taxes = taxes
|
|
659
|
+
end
|
|
660
|
+
end
|
|
661
|
+
# Total amount in cents.
|
|
662
|
+
attr_accessor :amount
|
|
663
|
+
# Currency of the amount.
|
|
664
|
+
attr_accessor :currency
|
|
665
|
+
# Discount details for the rental.
|
|
666
|
+
attr_accessor :discounts
|
|
667
|
+
# Additional charges for the rental.
|
|
668
|
+
attr_accessor :extra_charges
|
|
669
|
+
# Rate per unit for the rental.
|
|
670
|
+
attr_accessor :rate_per_unit
|
|
671
|
+
# Unit of measurement for the rate.
|
|
672
|
+
attr_accessor :rate_unit
|
|
673
|
+
# Tax breakdown for the rental.
|
|
674
|
+
attr_accessor :tax
|
|
675
|
+
|
|
676
|
+
def initialize(
|
|
677
|
+
amount: nil,
|
|
678
|
+
currency: nil,
|
|
679
|
+
discounts: nil,
|
|
680
|
+
extra_charges: nil,
|
|
681
|
+
rate_per_unit: nil,
|
|
682
|
+
rate_unit: nil,
|
|
683
|
+
tax: nil
|
|
684
|
+
)
|
|
685
|
+
@amount = amount
|
|
686
|
+
@currency = currency
|
|
687
|
+
@discounts = discounts
|
|
688
|
+
@extra_charges = extra_charges
|
|
689
|
+
@rate_per_unit = rate_per_unit
|
|
690
|
+
@rate_unit = rate_unit
|
|
691
|
+
@tax = tax
|
|
692
|
+
end
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
class Vehicle < ::Stripe::RequestParams
|
|
696
|
+
# Make of the rental vehicle.
|
|
697
|
+
attr_accessor :make
|
|
698
|
+
# Model of the rental vehicle.
|
|
699
|
+
attr_accessor :model
|
|
700
|
+
# Odometer reading at the time of rental.
|
|
701
|
+
attr_accessor :odometer
|
|
702
|
+
# Type of the rental vehicle.
|
|
703
|
+
attr_accessor :type
|
|
704
|
+
# Class of the rental vehicle.
|
|
705
|
+
attr_accessor :vehicle_class
|
|
706
|
+
# Vehicle identification number (VIN).
|
|
707
|
+
attr_accessor :vehicle_identification_number
|
|
708
|
+
|
|
709
|
+
def initialize(
|
|
710
|
+
make: nil,
|
|
711
|
+
model: nil,
|
|
712
|
+
odometer: nil,
|
|
713
|
+
type: nil,
|
|
714
|
+
vehicle_class: nil,
|
|
715
|
+
vehicle_identification_number: nil
|
|
716
|
+
)
|
|
717
|
+
@make = make
|
|
718
|
+
@model = model
|
|
719
|
+
@odometer = odometer
|
|
720
|
+
@type = type
|
|
721
|
+
@vehicle_class = vehicle_class
|
|
722
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
723
|
+
end
|
|
724
|
+
end
|
|
725
|
+
# Affiliate (such as travel agency) details for the rental.
|
|
726
|
+
attr_accessor :affiliate
|
|
727
|
+
# Booking confirmation number for the car rental.
|
|
728
|
+
attr_accessor :booking_number
|
|
729
|
+
# Name of the car rental company.
|
|
730
|
+
attr_accessor :carrier_name
|
|
731
|
+
# Customer service phone number for the car rental company.
|
|
732
|
+
attr_accessor :customer_service_phone_number
|
|
733
|
+
# Number of days the car is being rented.
|
|
734
|
+
attr_accessor :days_rented
|
|
735
|
+
# Distance details for the rental.
|
|
736
|
+
attr_accessor :distance
|
|
737
|
+
# List of drivers for the rental.
|
|
738
|
+
attr_accessor :drivers
|
|
739
|
+
# Drop-off location details.
|
|
740
|
+
attr_accessor :drop_off
|
|
741
|
+
# Insurance details for the rental.
|
|
742
|
+
attr_accessor :insurances
|
|
743
|
+
# Indicates if the customer was a no-show.
|
|
744
|
+
attr_accessor :no_show_indicator
|
|
745
|
+
# Pickup location details.
|
|
746
|
+
attr_accessor :pickup
|
|
747
|
+
# Name of the person renting the vehicle.
|
|
748
|
+
attr_accessor :renter_name
|
|
749
|
+
# Total cost breakdown for the rental.
|
|
750
|
+
attr_accessor :total
|
|
751
|
+
# Vehicle details for the rental.
|
|
752
|
+
attr_accessor :vehicle
|
|
753
|
+
|
|
754
|
+
def initialize(
|
|
755
|
+
affiliate: nil,
|
|
756
|
+
booking_number: nil,
|
|
757
|
+
carrier_name: nil,
|
|
758
|
+
customer_service_phone_number: nil,
|
|
759
|
+
days_rented: nil,
|
|
760
|
+
distance: nil,
|
|
761
|
+
drivers: nil,
|
|
762
|
+
drop_off: nil,
|
|
763
|
+
insurances: nil,
|
|
764
|
+
no_show_indicator: nil,
|
|
765
|
+
pickup: nil,
|
|
766
|
+
renter_name: nil,
|
|
767
|
+
total: nil,
|
|
768
|
+
vehicle: nil
|
|
769
|
+
)
|
|
770
|
+
@affiliate = affiliate
|
|
771
|
+
@booking_number = booking_number
|
|
772
|
+
@carrier_name = carrier_name
|
|
773
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
774
|
+
@days_rented = days_rented
|
|
775
|
+
@distance = distance
|
|
776
|
+
@drivers = drivers
|
|
777
|
+
@drop_off = drop_off
|
|
778
|
+
@insurances = insurances
|
|
779
|
+
@no_show_indicator = no_show_indicator
|
|
780
|
+
@pickup = pickup
|
|
781
|
+
@renter_name = renter_name
|
|
782
|
+
@total = total
|
|
783
|
+
@vehicle = vehicle
|
|
784
|
+
end
|
|
785
|
+
end
|
|
786
|
+
|
|
419
787
|
class EventDetails < ::Stripe::RequestParams
|
|
420
788
|
class Address < ::Stripe::RequestParams
|
|
421
789
|
# City, district, suburb, town, or village.
|
|
@@ -645,6 +1013,275 @@ module Stripe
|
|
|
645
1013
|
end
|
|
646
1014
|
end
|
|
647
1015
|
|
|
1016
|
+
class FlightDatum < ::Stripe::RequestParams
|
|
1017
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1018
|
+
# Affiliate partner code.
|
|
1019
|
+
attr_accessor :code
|
|
1020
|
+
# Name of affiliate partner.
|
|
1021
|
+
attr_accessor :name
|
|
1022
|
+
# Code provided by the company to a travel agent authorizing ticket issuance.
|
|
1023
|
+
attr_accessor :travel_authorization_code
|
|
1024
|
+
|
|
1025
|
+
def initialize(code: nil, name: nil, travel_authorization_code: nil)
|
|
1026
|
+
@code = code
|
|
1027
|
+
@name = name
|
|
1028
|
+
@travel_authorization_code = travel_authorization_code
|
|
1029
|
+
end
|
|
1030
|
+
end
|
|
1031
|
+
|
|
1032
|
+
class Insurance < ::Stripe::RequestParams
|
|
1033
|
+
# Insurance cost.
|
|
1034
|
+
attr_accessor :amount
|
|
1035
|
+
# Insurance currency.
|
|
1036
|
+
attr_accessor :currency
|
|
1037
|
+
# Insurance company name.
|
|
1038
|
+
attr_accessor :insurance_company_name
|
|
1039
|
+
# Type of insurance.
|
|
1040
|
+
attr_accessor :insurance_type
|
|
1041
|
+
|
|
1042
|
+
def initialize(
|
|
1043
|
+
amount: nil,
|
|
1044
|
+
currency: nil,
|
|
1045
|
+
insurance_company_name: nil,
|
|
1046
|
+
insurance_type: nil
|
|
1047
|
+
)
|
|
1048
|
+
@amount = amount
|
|
1049
|
+
@currency = currency
|
|
1050
|
+
@insurance_company_name = insurance_company_name
|
|
1051
|
+
@insurance_type = insurance_type
|
|
1052
|
+
end
|
|
1053
|
+
end
|
|
1054
|
+
|
|
1055
|
+
class Passenger < ::Stripe::RequestParams
|
|
1056
|
+
# Passenger's full name.
|
|
1057
|
+
attr_accessor :name
|
|
1058
|
+
|
|
1059
|
+
def initialize(name: nil)
|
|
1060
|
+
@name = name
|
|
1061
|
+
end
|
|
1062
|
+
end
|
|
1063
|
+
|
|
1064
|
+
class Segment < ::Stripe::RequestParams
|
|
1065
|
+
class Arrival < ::Stripe::RequestParams
|
|
1066
|
+
# Arrival airport IATA code.
|
|
1067
|
+
attr_accessor :airport
|
|
1068
|
+
# Arrival date/time.
|
|
1069
|
+
attr_accessor :arrives_at
|
|
1070
|
+
# Arrival city.
|
|
1071
|
+
attr_accessor :city
|
|
1072
|
+
# Arrival country.
|
|
1073
|
+
attr_accessor :country
|
|
1074
|
+
|
|
1075
|
+
def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
|
|
1076
|
+
@airport = airport
|
|
1077
|
+
@arrives_at = arrives_at
|
|
1078
|
+
@city = city
|
|
1079
|
+
@country = country
|
|
1080
|
+
end
|
|
1081
|
+
end
|
|
1082
|
+
|
|
1083
|
+
class Departure < ::Stripe::RequestParams
|
|
1084
|
+
# Departure airport IATA code.
|
|
1085
|
+
attr_accessor :airport
|
|
1086
|
+
# Departure city.
|
|
1087
|
+
attr_accessor :city
|
|
1088
|
+
# Departure country.
|
|
1089
|
+
attr_accessor :country
|
|
1090
|
+
# Departure date/time.
|
|
1091
|
+
attr_accessor :departs_at
|
|
1092
|
+
|
|
1093
|
+
def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
|
|
1094
|
+
@airport = airport
|
|
1095
|
+
@city = city
|
|
1096
|
+
@country = country
|
|
1097
|
+
@departs_at = departs_at
|
|
1098
|
+
end
|
|
1099
|
+
end
|
|
1100
|
+
# Segment fare amount.
|
|
1101
|
+
attr_accessor :amount
|
|
1102
|
+
# Arrival details.
|
|
1103
|
+
attr_accessor :arrival
|
|
1104
|
+
# Airline carrier code.
|
|
1105
|
+
attr_accessor :carrier_code
|
|
1106
|
+
# Carrier name.
|
|
1107
|
+
attr_accessor :carrier_name
|
|
1108
|
+
# Segment currency.
|
|
1109
|
+
attr_accessor :currency
|
|
1110
|
+
# Departure details.
|
|
1111
|
+
attr_accessor :departure
|
|
1112
|
+
# Exchange ticket number.
|
|
1113
|
+
attr_accessor :exchange_ticket_number
|
|
1114
|
+
# Fare basis code.
|
|
1115
|
+
attr_accessor :fare_basis_code
|
|
1116
|
+
# Additional fees.
|
|
1117
|
+
attr_accessor :fees
|
|
1118
|
+
# Flight number.
|
|
1119
|
+
attr_accessor :flight_number
|
|
1120
|
+
# Stopover indicator.
|
|
1121
|
+
attr_accessor :is_stop_over_indicator
|
|
1122
|
+
# Refundable ticket indicator.
|
|
1123
|
+
attr_accessor :refundable
|
|
1124
|
+
# Class of service.
|
|
1125
|
+
attr_accessor :service_class
|
|
1126
|
+
# Tax amount for segment.
|
|
1127
|
+
attr_accessor :tax_amount
|
|
1128
|
+
# Ticket number.
|
|
1129
|
+
attr_accessor :ticket_number
|
|
1130
|
+
|
|
1131
|
+
def initialize(
|
|
1132
|
+
amount: nil,
|
|
1133
|
+
arrival: nil,
|
|
1134
|
+
carrier_code: nil,
|
|
1135
|
+
carrier_name: nil,
|
|
1136
|
+
currency: nil,
|
|
1137
|
+
departure: nil,
|
|
1138
|
+
exchange_ticket_number: nil,
|
|
1139
|
+
fare_basis_code: nil,
|
|
1140
|
+
fees: nil,
|
|
1141
|
+
flight_number: nil,
|
|
1142
|
+
is_stop_over_indicator: nil,
|
|
1143
|
+
refundable: nil,
|
|
1144
|
+
service_class: nil,
|
|
1145
|
+
tax_amount: nil,
|
|
1146
|
+
ticket_number: nil
|
|
1147
|
+
)
|
|
1148
|
+
@amount = amount
|
|
1149
|
+
@arrival = arrival
|
|
1150
|
+
@carrier_code = carrier_code
|
|
1151
|
+
@carrier_name = carrier_name
|
|
1152
|
+
@currency = currency
|
|
1153
|
+
@departure = departure
|
|
1154
|
+
@exchange_ticket_number = exchange_ticket_number
|
|
1155
|
+
@fare_basis_code = fare_basis_code
|
|
1156
|
+
@fees = fees
|
|
1157
|
+
@flight_number = flight_number
|
|
1158
|
+
@is_stop_over_indicator = is_stop_over_indicator
|
|
1159
|
+
@refundable = refundable
|
|
1160
|
+
@service_class = service_class
|
|
1161
|
+
@tax_amount = tax_amount
|
|
1162
|
+
@ticket_number = ticket_number
|
|
1163
|
+
end
|
|
1164
|
+
end
|
|
1165
|
+
|
|
1166
|
+
class Total < ::Stripe::RequestParams
|
|
1167
|
+
class Discounts < ::Stripe::RequestParams
|
|
1168
|
+
# Corporate client discount code.
|
|
1169
|
+
attr_accessor :corporate_client_code
|
|
1170
|
+
|
|
1171
|
+
def initialize(corporate_client_code: nil)
|
|
1172
|
+
@corporate_client_code = corporate_client_code
|
|
1173
|
+
end
|
|
1174
|
+
end
|
|
1175
|
+
|
|
1176
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1177
|
+
# Amount of additional charges.
|
|
1178
|
+
attr_accessor :amount
|
|
1179
|
+
# Type of additional charges.
|
|
1180
|
+
attr_accessor :type
|
|
1181
|
+
|
|
1182
|
+
def initialize(amount: nil, type: nil)
|
|
1183
|
+
@amount = amount
|
|
1184
|
+
@type = type
|
|
1185
|
+
end
|
|
1186
|
+
end
|
|
1187
|
+
|
|
1188
|
+
class Tax < ::Stripe::RequestParams
|
|
1189
|
+
class Tax < ::Stripe::RequestParams
|
|
1190
|
+
# Tax amount.
|
|
1191
|
+
attr_accessor :amount
|
|
1192
|
+
# Tax rate.
|
|
1193
|
+
attr_accessor :rate
|
|
1194
|
+
# Type of tax.
|
|
1195
|
+
attr_accessor :type
|
|
1196
|
+
|
|
1197
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1198
|
+
@amount = amount
|
|
1199
|
+
@rate = rate
|
|
1200
|
+
@type = type
|
|
1201
|
+
end
|
|
1202
|
+
end
|
|
1203
|
+
# Array of tax details.
|
|
1204
|
+
attr_accessor :taxes
|
|
1205
|
+
|
|
1206
|
+
def initialize(taxes: nil)
|
|
1207
|
+
@taxes = taxes
|
|
1208
|
+
end
|
|
1209
|
+
end
|
|
1210
|
+
# Total flight amount.
|
|
1211
|
+
attr_accessor :amount
|
|
1212
|
+
# Reason for credit.
|
|
1213
|
+
attr_accessor :credit_reason
|
|
1214
|
+
# Total currency.
|
|
1215
|
+
attr_accessor :currency
|
|
1216
|
+
# Discount details.
|
|
1217
|
+
attr_accessor :discounts
|
|
1218
|
+
# Additional charges.
|
|
1219
|
+
attr_accessor :extra_charges
|
|
1220
|
+
# Tax breakdown.
|
|
1221
|
+
attr_accessor :tax
|
|
1222
|
+
|
|
1223
|
+
def initialize(
|
|
1224
|
+
amount: nil,
|
|
1225
|
+
credit_reason: nil,
|
|
1226
|
+
currency: nil,
|
|
1227
|
+
discounts: nil,
|
|
1228
|
+
extra_charges: nil,
|
|
1229
|
+
tax: nil
|
|
1230
|
+
)
|
|
1231
|
+
@amount = amount
|
|
1232
|
+
@credit_reason = credit_reason
|
|
1233
|
+
@currency = currency
|
|
1234
|
+
@discounts = discounts
|
|
1235
|
+
@extra_charges = extra_charges
|
|
1236
|
+
@tax = tax
|
|
1237
|
+
end
|
|
1238
|
+
end
|
|
1239
|
+
# Affiliate details if applicable.
|
|
1240
|
+
attr_accessor :affiliate
|
|
1241
|
+
# Reservation reference.
|
|
1242
|
+
attr_accessor :booking_number
|
|
1243
|
+
# Computerized reservation system used to make the reservation and purchase the ticket.
|
|
1244
|
+
attr_accessor :computerized_reservation_system
|
|
1245
|
+
# Ticket restrictions.
|
|
1246
|
+
attr_accessor :endorsements_and_restrictions
|
|
1247
|
+
# List of insurances.
|
|
1248
|
+
attr_accessor :insurances
|
|
1249
|
+
# List of passengers.
|
|
1250
|
+
attr_accessor :passengers
|
|
1251
|
+
# List of flight segments.
|
|
1252
|
+
attr_accessor :segments
|
|
1253
|
+
# Electronic ticket indicator.
|
|
1254
|
+
attr_accessor :ticket_electronically_issued_indicator
|
|
1255
|
+
# Total cost breakdown.
|
|
1256
|
+
attr_accessor :total
|
|
1257
|
+
# Type of flight transaction.
|
|
1258
|
+
attr_accessor :transaction_type
|
|
1259
|
+
|
|
1260
|
+
def initialize(
|
|
1261
|
+
affiliate: nil,
|
|
1262
|
+
booking_number: nil,
|
|
1263
|
+
computerized_reservation_system: nil,
|
|
1264
|
+
endorsements_and_restrictions: nil,
|
|
1265
|
+
insurances: nil,
|
|
1266
|
+
passengers: nil,
|
|
1267
|
+
segments: nil,
|
|
1268
|
+
ticket_electronically_issued_indicator: nil,
|
|
1269
|
+
total: nil,
|
|
1270
|
+
transaction_type: nil
|
|
1271
|
+
)
|
|
1272
|
+
@affiliate = affiliate
|
|
1273
|
+
@booking_number = booking_number
|
|
1274
|
+
@computerized_reservation_system = computerized_reservation_system
|
|
1275
|
+
@endorsements_and_restrictions = endorsements_and_restrictions
|
|
1276
|
+
@insurances = insurances
|
|
1277
|
+
@passengers = passengers
|
|
1278
|
+
@segments = segments
|
|
1279
|
+
@ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
|
|
1280
|
+
@total = total
|
|
1281
|
+
@transaction_type = transaction_type
|
|
1282
|
+
end
|
|
1283
|
+
end
|
|
1284
|
+
|
|
648
1285
|
class Lodging < ::Stripe::RequestParams
|
|
649
1286
|
class Address < ::Stripe::RequestParams
|
|
650
1287
|
# City, district, suburb, town, or village.
|
|
@@ -810,6 +1447,300 @@ module Stripe
|
|
|
810
1447
|
end
|
|
811
1448
|
end
|
|
812
1449
|
|
|
1450
|
+
class LodgingDatum < ::Stripe::RequestParams
|
|
1451
|
+
class Accommodation < ::Stripe::RequestParams
|
|
1452
|
+
# Type of accommodation.
|
|
1453
|
+
attr_accessor :accommodation_type
|
|
1454
|
+
# Bed type.
|
|
1455
|
+
attr_accessor :bed_type
|
|
1456
|
+
# Daily accommodation rate in cents.
|
|
1457
|
+
attr_accessor :daily_rate_amount
|
|
1458
|
+
# Number of nights.
|
|
1459
|
+
attr_accessor :nights
|
|
1460
|
+
# Number of rooms, cabanas, apartments, and so on.
|
|
1461
|
+
attr_accessor :number_of_rooms
|
|
1462
|
+
# Rate type.
|
|
1463
|
+
attr_accessor :rate_type
|
|
1464
|
+
# Whether smoking is allowed.
|
|
1465
|
+
attr_accessor :smoking_indicator
|
|
1466
|
+
|
|
1467
|
+
def initialize(
|
|
1468
|
+
accommodation_type: nil,
|
|
1469
|
+
bed_type: nil,
|
|
1470
|
+
daily_rate_amount: nil,
|
|
1471
|
+
nights: nil,
|
|
1472
|
+
number_of_rooms: nil,
|
|
1473
|
+
rate_type: nil,
|
|
1474
|
+
smoking_indicator: nil
|
|
1475
|
+
)
|
|
1476
|
+
@accommodation_type = accommodation_type
|
|
1477
|
+
@bed_type = bed_type
|
|
1478
|
+
@daily_rate_amount = daily_rate_amount
|
|
1479
|
+
@nights = nights
|
|
1480
|
+
@number_of_rooms = number_of_rooms
|
|
1481
|
+
@rate_type = rate_type
|
|
1482
|
+
@smoking_indicator = smoking_indicator
|
|
1483
|
+
end
|
|
1484
|
+
end
|
|
1485
|
+
|
|
1486
|
+
class Affiliate < ::Stripe::RequestParams
|
|
1487
|
+
# Affiliate partner code.
|
|
1488
|
+
attr_accessor :code
|
|
1489
|
+
# Affiliate partner name.
|
|
1490
|
+
attr_accessor :name
|
|
1491
|
+
|
|
1492
|
+
def initialize(code: nil, name: nil)
|
|
1493
|
+
@code = code
|
|
1494
|
+
@name = name
|
|
1495
|
+
end
|
|
1496
|
+
end
|
|
1497
|
+
|
|
1498
|
+
class Guest < ::Stripe::RequestParams
|
|
1499
|
+
# Guest's full name.
|
|
1500
|
+
attr_accessor :name
|
|
1501
|
+
|
|
1502
|
+
def initialize(name: nil)
|
|
1503
|
+
@name = name
|
|
1504
|
+
end
|
|
1505
|
+
end
|
|
1506
|
+
|
|
1507
|
+
class Host < ::Stripe::RequestParams
|
|
1508
|
+
class Address < ::Stripe::RequestParams
|
|
1509
|
+
# City, district, suburb, town, or village.
|
|
1510
|
+
attr_accessor :city
|
|
1511
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1512
|
+
attr_accessor :country
|
|
1513
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1514
|
+
attr_accessor :line1
|
|
1515
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1516
|
+
attr_accessor :line2
|
|
1517
|
+
# ZIP or postal code.
|
|
1518
|
+
attr_accessor :postal_code
|
|
1519
|
+
# State, county, province, or region.
|
|
1520
|
+
attr_accessor :state
|
|
1521
|
+
|
|
1522
|
+
def initialize(
|
|
1523
|
+
city: nil,
|
|
1524
|
+
country: nil,
|
|
1525
|
+
line1: nil,
|
|
1526
|
+
line2: nil,
|
|
1527
|
+
postal_code: nil,
|
|
1528
|
+
state: nil
|
|
1529
|
+
)
|
|
1530
|
+
@city = city
|
|
1531
|
+
@country = country
|
|
1532
|
+
@line1 = line1
|
|
1533
|
+
@line2 = line2
|
|
1534
|
+
@postal_code = postal_code
|
|
1535
|
+
@state = state
|
|
1536
|
+
end
|
|
1537
|
+
end
|
|
1538
|
+
# Address of the host.
|
|
1539
|
+
attr_accessor :address
|
|
1540
|
+
# Host's country of domicile.
|
|
1541
|
+
attr_accessor :country_of_domicile
|
|
1542
|
+
# Reference number for the host.
|
|
1543
|
+
attr_accessor :host_reference
|
|
1544
|
+
# Type of host.
|
|
1545
|
+
attr_accessor :host_type
|
|
1546
|
+
# Name of the lodging property or host.
|
|
1547
|
+
attr_accessor :name
|
|
1548
|
+
# Total number of reservations for the host.
|
|
1549
|
+
attr_accessor :number_of_reservations
|
|
1550
|
+
# Property phone number.
|
|
1551
|
+
attr_accessor :property_phone_number
|
|
1552
|
+
# Host's registration date.
|
|
1553
|
+
attr_accessor :registered_at
|
|
1554
|
+
|
|
1555
|
+
def initialize(
|
|
1556
|
+
address: nil,
|
|
1557
|
+
country_of_domicile: nil,
|
|
1558
|
+
host_reference: nil,
|
|
1559
|
+
host_type: nil,
|
|
1560
|
+
name: nil,
|
|
1561
|
+
number_of_reservations: nil,
|
|
1562
|
+
property_phone_number: nil,
|
|
1563
|
+
registered_at: nil
|
|
1564
|
+
)
|
|
1565
|
+
@address = address
|
|
1566
|
+
@country_of_domicile = country_of_domicile
|
|
1567
|
+
@host_reference = host_reference
|
|
1568
|
+
@host_type = host_type
|
|
1569
|
+
@name = name
|
|
1570
|
+
@number_of_reservations = number_of_reservations
|
|
1571
|
+
@property_phone_number = property_phone_number
|
|
1572
|
+
@registered_at = registered_at
|
|
1573
|
+
end
|
|
1574
|
+
end
|
|
1575
|
+
|
|
1576
|
+
class Insurance < ::Stripe::RequestParams
|
|
1577
|
+
# Price of the insurance coverage in cents.
|
|
1578
|
+
attr_accessor :amount
|
|
1579
|
+
# Currency of the insurance amount.
|
|
1580
|
+
attr_accessor :currency
|
|
1581
|
+
# Name of the insurance company.
|
|
1582
|
+
attr_accessor :insurance_company_name
|
|
1583
|
+
# Type of insurance coverage.
|
|
1584
|
+
attr_accessor :insurance_type
|
|
1585
|
+
|
|
1586
|
+
def initialize(
|
|
1587
|
+
amount: nil,
|
|
1588
|
+
currency: nil,
|
|
1589
|
+
insurance_company_name: nil,
|
|
1590
|
+
insurance_type: nil
|
|
1591
|
+
)
|
|
1592
|
+
@amount = amount
|
|
1593
|
+
@currency = currency
|
|
1594
|
+
@insurance_company_name = insurance_company_name
|
|
1595
|
+
@insurance_type = insurance_type
|
|
1596
|
+
end
|
|
1597
|
+
end
|
|
1598
|
+
|
|
1599
|
+
class Total < ::Stripe::RequestParams
|
|
1600
|
+
class Discounts < ::Stripe::RequestParams
|
|
1601
|
+
# Corporate client discount code.
|
|
1602
|
+
attr_accessor :corporate_client_code
|
|
1603
|
+
# Coupon code.
|
|
1604
|
+
attr_accessor :coupon
|
|
1605
|
+
|
|
1606
|
+
def initialize(corporate_client_code: nil, coupon: nil)
|
|
1607
|
+
@corporate_client_code = corporate_client_code
|
|
1608
|
+
@coupon = coupon
|
|
1609
|
+
end
|
|
1610
|
+
end
|
|
1611
|
+
|
|
1612
|
+
class ExtraCharge < ::Stripe::RequestParams
|
|
1613
|
+
# Amount of the extra charge in cents.
|
|
1614
|
+
attr_accessor :amount
|
|
1615
|
+
# Type of extra charge.
|
|
1616
|
+
attr_accessor :type
|
|
1617
|
+
|
|
1618
|
+
def initialize(amount: nil, type: nil)
|
|
1619
|
+
@amount = amount
|
|
1620
|
+
@type = type
|
|
1621
|
+
end
|
|
1622
|
+
end
|
|
1623
|
+
|
|
1624
|
+
class Tax < ::Stripe::RequestParams
|
|
1625
|
+
class Tax < ::Stripe::RequestParams
|
|
1626
|
+
# Tax amount in cents.
|
|
1627
|
+
attr_accessor :amount
|
|
1628
|
+
# Tax rate.
|
|
1629
|
+
attr_accessor :rate
|
|
1630
|
+
# Type of tax applied.
|
|
1631
|
+
attr_accessor :type
|
|
1632
|
+
|
|
1633
|
+
def initialize(amount: nil, rate: nil, type: nil)
|
|
1634
|
+
@amount = amount
|
|
1635
|
+
@rate = rate
|
|
1636
|
+
@type = type
|
|
1637
|
+
end
|
|
1638
|
+
end
|
|
1639
|
+
# Indicates whether the transaction is tax exempt.
|
|
1640
|
+
attr_accessor :tax_exempt_indicator
|
|
1641
|
+
# Tax details.
|
|
1642
|
+
attr_accessor :taxes
|
|
1643
|
+
|
|
1644
|
+
def initialize(tax_exempt_indicator: nil, taxes: nil)
|
|
1645
|
+
@tax_exempt_indicator = tax_exempt_indicator
|
|
1646
|
+
@taxes = taxes
|
|
1647
|
+
end
|
|
1648
|
+
end
|
|
1649
|
+
# Total price of the lodging reservation in cents.
|
|
1650
|
+
attr_accessor :amount
|
|
1651
|
+
# Cash advances in cents.
|
|
1652
|
+
attr_accessor :cash_advances
|
|
1653
|
+
# Currency of the total amount.
|
|
1654
|
+
attr_accessor :currency
|
|
1655
|
+
# Discount details for the lodging.
|
|
1656
|
+
attr_accessor :discounts
|
|
1657
|
+
# Additional charges for the lodging.
|
|
1658
|
+
attr_accessor :extra_charges
|
|
1659
|
+
# Prepaid amount in cents.
|
|
1660
|
+
attr_accessor :prepaid_amount
|
|
1661
|
+
# Tax breakdown for the lodging reservation.
|
|
1662
|
+
attr_accessor :tax
|
|
1663
|
+
|
|
1664
|
+
def initialize(
|
|
1665
|
+
amount: nil,
|
|
1666
|
+
cash_advances: nil,
|
|
1667
|
+
currency: nil,
|
|
1668
|
+
discounts: nil,
|
|
1669
|
+
extra_charges: nil,
|
|
1670
|
+
prepaid_amount: nil,
|
|
1671
|
+
tax: nil
|
|
1672
|
+
)
|
|
1673
|
+
@amount = amount
|
|
1674
|
+
@cash_advances = cash_advances
|
|
1675
|
+
@currency = currency
|
|
1676
|
+
@discounts = discounts
|
|
1677
|
+
@extra_charges = extra_charges
|
|
1678
|
+
@prepaid_amount = prepaid_amount
|
|
1679
|
+
@tax = tax
|
|
1680
|
+
end
|
|
1681
|
+
end
|
|
1682
|
+
# Accommodation details for the lodging.
|
|
1683
|
+
attr_accessor :accommodation
|
|
1684
|
+
# Affiliate details if applicable.
|
|
1685
|
+
attr_accessor :affiliate
|
|
1686
|
+
# Booking confirmation number for the lodging.
|
|
1687
|
+
attr_accessor :booking_number
|
|
1688
|
+
# Check-in date.
|
|
1689
|
+
attr_accessor :checkin_at
|
|
1690
|
+
# Check-out date.
|
|
1691
|
+
attr_accessor :checkout_at
|
|
1692
|
+
# Customer service phone number for the lodging company.
|
|
1693
|
+
attr_accessor :customer_service_phone_number
|
|
1694
|
+
# Whether the lodging is compliant with any hotel fire safety regulations.
|
|
1695
|
+
attr_accessor :fire_safety_act_compliance_indicator
|
|
1696
|
+
# List of guests for the lodging.
|
|
1697
|
+
attr_accessor :guests
|
|
1698
|
+
# Host details for the lodging.
|
|
1699
|
+
attr_accessor :host
|
|
1700
|
+
# List of insurances for the lodging.
|
|
1701
|
+
attr_accessor :insurances
|
|
1702
|
+
# Whether the renter is a no-show.
|
|
1703
|
+
attr_accessor :no_show_indicator
|
|
1704
|
+
# Renter ID number for the lodging.
|
|
1705
|
+
attr_accessor :renter_id_number
|
|
1706
|
+
# Renter name for the lodging.
|
|
1707
|
+
attr_accessor :renter_name
|
|
1708
|
+
# Total details for the lodging.
|
|
1709
|
+
attr_accessor :total
|
|
1710
|
+
|
|
1711
|
+
def initialize(
|
|
1712
|
+
accommodation: nil,
|
|
1713
|
+
affiliate: nil,
|
|
1714
|
+
booking_number: nil,
|
|
1715
|
+
checkin_at: nil,
|
|
1716
|
+
checkout_at: nil,
|
|
1717
|
+
customer_service_phone_number: nil,
|
|
1718
|
+
fire_safety_act_compliance_indicator: nil,
|
|
1719
|
+
guests: nil,
|
|
1720
|
+
host: nil,
|
|
1721
|
+
insurances: nil,
|
|
1722
|
+
no_show_indicator: nil,
|
|
1723
|
+
renter_id_number: nil,
|
|
1724
|
+
renter_name: nil,
|
|
1725
|
+
total: nil
|
|
1726
|
+
)
|
|
1727
|
+
@accommodation = accommodation
|
|
1728
|
+
@affiliate = affiliate
|
|
1729
|
+
@booking_number = booking_number
|
|
1730
|
+
@checkin_at = checkin_at
|
|
1731
|
+
@checkout_at = checkout_at
|
|
1732
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
1733
|
+
@fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
|
|
1734
|
+
@guests = guests
|
|
1735
|
+
@host = host
|
|
1736
|
+
@insurances = insurances
|
|
1737
|
+
@no_show_indicator = no_show_indicator
|
|
1738
|
+
@renter_id_number = renter_id_number
|
|
1739
|
+
@renter_name = renter_name
|
|
1740
|
+
@total = total
|
|
1741
|
+
end
|
|
1742
|
+
end
|
|
1743
|
+
|
|
813
1744
|
class Subscription < ::Stripe::RequestParams
|
|
814
1745
|
class Affiliate < ::Stripe::RequestParams
|
|
815
1746
|
# The name of the affiliate that originated the purchase.
|
|
@@ -862,33 +1793,51 @@ module Stripe
|
|
|
862
1793
|
end
|
|
863
1794
|
# Car rental details for this PaymentIntent.
|
|
864
1795
|
attr_accessor :car_rental
|
|
865
|
-
#
|
|
1796
|
+
# Car rental data for this PaymentIntent.
|
|
1797
|
+
attr_accessor :car_rental_data
|
|
1798
|
+
# A unique value to identify the customer. This field is available only for card payments.
|
|
1799
|
+
#
|
|
1800
|
+
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
866
1801
|
attr_accessor :customer_reference
|
|
867
1802
|
# Event details for this PaymentIntent
|
|
868
1803
|
attr_accessor :event_details
|
|
869
1804
|
# Flight reservation details for this PaymentIntent
|
|
870
1805
|
attr_accessor :flight
|
|
1806
|
+
# Flight data for this PaymentIntent.
|
|
1807
|
+
attr_accessor :flight_data
|
|
871
1808
|
# Lodging reservation details for this PaymentIntent
|
|
872
1809
|
attr_accessor :lodging
|
|
873
|
-
#
|
|
1810
|
+
# Lodging data for this PaymentIntent.
|
|
1811
|
+
attr_accessor :lodging_data
|
|
1812
|
+
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
1813
|
+
#
|
|
1814
|
+
# 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`.
|
|
1815
|
+
#
|
|
1816
|
+
# 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.
|
|
874
1817
|
attr_accessor :order_reference
|
|
875
1818
|
# Subscription details for this PaymentIntent
|
|
876
1819
|
attr_accessor :subscription
|
|
877
1820
|
|
|
878
1821
|
def initialize(
|
|
879
1822
|
car_rental: nil,
|
|
1823
|
+
car_rental_data: nil,
|
|
880
1824
|
customer_reference: nil,
|
|
881
1825
|
event_details: nil,
|
|
882
1826
|
flight: nil,
|
|
1827
|
+
flight_data: nil,
|
|
883
1828
|
lodging: nil,
|
|
1829
|
+
lodging_data: nil,
|
|
884
1830
|
order_reference: nil,
|
|
885
1831
|
subscription: nil
|
|
886
1832
|
)
|
|
887
1833
|
@car_rental = car_rental
|
|
1834
|
+
@car_rental_data = car_rental_data
|
|
888
1835
|
@customer_reference = customer_reference
|
|
889
1836
|
@event_details = event_details
|
|
890
1837
|
@flight = flight
|
|
1838
|
+
@flight_data = flight_data
|
|
891
1839
|
@lodging = lodging
|
|
1840
|
+
@lodging_data = lodging_data
|
|
892
1841
|
@order_reference = order_reference
|
|
893
1842
|
@subscription = subscription
|
|
894
1843
|
end
|