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
|
@@ -499,6 +499,939 @@ module Stripe
|
|
|
499
499
|
@reference = reference
|
|
500
500
|
end
|
|
501
501
|
end
|
|
502
|
+
|
|
503
|
+
class SupplementaryPurchaseData < ::Stripe::RequestParams
|
|
504
|
+
class BusReservationDetail < ::Stripe::RequestParams
|
|
505
|
+
class Arrival < ::Stripe::RequestParams
|
|
506
|
+
class Address < ::Stripe::RequestParams
|
|
507
|
+
# The city or town.
|
|
508
|
+
attr_accessor :city
|
|
509
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
510
|
+
attr_accessor :country
|
|
511
|
+
# The postal code formatted according to country.
|
|
512
|
+
attr_accessor :postal_code
|
|
513
|
+
# The state, county, province, or region formatted according to country.
|
|
514
|
+
attr_accessor :region
|
|
515
|
+
# Line 1 of the street address.
|
|
516
|
+
attr_accessor :street_address
|
|
517
|
+
# Line 2 of the street address.
|
|
518
|
+
attr_accessor :street_address2
|
|
519
|
+
|
|
520
|
+
def initialize(
|
|
521
|
+
city: nil,
|
|
522
|
+
country: nil,
|
|
523
|
+
postal_code: nil,
|
|
524
|
+
region: nil,
|
|
525
|
+
street_address: nil,
|
|
526
|
+
street_address2: nil
|
|
527
|
+
)
|
|
528
|
+
@city = city
|
|
529
|
+
@country = country
|
|
530
|
+
@postal_code = postal_code
|
|
531
|
+
@region = region
|
|
532
|
+
@street_address = street_address
|
|
533
|
+
@street_address2 = street_address2
|
|
534
|
+
end
|
|
535
|
+
end
|
|
536
|
+
# Address of the arrival location.
|
|
537
|
+
attr_accessor :address
|
|
538
|
+
# Identifier name or reference for the arrival location.
|
|
539
|
+
attr_accessor :arrival_location
|
|
540
|
+
|
|
541
|
+
def initialize(address: nil, arrival_location: nil)
|
|
542
|
+
@address = address
|
|
543
|
+
@arrival_location = arrival_location
|
|
544
|
+
end
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
class Departure < ::Stripe::RequestParams
|
|
548
|
+
class Address < ::Stripe::RequestParams
|
|
549
|
+
# The city or town.
|
|
550
|
+
attr_accessor :city
|
|
551
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
552
|
+
attr_accessor :country
|
|
553
|
+
# The postal code formatted according to country.
|
|
554
|
+
attr_accessor :postal_code
|
|
555
|
+
# The state, county, province, or region formatted according to country.
|
|
556
|
+
attr_accessor :region
|
|
557
|
+
# Line 1 of the street address.
|
|
558
|
+
attr_accessor :street_address
|
|
559
|
+
# Line 2 of the street address.
|
|
560
|
+
attr_accessor :street_address2
|
|
561
|
+
|
|
562
|
+
def initialize(
|
|
563
|
+
city: nil,
|
|
564
|
+
country: nil,
|
|
565
|
+
postal_code: nil,
|
|
566
|
+
region: nil,
|
|
567
|
+
street_address: nil,
|
|
568
|
+
street_address2: nil
|
|
569
|
+
)
|
|
570
|
+
@city = city
|
|
571
|
+
@country = country
|
|
572
|
+
@postal_code = postal_code
|
|
573
|
+
@region = region
|
|
574
|
+
@street_address = street_address
|
|
575
|
+
@street_address2 = street_address2
|
|
576
|
+
end
|
|
577
|
+
end
|
|
578
|
+
# Address of the departure location.
|
|
579
|
+
attr_accessor :address
|
|
580
|
+
# Timestamp of departure.
|
|
581
|
+
attr_accessor :departs_at
|
|
582
|
+
# Identifier name or reference for the origin location.
|
|
583
|
+
attr_accessor :departure_location
|
|
584
|
+
|
|
585
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
586
|
+
@address = address
|
|
587
|
+
@departs_at = departs_at
|
|
588
|
+
@departure_location = departure_location
|
|
589
|
+
end
|
|
590
|
+
end
|
|
591
|
+
|
|
592
|
+
class Insurance < ::Stripe::RequestParams
|
|
593
|
+
# Insurance currency.
|
|
594
|
+
attr_accessor :currency
|
|
595
|
+
# Name of the company providing the insurance.
|
|
596
|
+
attr_accessor :insurance_company_name
|
|
597
|
+
# Type of insurance.
|
|
598
|
+
attr_accessor :insurance_type
|
|
599
|
+
# Price of insurance in cents.
|
|
600
|
+
attr_accessor :price
|
|
601
|
+
|
|
602
|
+
def initialize(
|
|
603
|
+
currency: nil,
|
|
604
|
+
insurance_company_name: nil,
|
|
605
|
+
insurance_type: nil,
|
|
606
|
+
price: nil
|
|
607
|
+
)
|
|
608
|
+
@currency = currency
|
|
609
|
+
@insurance_company_name = insurance_company_name
|
|
610
|
+
@insurance_type = insurance_type
|
|
611
|
+
@price = price
|
|
612
|
+
end
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
class Passenger < ::Stripe::RequestParams
|
|
616
|
+
# The family name of the person.
|
|
617
|
+
attr_accessor :family_name
|
|
618
|
+
# The given name of the person.
|
|
619
|
+
attr_accessor :given_name
|
|
620
|
+
|
|
621
|
+
def initialize(family_name: nil, given_name: nil)
|
|
622
|
+
@family_name = family_name
|
|
623
|
+
@given_name = given_name
|
|
624
|
+
end
|
|
625
|
+
end
|
|
626
|
+
# Name of associated or partner company for the service.
|
|
627
|
+
attr_accessor :affiliate_name
|
|
628
|
+
# Arrival details.
|
|
629
|
+
attr_accessor :arrival
|
|
630
|
+
# Name of transportation company.
|
|
631
|
+
attr_accessor :carrier_name
|
|
632
|
+
# Currency.
|
|
633
|
+
attr_accessor :currency
|
|
634
|
+
# Departure details.
|
|
635
|
+
attr_accessor :departure
|
|
636
|
+
# List of insurances for this reservation.
|
|
637
|
+
attr_accessor :insurances
|
|
638
|
+
# List of passengers that this reservation applies to.
|
|
639
|
+
attr_accessor :passengers
|
|
640
|
+
# Price in cents.
|
|
641
|
+
attr_accessor :price
|
|
642
|
+
# Ticket class.
|
|
643
|
+
attr_accessor :ticket_class
|
|
644
|
+
|
|
645
|
+
def initialize(
|
|
646
|
+
affiliate_name: nil,
|
|
647
|
+
arrival: nil,
|
|
648
|
+
carrier_name: nil,
|
|
649
|
+
currency: nil,
|
|
650
|
+
departure: nil,
|
|
651
|
+
insurances: nil,
|
|
652
|
+
passengers: nil,
|
|
653
|
+
price: nil,
|
|
654
|
+
ticket_class: nil
|
|
655
|
+
)
|
|
656
|
+
@affiliate_name = affiliate_name
|
|
657
|
+
@arrival = arrival
|
|
658
|
+
@carrier_name = carrier_name
|
|
659
|
+
@currency = currency
|
|
660
|
+
@departure = departure
|
|
661
|
+
@insurances = insurances
|
|
662
|
+
@passengers = passengers
|
|
663
|
+
@price = price
|
|
664
|
+
@ticket_class = ticket_class
|
|
665
|
+
end
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
class EventReservationDetail < ::Stripe::RequestParams
|
|
669
|
+
class Address < ::Stripe::RequestParams
|
|
670
|
+
# The city or town.
|
|
671
|
+
attr_accessor :city
|
|
672
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
673
|
+
attr_accessor :country
|
|
674
|
+
# The postal code formatted according to country.
|
|
675
|
+
attr_accessor :postal_code
|
|
676
|
+
# The state, county, province, or region formatted according to country.
|
|
677
|
+
attr_accessor :region
|
|
678
|
+
# Line 1 of the street address.
|
|
679
|
+
attr_accessor :street_address
|
|
680
|
+
# Line 2 of the street address.
|
|
681
|
+
attr_accessor :street_address2
|
|
682
|
+
|
|
683
|
+
def initialize(
|
|
684
|
+
city: nil,
|
|
685
|
+
country: nil,
|
|
686
|
+
postal_code: nil,
|
|
687
|
+
region: nil,
|
|
688
|
+
street_address: nil,
|
|
689
|
+
street_address2: nil
|
|
690
|
+
)
|
|
691
|
+
@city = city
|
|
692
|
+
@country = country
|
|
693
|
+
@postal_code = postal_code
|
|
694
|
+
@region = region
|
|
695
|
+
@street_address = street_address
|
|
696
|
+
@street_address2 = street_address2
|
|
697
|
+
end
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
class Insurance < ::Stripe::RequestParams
|
|
701
|
+
# Insurance currency.
|
|
702
|
+
attr_accessor :currency
|
|
703
|
+
# Name of the company providing the insurance.
|
|
704
|
+
attr_accessor :insurance_company_name
|
|
705
|
+
# Type of insurance.
|
|
706
|
+
attr_accessor :insurance_type
|
|
707
|
+
# Price of insurance in cents.
|
|
708
|
+
attr_accessor :price
|
|
709
|
+
|
|
710
|
+
def initialize(
|
|
711
|
+
currency: nil,
|
|
712
|
+
insurance_company_name: nil,
|
|
713
|
+
insurance_type: nil,
|
|
714
|
+
price: nil
|
|
715
|
+
)
|
|
716
|
+
@currency = currency
|
|
717
|
+
@insurance_company_name = insurance_company_name
|
|
718
|
+
@insurance_type = insurance_type
|
|
719
|
+
@price = price
|
|
720
|
+
end
|
|
721
|
+
end
|
|
722
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
723
|
+
attr_accessor :access_controlled_venue
|
|
724
|
+
# Address of the event.
|
|
725
|
+
attr_accessor :address
|
|
726
|
+
# Name of associated or partner company for the service.
|
|
727
|
+
attr_accessor :affiliate_name
|
|
728
|
+
# End timestamp of the event.
|
|
729
|
+
attr_accessor :ends_at
|
|
730
|
+
# Company selling the ticket.
|
|
731
|
+
attr_accessor :event_company_name
|
|
732
|
+
# Name of the event.
|
|
733
|
+
attr_accessor :event_name
|
|
734
|
+
# Type of the event.
|
|
735
|
+
attr_accessor :event_type
|
|
736
|
+
# List of insurances for this event.
|
|
737
|
+
attr_accessor :insurances
|
|
738
|
+
# Start timestamp of the event.
|
|
739
|
+
attr_accessor :starts_at
|
|
740
|
+
# Name of the venue where the event takes place.
|
|
741
|
+
attr_accessor :venue_name
|
|
742
|
+
|
|
743
|
+
def initialize(
|
|
744
|
+
access_controlled_venue: nil,
|
|
745
|
+
address: nil,
|
|
746
|
+
affiliate_name: nil,
|
|
747
|
+
ends_at: nil,
|
|
748
|
+
event_company_name: nil,
|
|
749
|
+
event_name: nil,
|
|
750
|
+
event_type: nil,
|
|
751
|
+
insurances: nil,
|
|
752
|
+
starts_at: nil,
|
|
753
|
+
venue_name: nil
|
|
754
|
+
)
|
|
755
|
+
@access_controlled_venue = access_controlled_venue
|
|
756
|
+
@address = address
|
|
757
|
+
@affiliate_name = affiliate_name
|
|
758
|
+
@ends_at = ends_at
|
|
759
|
+
@event_company_name = event_company_name
|
|
760
|
+
@event_name = event_name
|
|
761
|
+
@event_type = event_type
|
|
762
|
+
@insurances = insurances
|
|
763
|
+
@starts_at = starts_at
|
|
764
|
+
@venue_name = venue_name
|
|
765
|
+
end
|
|
766
|
+
end
|
|
767
|
+
|
|
768
|
+
class FerryReservationDetail < ::Stripe::RequestParams
|
|
769
|
+
class Arrival < ::Stripe::RequestParams
|
|
770
|
+
class Address < ::Stripe::RequestParams
|
|
771
|
+
# The city or town.
|
|
772
|
+
attr_accessor :city
|
|
773
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
774
|
+
attr_accessor :country
|
|
775
|
+
# The postal code formatted according to country.
|
|
776
|
+
attr_accessor :postal_code
|
|
777
|
+
# The state, county, province, or region formatted according to country.
|
|
778
|
+
attr_accessor :region
|
|
779
|
+
# Line 1 of the street address.
|
|
780
|
+
attr_accessor :street_address
|
|
781
|
+
# Line 2 of the street address.
|
|
782
|
+
attr_accessor :street_address2
|
|
783
|
+
|
|
784
|
+
def initialize(
|
|
785
|
+
city: nil,
|
|
786
|
+
country: nil,
|
|
787
|
+
postal_code: nil,
|
|
788
|
+
region: nil,
|
|
789
|
+
street_address: nil,
|
|
790
|
+
street_address2: nil
|
|
791
|
+
)
|
|
792
|
+
@city = city
|
|
793
|
+
@country = country
|
|
794
|
+
@postal_code = postal_code
|
|
795
|
+
@region = region
|
|
796
|
+
@street_address = street_address
|
|
797
|
+
@street_address2 = street_address2
|
|
798
|
+
end
|
|
799
|
+
end
|
|
800
|
+
# Address of the arrival location.
|
|
801
|
+
attr_accessor :address
|
|
802
|
+
# Identifier name or reference for the arrival location.
|
|
803
|
+
attr_accessor :arrival_location
|
|
804
|
+
|
|
805
|
+
def initialize(address: nil, arrival_location: nil)
|
|
806
|
+
@address = address
|
|
807
|
+
@arrival_location = arrival_location
|
|
808
|
+
end
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
class Departure < ::Stripe::RequestParams
|
|
812
|
+
class Address < ::Stripe::RequestParams
|
|
813
|
+
# The city or town.
|
|
814
|
+
attr_accessor :city
|
|
815
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
816
|
+
attr_accessor :country
|
|
817
|
+
# The postal code formatted according to country.
|
|
818
|
+
attr_accessor :postal_code
|
|
819
|
+
# The state, county, province, or region formatted according to country.
|
|
820
|
+
attr_accessor :region
|
|
821
|
+
# Line 1 of the street address.
|
|
822
|
+
attr_accessor :street_address
|
|
823
|
+
# Line 2 of the street address.
|
|
824
|
+
attr_accessor :street_address2
|
|
825
|
+
|
|
826
|
+
def initialize(
|
|
827
|
+
city: nil,
|
|
828
|
+
country: nil,
|
|
829
|
+
postal_code: nil,
|
|
830
|
+
region: nil,
|
|
831
|
+
street_address: nil,
|
|
832
|
+
street_address2: nil
|
|
833
|
+
)
|
|
834
|
+
@city = city
|
|
835
|
+
@country = country
|
|
836
|
+
@postal_code = postal_code
|
|
837
|
+
@region = region
|
|
838
|
+
@street_address = street_address
|
|
839
|
+
@street_address2 = street_address2
|
|
840
|
+
end
|
|
841
|
+
end
|
|
842
|
+
# Address of the departure location.
|
|
843
|
+
attr_accessor :address
|
|
844
|
+
# Timestamp of departure.
|
|
845
|
+
attr_accessor :departs_at
|
|
846
|
+
# Identifier name or reference for the origin location.
|
|
847
|
+
attr_accessor :departure_location
|
|
848
|
+
|
|
849
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
850
|
+
@address = address
|
|
851
|
+
@departs_at = departs_at
|
|
852
|
+
@departure_location = departure_location
|
|
853
|
+
end
|
|
854
|
+
end
|
|
855
|
+
|
|
856
|
+
class Insurance < ::Stripe::RequestParams
|
|
857
|
+
# Insurance currency.
|
|
858
|
+
attr_accessor :currency
|
|
859
|
+
# Name of the company providing the insurance.
|
|
860
|
+
attr_accessor :insurance_company_name
|
|
861
|
+
# Type of insurance.
|
|
862
|
+
attr_accessor :insurance_type
|
|
863
|
+
# Price of insurance in cents.
|
|
864
|
+
attr_accessor :price
|
|
865
|
+
|
|
866
|
+
def initialize(
|
|
867
|
+
currency: nil,
|
|
868
|
+
insurance_company_name: nil,
|
|
869
|
+
insurance_type: nil,
|
|
870
|
+
price: nil
|
|
871
|
+
)
|
|
872
|
+
@currency = currency
|
|
873
|
+
@insurance_company_name = insurance_company_name
|
|
874
|
+
@insurance_type = insurance_type
|
|
875
|
+
@price = price
|
|
876
|
+
end
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
class Passenger < ::Stripe::RequestParams
|
|
880
|
+
# The family name of the person.
|
|
881
|
+
attr_accessor :family_name
|
|
882
|
+
# The given name of the person.
|
|
883
|
+
attr_accessor :given_name
|
|
884
|
+
|
|
885
|
+
def initialize(family_name: nil, given_name: nil)
|
|
886
|
+
@family_name = family_name
|
|
887
|
+
@given_name = given_name
|
|
888
|
+
end
|
|
889
|
+
end
|
|
890
|
+
# Name of associated or partner company for the service.
|
|
891
|
+
attr_accessor :affiliate_name
|
|
892
|
+
# Arrival details.
|
|
893
|
+
attr_accessor :arrival
|
|
894
|
+
# Name of transportation company.
|
|
895
|
+
attr_accessor :carrier_name
|
|
896
|
+
# Currency.
|
|
897
|
+
attr_accessor :currency
|
|
898
|
+
# Departure details.
|
|
899
|
+
attr_accessor :departure
|
|
900
|
+
# List of insurances for this reservation.
|
|
901
|
+
attr_accessor :insurances
|
|
902
|
+
# List of passengers that this reservation applies to.
|
|
903
|
+
attr_accessor :passengers
|
|
904
|
+
# Price in cents.
|
|
905
|
+
attr_accessor :price
|
|
906
|
+
# Ticket class.
|
|
907
|
+
attr_accessor :ticket_class
|
|
908
|
+
|
|
909
|
+
def initialize(
|
|
910
|
+
affiliate_name: nil,
|
|
911
|
+
arrival: nil,
|
|
912
|
+
carrier_name: nil,
|
|
913
|
+
currency: nil,
|
|
914
|
+
departure: nil,
|
|
915
|
+
insurances: nil,
|
|
916
|
+
passengers: nil,
|
|
917
|
+
price: nil,
|
|
918
|
+
ticket_class: nil
|
|
919
|
+
)
|
|
920
|
+
@affiliate_name = affiliate_name
|
|
921
|
+
@arrival = arrival
|
|
922
|
+
@carrier_name = carrier_name
|
|
923
|
+
@currency = currency
|
|
924
|
+
@departure = departure
|
|
925
|
+
@insurances = insurances
|
|
926
|
+
@passengers = passengers
|
|
927
|
+
@price = price
|
|
928
|
+
@ticket_class = ticket_class
|
|
929
|
+
end
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
class Insurance < ::Stripe::RequestParams
|
|
933
|
+
# Insurance currency.
|
|
934
|
+
attr_accessor :currency
|
|
935
|
+
# Name of the company providing the insurance.
|
|
936
|
+
attr_accessor :insurance_company_name
|
|
937
|
+
# Type of insurance
|
|
938
|
+
attr_accessor :insurance_type
|
|
939
|
+
# Price of insurance in cents.
|
|
940
|
+
attr_accessor :price
|
|
941
|
+
|
|
942
|
+
def initialize(
|
|
943
|
+
currency: nil,
|
|
944
|
+
insurance_company_name: nil,
|
|
945
|
+
insurance_type: nil,
|
|
946
|
+
price: nil
|
|
947
|
+
)
|
|
948
|
+
@currency = currency
|
|
949
|
+
@insurance_company_name = insurance_company_name
|
|
950
|
+
@insurance_type = insurance_type
|
|
951
|
+
@price = price
|
|
952
|
+
end
|
|
953
|
+
end
|
|
954
|
+
|
|
955
|
+
class MarketplaceSeller < ::Stripe::RequestParams
|
|
956
|
+
class MarketplaceSellerAddress < ::Stripe::RequestParams
|
|
957
|
+
# The city or town.
|
|
958
|
+
attr_accessor :city
|
|
959
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
960
|
+
attr_accessor :country
|
|
961
|
+
# The postal code formatted according to country.
|
|
962
|
+
attr_accessor :postal_code
|
|
963
|
+
# The state, county, province, or region formatted according to country.
|
|
964
|
+
attr_accessor :region
|
|
965
|
+
# Line 1 of the street address.
|
|
966
|
+
attr_accessor :street_address
|
|
967
|
+
# Line 2 of the street address.
|
|
968
|
+
attr_accessor :street_address2
|
|
969
|
+
|
|
970
|
+
def initialize(
|
|
971
|
+
city: nil,
|
|
972
|
+
country: nil,
|
|
973
|
+
postal_code: nil,
|
|
974
|
+
region: nil,
|
|
975
|
+
street_address: nil,
|
|
976
|
+
street_address2: nil
|
|
977
|
+
)
|
|
978
|
+
@city = city
|
|
979
|
+
@country = country
|
|
980
|
+
@postal_code = postal_code
|
|
981
|
+
@region = region
|
|
982
|
+
@street_address = street_address
|
|
983
|
+
@street_address2 = street_address2
|
|
984
|
+
end
|
|
985
|
+
end
|
|
986
|
+
# The references to line items for purchases with multiple associated sub-sellers.
|
|
987
|
+
attr_accessor :line_item_references
|
|
988
|
+
# The address of the selling or delivering merchant.
|
|
989
|
+
attr_accessor :marketplace_seller_address
|
|
990
|
+
# The name of the marketplace seller.
|
|
991
|
+
attr_accessor :marketplace_seller_name
|
|
992
|
+
# The unique identifier for the marketplace seller.
|
|
993
|
+
attr_accessor :marketplace_seller_reference
|
|
994
|
+
# The number of transactions the sub-seller completed in the last 12 months.
|
|
995
|
+
attr_accessor :number_of_transactions
|
|
996
|
+
# The category of the product.
|
|
997
|
+
attr_accessor :product_category
|
|
998
|
+
# The date when the seller's account with the marketplace was last logged in.
|
|
999
|
+
attr_accessor :seller_last_login_at
|
|
1000
|
+
# The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
|
|
1001
|
+
attr_accessor :seller_rating
|
|
1002
|
+
# The date when the seller's account with the marketplace was created.
|
|
1003
|
+
attr_accessor :seller_registered_at
|
|
1004
|
+
# The date when the seller's account with the marketplace was last updated.
|
|
1005
|
+
attr_accessor :seller_updated_at
|
|
1006
|
+
# The references to shipping addresses for purchases with multiple associated sub-sellers.
|
|
1007
|
+
attr_accessor :shipping_references
|
|
1008
|
+
# 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.
|
|
1009
|
+
attr_accessor :volume_of_transactions
|
|
1010
|
+
|
|
1011
|
+
def initialize(
|
|
1012
|
+
line_item_references: nil,
|
|
1013
|
+
marketplace_seller_address: nil,
|
|
1014
|
+
marketplace_seller_name: nil,
|
|
1015
|
+
marketplace_seller_reference: nil,
|
|
1016
|
+
number_of_transactions: nil,
|
|
1017
|
+
product_category: nil,
|
|
1018
|
+
seller_last_login_at: nil,
|
|
1019
|
+
seller_rating: nil,
|
|
1020
|
+
seller_registered_at: nil,
|
|
1021
|
+
seller_updated_at: nil,
|
|
1022
|
+
shipping_references: nil,
|
|
1023
|
+
volume_of_transactions: nil
|
|
1024
|
+
)
|
|
1025
|
+
@line_item_references = line_item_references
|
|
1026
|
+
@marketplace_seller_address = marketplace_seller_address
|
|
1027
|
+
@marketplace_seller_name = marketplace_seller_name
|
|
1028
|
+
@marketplace_seller_reference = marketplace_seller_reference
|
|
1029
|
+
@number_of_transactions = number_of_transactions
|
|
1030
|
+
@product_category = product_category
|
|
1031
|
+
@seller_last_login_at = seller_last_login_at
|
|
1032
|
+
@seller_rating = seller_rating
|
|
1033
|
+
@seller_registered_at = seller_registered_at
|
|
1034
|
+
@seller_updated_at = seller_updated_at
|
|
1035
|
+
@shipping_references = shipping_references
|
|
1036
|
+
@volume_of_transactions = volume_of_transactions
|
|
1037
|
+
end
|
|
1038
|
+
end
|
|
1039
|
+
|
|
1040
|
+
class RoundTripReservationDetail < ::Stripe::RequestParams
|
|
1041
|
+
class Arrival < ::Stripe::RequestParams
|
|
1042
|
+
class Address < ::Stripe::RequestParams
|
|
1043
|
+
# The city or town.
|
|
1044
|
+
attr_accessor :city
|
|
1045
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
1046
|
+
attr_accessor :country
|
|
1047
|
+
# The postal code formatted according to country.
|
|
1048
|
+
attr_accessor :postal_code
|
|
1049
|
+
# The state, county, province, or region formatted according to country.
|
|
1050
|
+
attr_accessor :region
|
|
1051
|
+
# Line 1 of the street address.
|
|
1052
|
+
attr_accessor :street_address
|
|
1053
|
+
# Line 2 of the street address.
|
|
1054
|
+
attr_accessor :street_address2
|
|
1055
|
+
|
|
1056
|
+
def initialize(
|
|
1057
|
+
city: nil,
|
|
1058
|
+
country: nil,
|
|
1059
|
+
postal_code: nil,
|
|
1060
|
+
region: nil,
|
|
1061
|
+
street_address: nil,
|
|
1062
|
+
street_address2: nil
|
|
1063
|
+
)
|
|
1064
|
+
@city = city
|
|
1065
|
+
@country = country
|
|
1066
|
+
@postal_code = postal_code
|
|
1067
|
+
@region = region
|
|
1068
|
+
@street_address = street_address
|
|
1069
|
+
@street_address2 = street_address2
|
|
1070
|
+
end
|
|
1071
|
+
end
|
|
1072
|
+
# Address of the arrival location.
|
|
1073
|
+
attr_accessor :address
|
|
1074
|
+
# Identifier name or reference for the arrival location.
|
|
1075
|
+
attr_accessor :arrival_location
|
|
1076
|
+
|
|
1077
|
+
def initialize(address: nil, arrival_location: nil)
|
|
1078
|
+
@address = address
|
|
1079
|
+
@arrival_location = arrival_location
|
|
1080
|
+
end
|
|
1081
|
+
end
|
|
1082
|
+
|
|
1083
|
+
class Departure < ::Stripe::RequestParams
|
|
1084
|
+
class Address < ::Stripe::RequestParams
|
|
1085
|
+
# The city or town.
|
|
1086
|
+
attr_accessor :city
|
|
1087
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
1088
|
+
attr_accessor :country
|
|
1089
|
+
# The postal code formatted according to country.
|
|
1090
|
+
attr_accessor :postal_code
|
|
1091
|
+
# The state, county, province, or region formatted according to country.
|
|
1092
|
+
attr_accessor :region
|
|
1093
|
+
# Line 1 of the street address.
|
|
1094
|
+
attr_accessor :street_address
|
|
1095
|
+
# Line 2 of the street address.
|
|
1096
|
+
attr_accessor :street_address2
|
|
1097
|
+
|
|
1098
|
+
def initialize(
|
|
1099
|
+
city: nil,
|
|
1100
|
+
country: nil,
|
|
1101
|
+
postal_code: nil,
|
|
1102
|
+
region: nil,
|
|
1103
|
+
street_address: nil,
|
|
1104
|
+
street_address2: nil
|
|
1105
|
+
)
|
|
1106
|
+
@city = city
|
|
1107
|
+
@country = country
|
|
1108
|
+
@postal_code = postal_code
|
|
1109
|
+
@region = region
|
|
1110
|
+
@street_address = street_address
|
|
1111
|
+
@street_address2 = street_address2
|
|
1112
|
+
end
|
|
1113
|
+
end
|
|
1114
|
+
# Address of the departure location.
|
|
1115
|
+
attr_accessor :address
|
|
1116
|
+
# Timestamp of departure.
|
|
1117
|
+
attr_accessor :departs_at
|
|
1118
|
+
# Identifier name or reference for the origin location.
|
|
1119
|
+
attr_accessor :departure_location
|
|
1120
|
+
|
|
1121
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
1122
|
+
@address = address
|
|
1123
|
+
@departs_at = departs_at
|
|
1124
|
+
@departure_location = departure_location
|
|
1125
|
+
end
|
|
1126
|
+
end
|
|
1127
|
+
|
|
1128
|
+
class Insurance < ::Stripe::RequestParams
|
|
1129
|
+
# Insurance currency.
|
|
1130
|
+
attr_accessor :currency
|
|
1131
|
+
# Name of the company providing the insurance.
|
|
1132
|
+
attr_accessor :insurance_company_name
|
|
1133
|
+
# Type of insurance.
|
|
1134
|
+
attr_accessor :insurance_type
|
|
1135
|
+
# Price of insurance in cents.
|
|
1136
|
+
attr_accessor :price
|
|
1137
|
+
|
|
1138
|
+
def initialize(
|
|
1139
|
+
currency: nil,
|
|
1140
|
+
insurance_company_name: nil,
|
|
1141
|
+
insurance_type: nil,
|
|
1142
|
+
price: nil
|
|
1143
|
+
)
|
|
1144
|
+
@currency = currency
|
|
1145
|
+
@insurance_company_name = insurance_company_name
|
|
1146
|
+
@insurance_type = insurance_type
|
|
1147
|
+
@price = price
|
|
1148
|
+
end
|
|
1149
|
+
end
|
|
1150
|
+
|
|
1151
|
+
class Passenger < ::Stripe::RequestParams
|
|
1152
|
+
# The family name of the person.
|
|
1153
|
+
attr_accessor :family_name
|
|
1154
|
+
# The given name of the person.
|
|
1155
|
+
attr_accessor :given_name
|
|
1156
|
+
|
|
1157
|
+
def initialize(family_name: nil, given_name: nil)
|
|
1158
|
+
@family_name = family_name
|
|
1159
|
+
@given_name = given_name
|
|
1160
|
+
end
|
|
1161
|
+
end
|
|
1162
|
+
# Name of associated or partner company for the service.
|
|
1163
|
+
attr_accessor :affiliate_name
|
|
1164
|
+
# Arrival details.
|
|
1165
|
+
attr_accessor :arrival
|
|
1166
|
+
# Name of transportation company.
|
|
1167
|
+
attr_accessor :carrier_name
|
|
1168
|
+
# Currency.
|
|
1169
|
+
attr_accessor :currency
|
|
1170
|
+
# Departure details.
|
|
1171
|
+
attr_accessor :departure
|
|
1172
|
+
# List of insurances for this reservation.
|
|
1173
|
+
attr_accessor :insurances
|
|
1174
|
+
# List of passengers that this reservation applies to.
|
|
1175
|
+
attr_accessor :passengers
|
|
1176
|
+
# Price in cents.
|
|
1177
|
+
attr_accessor :price
|
|
1178
|
+
# Ticket class.
|
|
1179
|
+
attr_accessor :ticket_class
|
|
1180
|
+
|
|
1181
|
+
def initialize(
|
|
1182
|
+
affiliate_name: nil,
|
|
1183
|
+
arrival: nil,
|
|
1184
|
+
carrier_name: nil,
|
|
1185
|
+
currency: nil,
|
|
1186
|
+
departure: nil,
|
|
1187
|
+
insurances: nil,
|
|
1188
|
+
passengers: nil,
|
|
1189
|
+
price: nil,
|
|
1190
|
+
ticket_class: nil
|
|
1191
|
+
)
|
|
1192
|
+
@affiliate_name = affiliate_name
|
|
1193
|
+
@arrival = arrival
|
|
1194
|
+
@carrier_name = carrier_name
|
|
1195
|
+
@currency = currency
|
|
1196
|
+
@departure = departure
|
|
1197
|
+
@insurances = insurances
|
|
1198
|
+
@passengers = passengers
|
|
1199
|
+
@price = price
|
|
1200
|
+
@ticket_class = ticket_class
|
|
1201
|
+
end
|
|
1202
|
+
end
|
|
1203
|
+
|
|
1204
|
+
class TrainReservationDetail < ::Stripe::RequestParams
|
|
1205
|
+
class Arrival < ::Stripe::RequestParams
|
|
1206
|
+
class Address < ::Stripe::RequestParams
|
|
1207
|
+
# The city or town.
|
|
1208
|
+
attr_accessor :city
|
|
1209
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
1210
|
+
attr_accessor :country
|
|
1211
|
+
# The postal code formatted according to country.
|
|
1212
|
+
attr_accessor :postal_code
|
|
1213
|
+
# The state, county, province, or region formatted according to country.
|
|
1214
|
+
attr_accessor :region
|
|
1215
|
+
# Line 1 of the street address.
|
|
1216
|
+
attr_accessor :street_address
|
|
1217
|
+
# Line 2 of the street address.
|
|
1218
|
+
attr_accessor :street_address2
|
|
1219
|
+
|
|
1220
|
+
def initialize(
|
|
1221
|
+
city: nil,
|
|
1222
|
+
country: nil,
|
|
1223
|
+
postal_code: nil,
|
|
1224
|
+
region: nil,
|
|
1225
|
+
street_address: nil,
|
|
1226
|
+
street_address2: nil
|
|
1227
|
+
)
|
|
1228
|
+
@city = city
|
|
1229
|
+
@country = country
|
|
1230
|
+
@postal_code = postal_code
|
|
1231
|
+
@region = region
|
|
1232
|
+
@street_address = street_address
|
|
1233
|
+
@street_address2 = street_address2
|
|
1234
|
+
end
|
|
1235
|
+
end
|
|
1236
|
+
# Address of the arrival location.
|
|
1237
|
+
attr_accessor :address
|
|
1238
|
+
# Identifier name or reference for the arrival location.
|
|
1239
|
+
attr_accessor :arrival_location
|
|
1240
|
+
|
|
1241
|
+
def initialize(address: nil, arrival_location: nil)
|
|
1242
|
+
@address = address
|
|
1243
|
+
@arrival_location = arrival_location
|
|
1244
|
+
end
|
|
1245
|
+
end
|
|
1246
|
+
|
|
1247
|
+
class Departure < ::Stripe::RequestParams
|
|
1248
|
+
class Address < ::Stripe::RequestParams
|
|
1249
|
+
# The city or town.
|
|
1250
|
+
attr_accessor :city
|
|
1251
|
+
# The country in ISO 3166-1 alpha-2 format.
|
|
1252
|
+
attr_accessor :country
|
|
1253
|
+
# The postal code formatted according to country.
|
|
1254
|
+
attr_accessor :postal_code
|
|
1255
|
+
# The state, county, province, or region formatted according to country.
|
|
1256
|
+
attr_accessor :region
|
|
1257
|
+
# Line 1 of the street address.
|
|
1258
|
+
attr_accessor :street_address
|
|
1259
|
+
# Line 2 of the street address.
|
|
1260
|
+
attr_accessor :street_address2
|
|
1261
|
+
|
|
1262
|
+
def initialize(
|
|
1263
|
+
city: nil,
|
|
1264
|
+
country: nil,
|
|
1265
|
+
postal_code: nil,
|
|
1266
|
+
region: nil,
|
|
1267
|
+
street_address: nil,
|
|
1268
|
+
street_address2: nil
|
|
1269
|
+
)
|
|
1270
|
+
@city = city
|
|
1271
|
+
@country = country
|
|
1272
|
+
@postal_code = postal_code
|
|
1273
|
+
@region = region
|
|
1274
|
+
@street_address = street_address
|
|
1275
|
+
@street_address2 = street_address2
|
|
1276
|
+
end
|
|
1277
|
+
end
|
|
1278
|
+
# Address of the departure location.
|
|
1279
|
+
attr_accessor :address
|
|
1280
|
+
# Timestamp of departure.
|
|
1281
|
+
attr_accessor :departs_at
|
|
1282
|
+
# Identifier name or reference for the origin location.
|
|
1283
|
+
attr_accessor :departure_location
|
|
1284
|
+
|
|
1285
|
+
def initialize(address: nil, departs_at: nil, departure_location: nil)
|
|
1286
|
+
@address = address
|
|
1287
|
+
@departs_at = departs_at
|
|
1288
|
+
@departure_location = departure_location
|
|
1289
|
+
end
|
|
1290
|
+
end
|
|
1291
|
+
|
|
1292
|
+
class Insurance < ::Stripe::RequestParams
|
|
1293
|
+
# Insurance currency.
|
|
1294
|
+
attr_accessor :currency
|
|
1295
|
+
# Name of the company providing the insurance.
|
|
1296
|
+
attr_accessor :insurance_company_name
|
|
1297
|
+
# Type of insurance.
|
|
1298
|
+
attr_accessor :insurance_type
|
|
1299
|
+
# Price of insurance in cents.
|
|
1300
|
+
attr_accessor :price
|
|
1301
|
+
|
|
1302
|
+
def initialize(
|
|
1303
|
+
currency: nil,
|
|
1304
|
+
insurance_company_name: nil,
|
|
1305
|
+
insurance_type: nil,
|
|
1306
|
+
price: nil
|
|
1307
|
+
)
|
|
1308
|
+
@currency = currency
|
|
1309
|
+
@insurance_company_name = insurance_company_name
|
|
1310
|
+
@insurance_type = insurance_type
|
|
1311
|
+
@price = price
|
|
1312
|
+
end
|
|
1313
|
+
end
|
|
1314
|
+
|
|
1315
|
+
class Passenger < ::Stripe::RequestParams
|
|
1316
|
+
# The family name of the person.
|
|
1317
|
+
attr_accessor :family_name
|
|
1318
|
+
# The given name of the person.
|
|
1319
|
+
attr_accessor :given_name
|
|
1320
|
+
|
|
1321
|
+
def initialize(family_name: nil, given_name: nil)
|
|
1322
|
+
@family_name = family_name
|
|
1323
|
+
@given_name = given_name
|
|
1324
|
+
end
|
|
1325
|
+
end
|
|
1326
|
+
# Name of associated or partner company for the service.
|
|
1327
|
+
attr_accessor :affiliate_name
|
|
1328
|
+
# Arrival details.
|
|
1329
|
+
attr_accessor :arrival
|
|
1330
|
+
# Name of transportation company.
|
|
1331
|
+
attr_accessor :carrier_name
|
|
1332
|
+
# Currency.
|
|
1333
|
+
attr_accessor :currency
|
|
1334
|
+
# Departure details.
|
|
1335
|
+
attr_accessor :departure
|
|
1336
|
+
# List of insurances for this reservation.
|
|
1337
|
+
attr_accessor :insurances
|
|
1338
|
+
# List of passengers that this reservation applies to.
|
|
1339
|
+
attr_accessor :passengers
|
|
1340
|
+
# Price in cents.
|
|
1341
|
+
attr_accessor :price
|
|
1342
|
+
# Ticket class.
|
|
1343
|
+
attr_accessor :ticket_class
|
|
1344
|
+
|
|
1345
|
+
def initialize(
|
|
1346
|
+
affiliate_name: nil,
|
|
1347
|
+
arrival: nil,
|
|
1348
|
+
carrier_name: nil,
|
|
1349
|
+
currency: nil,
|
|
1350
|
+
departure: nil,
|
|
1351
|
+
insurances: nil,
|
|
1352
|
+
passengers: nil,
|
|
1353
|
+
price: nil,
|
|
1354
|
+
ticket_class: nil
|
|
1355
|
+
)
|
|
1356
|
+
@affiliate_name = affiliate_name
|
|
1357
|
+
@arrival = arrival
|
|
1358
|
+
@carrier_name = carrier_name
|
|
1359
|
+
@currency = currency
|
|
1360
|
+
@departure = departure
|
|
1361
|
+
@insurances = insurances
|
|
1362
|
+
@passengers = passengers
|
|
1363
|
+
@price = price
|
|
1364
|
+
@ticket_class = ticket_class
|
|
1365
|
+
end
|
|
1366
|
+
end
|
|
1367
|
+
|
|
1368
|
+
class Voucher < ::Stripe::RequestParams
|
|
1369
|
+
# Name of associated or partner company for this voucher.
|
|
1370
|
+
attr_accessor :affiliate_name
|
|
1371
|
+
# The voucher validity end time.
|
|
1372
|
+
attr_accessor :ends_at
|
|
1373
|
+
# The voucher validity start time.
|
|
1374
|
+
attr_accessor :starts_at
|
|
1375
|
+
# The issuer or provider of this voucher.
|
|
1376
|
+
attr_accessor :voucher_company
|
|
1377
|
+
# The name or reference to identify the voucher.
|
|
1378
|
+
attr_accessor :voucher_name
|
|
1379
|
+
# The type of this voucher.
|
|
1380
|
+
attr_accessor :voucher_type
|
|
1381
|
+
|
|
1382
|
+
def initialize(
|
|
1383
|
+
affiliate_name: nil,
|
|
1384
|
+
ends_at: nil,
|
|
1385
|
+
starts_at: nil,
|
|
1386
|
+
voucher_company: nil,
|
|
1387
|
+
voucher_name: nil,
|
|
1388
|
+
voucher_type: nil
|
|
1389
|
+
)
|
|
1390
|
+
@affiliate_name = affiliate_name
|
|
1391
|
+
@ends_at = ends_at
|
|
1392
|
+
@starts_at = starts_at
|
|
1393
|
+
@voucher_company = voucher_company
|
|
1394
|
+
@voucher_name = voucher_name
|
|
1395
|
+
@voucher_type = voucher_type
|
|
1396
|
+
end
|
|
1397
|
+
end
|
|
1398
|
+
# Supplementary bus reservation details.
|
|
1399
|
+
attr_accessor :bus_reservation_details
|
|
1400
|
+
# Supplementary event reservation details.
|
|
1401
|
+
attr_accessor :event_reservation_details
|
|
1402
|
+
# Supplementary ferry reservation details.
|
|
1403
|
+
attr_accessor :ferry_reservation_details
|
|
1404
|
+
# Supplementary insurance details.
|
|
1405
|
+
attr_accessor :insurances
|
|
1406
|
+
# Supplementary marketplace seller details.
|
|
1407
|
+
attr_accessor :marketplace_sellers
|
|
1408
|
+
# Supplementary round trip reservation details.
|
|
1409
|
+
attr_accessor :round_trip_reservation_details
|
|
1410
|
+
# Supplementary train reservation details.
|
|
1411
|
+
attr_accessor :train_reservation_details
|
|
1412
|
+
# Voucher details, such as a gift card or discount code.
|
|
1413
|
+
attr_accessor :vouchers
|
|
1414
|
+
|
|
1415
|
+
def initialize(
|
|
1416
|
+
bus_reservation_details: nil,
|
|
1417
|
+
event_reservation_details: nil,
|
|
1418
|
+
ferry_reservation_details: nil,
|
|
1419
|
+
insurances: nil,
|
|
1420
|
+
marketplace_sellers: nil,
|
|
1421
|
+
round_trip_reservation_details: nil,
|
|
1422
|
+
train_reservation_details: nil,
|
|
1423
|
+
vouchers: nil
|
|
1424
|
+
)
|
|
1425
|
+
@bus_reservation_details = bus_reservation_details
|
|
1426
|
+
@event_reservation_details = event_reservation_details
|
|
1427
|
+
@ferry_reservation_details = ferry_reservation_details
|
|
1428
|
+
@insurances = insurances
|
|
1429
|
+
@marketplace_sellers = marketplace_sellers
|
|
1430
|
+
@round_trip_reservation_details = round_trip_reservation_details
|
|
1431
|
+
@train_reservation_details = train_reservation_details
|
|
1432
|
+
@vouchers = vouchers
|
|
1433
|
+
end
|
|
1434
|
+
end
|
|
502
1435
|
# Controls when the funds are captured from the customer's account.
|
|
503
1436
|
#
|
|
504
1437
|
# 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.
|
|
@@ -521,19 +1454,23 @@ module Stripe
|
|
|
521
1454
|
attr_accessor :setup_future_usage
|
|
522
1455
|
# Subscription details if setting up or charging a subscription.
|
|
523
1456
|
attr_accessor :subscriptions
|
|
1457
|
+
# Supplementary Purchase Data for the corresponding Klarna payment
|
|
1458
|
+
attr_accessor :supplementary_purchase_data
|
|
524
1459
|
|
|
525
1460
|
def initialize(
|
|
526
1461
|
capture_method: nil,
|
|
527
1462
|
on_demand: nil,
|
|
528
1463
|
preferred_locale: nil,
|
|
529
1464
|
setup_future_usage: nil,
|
|
530
|
-
subscriptions: nil
|
|
1465
|
+
subscriptions: nil,
|
|
1466
|
+
supplementary_purchase_data: nil
|
|
531
1467
|
)
|
|
532
1468
|
@capture_method = capture_method
|
|
533
1469
|
@on_demand = on_demand
|
|
534
1470
|
@preferred_locale = preferred_locale
|
|
535
1471
|
@setup_future_usage = setup_future_usage
|
|
536
1472
|
@subscriptions = subscriptions
|
|
1473
|
+
@supplementary_purchase_data = supplementary_purchase_data
|
|
537
1474
|
end
|
|
538
1475
|
end
|
|
539
1476
|
|