stripe 17.3.0.pre.alpha.2 → 18.1.0.pre.alpha.1

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