stripe 19.1.0 → 19.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +3 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +16 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_failed_event.rb +44 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_processing_event.rb +44 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb +44 -0
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/params/account_create_params.rb +26 -0
- data/lib/stripe/params/account_update_params.rb +26 -0
- data/lib/stripe/params/balance_settings_update_params.rb +42 -2
- data/lib/stripe/params/charge_create_params.rb +4 -1
- data/lib/stripe/params/checkout/session_create_params.rb +28 -15
- data/lib/stripe/params/confirmation_token_create_params.rb +11 -1
- data/lib/stripe/params/invoice_create_preview_params.rb +60 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +2 -2
- data/lib/stripe/params/payment_intent_confirm_params.rb +38 -5
- data/lib/stripe/params/payment_intent_create_params.rb +65 -6
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -2
- data/lib/stripe/params/payment_intent_update_params.rb +58 -5
- data/lib/stripe/params/payment_link_create_params.rb +30 -1
- data/lib/stripe/params/payment_link_update_params.rb +29 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +43 -1
- data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +43 -1
- data/lib/stripe/params/payment_method_create_params.rb +11 -1
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/setup_intent_confirm_params.rb +18 -2
- data/lib/stripe/params/setup_intent_create_params.rb +18 -2
- data/lib/stripe/params/setup_intent_update_params.rb +18 -2
- data/lib/stripe/params/subscription_create_params.rb +61 -11
- data/lib/stripe/params/subscription_item_create_params.rb +1 -7
- data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
- data/lib/stripe/params/subscription_item_update_params.rb +1 -7
- data/lib/stripe/params/subscription_schedule_create_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +4 -0
- data/lib/stripe/params/subscription_update_params.rb +62 -8
- data/lib/stripe/params/terminal/configuration_create_params.rb +52 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +52 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -1
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
- data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +2 -2
- data/lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb +25 -0
- data/lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb +54 -0
- data/lib/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +28 -6
- data/lib/stripe/params/v2/core/account_token_create_params.rb +27 -5
- data/lib/stripe/params/v2/core/account_update_params.rb +29 -7
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +23 -0
- data/lib/stripe/params.rb +1342 -614
- data/lib/stripe/railtie.rb +8 -0
- data/lib/stripe/resources/account.rb +4 -0
- data/lib/stripe/resources/balance_settings.rb +42 -2
- data/lib/stripe/resources/charge.rb +35 -0
- data/lib/stripe/resources/checkout/session.rb +23 -7
- data/lib/stripe/resources/confirmation_token.rb +26 -0
- data/lib/stripe/resources/discount.rb +2 -2
- data/lib/stripe/resources/invoice.rb +2 -0
- data/lib/stripe/resources/invoice_item.rb +34 -1
- data/lib/stripe/resources/issuing/dispute.rb +1 -1
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/mandate.rb +13 -0
- data/lib/stripe/resources/payment_attempt_record.rb +40 -10
- data/lib/stripe/resources/payment_intent.rb +71 -5
- data/lib/stripe/resources/payment_link.rb +40 -0
- data/lib/stripe/resources/payment_method.rb +26 -0
- data/lib/stripe/resources/payment_method_configuration.rb +68 -0
- data/lib/stripe/resources/payment_record.rb +40 -10
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/refund.rb +13 -0
- data/lib/stripe/resources/setup_attempt.rb +13 -0
- data/lib/stripe/resources/setup_intent.rb +26 -0
- data/lib/stripe/resources/subscription.rb +77 -4
- data/lib/stripe/resources/subscription_item.rb +2 -0
- data/lib/stripe/resources/subscription_schedule.rb +2 -0
- data/lib/stripe/resources/terminal/configuration.rb +64 -0
- data/lib/stripe/resources/terminal/reader.rb +116 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +3 -3
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +3 -3
- data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +274 -0
- data/lib/stripe/resources/v2/core/account.rb +37 -10
- data/lib/stripe/resources/v2/core/account_token.rb +1 -1
- data/lib/stripe/resources/v2/core/event.rb +1 -0
- data/lib/stripe/resources/v2/core/event_destination.rb +24 -0
- data/lib/stripe/resources.rb +500 -178
- data/lib/stripe/services/payment_intent_service.rb +3 -1
- data/lib/stripe/services/subscription_service.rb +2 -2
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -1
- data/lib/stripe/services/v2/commerce/product_catalog/import_service.rb +45 -0
- data/lib/stripe/services/v2/commerce/product_catalog_service.rb +17 -0
- data/lib/stripe/services/v2/commerce_service.rb +15 -0
- data/lib/stripe/services/v2/core/account_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
- data/lib/stripe/services/v2/core/event_service.rb +2 -1
- data/lib/stripe/services/v2_services.rb +2 -1
- data/lib/stripe/services.rb +469 -189
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +25 -4
- data/rbi/stripe.rbi +2785 -253
- metadata +14 -2
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Commerce
|
|
7
|
+
# The ProductCatalogImport object tracks the long-running background process that handles uploading, processing and validation.
|
|
8
|
+
class ProductCatalogImport < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.commerce.product_catalog_import"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.commerce.product_catalog_import"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class StatusDetails < ::Stripe::StripeObject
|
|
15
|
+
class AwaitingUpload < ::Stripe::StripeObject
|
|
16
|
+
class UploadUrl < ::Stripe::StripeObject
|
|
17
|
+
# The timestamp when the upload URL expires.
|
|
18
|
+
attr_reader :expires_at
|
|
19
|
+
# The pre-signed URL for uploading the catalog file.
|
|
20
|
+
attr_reader :url
|
|
21
|
+
|
|
22
|
+
def self.inner_class_types
|
|
23
|
+
@inner_class_types = {}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.field_remappings
|
|
27
|
+
@field_remappings = {}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
# The pre-signed URL information for uploading the catalog file.
|
|
31
|
+
attr_reader :upload_url
|
|
32
|
+
|
|
33
|
+
def self.inner_class_types
|
|
34
|
+
@inner_class_types = { upload_url: UploadUrl }
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def self.field_remappings
|
|
38
|
+
@field_remappings = {}
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
class Failed < ::Stripe::StripeObject
|
|
43
|
+
# The error code for this product catalog processing failure.
|
|
44
|
+
attr_reader :code
|
|
45
|
+
# A message explaining why the import failed.
|
|
46
|
+
attr_reader :failure_message
|
|
47
|
+
# The error type for this product catalog processing failure.
|
|
48
|
+
attr_reader :type
|
|
49
|
+
|
|
50
|
+
def self.inner_class_types
|
|
51
|
+
@inner_class_types = {}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def self.field_remappings
|
|
55
|
+
@field_remappings = {}
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
class Processing < ::Stripe::StripeObject
|
|
60
|
+
# The number of records that failed to process so far.
|
|
61
|
+
attr_reader :error_count
|
|
62
|
+
# The number of records processed so far.
|
|
63
|
+
attr_reader :success_count
|
|
64
|
+
|
|
65
|
+
def self.inner_class_types
|
|
66
|
+
@inner_class_types = {}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def self.field_remappings
|
|
70
|
+
@field_remappings = {}
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def self.field_encodings
|
|
74
|
+
@field_encodings = { error_count: :int64_string, success_count: :int64_string }
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
class Succeeded < ::Stripe::StripeObject
|
|
79
|
+
# The total number of records processed.
|
|
80
|
+
attr_reader :success_count
|
|
81
|
+
|
|
82
|
+
def self.inner_class_types
|
|
83
|
+
@inner_class_types = {}
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
def self.field_remappings
|
|
87
|
+
@field_remappings = {}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def self.field_encodings
|
|
91
|
+
@field_encodings = { success_count: :int64_string }
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
class SucceededWithErrors < ::Stripe::StripeObject
|
|
96
|
+
class ErrorFile < ::Stripe::StripeObject
|
|
97
|
+
class DownloadUrl < ::Stripe::StripeObject
|
|
98
|
+
# The timestamp when the download URL expires.
|
|
99
|
+
attr_reader :expires_at
|
|
100
|
+
# The pre-signed URL for downloading the error file.
|
|
101
|
+
attr_reader :url
|
|
102
|
+
|
|
103
|
+
def self.inner_class_types
|
|
104
|
+
@inner_class_types = {}
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
def self.field_remappings
|
|
108
|
+
@field_remappings = {}
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
# The MIME type of the error file.
|
|
112
|
+
attr_reader :content_type
|
|
113
|
+
# The pre-signed URL information for downloading the error file.
|
|
114
|
+
attr_reader :download_url
|
|
115
|
+
# The size of the error file in bytes.
|
|
116
|
+
attr_reader :size
|
|
117
|
+
|
|
118
|
+
def self.inner_class_types
|
|
119
|
+
@inner_class_types = { download_url: DownloadUrl }
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
def self.field_remappings
|
|
123
|
+
@field_remappings = {}
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
def self.field_encodings
|
|
127
|
+
@field_encodings = { size: :int64_string }
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
class Sample < ::Stripe::StripeObject
|
|
132
|
+
# A description of what went wrong with this record.
|
|
133
|
+
attr_reader :error_message
|
|
134
|
+
# The name of the field that caused the error.
|
|
135
|
+
attr_reader :field
|
|
136
|
+
# The identifier of the record that failed to process.
|
|
137
|
+
attr_reader :id
|
|
138
|
+
# The row number in the import file where the error occurred.
|
|
139
|
+
attr_reader :row
|
|
140
|
+
|
|
141
|
+
def self.inner_class_types
|
|
142
|
+
@inner_class_types = {}
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
def self.field_remappings
|
|
146
|
+
@field_remappings = {}
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
def self.field_encodings
|
|
150
|
+
@field_encodings = { row: :int64_string }
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
# The total number of records that failed to process.
|
|
154
|
+
attr_reader :error_count
|
|
155
|
+
# A file containing details about all errors that occurred.
|
|
156
|
+
attr_reader :error_file
|
|
157
|
+
# A sample of errors that occurred during processing.
|
|
158
|
+
attr_reader :samples
|
|
159
|
+
# The total number of records processed.
|
|
160
|
+
attr_reader :success_count
|
|
161
|
+
|
|
162
|
+
def self.inner_class_types
|
|
163
|
+
@inner_class_types = { error_file: ErrorFile, samples: Sample }
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
def self.field_remappings
|
|
167
|
+
@field_remappings = {}
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def self.field_encodings
|
|
171
|
+
@field_encodings = {
|
|
172
|
+
error_count: :int64_string,
|
|
173
|
+
error_file: { kind: :object, fields: { size: :int64_string } },
|
|
174
|
+
samples: { kind: :array, element: { kind: :object, fields: { row: :int64_string } } },
|
|
175
|
+
success_count: :int64_string,
|
|
176
|
+
}
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
# Details when the import is awaiting file upload.
|
|
180
|
+
attr_reader :awaiting_upload
|
|
181
|
+
# Details when the import didn't complete.
|
|
182
|
+
attr_reader :failed
|
|
183
|
+
# Details when the import is processing.
|
|
184
|
+
attr_reader :processing
|
|
185
|
+
# Details when the import has succeeded.
|
|
186
|
+
attr_reader :succeeded
|
|
187
|
+
# Details when the import completed but some records failed to process.
|
|
188
|
+
attr_reader :succeeded_with_errors
|
|
189
|
+
|
|
190
|
+
def self.inner_class_types
|
|
191
|
+
@inner_class_types = {
|
|
192
|
+
awaiting_upload: AwaitingUpload,
|
|
193
|
+
failed: Failed,
|
|
194
|
+
processing: Processing,
|
|
195
|
+
succeeded: Succeeded,
|
|
196
|
+
succeeded_with_errors: SucceededWithErrors,
|
|
197
|
+
}
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
def self.field_remappings
|
|
201
|
+
@field_remappings = {}
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
def self.field_encodings
|
|
205
|
+
@field_encodings = {
|
|
206
|
+
processing: {
|
|
207
|
+
kind: :object,
|
|
208
|
+
fields: { error_count: :int64_string, success_count: :int64_string },
|
|
209
|
+
},
|
|
210
|
+
succeeded: { kind: :object, fields: { success_count: :int64_string } },
|
|
211
|
+
succeeded_with_errors: {
|
|
212
|
+
kind: :object,
|
|
213
|
+
fields: {
|
|
214
|
+
error_count: :int64_string,
|
|
215
|
+
error_file: { kind: :object, fields: { size: :int64_string } },
|
|
216
|
+
samples: { kind: :array, element: { kind: :object, fields: { row: :int64_string } } },
|
|
217
|
+
success_count: :int64_string,
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
}
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
# The time this ProductCatalogImport was created.
|
|
224
|
+
attr_reader :created
|
|
225
|
+
# The type of feed data being imported into the product catalog.
|
|
226
|
+
attr_reader :feed_type
|
|
227
|
+
# The unique identifier for this ProductCatalogImport.
|
|
228
|
+
attr_reader :id
|
|
229
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
230
|
+
attr_reader :livemode
|
|
231
|
+
# Additional information about the object in a structured format.
|
|
232
|
+
attr_reader :metadata
|
|
233
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
234
|
+
attr_reader :object
|
|
235
|
+
# The current status of this ProductCatalogImport.
|
|
236
|
+
attr_reader :status
|
|
237
|
+
# Details about the current import status.
|
|
238
|
+
attr_reader :status_details
|
|
239
|
+
|
|
240
|
+
def self.inner_class_types
|
|
241
|
+
@inner_class_types = { status_details: StatusDetails }
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
def self.field_remappings
|
|
245
|
+
@field_remappings = {}
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
def self.field_encodings
|
|
249
|
+
@field_encodings = {
|
|
250
|
+
status_details: {
|
|
251
|
+
kind: :object,
|
|
252
|
+
fields: {
|
|
253
|
+
processing: {
|
|
254
|
+
kind: :object,
|
|
255
|
+
fields: { error_count: :int64_string, success_count: :int64_string },
|
|
256
|
+
},
|
|
257
|
+
succeeded: { kind: :object, fields: { success_count: :int64_string } },
|
|
258
|
+
succeeded_with_errors: {
|
|
259
|
+
kind: :object,
|
|
260
|
+
fields: {
|
|
261
|
+
error_count: :int64_string,
|
|
262
|
+
error_file: { kind: :object, fields: { size: :int64_string } },
|
|
263
|
+
samples: { kind: :array, element: { kind: :object, fields: { row: :int64_string } } },
|
|
264
|
+
success_count: :int64_string,
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
}
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
end
|
|
274
|
+
end
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module V2
|
|
6
6
|
module Core
|
|
7
|
-
# An Account v2 object represents a company, individual, or other entity that
|
|
8
|
-
# The Accounts v2 API
|
|
9
|
-
# The Connect-Billing integration preview feature allows an Account v2 to pay subscription fees to a platform. An Account v1 required a separate Customer object to pay subscription fees.
|
|
7
|
+
# An Account v2 object represents a company, individual, or other entity that your Stripe integration interacts with. It contains both identifying information and properties that control its behavior and functionality. An Account can have one or more configurations that enable sets of related features, such as allowing it to act as a merchant or customer.
|
|
8
|
+
# The Accounts v2 API is broadly available to Connect platforms, and to other users in preview. The Accounts v2 API also supports the Global Payouts preview feature.
|
|
10
9
|
class Account < APIResource
|
|
11
10
|
OBJECT_NAME = "v2.core.account"
|
|
12
11
|
def self.object_name
|
|
@@ -98,7 +97,7 @@ module Stripe
|
|
|
98
97
|
@field_remappings = {}
|
|
99
98
|
end
|
|
100
99
|
end
|
|
101
|
-
# ID of a PaymentMethod attached to
|
|
100
|
+
# The ID of a `PaymentMethod` attached to this Account's `customer` configuration, used as the default payment method for invoices and subscriptions.
|
|
102
101
|
attr_reader :default_payment_method
|
|
103
102
|
# Default invoice settings for the customer account.
|
|
104
103
|
attr_reader :invoice
|
|
@@ -2039,7 +2038,7 @@ module Stripe
|
|
|
2039
2038
|
@field_remappings = {}
|
|
2040
2039
|
end
|
|
2041
2040
|
end
|
|
2042
|
-
# The Customer Configuration allows the Account to be used in inbound payment flows.
|
|
2041
|
+
# The Customer Configuration allows the Account to be used in inbound payment flows (i.e. customer-facing payment and billing flows).
|
|
2043
2042
|
attr_reader :customer
|
|
2044
2043
|
# Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set.
|
|
2045
2044
|
attr_reader :merchant
|
|
@@ -2583,13 +2582,27 @@ module Stripe
|
|
|
2583
2582
|
end
|
|
2584
2583
|
|
|
2585
2584
|
class ProofOfRegistration < ::Stripe::StripeObject
|
|
2585
|
+
class Signer < ::Stripe::StripeObject
|
|
2586
|
+
# Person signing the document.
|
|
2587
|
+
attr_reader :person
|
|
2588
|
+
|
|
2589
|
+
def self.inner_class_types
|
|
2590
|
+
@inner_class_types = {}
|
|
2591
|
+
end
|
|
2592
|
+
|
|
2593
|
+
def self.field_remappings
|
|
2594
|
+
@field_remappings = {}
|
|
2595
|
+
end
|
|
2596
|
+
end
|
|
2586
2597
|
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
2587
2598
|
attr_reader :files
|
|
2599
|
+
# Person that is signing the document.
|
|
2600
|
+
attr_reader :signer
|
|
2588
2601
|
# The format of the document. Currently supports `files` only.
|
|
2589
2602
|
attr_reader :type
|
|
2590
2603
|
|
|
2591
2604
|
def self.inner_class_types
|
|
2592
|
-
@inner_class_types = {}
|
|
2605
|
+
@inner_class_types = { signer: Signer }
|
|
2593
2606
|
end
|
|
2594
2607
|
|
|
2595
2608
|
def self.field_remappings
|
|
@@ -2598,13 +2611,27 @@ module Stripe
|
|
|
2598
2611
|
end
|
|
2599
2612
|
|
|
2600
2613
|
class ProofOfUltimateBeneficialOwnership < ::Stripe::StripeObject
|
|
2614
|
+
class Signer < ::Stripe::StripeObject
|
|
2615
|
+
# Person signing the document.
|
|
2616
|
+
attr_reader :person
|
|
2617
|
+
|
|
2618
|
+
def self.inner_class_types
|
|
2619
|
+
@inner_class_types = {}
|
|
2620
|
+
end
|
|
2621
|
+
|
|
2622
|
+
def self.field_remappings
|
|
2623
|
+
@field_remappings = {}
|
|
2624
|
+
end
|
|
2625
|
+
end
|
|
2601
2626
|
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
2602
2627
|
attr_reader :files
|
|
2628
|
+
# Person that is signing the document.
|
|
2629
|
+
attr_reader :signer
|
|
2603
2630
|
# The format of the document. Currently supports `files` only.
|
|
2604
2631
|
attr_reader :type
|
|
2605
2632
|
|
|
2606
2633
|
def self.inner_class_types
|
|
2607
|
-
@inner_class_types = {}
|
|
2634
|
+
@inner_class_types = { signer: Signer }
|
|
2608
2635
|
end
|
|
2609
2636
|
|
|
2610
2637
|
def self.field_remappings
|
|
@@ -3257,7 +3284,7 @@ module Stripe
|
|
|
3257
3284
|
attr_reader :date_of_birth
|
|
3258
3285
|
# Documents that may be submitted to satisfy various informational requests.
|
|
3259
3286
|
attr_reader :documents
|
|
3260
|
-
# The individual's email address.
|
|
3287
|
+
# The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account.
|
|
3261
3288
|
attr_reader :email
|
|
3262
3289
|
# The individual's first name.
|
|
3263
3290
|
attr_reader :given_name
|
|
@@ -3319,7 +3346,7 @@ module Stripe
|
|
|
3319
3346
|
attr_reader :business_details
|
|
3320
3347
|
# The country in which the account holder resides, or in which the business is legally established. This should be an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
|
|
3321
3348
|
attr_reader :country
|
|
3322
|
-
# The entity type.
|
|
3349
|
+
# The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated.
|
|
3323
3350
|
attr_reader :entity_type
|
|
3324
3351
|
# Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`.
|
|
3325
3352
|
attr_reader :individual
|
|
@@ -3524,7 +3551,7 @@ module Stripe
|
|
|
3524
3551
|
attr_reader :closed
|
|
3525
3552
|
# An Account represents a company, individual, or other entity that a user interacts with. Accounts store identity information and one or more configurations that enable product-specific capabilities. You can assign configurations at creation or add them later.
|
|
3526
3553
|
attr_reader :configuration
|
|
3527
|
-
# The
|
|
3554
|
+
# The primary contact email address for the Account.
|
|
3528
3555
|
attr_reader :contact_email
|
|
3529
3556
|
# The default contact phone for the Account.
|
|
3530
3557
|
attr_reader :contact_phone
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module V2
|
|
6
6
|
module Core
|
|
7
|
-
# Account tokens are single-use tokens which tokenize
|
|
7
|
+
# Account tokens are single-use tokens which tokenize an account's contact_email, display_name, contact_phone, and identity.
|
|
8
8
|
class AccountToken < APIResource
|
|
9
9
|
OBJECT_NAME = "v2.core.account_token"
|
|
10
10
|
def self.object_name
|
|
@@ -5,6 +5,7 @@ module Stripe
|
|
|
5
5
|
module V2
|
|
6
6
|
module Core
|
|
7
7
|
# Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload.
|
|
8
|
+
# You can access events through the [Retrieve Event API](https://docs.stripe.com/api/v2/core/events/retrieve) for 30 days.
|
|
8
9
|
class Event < APIResource
|
|
9
10
|
OBJECT_NAME = "v2.core.event"
|
|
10
11
|
def self.object_name
|
|
@@ -28,6 +28,27 @@ module Stripe
|
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
class AzureEventGrid < ::Stripe::StripeObject
|
|
32
|
+
# The name of the Azure partner topic.
|
|
33
|
+
attr_reader :azure_partner_topic_name
|
|
34
|
+
# The status of the Azure partner topic.
|
|
35
|
+
attr_reader :azure_partner_topic_status
|
|
36
|
+
# The Azure region.
|
|
37
|
+
attr_reader :azure_region
|
|
38
|
+
# The name of the Azure resource group.
|
|
39
|
+
attr_reader :azure_resource_group_name
|
|
40
|
+
# The Azure subscription ID.
|
|
41
|
+
attr_reader :azure_subscription_id
|
|
42
|
+
|
|
43
|
+
def self.inner_class_types
|
|
44
|
+
@inner_class_types = {}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def self.field_remappings
|
|
48
|
+
@field_remappings = {}
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
31
52
|
class StatusDetails < ::Stripe::StripeObject
|
|
32
53
|
class Disabled < ::Stripe::StripeObject
|
|
33
54
|
# Reason event destination has been disabled.
|
|
@@ -69,6 +90,8 @@ module Stripe
|
|
|
69
90
|
end
|
|
70
91
|
# Amazon EventBridge configuration.
|
|
71
92
|
attr_reader :amazon_eventbridge
|
|
93
|
+
# Azure Event Grid configuration.
|
|
94
|
+
attr_reader :azure_event_grid
|
|
72
95
|
# Time at which the object was created.
|
|
73
96
|
attr_reader :created
|
|
74
97
|
# An optional description of what the event destination is used for.
|
|
@@ -109,6 +132,7 @@ module Stripe
|
|
|
109
132
|
def self.inner_class_types
|
|
110
133
|
@inner_class_types = {
|
|
111
134
|
amazon_eventbridge: AmazonEventbridge,
|
|
135
|
+
azure_event_grid: AzureEventGrid,
|
|
112
136
|
status_details: StatusDetails,
|
|
113
137
|
webhook_endpoint: WebhookEndpoint,
|
|
114
138
|
}
|