stripe 17.2.0.pre.alpha.1 → 17.2.0.pre.alpha.2
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/params/v2/core/account_create_params.rb +117 -3
- data/lib/stripe/params/v2/core/account_update_params.rb +117 -3
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +79 -0
- data/lib/stripe/resources/v2/core/account.rb +156 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +629 -11
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1e16e5a8ef5a0b582921ed9ee156d0b7b46d7bb0ea8a3b3e17d6e9671a7460b
|
|
4
|
+
data.tar.gz: 5f10b0f90306da5c73f7074c986b1fd42ee4c732e7dc3d9621771ae73d7afaf9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f615d1ff583b9fdcd8ee6c1c55323c3af096f8e074864ea9f8cf07592c5275d0fcfa95d5c8fc95b8c660cd2f33fecce1cfaab6092f085fa3af33c0c0ab7fbaa
|
|
7
|
+
data.tar.gz: 884fceaf9058b22f3766427e5d05c8fcd1c84d86c630cbf6af1b70a443a7d75ce9c47880c2848739a6f4fdec142b85debbcd8e7752c67b701f4fed2ecff9bf40
|
|
@@ -67,6 +67,23 @@ module Stripe
|
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
+
class Lead < ::Stripe::RequestParams
|
|
71
|
+
class PrepaidCard < ::Stripe::RequestParams
|
|
72
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
73
|
+
attr_accessor :requested
|
|
74
|
+
|
|
75
|
+
def initialize(requested: nil)
|
|
76
|
+
@requested = requested
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
# Can create commercial issuing prepaid cards with Lead as BIN sponsor.
|
|
80
|
+
attr_accessor :prepaid_card
|
|
81
|
+
|
|
82
|
+
def initialize(prepaid_card: nil)
|
|
83
|
+
@prepaid_card = prepaid_card
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
70
87
|
class Stripe < ::Stripe::RequestParams
|
|
71
88
|
class ChargeCard < ::Stripe::RequestParams
|
|
72
89
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
@@ -100,11 +117,14 @@ module Stripe
|
|
|
100
117
|
# Can create commercial issuing cards with Cross River Bank as BIN sponsor.
|
|
101
118
|
attr_accessor :cross_river_bank
|
|
102
119
|
# Can create commercial issuing cards with Stripe as BIN sponsor.
|
|
120
|
+
attr_accessor :lead
|
|
121
|
+
# Can create commercial issuing cards with Stripe as BIN sponsor.
|
|
103
122
|
attr_accessor :stripe
|
|
104
123
|
|
|
105
|
-
def initialize(celtic: nil, cross_river_bank: nil, stripe: nil)
|
|
124
|
+
def initialize(celtic: nil, cross_river_bank: nil, lead: nil, stripe: nil)
|
|
106
125
|
@celtic = celtic
|
|
107
126
|
@cross_river_bank = cross_river_bank
|
|
127
|
+
@lead = lead
|
|
108
128
|
@stripe = stripe
|
|
109
129
|
end
|
|
110
130
|
end
|
|
@@ -1815,17 +1835,111 @@ module Stripe
|
|
|
1815
1835
|
@spend_card = spend_card
|
|
1816
1836
|
end
|
|
1817
1837
|
end
|
|
1838
|
+
|
|
1839
|
+
class GlobalAccountHolder < ::Stripe::RequestParams
|
|
1840
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
1841
|
+
attr_accessor :date
|
|
1842
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
1843
|
+
attr_accessor :ip
|
|
1844
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
1845
|
+
attr_accessor :user_agent
|
|
1846
|
+
|
|
1847
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
|
1848
|
+
@date = date
|
|
1849
|
+
@ip = ip
|
|
1850
|
+
@user_agent = user_agent
|
|
1851
|
+
end
|
|
1852
|
+
end
|
|
1853
|
+
|
|
1854
|
+
class Lead < ::Stripe::RequestParams
|
|
1855
|
+
class ApplePay < ::Stripe::RequestParams
|
|
1856
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
1857
|
+
attr_accessor :date
|
|
1858
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
1859
|
+
attr_accessor :ip
|
|
1860
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
1861
|
+
attr_accessor :user_agent
|
|
1862
|
+
|
|
1863
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
|
1864
|
+
@date = date
|
|
1865
|
+
@ip = ip
|
|
1866
|
+
@user_agent = user_agent
|
|
1867
|
+
end
|
|
1868
|
+
end
|
|
1869
|
+
|
|
1870
|
+
class PrepaidCard < ::Stripe::RequestParams
|
|
1871
|
+
class BankTerms < ::Stripe::RequestParams
|
|
1872
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
1873
|
+
attr_accessor :date
|
|
1874
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
1875
|
+
attr_accessor :ip
|
|
1876
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
1877
|
+
attr_accessor :user_agent
|
|
1878
|
+
|
|
1879
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
|
1880
|
+
@date = date
|
|
1881
|
+
@ip = ip
|
|
1882
|
+
@user_agent = user_agent
|
|
1883
|
+
end
|
|
1884
|
+
end
|
|
1885
|
+
|
|
1886
|
+
class Platform < ::Stripe::RequestParams
|
|
1887
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
1888
|
+
attr_accessor :date
|
|
1889
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
1890
|
+
attr_accessor :ip
|
|
1891
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
1892
|
+
attr_accessor :user_agent
|
|
1893
|
+
|
|
1894
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
|
1895
|
+
@date = date
|
|
1896
|
+
@ip = ip
|
|
1897
|
+
@user_agent = user_agent
|
|
1898
|
+
end
|
|
1899
|
+
end
|
|
1900
|
+
# Bank terms of service acceptance for commercial issuing prepaid cards with Lead as BIN sponsor.
|
|
1901
|
+
attr_accessor :bank_terms
|
|
1902
|
+
# Platform terms of service acceptance for commercial issuing prepaid cards with Lead as BIN sponsor.
|
|
1903
|
+
attr_accessor :platform
|
|
1904
|
+
|
|
1905
|
+
def initialize(bank_terms: nil, platform: nil)
|
|
1906
|
+
@bank_terms = bank_terms
|
|
1907
|
+
@platform = platform
|
|
1908
|
+
end
|
|
1909
|
+
end
|
|
1910
|
+
# Terms of service acceptances for commercial issuing Apple Pay cards with Lead as BIN sponsor.
|
|
1911
|
+
attr_accessor :apple_pay
|
|
1912
|
+
# Terms of service acceptances for commercial issuing prepaid cards with Lead as BIN sponsor.
|
|
1913
|
+
attr_accessor :prepaid_card
|
|
1914
|
+
|
|
1915
|
+
def initialize(apple_pay: nil, prepaid_card: nil)
|
|
1916
|
+
@apple_pay = apple_pay
|
|
1917
|
+
@prepaid_card = prepaid_card
|
|
1918
|
+
end
|
|
1919
|
+
end
|
|
1818
1920
|
# Terms of service acceptances for Stripe commercial card issuing.
|
|
1819
1921
|
attr_accessor :account_holder
|
|
1820
1922
|
# Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor.
|
|
1821
1923
|
attr_accessor :celtic
|
|
1822
1924
|
# Terms of service acceptances for commercial issuing cards with Cross River Bank as BIN sponsor.
|
|
1823
1925
|
attr_accessor :cross_river_bank
|
|
1824
|
-
|
|
1825
|
-
|
|
1926
|
+
# Terms of service acceptances for Stripe commercial card Global issuing.
|
|
1927
|
+
attr_accessor :global_account_holder
|
|
1928
|
+
# Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
|
|
1929
|
+
attr_accessor :lead
|
|
1930
|
+
|
|
1931
|
+
def initialize(
|
|
1932
|
+
account_holder: nil,
|
|
1933
|
+
celtic: nil,
|
|
1934
|
+
cross_river_bank: nil,
|
|
1935
|
+
global_account_holder: nil,
|
|
1936
|
+
lead: nil
|
|
1937
|
+
)
|
|
1826
1938
|
@account_holder = account_holder
|
|
1827
1939
|
@celtic = celtic
|
|
1828
1940
|
@cross_river_bank = cross_river_bank
|
|
1941
|
+
@global_account_holder = global_account_holder
|
|
1942
|
+
@lead = lead
|
|
1829
1943
|
end
|
|
1830
1944
|
end
|
|
1831
1945
|
# Terms of service acceptances to create cards for commercial issuing use cases.
|
|
@@ -67,6 +67,23 @@ module Stripe
|
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
+
class Lead < ::Stripe::RequestParams
|
|
71
|
+
class PrepaidCard < ::Stripe::RequestParams
|
|
72
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
73
|
+
attr_accessor :requested
|
|
74
|
+
|
|
75
|
+
def initialize(requested: nil)
|
|
76
|
+
@requested = requested
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
# Can create commercial issuing prepaid cards with Lead as BIN sponsor.
|
|
80
|
+
attr_accessor :prepaid_card
|
|
81
|
+
|
|
82
|
+
def initialize(prepaid_card: nil)
|
|
83
|
+
@prepaid_card = prepaid_card
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
70
87
|
class Stripe < ::Stripe::RequestParams
|
|
71
88
|
class ChargeCard < ::Stripe::RequestParams
|
|
72
89
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
@@ -99,12 +116,15 @@ module Stripe
|
|
|
99
116
|
attr_accessor :celtic
|
|
100
117
|
# Can create commercial issuing cards with Cross River Bank as BIN sponsor.
|
|
101
118
|
attr_accessor :cross_river_bank
|
|
119
|
+
# Can create commercial issuing cards with Lead as BIN sponsor.
|
|
120
|
+
attr_accessor :lead
|
|
102
121
|
# Can create commercial issuing cards with Stripe as BIN sponsor.
|
|
103
122
|
attr_accessor :stripe
|
|
104
123
|
|
|
105
|
-
def initialize(celtic: nil, cross_river_bank: nil, stripe: nil)
|
|
124
|
+
def initialize(celtic: nil, cross_river_bank: nil, lead: nil, stripe: nil)
|
|
106
125
|
@celtic = celtic
|
|
107
126
|
@cross_river_bank = cross_river_bank
|
|
127
|
+
@lead = lead
|
|
108
128
|
@stripe = stripe
|
|
109
129
|
end
|
|
110
130
|
end
|
|
@@ -1847,17 +1867,111 @@ module Stripe
|
|
|
1847
1867
|
@spend_card = spend_card
|
|
1848
1868
|
end
|
|
1849
1869
|
end
|
|
1870
|
+
|
|
1871
|
+
class GlobalAccountHolder < ::Stripe::RequestParams
|
|
1872
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
1873
|
+
attr_accessor :date
|
|
1874
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
1875
|
+
attr_accessor :ip
|
|
1876
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
1877
|
+
attr_accessor :user_agent
|
|
1878
|
+
|
|
1879
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
|
1880
|
+
@date = date
|
|
1881
|
+
@ip = ip
|
|
1882
|
+
@user_agent = user_agent
|
|
1883
|
+
end
|
|
1884
|
+
end
|
|
1885
|
+
|
|
1886
|
+
class Lead < ::Stripe::RequestParams
|
|
1887
|
+
class ApplePay < ::Stripe::RequestParams
|
|
1888
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
1889
|
+
attr_accessor :date
|
|
1890
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
1891
|
+
attr_accessor :ip
|
|
1892
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
1893
|
+
attr_accessor :user_agent
|
|
1894
|
+
|
|
1895
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
|
1896
|
+
@date = date
|
|
1897
|
+
@ip = ip
|
|
1898
|
+
@user_agent = user_agent
|
|
1899
|
+
end
|
|
1900
|
+
end
|
|
1901
|
+
|
|
1902
|
+
class PrepaidCard < ::Stripe::RequestParams
|
|
1903
|
+
class BankTerms < ::Stripe::RequestParams
|
|
1904
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
1905
|
+
attr_accessor :date
|
|
1906
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
1907
|
+
attr_accessor :ip
|
|
1908
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
1909
|
+
attr_accessor :user_agent
|
|
1910
|
+
|
|
1911
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
|
1912
|
+
@date = date
|
|
1913
|
+
@ip = ip
|
|
1914
|
+
@user_agent = user_agent
|
|
1915
|
+
end
|
|
1916
|
+
end
|
|
1917
|
+
|
|
1918
|
+
class Platform < ::Stripe::RequestParams
|
|
1919
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
1920
|
+
attr_accessor :date
|
|
1921
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
1922
|
+
attr_accessor :ip
|
|
1923
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
1924
|
+
attr_accessor :user_agent
|
|
1925
|
+
|
|
1926
|
+
def initialize(date: nil, ip: nil, user_agent: nil)
|
|
1927
|
+
@date = date
|
|
1928
|
+
@ip = ip
|
|
1929
|
+
@user_agent = user_agent
|
|
1930
|
+
end
|
|
1931
|
+
end
|
|
1932
|
+
# Bank terms of service acceptance for commercial issuing prepaid cards with Lead as BIN sponsor.
|
|
1933
|
+
attr_accessor :bank_terms
|
|
1934
|
+
# Platform terms of service acceptance for commercial issuing prepaid cards with Lead as BIN sponsor.
|
|
1935
|
+
attr_accessor :platform
|
|
1936
|
+
|
|
1937
|
+
def initialize(bank_terms: nil, platform: nil)
|
|
1938
|
+
@bank_terms = bank_terms
|
|
1939
|
+
@platform = platform
|
|
1940
|
+
end
|
|
1941
|
+
end
|
|
1942
|
+
# Terms of service acceptances for commercial issuing Apple Pay cards with Lead as BIN sponsor.
|
|
1943
|
+
attr_accessor :apple_pay
|
|
1944
|
+
# Terms of service acceptances for commercial issuing prepaid cards with Lead as BIN sponsor.
|
|
1945
|
+
attr_accessor :prepaid_card
|
|
1946
|
+
|
|
1947
|
+
def initialize(apple_pay: nil, prepaid_card: nil)
|
|
1948
|
+
@apple_pay = apple_pay
|
|
1949
|
+
@prepaid_card = prepaid_card
|
|
1950
|
+
end
|
|
1951
|
+
end
|
|
1850
1952
|
# Terms of service acceptances for Stripe commercial card issuing.
|
|
1851
1953
|
attr_accessor :account_holder
|
|
1852
1954
|
# Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor.
|
|
1853
1955
|
attr_accessor :celtic
|
|
1854
1956
|
# Terms of service acceptances for commercial issuing cards with Cross River Bank as BIN sponsor.
|
|
1855
1957
|
attr_accessor :cross_river_bank
|
|
1856
|
-
|
|
1857
|
-
|
|
1958
|
+
# Terms of service acceptances for Stripe commercial card Global issuing.
|
|
1959
|
+
attr_accessor :global_account_holder
|
|
1960
|
+
# Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
|
|
1961
|
+
attr_accessor :lead
|
|
1962
|
+
|
|
1963
|
+
def initialize(
|
|
1964
|
+
account_holder: nil,
|
|
1965
|
+
celtic: nil,
|
|
1966
|
+
cross_river_bank: nil,
|
|
1967
|
+
global_account_holder: nil,
|
|
1968
|
+
lead: nil
|
|
1969
|
+
)
|
|
1858
1970
|
@account_holder = account_holder
|
|
1859
1971
|
@celtic = celtic
|
|
1860
1972
|
@cross_river_bank = cross_river_bank
|
|
1973
|
+
@global_account_holder = global_account_holder
|
|
1974
|
+
@lead = lead
|
|
1861
1975
|
end
|
|
1862
1976
|
end
|
|
1863
1977
|
# Terms of service acceptances to create cards for commercial issuing use cases.
|
|
@@ -166,6 +166,8 @@ module Stripe
|
|
|
166
166
|
class OrderDetails < ::Stripe::StripeObject
|
|
167
167
|
# The URL to the order status.
|
|
168
168
|
attr_reader :order_status_url
|
|
169
|
+
# The seller's order identifier.
|
|
170
|
+
attr_reader :order_id
|
|
169
171
|
|
|
170
172
|
def self.inner_class_types
|
|
171
173
|
@inner_class_types = {}
|
|
@@ -202,6 +204,80 @@ module Stripe
|
|
|
202
204
|
@field_remappings = {}
|
|
203
205
|
end
|
|
204
206
|
end
|
|
207
|
+
|
|
208
|
+
class PaymentMethodPreview < ::Stripe::StripeObject
|
|
209
|
+
class BillingDetails < ::Stripe::StripeObject
|
|
210
|
+
class Address < ::Stripe::StripeObject
|
|
211
|
+
# City, district, suburb, town, or village.
|
|
212
|
+
attr_reader :city
|
|
213
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
214
|
+
attr_reader :country
|
|
215
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
216
|
+
attr_reader :line1
|
|
217
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
218
|
+
attr_reader :line2
|
|
219
|
+
# ZIP or postal code.
|
|
220
|
+
attr_reader :postal_code
|
|
221
|
+
# State, county, province, or region.
|
|
222
|
+
attr_reader :state
|
|
223
|
+
|
|
224
|
+
def self.inner_class_types
|
|
225
|
+
@inner_class_types = {}
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
def self.field_remappings
|
|
229
|
+
@field_remappings = {}
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
# The billing address.
|
|
233
|
+
attr_reader :address
|
|
234
|
+
# The email address for the billing details.
|
|
235
|
+
attr_reader :email
|
|
236
|
+
# The name for the billing details.
|
|
237
|
+
attr_reader :name
|
|
238
|
+
# The phone number for the billing details.
|
|
239
|
+
attr_reader :phone
|
|
240
|
+
|
|
241
|
+
def self.inner_class_types
|
|
242
|
+
@inner_class_types = { address: Address }
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
def self.field_remappings
|
|
246
|
+
@field_remappings = {}
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
class Card < ::Stripe::StripeObject
|
|
251
|
+
# The expiry month of the card.
|
|
252
|
+
attr_reader :exp_month
|
|
253
|
+
# The expiry year of the card.
|
|
254
|
+
attr_reader :exp_year
|
|
255
|
+
# The last 4 digits of the card number.
|
|
256
|
+
attr_reader :last4
|
|
257
|
+
|
|
258
|
+
def self.inner_class_types
|
|
259
|
+
@inner_class_types = {}
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
def self.field_remappings
|
|
263
|
+
@field_remappings = {}
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
# The billing details of the payment method.
|
|
267
|
+
attr_reader :billing_details
|
|
268
|
+
# The card details of the payment method.
|
|
269
|
+
attr_reader :card
|
|
270
|
+
# The type of the payment method.
|
|
271
|
+
attr_reader :type
|
|
272
|
+
|
|
273
|
+
def self.inner_class_types
|
|
274
|
+
@inner_class_types = { billing_details: BillingDetails, card: Card }
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
def self.field_remappings
|
|
278
|
+
@field_remappings = {}
|
|
279
|
+
end
|
|
280
|
+
end
|
|
205
281
|
# The subtotal amount of the requested session.
|
|
206
282
|
attr_reader :amount_subtotal
|
|
207
283
|
# The total amount of the requested session.
|
|
@@ -244,6 +320,8 @@ module Stripe
|
|
|
244
320
|
attr_reader :total_details
|
|
245
321
|
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
|
246
322
|
attr_reader :updated_at
|
|
323
|
+
# The preview of the payment method to be created when the requested session is confirmed.
|
|
324
|
+
attr_reader :payment_method_preview
|
|
247
325
|
|
|
248
326
|
# Confirms a requested session
|
|
249
327
|
def confirm(params = {}, opts = {})
|
|
@@ -312,6 +390,7 @@ module Stripe
|
|
|
312
390
|
order_details: OrderDetails,
|
|
313
391
|
seller_details: SellerDetails,
|
|
314
392
|
total_details: TotalDetails,
|
|
393
|
+
payment_method_preview: PaymentMethodPreview,
|
|
315
394
|
}
|
|
316
395
|
end
|
|
317
396
|
|
|
@@ -167,6 +167,49 @@ module Stripe
|
|
|
167
167
|
end
|
|
168
168
|
end
|
|
169
169
|
|
|
170
|
+
class Lead < ::Stripe::StripeObject
|
|
171
|
+
class PrepaidCard < ::Stripe::StripeObject
|
|
172
|
+
class StatusDetail < ::Stripe::StripeObject
|
|
173
|
+
# Machine-readable code explaining the reason for the Capability to be in its current status.
|
|
174
|
+
attr_reader :code
|
|
175
|
+
# Machine-readable code explaining how to make the Capability active.
|
|
176
|
+
attr_reader :resolution
|
|
177
|
+
|
|
178
|
+
def self.inner_class_types
|
|
179
|
+
@inner_class_types = {}
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
def self.field_remappings
|
|
183
|
+
@field_remappings = {}
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
# Whether the Capability has been requested.
|
|
187
|
+
attr_reader :requested
|
|
188
|
+
# The status of the Capability.
|
|
189
|
+
attr_reader :status
|
|
190
|
+
# Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
|
|
191
|
+
attr_reader :status_details
|
|
192
|
+
|
|
193
|
+
def self.inner_class_types
|
|
194
|
+
@inner_class_types = { status_details: StatusDetail }
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
def self.field_remappings
|
|
198
|
+
@field_remappings = {}
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
# Can create commercial Global(cross border) issuing prepaid cards with Lead as BIN sponsor.
|
|
202
|
+
attr_reader :prepaid_card
|
|
203
|
+
|
|
204
|
+
def self.inner_class_types
|
|
205
|
+
@inner_class_types = { prepaid_card: PrepaidCard }
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
def self.field_remappings
|
|
209
|
+
@field_remappings = {}
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
170
213
|
class Stripe < ::Stripe::StripeObject
|
|
171
214
|
class ChargeCard < ::Stripe::StripeObject
|
|
172
215
|
class StatusDetail < ::Stripe::StripeObject
|
|
@@ -246,6 +289,8 @@ module Stripe
|
|
|
246
289
|
attr_reader :celtic
|
|
247
290
|
# Can create commercial issuing cards with Cross River Bank as BIN sponsor.
|
|
248
291
|
attr_reader :cross_river_bank
|
|
292
|
+
# Can create commercial issuing cards with Lead as a BIN sponsor.
|
|
293
|
+
attr_reader :lead
|
|
249
294
|
# Can create commercial issuing cards with Stripe as a BIN sponsor.
|
|
250
295
|
attr_reader :stripe
|
|
251
296
|
|
|
@@ -253,6 +298,7 @@ module Stripe
|
|
|
253
298
|
@inner_class_types = {
|
|
254
299
|
celtic: Celtic,
|
|
255
300
|
cross_river_bank: CrossRiverBank,
|
|
301
|
+
lead: Lead,
|
|
256
302
|
stripe: Stripe,
|
|
257
303
|
}
|
|
258
304
|
end
|
|
@@ -3578,18 +3624,128 @@ module Stripe
|
|
|
3578
3624
|
@field_remappings = {}
|
|
3579
3625
|
end
|
|
3580
3626
|
end
|
|
3627
|
+
|
|
3628
|
+
class GlobalAccountHolder < ::Stripe::StripeObject
|
|
3629
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
3630
|
+
attr_reader :date
|
|
3631
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
3632
|
+
attr_reader :ip
|
|
3633
|
+
# The URL to the service agreement the Account's representative accepted.
|
|
3634
|
+
attr_reader :url
|
|
3635
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
3636
|
+
attr_reader :user_agent
|
|
3637
|
+
|
|
3638
|
+
def self.inner_class_types
|
|
3639
|
+
@inner_class_types = {}
|
|
3640
|
+
end
|
|
3641
|
+
|
|
3642
|
+
def self.field_remappings
|
|
3643
|
+
@field_remappings = {}
|
|
3644
|
+
end
|
|
3645
|
+
end
|
|
3646
|
+
|
|
3647
|
+
class Lead < ::Stripe::StripeObject
|
|
3648
|
+
class ApplePay < ::Stripe::StripeObject
|
|
3649
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
3650
|
+
attr_reader :date
|
|
3651
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
3652
|
+
attr_reader :ip
|
|
3653
|
+
# The URL to the service agreement the Account's representative accepted.
|
|
3654
|
+
attr_reader :url
|
|
3655
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
3656
|
+
attr_reader :user_agent
|
|
3657
|
+
|
|
3658
|
+
def self.inner_class_types
|
|
3659
|
+
@inner_class_types = {}
|
|
3660
|
+
end
|
|
3661
|
+
|
|
3662
|
+
def self.field_remappings
|
|
3663
|
+
@field_remappings = {}
|
|
3664
|
+
end
|
|
3665
|
+
end
|
|
3666
|
+
|
|
3667
|
+
class PrepaidCard < ::Stripe::StripeObject
|
|
3668
|
+
class BankTerms < ::Stripe::StripeObject
|
|
3669
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
3670
|
+
attr_reader :date
|
|
3671
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
3672
|
+
attr_reader :ip
|
|
3673
|
+
# The URL to the service agreement the Account's representative accepted.
|
|
3674
|
+
attr_reader :url
|
|
3675
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
3676
|
+
attr_reader :user_agent
|
|
3677
|
+
|
|
3678
|
+
def self.inner_class_types
|
|
3679
|
+
@inner_class_types = {}
|
|
3680
|
+
end
|
|
3681
|
+
|
|
3682
|
+
def self.field_remappings
|
|
3683
|
+
@field_remappings = {}
|
|
3684
|
+
end
|
|
3685
|
+
end
|
|
3686
|
+
|
|
3687
|
+
class Platform < ::Stripe::StripeObject
|
|
3688
|
+
# The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
3689
|
+
attr_reader :date
|
|
3690
|
+
# The IP address from which the Account's representative accepted the terms of service.
|
|
3691
|
+
attr_reader :ip
|
|
3692
|
+
# The URL to the service agreement the Account's representative accepted.
|
|
3693
|
+
attr_reader :url
|
|
3694
|
+
# The user agent of the browser from which the Account's representative accepted the terms of service.
|
|
3695
|
+
attr_reader :user_agent
|
|
3696
|
+
|
|
3697
|
+
def self.inner_class_types
|
|
3698
|
+
@inner_class_types = {}
|
|
3699
|
+
end
|
|
3700
|
+
|
|
3701
|
+
def self.field_remappings
|
|
3702
|
+
@field_remappings = {}
|
|
3703
|
+
end
|
|
3704
|
+
end
|
|
3705
|
+
# Bank terms of service acceptance for commercial Global issuing prepaid cards with Lead as BIN sponsor.
|
|
3706
|
+
attr_reader :bank_terms
|
|
3707
|
+
# Platform terms of service acceptance for commercial Global issuing prepaid cards with Lead as BIN sponsor.
|
|
3708
|
+
attr_reader :platform
|
|
3709
|
+
|
|
3710
|
+
def self.inner_class_types
|
|
3711
|
+
@inner_class_types = { bank_terms: BankTerms, platform: Platform }
|
|
3712
|
+
end
|
|
3713
|
+
|
|
3714
|
+
def self.field_remappings
|
|
3715
|
+
@field_remappings = {}
|
|
3716
|
+
end
|
|
3717
|
+
end
|
|
3718
|
+
# Terms of service acceptances for commercial issuing Apple Pay cards with Celtic as BIN sponsor.
|
|
3719
|
+
attr_reader :apple_pay
|
|
3720
|
+
# Terms of service acceptances for commercial issuing Global prepaid cards with Lead as BIN sponsor.
|
|
3721
|
+
attr_reader :prepaid_card
|
|
3722
|
+
|
|
3723
|
+
def self.inner_class_types
|
|
3724
|
+
@inner_class_types = { apple_pay: ApplePay, prepaid_card: PrepaidCard }
|
|
3725
|
+
end
|
|
3726
|
+
|
|
3727
|
+
def self.field_remappings
|
|
3728
|
+
@field_remappings = {}
|
|
3729
|
+
end
|
|
3730
|
+
end
|
|
3581
3731
|
# Terms of service acceptances for Stripe commercial card issuing.
|
|
3582
3732
|
attr_reader :account_holder
|
|
3583
3733
|
# Terms of service acceptances for commercial issuing cards with Celtic as BIN sponsor.
|
|
3584
3734
|
attr_reader :celtic
|
|
3585
3735
|
# Terms of service acceptances for commercial issuing cards with Cross River Bank as BIN sponsor.
|
|
3586
3736
|
attr_reader :cross_river_bank
|
|
3737
|
+
# Terms of service acceptances for Stripe commercial card Global issuing.
|
|
3738
|
+
attr_reader :global_account_holder
|
|
3739
|
+
# Terms of service acceptances for commercial issuing cards with Lead as BIN sponsor.
|
|
3740
|
+
attr_reader :lead
|
|
3587
3741
|
|
|
3588
3742
|
def self.inner_class_types
|
|
3589
3743
|
@inner_class_types = {
|
|
3590
3744
|
account_holder: AccountHolder,
|
|
3591
3745
|
celtic: Celtic,
|
|
3592
3746
|
cross_river_bank: CrossRiverBank,
|
|
3747
|
+
global_account_holder: GlobalAccountHolder,
|
|
3748
|
+
lead: Lead,
|
|
3593
3749
|
}
|
|
3594
3750
|
end
|
|
3595
3751
|
|
data/lib/stripe/version.rb
CHANGED