moov_ruby 26.7.0.pre.dev.6 → 26.7.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/moov/avatars.rb +275 -0
- data/lib/moov/models/components/avataruploadrequest.rb +32 -0
- data/lib/moov/models/components/avataruploadrequest.rbi +13 -0
- data/lib/moov/models/components/avataruploadrequest_file.rb +36 -0
- data/lib/moov/models/components/avataruploadrequest_file.rbi +15 -0
- data/lib/moov/models/components/capabilityid.rb +1 -0
- data/lib/moov/models/components/createtransfer.rb +6 -2
- data/lib/moov/models/components/createtransfer.rbi +2 -0
- data/lib/moov/models/components/feepaidby.rb +19 -0
- data/lib/moov/models/components/feepaidby.rbi +11 -0
- data/lib/moov/models/components/incurredfee.rb +6 -2
- data/lib/moov/models/components/incurredfee.rbi +2 -0
- data/lib/moov/models/components/issuingintervallimit.rb +1 -1
- data/lib/moov/models/components/issuingvelocitylimit.rb +1 -1
- data/lib/moov/models/components/paymentlinkpayoutdetails.rb +8 -2
- data/lib/moov/models/components/paymentlinkpayoutdetails.rbi +2 -0
- data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +8 -2
- data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rbi +2 -0
- data/lib/moov/models/components/payoutdetailserror.rb +6 -2
- data/lib/moov/models/components/payoutdetailserror.rbi +2 -0
- data/lib/moov/models/components/product.rb +6 -2
- data/lib/moov/models/components/product.rbi +2 -0
- data/lib/moov/models/components/productcategories.rb +32 -0
- data/lib/moov/models/components/productcategories.rbi +13 -0
- data/lib/moov/models/components/productcategory.rb +48 -0
- data/lib/moov/models/components/productcategory.rbi +21 -0
- data/lib/moov/models/components/productrequest.rb +6 -2
- data/lib/moov/models/components/productrequest.rbi +2 -0
- data/lib/moov/models/components/schemebasicauth.rb +36 -0
- data/lib/moov/models/components/schemebasicauth.rbi +15 -0
- data/lib/moov/models/components/schemeoauth2auth.rb +40 -0
- data/lib/moov/models/components/schemeoauth2auth.rbi +17 -0
- data/lib/moov/models/components/transferfeepaidby.rb +32 -0
- data/lib/moov/models/components/transferfeepaidby.rbi +13 -0
- data/lib/moov/models/components.rb +8 -0
- data/lib/moov/models/errors/productrequestvalidationerror.rb +6 -2
- data/lib/moov/models/errors/productrequestvalidationerror.rbi +2 -0
- data/lib/moov/models/operations/deleteavatar_request.rb +32 -0
- data/lib/moov/models/operations/deleteavatar_request.rbi +13 -0
- data/lib/moov/models/operations/deleteavatar_response.rb +44 -0
- data/lib/moov/models/operations/deleteavatar_response.rbi +19 -0
- data/lib/moov/models/operations/deleteavatar_security.rb +36 -0
- data/lib/moov/models/operations/deleteavatar_security.rbi +15 -0
- data/lib/moov/models/operations/listproductcategories_response.rb +48 -0
- data/lib/moov/models/operations/listproductcategories_response.rbi +21 -0
- data/lib/moov/models/operations/listproducts_request.rb +8 -2
- data/lib/moov/models/operations/listproducts_request.rbi +2 -0
- data/lib/moov/models/operations/uploadavatar_request.rb +36 -0
- data/lib/moov/models/operations/uploadavatar_request.rbi +15 -0
- data/lib/moov/models/operations/uploadavatar_response.rb +44 -0
- data/lib/moov/models/operations/uploadavatar_response.rbi +19 -0
- data/lib/moov/models/operations/uploadavatar_security.rb +36 -0
- data/lib/moov/models/operations/uploadavatar_security.rbi +15 -0
- data/lib/moov/models/operations.rb +7 -0
- data/lib/moov/products.rb +113 -8
- data/lib/moov/sdk_hooks/clientcredentials.rb +386 -0
- data/lib/moov/sdk_hooks/hooks.rb +6 -0
- data/lib/moov/sdk_hooks/oauth2scopes.rb +18 -0
- data/lib/moov/sdkconfiguration.rb +3 -3
- metadata +36 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e5d850eddfead736338e2901930525362062097ec413b495c7e24c48eef624c
|
|
4
|
+
data.tar.gz: a3dc411f219f4492ff4d5005da12d3ff8b32fd5a92e6d23ed83ff5a8b81a1995
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a42e790e1cff6a959690902641a0aa717f3969976d2beca114e43524227540297345af24b7edaa4cfcf8307e29074554e9b182790fef3757ff8397baece869e
|
|
7
|
+
data.tar.gz: 442d0eb776840e03ad684f0728354fb5f48e46adac3262c50f1ee8ccdc0cbbffda5b280325c90584ff25a1c985aa88c3832c92f9a9f09802451be2f07cda6e23
|
data/lib/moov/avatars.rb
CHANGED
|
@@ -159,5 +159,280 @@ module Moov
|
|
|
159
159
|
|
|
160
160
|
end
|
|
161
161
|
end
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
sig { params(security: Models::Operations::UploadAvatarSecurity, avatar_upload_request: Models::Components::AvatarUploadRequest, unique_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::UploadAvatarResponse) }
|
|
165
|
+
def upload(security:, avatar_upload_request:, unique_id:, timeout_ms: nil, http_headers: nil)
|
|
166
|
+
# upload - Upload a user avatar image for an account.
|
|
167
|
+
#
|
|
168
|
+
# The image will be normalized to 512x512 PNG format and stored separately from
|
|
169
|
+
# automatically discovered logos. User-uploaded avatars take precedence over enriched avatars at read time.
|
|
170
|
+
#
|
|
171
|
+
# This endpoint only accepts accountID values for the uniqueID parameter.
|
|
172
|
+
#
|
|
173
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
174
|
+
# you'll need to specify the `/accounts.write` scope.
|
|
175
|
+
request = Models::Operations::UploadAvatarRequest.new(
|
|
176
|
+
unique_id: unique_id,
|
|
177
|
+
avatar_upload_request: avatar_upload_request
|
|
178
|
+
)
|
|
179
|
+
url, params = @sdk_configuration.get_server_details
|
|
180
|
+
base_url = Utils.template_url(url, params)
|
|
181
|
+
url = Utils.generate_url(
|
|
182
|
+
Models::Operations::UploadAvatarRequest,
|
|
183
|
+
base_url,
|
|
184
|
+
'/avatars/{uniqueID}',
|
|
185
|
+
request
|
|
186
|
+
)
|
|
187
|
+
headers = {}
|
|
188
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
189
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :avatar_upload_request, :multipart)
|
|
190
|
+
headers['content-type'] = req_content_type
|
|
191
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
192
|
+
|
|
193
|
+
if form && !form.empty?
|
|
194
|
+
body = Utils.encode_form(form)
|
|
195
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
196
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
|
197
|
+
else
|
|
198
|
+
body = data
|
|
199
|
+
end
|
|
200
|
+
headers['Accept'] = 'application/json'
|
|
201
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
202
|
+
|
|
203
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
204
|
+
timeout ||= @sdk_configuration.timeout
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
connection = @sdk_configuration.client
|
|
208
|
+
|
|
209
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
210
|
+
config: @sdk_configuration,
|
|
211
|
+
base_url: base_url,
|
|
212
|
+
oauth2_scopes: ['/accounts.write'],
|
|
213
|
+
operation_id: 'uploadAvatar',
|
|
214
|
+
security_source: -> { security }
|
|
215
|
+
)
|
|
216
|
+
|
|
217
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
218
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
begin
|
|
222
|
+
http_response = T.must(connection).put(url) do |req|
|
|
223
|
+
req.body = body
|
|
224
|
+
req.headers.merge!(headers)
|
|
225
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
226
|
+
Utils.configure_request_security(req, security)
|
|
227
|
+
http_headers&.each do |key, value|
|
|
228
|
+
req.headers[key.to_s] = value
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
@sdk_configuration.hooks.before_request(
|
|
232
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
233
|
+
hook_ctx: hook_ctx
|
|
234
|
+
),
|
|
235
|
+
request: req
|
|
236
|
+
)
|
|
237
|
+
end
|
|
238
|
+
rescue StandardError => e
|
|
239
|
+
error = e
|
|
240
|
+
ensure
|
|
241
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
242
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
243
|
+
error: error,
|
|
244
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
245
|
+
hook_ctx: hook_ctx
|
|
246
|
+
),
|
|
247
|
+
response: http_response
|
|
248
|
+
)
|
|
249
|
+
else
|
|
250
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
251
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
252
|
+
hook_ctx: hook_ctx
|
|
253
|
+
),
|
|
254
|
+
response: http_response
|
|
255
|
+
)
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if http_response.nil?
|
|
259
|
+
raise error if !error.nil?
|
|
260
|
+
raise 'no response'
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
265
|
+
if Utils.match_status_code(http_response.status, ['204'])
|
|
266
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
267
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
268
|
+
hook_ctx: hook_ctx
|
|
269
|
+
),
|
|
270
|
+
response: http_response
|
|
271
|
+
)
|
|
272
|
+
return Models::Operations::UploadAvatarResponse.new(
|
|
273
|
+
status_code: http_response.status,
|
|
274
|
+
content_type: content_type,
|
|
275
|
+
raw_response: http_response,
|
|
276
|
+
headers: {}
|
|
277
|
+
)
|
|
278
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
|
279
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
280
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
281
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
282
|
+
hook_ctx: hook_ctx
|
|
283
|
+
),
|
|
284
|
+
response: http_response
|
|
285
|
+
)
|
|
286
|
+
response_data = http_response.env.response_body
|
|
287
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
288
|
+
obj.raw_response = http_response
|
|
289
|
+
raise obj
|
|
290
|
+
else
|
|
291
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
292
|
+
end
|
|
293
|
+
elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '413', '415', '429'])
|
|
294
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
295
|
+
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
296
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
297
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
298
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
299
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
300
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
301
|
+
else
|
|
302
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
303
|
+
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
sig { params(security: Models::Operations::DeleteAvatarSecurity, unique_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::DeleteAvatarResponse) }
|
|
309
|
+
def delete(security:, unique_id:, timeout_ms: nil, http_headers: nil)
|
|
310
|
+
# delete - Delete a user-uploaded avatar for an account.
|
|
311
|
+
#
|
|
312
|
+
# After deletion, the avatar endpoint will fall back to the enriched avatar
|
|
313
|
+
# or an account-type-aware fallback icon.
|
|
314
|
+
#
|
|
315
|
+
# This endpoint only accepts accountID values for the uniqueID parameter.
|
|
316
|
+
#
|
|
317
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
318
|
+
# you'll need to specify the `/accounts.write` scope.
|
|
319
|
+
request = Models::Operations::DeleteAvatarRequest.new(
|
|
320
|
+
unique_id: unique_id
|
|
321
|
+
)
|
|
322
|
+
url, params = @sdk_configuration.get_server_details
|
|
323
|
+
base_url = Utils.template_url(url, params)
|
|
324
|
+
url = Utils.generate_url(
|
|
325
|
+
Models::Operations::DeleteAvatarRequest,
|
|
326
|
+
base_url,
|
|
327
|
+
'/avatars/{uniqueID}',
|
|
328
|
+
request
|
|
329
|
+
)
|
|
330
|
+
headers = {}
|
|
331
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
332
|
+
headers['Accept'] = 'application/json'
|
|
333
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
334
|
+
|
|
335
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
336
|
+
timeout ||= @sdk_configuration.timeout
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
connection = @sdk_configuration.client
|
|
340
|
+
|
|
341
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
342
|
+
config: @sdk_configuration,
|
|
343
|
+
base_url: base_url,
|
|
344
|
+
oauth2_scopes: ['/accounts.write'],
|
|
345
|
+
operation_id: 'deleteAvatar',
|
|
346
|
+
security_source: -> { security }
|
|
347
|
+
)
|
|
348
|
+
|
|
349
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
350
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
begin
|
|
354
|
+
http_response = T.must(connection).delete(url) do |req|
|
|
355
|
+
req.headers.merge!(headers)
|
|
356
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
357
|
+
Utils.configure_request_security(req, security)
|
|
358
|
+
http_headers&.each do |key, value|
|
|
359
|
+
req.headers[key.to_s] = value
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
@sdk_configuration.hooks.before_request(
|
|
363
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
364
|
+
hook_ctx: hook_ctx
|
|
365
|
+
),
|
|
366
|
+
request: req
|
|
367
|
+
)
|
|
368
|
+
end
|
|
369
|
+
rescue StandardError => e
|
|
370
|
+
error = e
|
|
371
|
+
ensure
|
|
372
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
373
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
374
|
+
error: error,
|
|
375
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
376
|
+
hook_ctx: hook_ctx
|
|
377
|
+
),
|
|
378
|
+
response: http_response
|
|
379
|
+
)
|
|
380
|
+
else
|
|
381
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
382
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
383
|
+
hook_ctx: hook_ctx
|
|
384
|
+
),
|
|
385
|
+
response: http_response
|
|
386
|
+
)
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
if http_response.nil?
|
|
390
|
+
raise error if !error.nil?
|
|
391
|
+
raise 'no response'
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
396
|
+
if Utils.match_status_code(http_response.status, ['204'])
|
|
397
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
398
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
399
|
+
hook_ctx: hook_ctx
|
|
400
|
+
),
|
|
401
|
+
response: http_response
|
|
402
|
+
)
|
|
403
|
+
return Models::Operations::DeleteAvatarResponse.new(
|
|
404
|
+
status_code: http_response.status,
|
|
405
|
+
content_type: content_type,
|
|
406
|
+
raw_response: http_response,
|
|
407
|
+
headers: {}
|
|
408
|
+
)
|
|
409
|
+
elsif Utils.match_status_code(http_response.status, ['400'])
|
|
410
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
411
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
412
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
413
|
+
hook_ctx: hook_ctx
|
|
414
|
+
),
|
|
415
|
+
response: http_response
|
|
416
|
+
)
|
|
417
|
+
response_data = http_response.env.response_body
|
|
418
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
|
419
|
+
obj.raw_response = http_response
|
|
420
|
+
raise obj
|
|
421
|
+
else
|
|
422
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
423
|
+
end
|
|
424
|
+
elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
|
|
425
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
426
|
+
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
|
427
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
428
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
429
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
430
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
431
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
432
|
+
else
|
|
433
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
434
|
+
|
|
435
|
+
end
|
|
436
|
+
end
|
|
162
437
|
end
|
|
163
438
|
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
|
|
11
|
+
class AvatarUploadRequest
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# A JPEG, PNG, or WebP image file to upload as an avatar.
|
|
16
|
+
field :file, Models::Components::AvatarUploadRequestFile, { 'multipart_form': { 'file': true, 'field_name': 'file' } }
|
|
17
|
+
|
|
18
|
+
sig { params(file: Models::Components::AvatarUploadRequestFile).void }
|
|
19
|
+
def initialize(file:)
|
|
20
|
+
@file = file
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
24
|
+
def ==(other)
|
|
25
|
+
return false unless other.is_a? self.class
|
|
26
|
+
return false unless @file == other.file
|
|
27
|
+
true
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::AvatarUploadRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::AvatarUploadRequest
|
|
11
|
+
def file(); end
|
|
12
|
+
def file=(str_); end
|
|
13
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
|
|
11
|
+
class AvatarUploadRequestFile
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :file_name, ::String, { 'multipart_form': { 'field_name': 'fileName' } }
|
|
17
|
+
|
|
18
|
+
field :content, ::String, { 'multipart_form': { 'content': true } }
|
|
19
|
+
|
|
20
|
+
sig { params(file_name: ::String, content: ::String).void }
|
|
21
|
+
def initialize(file_name:, content:)
|
|
22
|
+
@file_name = file_name
|
|
23
|
+
@content = content
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a? self.class
|
|
29
|
+
return false unless @file_name == other.file_name
|
|
30
|
+
return false unless @content == other.content
|
|
31
|
+
true
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class Moov::Models::Components::AvatarUploadRequestFile
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Moov::Models::Components::AvatarUploadRequestFile
|
|
11
|
+
def file_name(); end
|
|
12
|
+
def file_name=(str_); end
|
|
13
|
+
def content(); end
|
|
14
|
+
def content=(str_); end
|
|
15
|
+
end
|
|
@@ -25,6 +25,7 @@ module Moov
|
|
|
25
25
|
SEND_FUNDS_ACH = new('send-funds.ach')
|
|
26
26
|
SEND_FUNDS_RTP = new('send-funds.rtp')
|
|
27
27
|
SEND_FUNDS_INSTANT_BANK = new('send-funds.instant-bank')
|
|
28
|
+
SEND_FUNDS_WIRE = new('send-funds.wire')
|
|
28
29
|
COLLECT_FUNDS = new('collect-funds')
|
|
29
30
|
COLLECT_FUNDS_CARD_PAYMENTS = new('collect-funds.card-payments')
|
|
30
31
|
MONEY_TRANSFER_PULL_FROM_CARD = new('money-transfer.pull-from-card')
|
|
@@ -31,9 +31,11 @@ module Moov
|
|
|
31
31
|
field :line_items, Crystalline::Nilable.new(Models::Components::CreateTransferLineItems), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('lineItems') } }
|
|
32
32
|
|
|
33
33
|
field :amount_details, Crystalline::Nilable.new(Models::Components::CreateTransferAmountDetails), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amountDetails') } }
|
|
34
|
+
# Indicates which party bears fees for the transfer, keyed by fee type.
|
|
35
|
+
field :fee_paid_by, Crystalline::Nilable.new(Models::Components::TransferFeePaidBy), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feePaidBy') } }
|
|
34
36
|
|
|
35
|
-
sig { params(source: Models::Components::CreateTransferSource, destination: Models::Components::CreateTransferDestination, amount: Models::Components::Amount, facilitator_fee: T.nilable(Models::Components::FacilitatorFee), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::CreateTransferLineItems), amount_details: T.nilable(Models::Components::CreateTransferAmountDetails)).void }
|
|
36
|
-
def initialize(source:, destination:, amount:, facilitator_fee: nil, description: nil, metadata: nil, foreign_id: nil, line_items: nil, amount_details: nil)
|
|
37
|
+
sig { params(source: Models::Components::CreateTransferSource, destination: Models::Components::CreateTransferDestination, amount: Models::Components::Amount, facilitator_fee: T.nilable(Models::Components::FacilitatorFee), description: T.nilable(::String), metadata: T.nilable(T::Hash[Symbol, ::String]), foreign_id: T.nilable(::String), line_items: T.nilable(Models::Components::CreateTransferLineItems), amount_details: T.nilable(Models::Components::CreateTransferAmountDetails), fee_paid_by: T.nilable(Models::Components::TransferFeePaidBy)).void }
|
|
38
|
+
def initialize(source:, destination:, amount:, facilitator_fee: nil, description: nil, metadata: nil, foreign_id: nil, line_items: nil, amount_details: nil, fee_paid_by: nil)
|
|
37
39
|
@source = source
|
|
38
40
|
@destination = destination
|
|
39
41
|
@amount = amount
|
|
@@ -43,6 +45,7 @@ module Moov
|
|
|
43
45
|
@foreign_id = foreign_id
|
|
44
46
|
@line_items = line_items
|
|
45
47
|
@amount_details = amount_details
|
|
48
|
+
@fee_paid_by = fee_paid_by
|
|
46
49
|
end
|
|
47
50
|
|
|
48
51
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -57,6 +60,7 @@ module Moov
|
|
|
57
60
|
return false unless @foreign_id == other.foreign_id
|
|
58
61
|
return false unless @line_items == other.line_items
|
|
59
62
|
return false unless @amount_details == other.amount_details
|
|
63
|
+
return false unless @fee_paid_by == other.fee_paid_by
|
|
60
64
|
true
|
|
61
65
|
end
|
|
62
66
|
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module Moov
|
|
8
|
+
module Models
|
|
9
|
+
module Components
|
|
10
|
+
# FeePaidBy - Indicates which party to a money movement bears an incurred fee.
|
|
11
|
+
class FeePaidBy < T::Enum
|
|
12
|
+
enums do
|
|
13
|
+
SOURCE = new('source')
|
|
14
|
+
DESTINATION = new('destination')
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -30,9 +30,11 @@ module Moov
|
|
|
30
30
|
field :fee_group, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feeGroup') } }
|
|
31
31
|
# Unique identifier for this residual payment calculation.
|
|
32
32
|
field :residual_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('residualID') } }
|
|
33
|
+
# Indicates which party to the money movement bore this fee.
|
|
34
|
+
field :fee_paid_by, Crystalline::Nilable.new(Models::Components::FeePaidBy), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feePaidBy'), 'decoder': ::Moov::Utils.enum_from_string(Models::Components::FeePaidBy, true) } }
|
|
33
35
|
|
|
34
|
-
sig { params(fee_id: T.nilable(::String), account_id: T.nilable(::String), wallet_id: T.nilable(::String), created_on: T.nilable(::DateTime), fee_name: T.nilable(::String), amount: T.nilable(Models::Components::AmountDecimal), generated_by: T.nilable(Models::Components::GeneratedBy), fee_group: T.nilable(::String), residual_id: T.nilable(::String)).void }
|
|
35
|
-
def initialize(fee_id: nil, account_id: nil, wallet_id: nil, created_on: nil, fee_name: nil, amount: nil, generated_by: nil, fee_group: nil, residual_id: nil)
|
|
36
|
+
sig { params(fee_id: T.nilable(::String), account_id: T.nilable(::String), wallet_id: T.nilable(::String), created_on: T.nilable(::DateTime), fee_name: T.nilable(::String), amount: T.nilable(Models::Components::AmountDecimal), generated_by: T.nilable(Models::Components::GeneratedBy), fee_group: T.nilable(::String), residual_id: T.nilable(::String), fee_paid_by: T.nilable(Models::Components::FeePaidBy)).void }
|
|
37
|
+
def initialize(fee_id: nil, account_id: nil, wallet_id: nil, created_on: nil, fee_name: nil, amount: nil, generated_by: nil, fee_group: nil, residual_id: nil, fee_paid_by: nil)
|
|
36
38
|
@fee_id = fee_id
|
|
37
39
|
@account_id = account_id
|
|
38
40
|
@wallet_id = wallet_id
|
|
@@ -42,6 +44,7 @@ module Moov
|
|
|
42
44
|
@generated_by = generated_by
|
|
43
45
|
@fee_group = fee_group
|
|
44
46
|
@residual_id = residual_id
|
|
47
|
+
@fee_paid_by = fee_paid_by
|
|
45
48
|
end
|
|
46
49
|
|
|
47
50
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -56,6 +59,7 @@ module Moov
|
|
|
56
59
|
return false unless @generated_by == other.generated_by
|
|
57
60
|
return false unless @fee_group == other.fee_group
|
|
58
61
|
return false unless @residual_id == other.residual_id
|
|
62
|
+
return false unless @fee_paid_by == other.fee_paid_by
|
|
59
63
|
true
|
|
60
64
|
end
|
|
61
65
|
end
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
module Moov
|
|
8
8
|
module Models
|
|
9
9
|
module Components
|
|
10
|
-
# IssuingIntervalLimit - Specifies the time frame for
|
|
10
|
+
# IssuingIntervalLimit - Specifies the time frame for a velocity limit. `per-transaction` applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET.
|
|
11
11
|
class IssuingIntervalLimit < T::Enum
|
|
12
12
|
enums do
|
|
13
13
|
PER_TRANSACTION = new('per-transaction')
|
|
@@ -14,7 +14,7 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
# The maximum amount in cents that can be spent in a given interval.
|
|
16
16
|
field :amount, ::Integer, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('amount'), required: true } }
|
|
17
|
-
# Specifies the time frame for
|
|
17
|
+
# Specifies the time frame for a velocity limit. `per-transaction` applies to each individual authorization and never resets. Time-based intervals (where supported) reset at midnight ET.
|
|
18
18
|
field :interval, Models::Components::IssuingIntervalLimit, { 'format_json': { 'letter_case': ::Moov::Utils.field_name('interval'), required: true, 'decoder': ::Moov::Utils.enum_from_string(Models::Components::IssuingIntervalLimit, false) } }
|
|
19
19
|
|
|
20
20
|
sig { params(amount: ::Integer, interval: Models::Components::IssuingIntervalLimit).void }
|
|
@@ -26,13 +26,18 @@ module Moov
|
|
|
26
26
|
# The `deferred` speed and `deferredBy` apply to `push-to-card` only. Other push methods
|
|
27
27
|
# (`push-to-apple-pay`, `push-to-google-pay`) are always delivered instantly regardless of these options.
|
|
28
28
|
field :push_options, Crystalline::Nilable.new(Models::Components::PushOptions), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('pushOptions') } }
|
|
29
|
+
# Indicates which party bears the fee, keyed by disbursement payment method (`DisbursementPaymentMethodType`).
|
|
30
|
+
#
|
|
31
|
+
# Sparse — include only the methods you want to attribute. Any method left unset defaults to `source`.
|
|
32
|
+
field :fee_paid_by, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, Models::Components::FeePaidBy)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feePaidBy') } }
|
|
29
33
|
|
|
30
|
-
sig { params(allowed_methods: T::Array[Models::Components::DisbursementPaymentMethodType], recipient: Models::Components::PayoutRecipient, metadata: T.nilable(T::Hash[Symbol, ::String]), push_options: T.nilable(Models::Components::PushOptions)).void }
|
|
31
|
-
def initialize(allowed_methods:, recipient:, metadata: nil, push_options: nil)
|
|
34
|
+
sig { params(allowed_methods: T::Array[Models::Components::DisbursementPaymentMethodType], recipient: Models::Components::PayoutRecipient, metadata: T.nilable(T::Hash[Symbol, ::String]), push_options: T.nilable(Models::Components::PushOptions), fee_paid_by: T.nilable(T::Hash[Symbol, Models::Components::FeePaidBy])).void }
|
|
35
|
+
def initialize(allowed_methods:, recipient:, metadata: nil, push_options: nil, fee_paid_by: nil)
|
|
32
36
|
@allowed_methods = allowed_methods
|
|
33
37
|
@recipient = recipient
|
|
34
38
|
@metadata = metadata
|
|
35
39
|
@push_options = push_options
|
|
40
|
+
@fee_paid_by = fee_paid_by
|
|
36
41
|
end
|
|
37
42
|
|
|
38
43
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -42,6 +47,7 @@ module Moov
|
|
|
42
47
|
return false unless @recipient == other.recipient
|
|
43
48
|
return false unless @metadata == other.metadata
|
|
44
49
|
return false unless @push_options == other.push_options
|
|
50
|
+
return false unless @fee_paid_by == other.fee_paid_by
|
|
45
51
|
true
|
|
46
52
|
end
|
|
47
53
|
end
|
|
@@ -26,13 +26,18 @@ module Moov
|
|
|
26
26
|
# The `deferred` speed and `deferredBy` apply to `push-to-card` only. Other push methods
|
|
27
27
|
# (`push-to-apple-pay`, `push-to-google-pay`) are always delivered instantly regardless of these options.
|
|
28
28
|
field :push_options, Crystalline::Nilable.new(Models::Components::PushOptionsUpdate), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('pushOptions') } }
|
|
29
|
+
# Indicates which party bears the fee, keyed by disbursement payment method (`DisbursementPaymentMethodType`).
|
|
30
|
+
#
|
|
31
|
+
# Sparse — include only the methods you want to attribute. Any method left unset defaults to `source`.
|
|
32
|
+
field :fee_paid_by, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, Models::Components::FeePaidBy)), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feePaidBy') } }
|
|
29
33
|
|
|
30
|
-
sig { params(allowed_methods: T.nilable(T::Array[Models::Components::DisbursementPaymentMethodType]), recipient: T.nilable(Models::Components::PayoutRecipient), metadata: T.nilable(T::Hash[Symbol, ::String]), push_options: T.nilable(Models::Components::PushOptionsUpdate)).void }
|
|
31
|
-
def initialize(allowed_methods: nil, recipient: nil, metadata: nil, push_options: nil)
|
|
34
|
+
sig { params(allowed_methods: T.nilable(T::Array[Models::Components::DisbursementPaymentMethodType]), recipient: T.nilable(Models::Components::PayoutRecipient), metadata: T.nilable(T::Hash[Symbol, ::String]), push_options: T.nilable(Models::Components::PushOptionsUpdate), fee_paid_by: T.nilable(T::Hash[Symbol, Models::Components::FeePaidBy])).void }
|
|
35
|
+
def initialize(allowed_methods: nil, recipient: nil, metadata: nil, push_options: nil, fee_paid_by: nil)
|
|
32
36
|
@allowed_methods = allowed_methods
|
|
33
37
|
@recipient = recipient
|
|
34
38
|
@metadata = metadata
|
|
35
39
|
@push_options = push_options
|
|
40
|
+
@fee_paid_by = fee_paid_by
|
|
36
41
|
end
|
|
37
42
|
|
|
38
43
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -42,6 +47,7 @@ module Moov
|
|
|
42
47
|
return false unless @recipient == other.recipient
|
|
43
48
|
return false unless @metadata == other.metadata
|
|
44
49
|
return false unless @push_options == other.push_options
|
|
50
|
+
return false unless @fee_paid_by == other.fee_paid_by
|
|
45
51
|
true
|
|
46
52
|
end
|
|
47
53
|
end
|
|
@@ -21,12 +21,15 @@ module Moov
|
|
|
21
21
|
|
|
22
22
|
field :push_options, Crystalline::Nilable.new(Models::Components::PushOptionsError), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('pushOptions') } }
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
field :fee_paid_by, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('feePaidBy') } }
|
|
25
|
+
|
|
26
|
+
sig { params(allowed_methods: T.nilable(::String), recipient: T.nilable(Models::Components::PayoutRecipientError), metadata: T.nilable(::String), push_options: T.nilable(Models::Components::PushOptionsError), fee_paid_by: T.nilable(::String)).void }
|
|
27
|
+
def initialize(allowed_methods: nil, recipient: nil, metadata: nil, push_options: nil, fee_paid_by: nil)
|
|
26
28
|
@allowed_methods = allowed_methods
|
|
27
29
|
@recipient = recipient
|
|
28
30
|
@metadata = metadata
|
|
29
31
|
@push_options = push_options
|
|
32
|
+
@fee_paid_by = fee_paid_by
|
|
30
33
|
end
|
|
31
34
|
|
|
32
35
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -36,6 +39,7 @@ module Moov
|
|
|
36
39
|
return false unless @recipient == other.recipient
|
|
37
40
|
return false unless @metadata == other.metadata
|
|
38
41
|
return false unless @push_options == other.push_options
|
|
42
|
+
return false unless @fee_paid_by == other.fee_paid_by
|
|
39
43
|
true
|
|
40
44
|
end
|
|
41
45
|
end
|