stripe 19.1.0.pre.alpha.3 → 19.1.0.pre.alpha.4

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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +2 -0
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/errors.rb +24 -0
  5. data/lib/stripe/params/charge_capture_params.rb +250 -1
  6. data/lib/stripe/params/charge_update_params.rb +250 -1
  7. data/lib/stripe/params/invoice_create_params.rb +6 -0
  8. data/lib/stripe/params/invoice_update_params.rb +6 -0
  9. data/lib/stripe/params/payment_intent_capture_params.rb +270 -3
  10. data/lib/stripe/params/payment_intent_confirm_params.rb +404 -5
  11. data/lib/stripe/params/payment_intent_create_params.rb +404 -5
  12. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +20 -2
  13. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +20 -2
  14. data/lib/stripe/params/payment_intent_update_params.rb +404 -5
  15. data/lib/stripe/params/radar/customer_evaluation_create_params.rb +1 -1
  16. data/lib/stripe/params/radar/customer_evaluation_update_params.rb +1 -1
  17. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +30 -1
  18. data/lib/stripe/params/subscription_create_params.rb +24 -0
  19. data/lib/stripe/params/subscription_update_params.rb +24 -0
  20. data/lib/stripe/resources/application_fee.rb +2 -0
  21. data/lib/stripe/resources/invoice.rb +13 -0
  22. data/lib/stripe/resources/payment_intent.rb +90 -0
  23. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +19 -1
  24. data/lib/stripe/resources/payment_method.rb +2 -0
  25. data/lib/stripe/resources/quote_preview_invoice.rb +13 -0
  26. data/lib/stripe/resources/radar/customer_evaluation.rb +4 -4
  27. data/lib/stripe/resources/radar/payment_evaluation.rb +23 -1
  28. data/lib/stripe/resources/shared_payment/granted_token.rb +13 -0
  29. data/lib/stripe/resources/subscription.rb +30 -0
  30. data/lib/stripe/services/v2/money_management/payout_method_service.rb +1 -0
  31. data/lib/stripe/version.rb +1 -1
  32. data/rbi/stripe.rbi +3926 -369
  33. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e20c8472bcd9b87a03c672c879a3803592b416de01afedc2ad722fa4284f681
4
- data.tar.gz: 1d65bb32aa745dbb3997cd6d78af53d0dba1c010e12e194507a3aeb4c69e81e7
3
+ metadata.gz: 67441645386773b8754e26a1ea9bfee8100643950f3a5f9b03021c3d81d93022
4
+ data.tar.gz: aa83762783b2d431a8cbb75a3774ee61ec0489f6123f0dd0cc258035cf895bc8
5
5
  SHA512:
6
- metadata.gz: 71bbffa482dc6fc541f9e8e2e1af039a066b306b69d8ee59f22d8a87399ef3653f0401bda7a5f10dc4b38c2e278716ebb77177be38df67cbb881b2a2ca3ebc7b
7
- data.tar.gz: ecf35c67d83811191c8da046d1832ee4f4aabb47415bc0f1cb62f3dd301d1848e2e203890cb8bc3b9906c5d91cd2145fbc324a480e1686b72a9d9980e658fb5a
6
+ metadata.gz: 8bd6d1c2ec9a2bccb27cafd85f5c2f59e1bbf94f0b6946fb8ffc9ecb58b2f8c3e470a1aca8c9652d1ca1935884da4bc6a9bf23d6cd4536840019eef400a044a9
7
+ data.tar.gz: bb81a158e9a9d4d3568262d659782cceb13dd199dab44eed7232345335c7868fcde9dfe0cc4ab6ae8bc0255d56d6ff3751f67494ea67858081c9ec5bcb93b97e
@@ -859,6 +859,8 @@ module Stripe
859
859
  AlreadyExistsError.new(error_data[:message], **opts)
860
860
  when "blocked_by_stripe"
861
861
  BlockedByStripeError.new(error_data[:message], **opts)
862
+ when "cannot_proceed"
863
+ CannotProceedError.new(error_data[:message], **opts, reason: error_data[:reason])
862
864
  when "controlled_by_alternate_resource"
