stripe 17.1.0.pre.alpha.2 → 17.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.
- checksums.yaml +4 -4
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +18 -1
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/billing/meter_create_params.rb +5 -1
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -0
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +18 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +244 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +209 -0
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +33 -2
- data/lib/stripe/params/v2/core/account_list_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +33 -2
- data/lib/stripe/params/v2/core/event_list_params.rb +24 -1
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +1 -0
- data/lib/stripe/params.rb +15 -0
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +323 -0
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +4 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/core/account.rb +57 -2
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +35 -1
- data/lib/stripe/resources.rb +3 -0
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
- data/lib/stripe/services/delegated_checkout_service.rb +13 -0
- data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
- data/lib/stripe/services/identity_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +2 -1
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +8 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/core/account_service.rb +1 -1
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +11 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +33 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +11 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +1 -1
- data/lib/stripe/services.rb +4 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +1897 -32
- metadata +24 -2
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module DelegatedCheckout
|
|
6
|
+
# A requested session is a session that has been requested by a customer.
|
|
7
|
+
class RequestedSession < APIResource
|
|
8
|
+
extend Stripe::APIOperations::Create
|
|
9
|
+
include Stripe::APIOperations::Save
|
|
10
|
+
|
|
11
|
+
OBJECT_NAME = "delegated_checkout.requested_session"
|
|
12
|
+
def self.object_name
|
|
13
|
+
"delegated_checkout.requested_session"
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
class FulfillmentDetails < ::Stripe::StripeObject
|
|
17
|
+
class Address < ::Stripe::StripeObject
|
|
18
|
+
# City, district, suburb, town, or village.
|
|
19
|
+
attr_reader :city
|
|
20
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
21
|
+
attr_reader :country
|
|
22
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
23
|
+
attr_reader :line1
|
|
24
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
25
|
+
attr_reader :line2
|
|
26
|
+
# ZIP or postal code.
|
|
27
|
+
attr_reader :postal_code
|
|
28
|
+
# State, county, province, or region.
|
|
29
|
+
attr_reader :state
|
|
30
|
+
|
|
31
|
+
def self.inner_class_types
|
|
32
|
+
@inner_class_types = {}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def self.field_remappings
|
|
36
|
+
@field_remappings = {}
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
class FulfillmentOption < ::Stripe::StripeObject
|
|
41
|
+
class Shipping < ::Stripe::StripeObject
|
|
42
|
+
class ShippingOption < ::Stripe::StripeObject
|
|
43
|
+
# The description of the shipping option.
|
|
44
|
+
attr_reader :description
|
|
45
|
+
# The display name of the shipping option.
|
|
46
|
+
attr_reader :display_name
|
|
47
|
+
# The earliest delivery time of the shipping option.
|
|
48
|
+
attr_reader :earliest_delivery_time
|
|
49
|
+
# The key of the shipping option.
|
|
50
|
+
attr_reader :key
|
|
51
|
+
# The latest delivery time of the shipping option.
|
|
52
|
+
attr_reader :latest_delivery_time
|
|
53
|
+
# The shipping amount of the shipping option.
|
|
54
|
+
attr_reader :shipping_amount
|
|
55
|
+
|
|
56
|
+
def self.inner_class_types
|
|
57
|
+
@inner_class_types = {}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def self.field_remappings
|
|
61
|
+
@field_remappings = {}
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
# The shipping options.
|
|
65
|
+
attr_reader :shipping_options
|
|
66
|
+
|
|
67
|
+
def self.inner_class_types
|
|
68
|
+
@inner_class_types = { shipping_options: ShippingOption }
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def self.field_remappings
|
|
72
|
+
@field_remappings = {}
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
# The shipping option.
|
|
76
|
+
attr_reader :shipping
|
|
77
|
+
# The type of the fulfillment option.
|
|
78
|
+
attr_reader :type
|
|
79
|
+
|
|
80
|
+
def self.inner_class_types
|
|
81
|
+
@inner_class_types = { shipping: Shipping }
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def self.field_remappings
|
|
85
|
+
@field_remappings = {}
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
class SelectedFulfillmentOption < ::Stripe::StripeObject
|
|
90
|
+
class Shipping < ::Stripe::StripeObject
|
|
91
|
+
# The shipping option.
|
|
92
|
+
attr_reader :shipping_option
|
|
93
|
+
|
|
94
|
+
def self.inner_class_types
|
|
95
|
+
@inner_class_types = {}
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
def self.field_remappings
|
|
99
|
+
@field_remappings = {}
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
# The shipping option.
|
|
103
|
+
attr_reader :shipping
|
|
104
|
+
# The type of the selected fulfillment option.
|
|
105
|
+
attr_reader :type
|
|
106
|
+
|
|
107
|
+
def self.inner_class_types
|
|
108
|
+
@inner_class_types = { shipping: Shipping }
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
def self.field_remappings
|
|
112
|
+
@field_remappings = {}
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
# The fulfillment address.
|
|
116
|
+
attr_reader :address
|
|
117
|
+
# The email address for the fulfillment details.
|
|
118
|
+
attr_reader :email
|
|
119
|
+
# The fulfillment options.
|
|
120
|
+
attr_reader :fulfillment_options
|
|
121
|
+
# The name for the fulfillment details.
|
|
122
|
+
attr_reader :name
|
|
123
|
+
# The phone number for the fulfillment details.
|
|
124
|
+
attr_reader :phone
|
|
125
|
+
# The fulfillment option.
|
|
126
|
+
attr_reader :selected_fulfillment_option
|
|
127
|
+
|
|
128
|
+
def self.inner_class_types
|
|
129
|
+
@inner_class_types = {
|
|
130
|
+
address: Address,
|
|
131
|
+
fulfillment_options: FulfillmentOption,
|
|
132
|
+
selected_fulfillment_option: SelectedFulfillmentOption,
|
|
133
|
+
}
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
def self.field_remappings
|
|
137
|
+
@field_remappings = {}
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
class LineItemDetail < ::Stripe::StripeObject
|
|
142
|
+
# The description of the line item.
|
|
143
|
+
attr_reader :description
|
|
144
|
+
# The images of the line item.
|
|
145
|
+
attr_reader :images
|
|
146
|
+
# The key of the line item.
|
|
147
|
+
attr_reader :key
|
|
148
|
+
# The name of the line item.
|
|
149
|
+
attr_reader :name
|
|
150
|
+
# The quantity of the line item.
|
|
151
|
+
attr_reader :quantity
|
|
152
|
+
# The SKU ID of the line item.
|
|
153
|
+
attr_reader :sku_id
|
|
154
|
+
# The unit amount of the line item.
|
|
155
|
+
attr_reader :unit_amount
|
|
156
|
+
|
|
157
|
+
def self.inner_class_types
|
|
158
|
+
@inner_class_types = {}
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
def self.field_remappings
|
|
162
|
+
@field_remappings = {}
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
class OrderDetails < ::Stripe::StripeObject
|
|
167
|
+
# The URL to the order status.
|
|
168
|
+
attr_reader :order_status_url
|
|
169
|
+
|
|
170
|
+
def self.inner_class_types
|
|
171
|
+
@inner_class_types = {}
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
def self.field_remappings
|
|
175
|
+
@field_remappings = {}
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
class SellerDetails < ::Stripe::StripeObject
|
|
180
|
+
def self.inner_class_types
|
|
181
|
+
@inner_class_types = {}
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
def self.field_remappings
|
|
185
|
+
@field_remappings = {}
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
class TotalDetails < ::Stripe::StripeObject
|
|
190
|
+
# The amount discount of the total details.
|
|
191
|
+
attr_reader :amount_discount
|
|
192
|
+
# The amount fulfillment of the total details.
|
|
193
|
+
attr_reader :amount_fulfillment
|
|
194
|
+
# The amount tax of the total details.
|
|
195
|
+
attr_reader :amount_tax
|
|
196
|
+
|
|
197
|
+
def self.inner_class_types
|
|
198
|
+
@inner_class_types = {}
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
def self.field_remappings
|
|
202
|
+
@field_remappings = {}
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
# The subtotal amount of the requested session.
|
|
206
|
+
attr_reader :amount_subtotal
|
|
207
|
+
# The total amount of the requested session.
|
|
208
|
+
attr_reader :amount_total
|
|
209
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
210
|
+
attr_reader :created_at
|
|
211
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
212
|
+
attr_reader :currency
|
|
213
|
+
# The customer for this requested session.
|
|
214
|
+
attr_reader :customer
|
|
215
|
+
# Time at which the requested session expires. Measured in seconds since the Unix epoch.
|
|
216
|
+
attr_reader :expires_at
|
|
217
|
+
# The details of the fulfillment.
|
|
218
|
+
attr_reader :fulfillment_details
|
|
219
|
+
# Unique identifier for the object.
|
|
220
|
+
attr_reader :id
|
|
221
|
+
# The line items to be purchased.
|
|
222
|
+
attr_reader :line_item_details
|
|
223
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
224
|
+
attr_reader :livemode
|
|
225
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
226
|
+
attr_reader :metadata
|
|
227
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
228
|
+
attr_reader :object
|
|
229
|
+
# The details of the order.
|
|
230
|
+
attr_reader :order_details
|
|
231
|
+
# The payment method used for the requested session.
|
|
232
|
+
attr_reader :payment_method
|
|
233
|
+
# Attribute for field seller_details
|
|
234
|
+
attr_reader :seller_details
|
|
235
|
+
# Whether or not the payment method should be saved for future use.
|
|
236
|
+
attr_reader :setup_future_usage
|
|
237
|
+
# The metadata shared with the seller.
|
|
238
|
+
attr_reader :shared_metadata
|
|
239
|
+
# The SPT used for payment.
|
|
240
|
+
attr_reader :shared_payment_issued_token
|
|
241
|
+
# The status of the requested session.
|
|
242
|
+
attr_reader :status
|
|
243
|
+
# Attribute for field total_details
|
|
244
|
+
attr_reader :total_details
|
|
245
|
+
# Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
|
246
|
+
attr_reader :updated_at
|
|
247
|
+
|
|
248
|
+
# Confirms a requested session
|
|
249
|
+
def confirm(params = {}, opts = {})
|
|
250
|
+
request_stripe_object(
|
|
251
|
+
method: :post,
|
|
252
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/confirm", { requested_session: CGI.escape(self["id"]) }),
|
|
253
|
+
params: params,
|
|
254
|
+
opts: opts
|
|
255
|
+
)
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Confirms a requested session
|
|
259
|
+
def self.confirm(requested_session, params = {}, opts = {})
|
|
260
|
+
request_stripe_object(
|
|
261
|
+
method: :post,
|
|
262
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/confirm", { requested_session: CGI.escape(requested_session) }),
|
|
263
|
+
params: params,
|
|
264
|
+
opts: opts
|
|
265
|
+
)
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Creates a requested session
|
|
269
|
+
def self.create(params = {}, opts = {})
|
|
270
|
+
request_stripe_object(
|
|
271
|
+
method: :post,
|
|
272
|
+
path: "/v1/delegated_checkout/requested_sessions",
|
|
273
|
+
params: params,
|
|
274
|
+
opts: opts
|
|
275
|
+
)
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Expires a requested session
|
|
279
|
+
def expire(params = {}, opts = {})
|
|
280
|
+
request_stripe_object(
|
|
281
|
+
method: :post,
|
|
282
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/expire", { requested_session: CGI.escape(self["id"]) }),
|
|
283
|
+
params: params,
|
|
284
|
+
opts: opts
|
|
285
|
+
)
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Expires a requested session
|
|
289
|
+
def self.expire(requested_session, params = {}, opts = {})
|
|
290
|
+
request_stripe_object(
|
|
291
|
+
method: :post,
|
|
292
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/expire", { requested_session: CGI.escape(requested_session) }),
|
|
293
|
+
params: params,
|
|
294
|
+
opts: opts
|
|
295
|
+
)
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Updates a requested session
|
|
299
|
+
def self.update(requested_session, params = {}, opts = {})
|
|
300
|
+
request_stripe_object(
|
|
301
|
+
method: :post,
|
|
302
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s", { requested_session: CGI.escape(requested_session) }),
|
|
303
|
+
params: params,
|
|
304
|
+
opts: opts
|
|
305
|
+
)
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
def self.inner_class_types
|
|
309
|
+
@inner_class_types = {
|
|
310
|
+
fulfillment_details: FulfillmentDetails,
|
|
311
|
+
line_item_details: LineItemDetail,
|
|
312
|
+
order_details: OrderDetails,
|
|
313
|
+
seller_details: SellerDetails,
|
|
314
|
+
total_details: TotalDetails,
|
|
315
|
+
}
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
def self.field_remappings
|
|
319
|
+
@field_remappings = {}
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
end
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Identity
|
|
6
|
+
# A BlocklistEntry represents an entry in our identity verification blocklist.
|
|
7
|
+
# It helps prevent fraudulent users from repeatedly attempting verification with similar information.
|
|
8
|
+
# When you create a BlocklistEntry, we store data from a specified VerificationReport,
|
|
9
|
+
# such as document details or facial biometrics.
|
|
10
|
+
# This allows us to compare future verification attempts against these entries.
|
|
11
|
+
# If a match is found, we categorize the new verification as unverified.
|
|
12
|
+
#
|
|
13
|
+
# To learn more, see [Identity Verification Blocklist](https://stripe.com/docs/identity/review-tools#block-list)
|
|
14
|
+
class BlocklistEntry < APIResource
|
|
15
|
+
extend Stripe::APIOperations::Create
|
|
16
|
+
extend Stripe::APIOperations::List
|
|
17
|
+
|
|
18
|
+
OBJECT_NAME = "identity.blocklist_entry"
|
|
19
|
+
def self.object_name
|
|
20
|
+
"identity.blocklist_entry"
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
24
|
+
attr_reader :created
|
|
25
|
+
# Time at which you disabled the BlocklistEntry. Measured in seconds since the Unix epoch.
|
|
26
|
+
attr_reader :disabled_at
|
|
27
|
+
# Time at which the BlocklistEntry expires. Measured in seconds since the Unix epoch.
|
|
28
|
+
attr_reader :expires_at
|
|
29
|
+
# Unique identifier for the object.
|
|
30
|
+
attr_reader :id
|
|
31
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
32
|
+
attr_reader :livemode
|
|
33
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
34
|
+
attr_reader :object
|
|
35
|
+
# The current status of the BlocklistEntry.
|
|
36
|
+
attr_reader :status
|
|
37
|
+
# The type of BlocklistEntry.
|
|
38
|
+
attr_reader :type
|
|
39
|
+
# The verification report the BlocklistEntry was created from.
|
|
40
|
+
attr_reader :verification_report
|
|
41
|
+
# The verification session the BlocklistEntry was created from.
|
|
42
|
+
attr_reader :verification_session
|
|
43
|
+
|
|
44
|
+
# Creates a BlocklistEntry object from a verification report.
|
|
45
|
+
#
|
|
46
|
+
# A blocklist entry prevents future identity verifications that match the same identity information.
|
|
47
|
+
# You can create blocklist entries from verification reports that contain document extracted data
|
|
48
|
+
# or a selfie.
|
|
49
|
+
#
|
|
50
|
+
# Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#add-a-blocklist-entry)
|
|
51
|
+
def self.create(params = {}, opts = {})
|
|
52
|
+
request_stripe_object(
|
|
53
|
+
method: :post,
|
|
54
|
+
path: "/v1/identity/blocklist_entries",
|
|
55
|
+
params: params,
|
|
56
|
+
opts: opts
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Disables a BlocklistEntry object.
|
|
61
|
+
#
|
|
62
|
+
# After a BlocklistEntry is disabled, it will no longer block future verifications that match
|
|
63
|
+
# the same information. This action is irreversible. To re-enable it, a new BlocklistEntry
|
|
64
|
+
# must be created using the same verification report.
|
|
65
|
+
#
|
|
66
|
+
# Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#disable-a-blocklist-entry)
|
|
67
|
+
def disable(params = {}, opts = {})
|
|
68
|
+
request_stripe_object(
|
|
69
|
+
method: :post,
|
|
70
|
+
path: format("/v1/identity/blocklist_entries/%<id>s/disable", { id: CGI.escape(self["id"]) }),
|
|
71
|
+
params: params,
|
|
72
|
+
opts: opts
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Disables a BlocklistEntry object.
|
|
77
|
+
#
|
|
78
|
+
# After a BlocklistEntry is disabled, it will no longer block future verifications that match
|
|
79
|
+
# the same information. This action is irreversible. To re-enable it, a new BlocklistEntry
|
|
80
|
+
# must be created using the same verification report.
|
|
81
|
+
#
|
|
82
|
+
# Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#disable-a-blocklist-entry)
|
|
83
|
+
def self.disable(id, params = {}, opts = {})
|
|
84
|
+
request_stripe_object(
|
|
85
|
+
method: :post,
|
|
86
|
+
path: format("/v1/identity/blocklist_entries/%<id>s/disable", { id: CGI.escape(id) }),
|
|
87
|
+
params: params,
|
|
88
|
+
opts: opts
|
|
89
|
+
)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Returns a list of BlocklistEntry objects associated with your account.
|
|
93
|
+
#
|
|
94
|
+
# The blocklist entries are returned sorted by creation date, with the most recently created
|
|
95
|
+
# entries appearing first.
|
|
96
|
+
#
|
|
97
|
+
# Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#block-list)
|
|
98
|
+
def self.list(params = {}, opts = {})
|
|
99
|
+
request_stripe_object(
|
|
100
|
+
method: :get,
|
|
101
|
+
path: "/v1/identity/blocklist_entries",
|
|
102
|
+
params: params,
|
|
103
|
+
opts: opts
|
|
104
|
+
)
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def self.inner_class_types
|
|
108
|
+
@inner_class_types = {}
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
def self.field_remappings
|
|
112
|
+
@field_remappings = {}
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
@@ -141,6 +141,8 @@ module Stripe
|
|
|
141
141
|
attr_reader :unparsed_place_of_birth
|
|
142
142
|
# Sex as it appears in the document.
|
|
143
143
|
attr_reader :unparsed_sex
|
|
144
|
+
# If document was not verified due to extracted data being on the blocklist, this is the token of the BlocklistEntry that blocked it
|
|
145
|
+
attr_reader :blocked_by_entry
|
|
144
146
|
|
|
145
147
|
def self.inner_class_types
|
|
146
148
|
@inner_class_types = {
|
|
@@ -341,6 +343,8 @@ module Stripe
|
|
|
341
343
|
attr_reader :selfie
|
|
342
344
|
# Status of this `selfie` check.
|
|
343
345
|
attr_reader :status
|
|
346
|
+
# If selfie was not verified due to being on the blocklist, this is the token of the BlocklistEntry that blocked it
|
|
347
|
+
attr_reader :blocked_by_entry
|
|
344
348
|
|
|
345
349
|
def self.inner_class_types
|
|
346
350
|
@inner_class_types = { error: Error }
|
|
@@ -359,7 +359,7 @@ module Stripe
|
|
|
359
359
|
class PaymentDue < ::Stripe::StripeObject
|
|
360
360
|
# If true an email for the invoice would be generated and sent out.
|
|
361
361
|
attr_reader :enabled
|
|
362
|
-
# If true the payment link to hosted
|
|
362
|
+
# If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
|
|
363
363
|
attr_reader :include_payment_link
|
|
364
364
|
|
|
365
365
|
def self.inner_class_types
|
|
@@ -370,7 +370,7 @@ module Stripe
|
|
|
370
370
|
@field_remappings = {}
|
|
371
371
|
end
|
|
372
372
|
end
|
|
373
|
-
# Controls emails for when the payment is due. For example after the invoice is
|
|
373
|
+
# Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
|
|
374
374
|
attr_reader :payment_due
|
|
375
375
|
|
|
376
376
|
def self.inner_class_types
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
class PaymentDue < ::Stripe::StripeObject
|
|
16
16
|
# If true an email for the invoice would be generated and sent out.
|
|
17
17
|
attr_reader :enabled
|
|
18
|
-
# If true the payment link to hosted
|
|
18
|
+
# If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
|
|
19
19
|
attr_reader :include_payment_link
|
|
20
20
|
|
|
21
21
|
def self.inner_class_types
|
|
@@ -26,7 +26,7 @@ module Stripe
|
|
|
26
26
|
@field_remappings = {}
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
|
-
# Controls emails for when the payment is due. For example after the invoice is
|
|
29
|
+
# Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
|
|
30
30
|
attr_reader :payment_due
|
|
31
31
|
|
|
32
32
|
def self.inner_class_types
|
|
@@ -14,7 +14,7 @@ module Stripe
|
|
|
14
14
|
class PaymentDue < ::Stripe::StripeObject
|
|
15
15
|
# If true an email for the invoice would be generated and sent out.
|
|
16
16
|
attr_reader :enabled
|
|
17
|
-
# If true the payment link to hosted
|
|
17
|
+
# If true the payment link to hosted invoice page would be included in email and PDF of the invoice.
|
|
18
18
|
attr_reader :include_payment_link
|
|
19
19
|
|
|
20
20
|
def self.inner_class_types
|
|
@@ -25,7 +25,7 @@ module Stripe
|
|
|
25
25
|
@field_remappings = {}
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
-
# Controls emails for when the payment is due. For example after the invoice is
|
|
28
|
+
# Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state.
|
|
29
29
|
attr_reader :payment_due
|
|
30
30
|
|
|
31
31
|
def self.inner_class_types
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
# A set of component subscriptions for a Pricing Plan Subscription.
|
|
8
|
+
class PricingPlanSubscriptionComponents < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.billing.pricing_plan_subscription_components"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.billing.pricing_plan_subscription_components"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class Component < ::Stripe::StripeObject
|
|
15
|
+
# The Pricing Plan Component associated with this component subscription.
|
|
16
|
+
attr_reader :pricing_plan_component
|
|
17
|
+
# The type of subscription.
|
|
18
|
+
attr_reader :type
|
|
19
|
+
# The ID of the License Fee Subscription.
|
|
20
|
+
attr_reader :license_fee_subscription
|
|
21
|
+
# The ID of the Rate Card Subscription.
|
|
22
|
+
attr_reader :rate_card_subscription
|
|
23
|
+
|
|
24
|
+
def self.inner_class_types
|
|
25
|
+
@inner_class_types = {}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def self.field_remappings
|
|
29
|
+
@field_remappings = {}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
# The component subscriptions of the Pricing Plan Subscription.
|
|
33
|
+
attr_reader :components
|
|
34
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
35
|
+
attr_reader :object
|
|
36
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
37
|
+
attr_reader :livemode
|
|
38
|
+
|
|
39
|
+
def self.inner_class_types
|
|
40
|
+
@inner_class_types = { components: Component }
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def self.field_remappings
|
|
44
|
+
@field_remappings = {}
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -2560,11 +2560,44 @@ module Stripe
|
|
|
2560
2560
|
@field_remappings = {}
|
|
2561
2561
|
end
|
|
2562
2562
|
end
|
|
2563
|
+
|
|
2564
|
+
class Usd < ::Stripe::StripeObject
|
|
2565
|
+
class StatusDetail < ::Stripe::StripeObject
|
|
2566
|
+
# Machine-readable code explaining the reason for the Capability to be in its current status.
|
|
2567
|
+
attr_reader :code
|
|
2568
|
+
# Machine-readable code explaining how to make the Capability active.
|
|
2569
|
+
attr_reader :resolution
|
|
2570
|
+
|
|
2571
|
+
def self.inner_class_types
|
|
2572
|
+
@inner_class_types = {}
|
|
2573
|
+
end
|
|
2574
|
+
|
|
2575
|
+
def self.field_remappings
|
|
2576
|
+
@field_remappings = {}
|
|
2577
|
+
end
|
|
2578
|
+
end
|
|
2579
|
+
# Whether the Capability has been requested.
|
|
2580
|
+
attr_reader :requested
|
|
2581
|
+
# The status of the Capability.
|
|
2582
|
+
attr_reader :status
|
|
2583
|
+
# Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
|
|
2584
|
+
attr_reader :status_details
|
|
2585
|
+
|
|
2586
|
+
def self.inner_class_types
|
|
2587
|
+
@inner_class_types = { status_details: StatusDetail }
|
|
2588
|
+
end
|
|
2589
|
+
|
|
2590
|
+
def self.field_remappings
|
|
2591
|
+
@field_remappings = {}
|
|
2592
|
+
end
|
|
2593
|
+
end
|
|
2563
2594
|
# Can hold storage-type funds on Stripe in GBP.
|
|
2564
2595
|
attr_reader :gbp
|
|
2596
|
+
# Can hold storage-type funds on Stripe in USD.
|
|
2597
|
+
attr_reader :usd
|
|
2565
2598
|
|
|
2566
2599
|
def self.inner_class_types
|
|
2567
|
-
@inner_class_types = { gbp: Gbp }
|
|
2600
|
+
@inner_class_types = { gbp: Gbp, usd: Usd }
|
|
2568
2601
|
end
|
|
2569
2602
|
|
|
2570
2603
|
def self.field_remappings
|
|
@@ -2975,6 +3008,23 @@ module Stripe
|
|
|
2975
3008
|
end
|
|
2976
3009
|
end
|
|
2977
3010
|
|
|
3011
|
+
class RepresentativeDeclaration < ::Stripe::StripeObject
|
|
3012
|
+
# The time marking when the representative attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
3013
|
+
attr_reader :date
|
|
3014
|
+
# The IP address from which the representative attestation was made.
|
|
3015
|
+
attr_reader :ip
|
|
3016
|
+
# The user agent of the browser from which the representative attestation was made.
|
|
3017
|
+
attr_reader :user_agent
|
|
3018
|
+
|
|
3019
|
+
def self.inner_class_types
|
|
3020
|
+
@inner_class_types = {}
|
|
3021
|
+
end
|
|
3022
|
+
|
|
3023
|
+
def self.field_remappings
|
|
3024
|
+
@field_remappings = {}
|
|
3025
|
+
end
|
|
3026
|
+
end
|
|
3027
|
+
|
|
2978
3028
|
class TermsOfService < ::Stripe::StripeObject
|
|
2979
3029
|
class Account < ::Stripe::StripeObject
|
|
2980
3030
|
# 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.
|
|
@@ -3420,6 +3470,8 @@ module Stripe
|
|
|
3420
3470
|
attr_reader :ownership_declaration
|
|
3421
3471
|
# Attestation that all Persons with a specific Relationship value have been provided.
|
|
3422
3472
|
attr_reader :persons_provided
|
|
3473
|
+
# This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
|
|
3474
|
+
attr_reader :representative_declaration
|
|
3423
3475
|
# Attestations of accepted terms of service agreements.
|
|
3424
3476
|
attr_reader :terms_of_service
|
|
3425
3477
|
|
|
@@ -3428,6 +3480,7 @@ module Stripe
|
|
|
3428
3480
|
directorship_declaration: DirectorshipDeclaration,
|
|
3429
3481
|
ownership_declaration: OwnershipDeclaration,
|
|
3430
3482
|
persons_provided: PersonsProvided,
|
|
3483
|
+
representative_declaration: RepresentativeDeclaration,
|
|
3431
3484
|
terms_of_service: TermsOfService,
|
|
3432
3485
|
}
|
|
3433
3486
|
end
|
|
@@ -4314,7 +4367,7 @@ module Stripe
|
|
|
4314
4367
|
@field_remappings = {}
|
|
4315
4368
|
end
|
|
4316
4369
|
end
|
|
4317
|
-
# Attestations from the identity's key people, e.g. owners, executives, directors.
|
|
4370
|
+
# Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
|
|
4318
4371
|
attr_reader :attestations
|
|
4319
4372
|
# Information about the company or business.
|
|
4320
4373
|
attr_reader :business_details
|
|
@@ -4511,6 +4564,8 @@ module Stripe
|
|
|
4511
4564
|
end
|
|
4512
4565
|
# Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
|
|
4513
4566
|
attr_reader :applied_configurations
|
|
4567
|
+
# A value indicating if the Account has been closed.
|
|
4568
|
+
attr_reader :closed
|
|
4514
4569
|
# An Account Configuration which allows the Account to take on a key persona across Stripe products.
|
|
4515
4570
|
attr_reader :configuration
|
|
4516
4571
|
# The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
|