863
865
  ControlledByAlternateResourceError.new(error_data[:message], **opts)
864
866
  when "controlled_by_dashboard"
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2026-04-01.preview"
6
+ CURRENT = "2026-04-08.preview"
7
7
  end
8
8
  end
data/lib/stripe/errors.rb CHANGED
@@ -171,6 +171,30 @@ module Stripe
171
171
  class BlockedByStripeError < StripeError
172
172
  end
173
173
 
174
+ class CannotProceedError < StripeError
175
+ attr_reader :reason
176
+
177
+ def initialize(
178
+ message = nil,
179
+ http_body: nil,
180
+ http_status: nil,
181
+ json_body: nil,
182
+ http_headers: nil,
183
+ code: nil,
184
+ reason: nil
185
+ )
186
+ super(
187
+ message,
188
+ http_body: http_body,
189
+ http_status: http_status,
190
+ json_body: json_body,
191
+ http_headers: http_headers,
192
+ code: code,
193
+ )
194
+ @reason = reason
195
+ end
196
+ end
197
+
174
198
  class ControlledByAlternateResourceError < StripeError
175
199
  end
176
200
 
@@ -696,6 +696,99 @@ module Stripe
696
696
  end
697
697
  end
698
698
 
699
+ class FleetDatum < ::Stripe::RequestParams
700
+ class PrimaryFuelFields < ::Stripe::RequestParams
701
+ # The fuel brand.
702
+ attr_accessor :brand
703
+
704
+ def initialize(brand: nil)
705
+ @brand = brand
706
+ end
707
+ end
708
+
709
+ class Station < ::Stripe::RequestParams
710
+ class ServiceLocation < ::Stripe::RequestParams
711
+ # City, district, suburb, town, or village.
712
+ attr_accessor :city
713
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
714
+ attr_accessor :country
715
+ # Address line 1, such as the street, PO Box, or company name.
716
+ attr_accessor :line1
717
+ # Address line 2, such as the apartment, suite, unit, or building.
718
+ attr_accessor :line2
719
+ # ZIP or postal code.
720
+ attr_accessor :postal_code
721
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
722
+ attr_accessor :state
723
+
724
+ def initialize(
725
+ city: nil,
726
+ country: nil,
727
+ line1: nil,
728
+ line2: nil,
729
+ postal_code: nil,
730
+ state: nil
731
+ )
732
+ @city = city
733
+ @country = country
734
+ @line1 = line1
735
+ @line2 = line2
736
+ @postal_code = postal_code
737
+ @state = state
738
+ end
739
+ end
740
+ # Additional contact information for the station.
741
+ attr_accessor :additional_contact_info
742
+ # The customer service phone number of the station.
743
+ attr_accessor :customer_service_phone_number
744
+ # The partner ID code of the station.
745
+ attr_accessor :partner_id_code
746
+ # The phone number of the station.
747
+ attr_accessor :phone_number
748
+ # The physical location of the station.
749
+ attr_accessor :service_location
750
+ # The URL of the station.
751
+ attr_accessor :url
752
+
753
+ def initialize(
754
+ additional_contact_info: nil,
755
+ customer_service_phone_number: nil,
756
+ partner_id_code: nil,
757
+ phone_number: nil,
758
+ service_location: nil,
759
+ url: nil
760
+ )
761
+ @additional_contact_info = additional_contact_info
762
+ @customer_service_phone_number = customer_service_phone_number
763
+ @partner_id_code = partner_id_code
764
+ @phone_number = phone_number
765
+ @service_location = service_location
766
+ @url = url
767
+ end
768
+ end
769
+
770
+ class Vat < ::Stripe::RequestParams
771
+ # Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing.
772
+ attr_accessor :iob_indicator
773
+
774
+ def initialize(iob_indicator: nil)
775
+ @iob_indicator = iob_indicator
776
+ end
777
+ end
778
+ # Primary fuel fields for the transaction.
779
+ attr_accessor :primary_fuel_fields
780
+ # Station and acceptor location details.
781
+ attr_accessor :station
782
+ # VAT and Invoice on Behalf (IOB) details.
783
+ attr_accessor :vat
784
+
785
+ def initialize(primary_fuel_fields: nil, station: nil, vat: nil)
786
+ @primary_fuel_fields = primary_fuel_fields
787
+ @station = station
788
+ @vat = vat
789
+ end
790
+ end
791
+
699
792
  class Flight < ::Stripe::RequestParams
700
793
  class Affiliate < ::Stripe::RequestParams
701
794
  # The name of the affiliate that originated the purchase.
@@ -1546,7 +1639,159 @@ module Stripe
1546
1639
  end
1547
1640
 
1548
1641
  class MoneyServices < ::Stripe::RequestParams
1549
- class AccountFunding < ::Stripe::RequestParams; end
1642
+ class AccountFunding < ::Stripe::RequestParams
1643
+ class BeneficiaryDetails < ::Stripe::RequestParams
1644
+ class Address < ::Stripe::RequestParams
1645
+ # City, district, suburb, town, or village.
1646
+ attr_accessor :city
1647
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1648
+ attr_accessor :country
1649
+ # Address line 1, such as the street, PO Box, or company name.
1650
+ attr_accessor :line1
1651
+ # Address line 2, such as the apartment, suite, unit, or building.
1652
+ attr_accessor :line2
1653
+ # ZIP or postal code.
1654
+ attr_accessor :postal_code
1655
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1656
+ attr_accessor :state
1657
+
1658
+ def initialize(
1659
+ city: nil,
1660
+ country: nil,
1661
+ line1: nil,
1662
+ line2: nil,
1663
+ postal_code: nil,
1664
+ state: nil
1665
+ )
1666
+ @city = city
1667
+ @country = country
1668
+ @line1 = line1
1669
+ @line2 = line2
1670
+ @postal_code = postal_code
1671
+ @state = state
1672
+ end
1673
+ end
1674
+
1675
+ class DateOfBirth < ::Stripe::RequestParams
1676
+ # Day of birth, between 1 and 31.
1677
+ attr_accessor :day
1678
+ # Month of birth, between 1 and 12.
1679
+ attr_accessor :month
1680
+ # Four-digit year of birth.
1681
+ attr_accessor :year
1682
+
1683
+ def initialize(day: nil, month: nil, year: nil)
1684
+ @day = day
1685
+ @month = month
1686
+ @year = year
1687
+ end
1688
+ end
1689
+ # Address.
1690
+ attr_accessor :address
1691
+ # Date of birth.
1692
+ attr_accessor :date_of_birth
1693
+ # Email address.
1694
+ attr_accessor :email
1695
+ # Full name.
1696
+ attr_accessor :name
1697
+ # Phone number.
1698
+ attr_accessor :phone
1699
+
1700
+ def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
1701
+ @address = address
1702
+ @date_of_birth = date_of_birth
1703
+ @email = email
1704
+ @name = name
1705
+ @phone = phone
1706
+ end
1707
+ end
1708
+
1709
+ class SenderDetails < ::Stripe::RequestParams
1710
+ class Address < ::Stripe::RequestParams
1711
+ # City, district, suburb, town, or village.
1712
+ attr_accessor :city
1713
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1714
+ attr_accessor :country
1715
+ # Address line 1, such as the street, PO Box, or company name.
1716
+ attr_accessor :line1
1717
+ # Address line 2, such as the apartment, suite, unit, or building.
1718
+ attr_accessor :line2
1719
+ # ZIP or postal code.
1720
+ attr_accessor :postal_code
1721
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1722
+ attr_accessor :state
1723
+
1724
+ def initialize(
1725
+ city: nil,
1726
+ country: nil,
1727
+ line1: nil,
1728
+ line2: nil,
1729
+ postal_code: nil,
1730
+ state: nil
1731
+ )
1732
+ @city = city
1733
+ @country = country
1734
+ @line1 = line1
1735
+ @line2 = line2
1736
+ @postal_code = postal_code
1737
+ @state = state
1738
+ end
1739
+ end
1740
+
1741
+ class DateOfBirth < ::Stripe::RequestParams
1742
+ # Day of birth, between 1 and 31.
1743
+ attr_accessor :day
1744
+ # Month of birth, between 1 and 12.
1745
+ attr_accessor :month
1746
+ # Four-digit year of birth.
1747
+ attr_accessor :year
1748
+
1749
+ def initialize(day: nil, month: nil, year: nil)
1750
+ @day = day
1751
+ @month = month
1752
+ @year = year
1753
+ end
1754
+ end
1755
+ # Address.
1756
+ attr_accessor :address
1757
+ # Date of birth.
1758
+ attr_accessor :date_of_birth
1759
+ # Email address.
1760
+ attr_accessor :email
1761
+ # Full name.
1762
+ attr_accessor :name
1763
+ # Phone number.
1764
+ attr_accessor :phone
1765
+
1766
+ def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
1767
+ @address = address
1768
+ @date_of_birth = date_of_birth
1769
+ @email = email
1770
+ @name = name
1771
+ @phone = phone
1772
+ end
1773
+ end
1774
+ # ID of the Account representing the beneficiary in this account funding transaction.
1775
+ attr_accessor :beneficiary_account
1776
+ # Inline identity details for the beneficiary of this account funding transaction.
1777
+ attr_accessor :beneficiary_details
1778
+ # ID of the Account representing the sender in this account funding transaction.
1779
+ attr_accessor :sender_account
1780
+ # Inline identity details for the sender of this account funding transaction.
1781
+ attr_accessor :sender_details
1782
+
1783
+ def initialize(
1784
+ beneficiary_account: nil,
1785
+ beneficiary_details: nil,
1786
+ sender_account: nil,
1787
+ sender_details: nil
1788
+ )
1789
+ @beneficiary_account = beneficiary_account
1790
+ @beneficiary_details = beneficiary_details
1791
+ @sender_account = sender_account
1792
+ @sender_details = sender_details
1793
+ end
1794
+ end
1550
1795
  # Account funding transaction details including sender and beneficiary information.
1551
1796
  attr_accessor :account_funding
1552
1797
  # The type of money services transaction.
@@ -1632,6 +1877,8 @@ module Stripe
1632
1877
  attr_accessor :order_reference
1633
1878
  # Subscription details for this PaymentIntent
1634
1879
  attr_accessor :subscription
1880
+ # Fleet data for this PaymentIntent.
1881
+ attr_accessor :fleet_data
1635
1882
  # Money services details for this PaymentIntent.
1636
1883
  attr_accessor :money_services
1637
1884
 
@@ -1646,6 +1893,7 @@ module Stripe
1646
1893
  lodging_data: nil,
1647
1894
  order_reference: nil,
1648
1895
  subscription: nil,
1896
+ fleet_data: nil,
1649
1897
  money_services: nil
1650
1898
  )
1651
1899
  @car_rental = car_rental
@@ -1658,6 +1906,7 @@ module Stripe
1658
1906
  @lodging_data = lodging_data
1659
1907
  @order_reference = order_reference
1660
1908
  @subscription = subscription
1909
+ @fleet_data = fleet_data
1661
1910
  @money_services = money_services
1662
1911
  end
1663
1912
  end
@@ -705,6 +705,99 @@ module Stripe
705
705
  end
706
706
  end
707
707
 
708
+ class FleetDatum < ::Stripe::RequestParams
709
+ class PrimaryFuelFields < ::Stripe::RequestParams
710
+ # The fuel brand.
711
+ attr_accessor :brand
712
+
713
+ def initialize(brand: nil)
714
+ @brand = brand
715
+ end
716
+ end
717
+
718
+ class Station < ::Stripe::RequestParams
719
+ class ServiceLocation < ::Stripe::RequestParams
720
+ # City, district, suburb, town, or village.
721
+ attr_accessor :city
722
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
723
+ attr_accessor :country
724
+ # Address line 1, such as the street, PO Box, or company name.
725
+ attr_accessor :line1
726
+ # Address line 2, such as the apartment, suite, unit, or building.
727
+ attr_accessor :line2
728
+ # ZIP or postal code.
729
+ attr_accessor :postal_code
730
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
731
+ attr_accessor :state
732
+
733
+ def initialize(
734
+ city: nil,
735
+ country: nil,
736
+ line1: nil,
737
+ line2: nil,
738
+ postal_code: nil,
739
+ state: nil
740
+ )
741
+ @city = city
742
+ @country = country
743
+ @line1 = line1
744
+ @line2 = line2
745
+ @postal_code = postal_code
746
+ @state = state
747
+ end
748
+ end
749
+ # Additional contact information for the station.
750
+ attr_accessor :additional_contact_info
751
+ # The customer service phone number of the station.
752
+ attr_accessor :customer_service_phone_number
753
+ # The partner ID code of the station.
754
+ attr_accessor :partner_id_code
755
+ # The phone number of the station.
756
+ attr_accessor :phone_number
757
+ # The physical location of the station.
758
+ attr_accessor :service_location
759
+ # The URL of the station.
760
+ attr_accessor :url
761
+
762
+ def initialize(
763
+ additional_contact_info: nil,
764
+ customer_service_phone_number: nil,
765
+ partner_id_code: nil,
766
+ phone_number: nil,
767
+ service_location: nil,
768
+ url: nil
769
+ )
770
+ @additional_contact_info = additional_contact_info
771
+ @customer_service_phone_number = customer_service_phone_number
772
+ @partner_id_code = partner_id_code
773
+ @phone_number = phone_number
774
+ @service_location = service_location
775
+ @url = url
776
+ end
777
+ end
778
+
779
+ class Vat < ::Stripe::RequestParams
780
+ # Indicates the merchant's agreement for Invoice on Behalf (IOB) VAT processing.
781
+ attr_accessor :iob_indicator
782
+
783
+ def initialize(iob_indicator: nil)
784
+ @iob_indicator = iob_indicator
785
+ end
786
+ end
787
+ # Primary fuel fields for the transaction.
788
+ attr_accessor :primary_fuel_fields
789
+ # Station and acceptor location details.
790
+ attr_accessor :station
791
+ # VAT and Invoice on Behalf (IOB) details.
792
+ attr_accessor :vat
793
+
794
+ def initialize(primary_fuel_fields: nil, station: nil, vat: nil)
795
+ @primary_fuel_fields = primary_fuel_fields
796
+ @station = station
797
+ @vat = vat
798
+ end
799
+ end
800
+
708
801
  class Flight < ::Stripe::RequestParams
709
802
  class Affiliate < ::Stripe::RequestParams
710
803
  # The name of the affiliate that originated the purchase.
@@ -1555,7 +1648,159 @@ module Stripe
1555
1648
  end
1556
1649
 
1557
1650
  class MoneyServices < ::Stripe::RequestParams
1558
- class AccountFunding < ::Stripe::RequestParams; end
1651
+ class AccountFunding < ::Stripe::RequestParams
1652
+ class BeneficiaryDetails < ::Stripe::RequestParams
1653
+ class Address < ::Stripe::RequestParams
1654
+ # City, district, suburb, town, or village.
1655
+ attr_accessor :city
1656
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1657
+ attr_accessor :country
1658
+ # Address line 1, such as the street, PO Box, or company name.
1659
+ attr_accessor :line1
1660
+ # Address line 2, such as the apartment, suite, unit, or building.
1661
+ attr_accessor :line2
1662
+ # ZIP or postal code.
1663
+ attr_accessor :postal_code
1664
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1665
+ attr_accessor :state
1666
+
1667
+ def initialize(
1668
+ city: nil,
1669
+ country: nil,
1670
+ line1: nil,
1671
+ line2: nil,
1672
+ postal_code: nil,
1673
+ state: nil
1674
+ )
1675
+ @city = city
1676
+ @country = country
1677
+ @line1 = line1
1678
+ @line2 = line2
1679
+ @postal_code = postal_code
1680
+ @state = state
1681
+ end
1682
+ end
1683
+
1684
+ class DateOfBirth < ::Stripe::RequestParams
1685
+ # Day of birth, between 1 and 31.
1686
+ attr_accessor :day
1687
+ # Month of birth, between 1 and 12.
1688
+ attr_accessor :month
1689
+ # Four-digit year of birth.
1690
+ attr_accessor :year
1691
+
1692
+ def initialize(day: nil, month: nil, year: nil)
1693
+ @day = day
1694
+ @month = month
1695
+ @year = year
1696
+ end
1697
+ end
1698
+ # Address.
1699
+ attr_accessor :address
1700
+ # Date of birth.
1701
+ attr_accessor :date_of_birth
1702
+ # Email address.
1703
+ attr_accessor :email
1704
+ # Full name.
1705
+ attr_accessor :name
1706
+ # Phone number.
1707
+ attr_accessor :phone
1708
+
1709
+ def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
1710
+ @address = address
1711
+ @date_of_birth = date_of_birth
1712
+ @email = email
1713
+ @name = name
1714
+ @phone = phone
1715
+ end
1716
+ end
1717
+
1718
+ class SenderDetails < ::Stripe::RequestParams
1719
+ class Address < ::Stripe::RequestParams
1720
+ # City, district, suburb, town, or village.
1721
+ attr_accessor :city
1722
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1723
+ attr_accessor :country
1724
+ # Address line 1, such as the street, PO Box, or company name.
1725
+ attr_accessor :line1
1726
+ # Address line 2, such as the apartment, suite, unit, or building.
1727
+ attr_accessor :line2
1728
+ # ZIP or postal code.
1729
+ attr_accessor :postal_code
1730
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1731
+ attr_accessor :state
1732
+
1733
+ def initialize(
1734
+ city: nil,
1735
+ country: nil,
1736
+ line1: nil,
1737
+ line2: nil,
1738
+ postal_code: nil,
1739
+ state: nil
1740
+ )
1741
+ @city = city
1742
+ @country = country
1743
+ @line1 = line1
1744
+ @line2 = line2
1745
+ @postal_code = postal_code
1746
+ @state = state
1747
+ end
1748
+ end
1749
+
1750
+ class DateOfBirth < ::Stripe::RequestParams
1751
+ # Day of birth, between 1 and 31.
1752
+ attr_accessor :day
1753
+ # Month of birth, between 1 and 12.
1754
+ attr_accessor :month
1755
+ # Four-digit year of birth.
1756
+ attr_accessor :year
1757
+
1758
+ def initialize(day: nil, month: nil, year: nil)
1759
+ @day = day
1760
+ @month = month
1761
+ @year = year
1762
+ end
1763
+ end
1764
+ # Address.
1765
+ attr_accessor :address
1766
+ # Date of birth.
1767
+ attr_accessor :date_of_birth
1768
+ # Email address.
1769
+ attr_accessor :email
1770
+ # Full name.
1771
+ attr_accessor :name
1772
+ # Phone number.
1773
+ attr_accessor :phone
1774
+
1775
+ def initialize(address: nil, date_of_birth: nil, email: nil, name: nil, phone: nil)
1776
+ @address = address
1777
+ @date_of_birth = date_of_birth
1778
+ @email = email
1779
+ @name = name
1780
+ @phone = phone
1781
+ end
1782
+ end
1783
+ # ID of the Account representing the beneficiary in this account funding transaction.
1784
+ attr_accessor :beneficiary_account
1785
+ # Inline identity details for the beneficiary of this account funding transaction.
1786
+ attr_accessor :beneficiary_details
1787
+ # ID of the Account representing the sender in this account funding transaction.
1788
+ attr_accessor :sender_account
1789
+ # Inline identity details for the sender of this account funding transaction.
1790
+ attr_accessor :sender_details
1791
+
1792
+ def initialize(
1793
+ beneficiary_account: nil,
1794
+ beneficiary_details: nil,
1795
+ sender_account: nil,
1796
+ sender_details: nil
1797
+ )
1798
+ @beneficiary_account = beneficiary_account
1799
+ @beneficiary_details = beneficiary_details
1800
+ @sender_account = sender_account
1801
+ @sender_details = sender_details
1802
+ end
1803
+ end
1559
1804
  # Account funding transaction details including sender and beneficiary information.
1560
1805
  attr_accessor :account_funding
1561
1806
  # The type of money services transaction.
@@ -1641,6 +1886,8 @@ module Stripe
1641
1886
  attr_accessor :order_reference
1642
1887
  # Subscription details for this PaymentIntent
1643
1888
  attr_accessor :subscription
1889
+ # Fleet data for this PaymentIntent.
1890
+ attr_accessor :fleet_data
1644
1891
  # Money services details for this PaymentIntent.
1645
1892
  attr_accessor :money_services
1646
1893
 
@@ -1655,6 +1902,7 @@ module Stripe
1655
1902
  lodging_data: nil,
1656
1903
  order_reference: nil,
1657
1904
  subscription: nil,
1905
+ fleet_data: nil,
1658
1906
  money_services: nil
1659
1907
  )
1660
1908
  @car_rental = car_rental
@@ -1667,6 +1915,7 @@ module Stripe
1667
1915
  @lodging_data = lodging_data
1668
1916
  @order_reference = order_reference
1669
1917
  @subscription = subscription
1918
+ @fleet_data = fleet_data
1670
1919
  @money_services = money_services
1671
1920
  end
1672
1921
  end
@@ -154,6 +154,8 @@ module Stripe
154
154
  end
155
155
  end
156
156
 
157
+ class Bizum < ::Stripe::RequestParams; end
158
+
157
159
  class Card < ::Stripe::RequestParams
158
160
  class Installments < ::Stripe::RequestParams
159
161
  class Plan < ::Stripe::RequestParams
@@ -386,6 +388,8 @@ module Stripe
386
388
  attr_accessor :upi
387
389
  # If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
388
390
  attr_accessor :us_bank_account
391
+ # If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice’s PaymentIntent.
392
+ attr_accessor :bizum
389
393
  # If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice’s PaymentIntent.
390
394
  attr_accessor :check_scan
391
395
 
@@ -401,6 +405,7 @@ module Stripe
401
405
  sepa_debit: nil,
402
406
  upi: nil,
403
407
  us_bank_account: nil,
408
+ bizum: nil,
404
409
  check_scan: nil
405
410
  )
406
411
  @acss_debit = acss_debit
@@ -414,6 +419,7 @@ module Stripe
414
419
  @sepa_debit = sepa_debit
415
420
  @upi = upi
416
421
  @us_bank_account = us_bank_account
422
+ @bizum = bizum
417
423
  @check_scan = check_scan
418
424
  end
419
425
  end
@@ -142,6 +142,8 @@ module Stripe
142
142
  end
143
143
  end
144
144
 
145
+ class Bizum < ::Stripe::RequestParams; end
146
+
145
147
  class Card < ::Stripe::RequestParams
146
148
  class Installments < ::Stripe::RequestParams
147
149
  class Plan < ::Stripe::RequestParams
@@ -374,6 +376,8 @@ module Stripe
374
376
  attr_accessor :upi
375
377
  # If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
376
378
  attr_accessor :us_bank_account
379
+ # If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice’s PaymentIntent.
380
+ attr_accessor :bizum
377
381
  # If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice’s PaymentIntent.
378
382
  attr_accessor :check_scan
379
383
 
@@ -389,6 +393,7 @@ module Stripe
389
393
  sepa_debit: nil,
390
394
  upi: nil,
391
395
  us_bank_account: nil,
396
+ bizum: nil,
392
397
  check_scan: nil
393
398
  )
394
399
  @acss_debit = acss_debit
@@ -402,6 +407,7 @@ module Stripe
402
407
  @sepa_debit = sepa_debit
403
408
  @upi = upi
404
409
  @us_bank_account = us_bank_account
410
+ @bizum = bizum
405
411
  @check_scan = check_scan
406
412
  end
407
413
  end