moov_ruby 0.1.10 → 0.1.12
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/models/components/createwallet.rb +41 -0
- data/lib/moov/models/components/createwallet.rbi +17 -0
- data/lib/moov/models/components/patchwallet.rb +47 -0
- data/lib/moov/models/components/patchwallet.rbi +19 -0
- data/lib/moov/models/components/paymentlinkpayoutdetails.rb +1 -0
- data/lib/moov/models/components/paymentlinkpayoutdetailsupdate.rb +3 -2
- data/lib/moov/models/components/payoutrecipient.rb +8 -3
- data/lib/moov/models/components/payoutrecipient.rbi +2 -0
- data/lib/moov/models/components/payoutrecipienterror.rb +6 -2
- data/lib/moov/models/components/payoutrecipienterror.rbi +2 -0
- data/lib/moov/models/components/requirementid.rb +50 -8
- data/lib/moov/models/components/wallet.rb +38 -2
- data/lib/moov/models/components/wallet.rbi +16 -0
- data/lib/moov/models/components/walletstatus.rb +24 -0
- data/lib/moov/models/components/walletstatus.rbi +11 -0
- data/lib/moov/models/components/wallettype.rb +24 -0
- data/lib/moov/models/components/wallettype.rbi +11 -0
- data/lib/moov/models/components/webhookdatawalletcreated.rb +37 -0
- data/lib/moov/models/components/webhookdatawalletcreated.rbi +15 -0
- data/lib/moov/models/components/webhookdatawalletupdated.rb +43 -0
- data/lib/moov/models/components/webhookdatawalletupdated.rbi +17 -0
- data/lib/moov/models/components/webhookevent.rb +2 -2
- data/lib/moov/models/components/webhookeventtype.rb +2 -0
- data/lib/moov/models/components.rb +6 -1
- data/lib/moov/models/errors/createwalleterror.rb +45 -0
- data/lib/moov/models/errors/createwalleterror.rbi +19 -0
- data/lib/moov/models/errors/patchwalleterror.rb +49 -0
- data/lib/moov/models/errors/patchwalleterror.rbi +21 -0
- data/lib/moov/models/errors.rb +2 -0
- data/lib/moov/models/operations/createwallet_request.rb +49 -0
- data/lib/moov/models/operations/createwallet_request.rbi +17 -0
- data/lib/moov/models/operations/createwallet_response.rb +49 -0
- data/lib/moov/models/operations/createwallet_response.rbi +21 -0
- data/lib/moov/models/operations/listwallets_request.rb +18 -2
- data/lib/moov/models/operations/listwallets_request.rbi +8 -0
- data/lib/moov/models/operations/updatewallet_request.rb +53 -0
- data/lib/moov/models/operations/updatewallet_request.rbi +19 -0
- data/lib/moov/models/operations/updatewallet_response.rb +49 -0
- data/lib/moov/models/operations/updatewallet_response.rbi +21 -0
- data/lib/moov/models/operations.rb +4 -0
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/wallets.rb +336 -5
- metadata +26 -4
- data/lib/moov/models/components/payoutrecipientupdate.rb +0 -35
- data/lib/moov/models/components/payoutrecipientupdate.rbi +0 -13
data/lib/moov/wallets.rb
CHANGED
@@ -39,20 +39,182 @@ module Moov
|
|
39
39
|
end
|
40
40
|
|
41
41
|
|
42
|
-
sig { params(account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::
|
43
|
-
def
|
44
|
-
#
|
42
|
+
sig { params(create_wallet: Models::Components::CreateWallet, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateWalletResponse) }
|
43
|
+
def create(create_wallet:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
44
|
+
# create - Create a new wallet for an account. You can specify optional attributes such as a display name and description to specify the intended use of the wallet. This will generate a new moov-wallet payment method.
|
45
45
|
#
|
46
46
|
# Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to learn more.
|
47
47
|
#
|
48
48
|
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
49
|
-
# you'll need to specify the `/accounts/{accountID}/wallets.
|
50
|
-
request = Models::Operations::
|
49
|
+
# you'll need to specify the `/accounts/{accountID}/wallets.write` scope.
|
50
|
+
request = Models::Operations::CreateWalletRequest.new(
|
51
51
|
account_id: account_id,
|
52
|
+
create_wallet: create_wallet,
|
52
53
|
x_moov_version: x_moov_version
|
53
54
|
)
|
54
55
|
url, params = @sdk_configuration.get_server_details
|
55
56
|
base_url = Utils.template_url(url, params)
|
57
|
+
url = Utils.generate_url(
|
58
|
+
Models::Operations::CreateWalletRequest,
|
59
|
+
base_url,
|
60
|
+
'/accounts/{accountID}/wallets',
|
61
|
+
request,
|
62
|
+
@sdk_configuration.globals
|
63
|
+
)
|
64
|
+
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
65
|
+
headers = T.cast(headers, T::Hash[String, String])
|
66
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :create_wallet, :json)
|
67
|
+
headers['content-type'] = req_content_type
|
68
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
69
|
+
|
70
|
+
if form
|
71
|
+
body = Utils.encode_form(form)
|
72
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
73
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
74
|
+
else
|
75
|
+
body = data
|
76
|
+
end
|
77
|
+
headers['Accept'] = 'application/json'
|
78
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
79
|
+
|
80
|
+
security = @sdk_configuration.security_source&.call
|
81
|
+
|
82
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
83
|
+
timeout ||= @sdk_configuration.timeout
|
84
|
+
|
85
|
+
|
86
|
+
connection = @sdk_configuration.client
|
87
|
+
|
88
|
+
hook_ctx = SDKHooks::HookContext.new(
|
89
|
+
config: @sdk_configuration,
|
90
|
+
base_url: base_url,
|
91
|
+
oauth2_scopes: [],
|
92
|
+
operation_id: 'createWallet',
|
93
|
+
security_source: @sdk_configuration.security_source
|
94
|
+
)
|
95
|
+
|
96
|
+
error = T.let(nil, T.nilable(StandardError))
|
97
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
98
|
+
|
99
|
+
|
100
|
+
begin
|
101
|
+
http_response = T.must(connection).post(url) do |req|
|
102
|
+
req.body = body
|
103
|
+
req.headers.merge!(headers)
|
104
|
+
req.options.timeout = timeout unless timeout.nil?
|
105
|
+
Utils.configure_request_security(req, security)
|
106
|
+
|
107
|
+
@sdk_configuration.hooks.before_request(
|
108
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
109
|
+
hook_ctx: hook_ctx
|
110
|
+
),
|
111
|
+
request: req
|
112
|
+
)
|
113
|
+
end
|
114
|
+
rescue StandardError => e
|
115
|
+
error = e
|
116
|
+
ensure
|
117
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
118
|
+
http_response = @sdk_configuration.hooks.after_error(
|
119
|
+
error: error,
|
120
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
121
|
+
hook_ctx: hook_ctx
|
122
|
+
),
|
123
|
+
response: http_response
|
124
|
+
)
|
125
|
+
else
|
126
|
+
http_response = @sdk_configuration.hooks.after_success(
|
127
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
128
|
+
hook_ctx: hook_ctx
|
129
|
+
),
|
130
|
+
response: http_response
|
131
|
+
)
|
132
|
+
end
|
133
|
+
|
134
|
+
if http_response.nil?
|
135
|
+
raise error if !error.nil?
|
136
|
+
raise 'no response'
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
141
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
142
|
+
if Utils.match_content_type(content_type, 'application/json')
|
143
|
+
http_response = @sdk_configuration.hooks.after_success(
|
144
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
145
|
+
hook_ctx: hook_ctx
|
146
|
+
),
|
147
|
+
response: http_response
|
148
|
+
)
|
149
|
+
response_data = http_response.env.response_body
|
150
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Wallet)
|
151
|
+
response = Models::Operations::CreateWalletResponse.new(
|
152
|
+
status_code: http_response.status,
|
153
|
+
content_type: content_type,
|
154
|
+
raw_response: http_response,
|
155
|
+
headers: http_response.headers,
|
156
|
+
wallet: T.unsafe(obj)
|
157
|
+
)
|
158
|
+
|
159
|
+
return response
|
160
|
+
else
|
161
|
+
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'
|
162
|
+
end
|
163
|
+
elsif Utils.match_status_code(http_response.status, ['400', '409'])
|
164
|
+
if Utils.match_content_type(content_type, 'application/json')
|
165
|
+
http_response = @sdk_configuration.hooks.after_success(
|
166
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
167
|
+
hook_ctx: hook_ctx
|
168
|
+
),
|
169
|
+
response: http_response
|
170
|
+
)
|
171
|
+
response_data = http_response.env.response_body
|
172
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
173
|
+
obj.raw_response = http_response
|
174
|
+
raise obj
|
175
|
+
else
|
176
|
+
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'
|
177
|
+
end
|
178
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
179
|
+
if Utils.match_content_type(content_type, 'application/json')
|
180
|
+
http_response = @sdk_configuration.hooks.after_success(
|
181
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
182
|
+
hook_ctx: hook_ctx
|
183
|
+
),
|
184
|
+
response: http_response
|
185
|
+
)
|
186
|
+
response_data = http_response.env.response_body
|
187
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::CreateWalletError)
|
188
|
+
obj.raw_response = http_response
|
189
|
+
raise obj
|
190
|
+
else
|
191
|
+
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'
|
192
|
+
end
|
193
|
+
elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
|
194
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
195
|
+
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
196
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
197
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
198
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
199
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
200
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
201
|
+
else
|
202
|
+
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'
|
203
|
+
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
|
208
|
+
sig { params(request: Models::Operations::ListWalletsRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::ListWalletsResponse) }
|
209
|
+
def list(request:, timeout_ms: nil)
|
210
|
+
# list - List the wallets associated with a Moov account.
|
211
|
+
#
|
212
|
+
# Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to learn more.
|
213
|
+
#
|
214
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
215
|
+
# you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
|
216
|
+
url, params = @sdk_configuration.get_server_details
|
217
|
+
base_url = Utils.template_url(url, params)
|
56
218
|
url = Utils.generate_url(
|
57
219
|
Models::Operations::ListWalletsRequest,
|
58
220
|
base_url,
|
@@ -62,6 +224,7 @@ module Moov
|
|
62
224
|
)
|
63
225
|
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
64
226
|
headers = T.cast(headers, T::Hash[String, String])
|
227
|
+
query_params = Utils.get_query_params(Models::Operations::ListWalletsRequest, request, nil, @sdk_configuration.globals)
|
65
228
|
headers['Accept'] = 'application/json'
|
66
229
|
headers['user-agent'] = @sdk_configuration.user_agent
|
67
230
|
|
@@ -89,6 +252,7 @@ module Moov
|
|
89
252
|
http_response = T.must(connection).get(url) do |req|
|
90
253
|
req.headers.merge!(headers)
|
91
254
|
req.options.timeout = timeout unless timeout.nil?
|
255
|
+
req.params = query_params
|
92
256
|
Utils.configure_request_security(req, security)
|
93
257
|
|
94
258
|
@sdk_configuration.hooks.before_request(
|
@@ -284,5 +448,172 @@ module Moov
|
|
284
448
|
|
285
449
|
end
|
286
450
|
end
|
451
|
+
|
452
|
+
|
453
|
+
sig { params(patch_wallet: Models::Components::PatchWallet, wallet_id: ::String, account_id: ::String, x_moov_version: T.nilable(::String), timeout_ms: T.nilable(Integer)).returns(Models::Operations::UpdateWalletResponse) }
|
454
|
+
def update(patch_wallet:, wallet_id:, account_id:, x_moov_version: nil, timeout_ms: nil)
|
455
|
+
# update - Update properties of an existing wallet such as name, description, status, or metadata.
|
456
|
+
#
|
457
|
+
# Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to learn more.
|
458
|
+
#
|
459
|
+
# To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
460
|
+
# you'll need to specify the `/accounts/{accountID}/wallets.write` scope.
|
461
|
+
request = Models::Operations::UpdateWalletRequest.new(
|
462
|
+
wallet_id: wallet_id,
|
463
|
+
account_id: account_id,
|
464
|
+
patch_wallet: patch_wallet,
|
465
|
+
x_moov_version: x_moov_version
|
466
|
+
)
|
467
|
+
url, params = @sdk_configuration.get_server_details
|
468
|
+
base_url = Utils.template_url(url, params)
|
469
|
+
url = Utils.generate_url(
|
470
|
+
Models::Operations::UpdateWalletRequest,
|
471
|
+
base_url,
|
472
|
+
'/accounts/{accountID}/wallets/{walletID}',
|
473
|
+
request,
|
474
|
+
@sdk_configuration.globals
|
475
|
+
)
|
476
|
+
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
477
|
+
headers = T.cast(headers, T::Hash[String, String])
|
478
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :patch_wallet, :json)
|
479
|
+
headers['content-type'] = req_content_type
|
480
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
481
|
+
|
482
|
+
if form
|
483
|
+
body = Utils.encode_form(form)
|
484
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
485
|
+
body = URI.encode_www_form(T.cast(data, T::Hash[Symbol, Object]))
|
486
|
+
else
|
487
|
+
body = data
|
488
|
+
end
|
489
|
+
headers['Accept'] = 'application/json'
|
490
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
491
|
+
|
492
|
+
security = @sdk_configuration.security_source&.call
|
493
|
+
|
494
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
495
|
+
timeout ||= @sdk_configuration.timeout
|
496
|
+
|
497
|
+
|
498
|
+
connection = @sdk_configuration.client
|
499
|
+
|
500
|
+
hook_ctx = SDKHooks::HookContext.new(
|
501
|
+
config: @sdk_configuration,
|
502
|
+
base_url: base_url,
|
503
|
+
oauth2_scopes: [],
|
504
|
+
operation_id: 'updateWallet',
|
505
|
+
security_source: @sdk_configuration.security_source
|
506
|
+
)
|
507
|
+
|
508
|
+
error = T.let(nil, T.nilable(StandardError))
|
509
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
510
|
+
|
511
|
+
|
512
|
+
begin
|
513
|
+
http_response = T.must(connection).patch(url) do |req|
|
514
|
+
req.body = body
|
515
|
+
req.headers.merge!(headers)
|
516
|
+
req.options.timeout = timeout unless timeout.nil?
|
517
|
+
Utils.configure_request_security(req, security)
|
518
|
+
|
519
|
+
@sdk_configuration.hooks.before_request(
|
520
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
521
|
+
hook_ctx: hook_ctx
|
522
|
+
),
|
523
|
+
request: req
|
524
|
+
)
|
525
|
+
end
|
526
|
+
rescue StandardError => e
|
527
|
+
error = e
|
528
|
+
ensure
|
529
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
530
|
+
http_response = @sdk_configuration.hooks.after_error(
|
531
|
+
error: error,
|
532
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
533
|
+
hook_ctx: hook_ctx
|
534
|
+
),
|
535
|
+
response: http_response
|
536
|
+
)
|
537
|
+
else
|
538
|
+
http_response = @sdk_configuration.hooks.after_success(
|
539
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
540
|
+
hook_ctx: hook_ctx
|
541
|
+
),
|
542
|
+
response: http_response
|
543
|
+
)
|
544
|
+
end
|
545
|
+
|
546
|
+
if http_response.nil?
|
547
|
+
raise error if !error.nil?
|
548
|
+
raise 'no response'
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
552
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
553
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
554
|
+
if Utils.match_content_type(content_type, 'application/json')
|
555
|
+
http_response = @sdk_configuration.hooks.after_success(
|
556
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
557
|
+
hook_ctx: hook_ctx
|
558
|
+
),
|
559
|
+
response: http_response
|
560
|
+
)
|
561
|
+
response_data = http_response.env.response_body
|
562
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Wallet)
|
563
|
+
response = Models::Operations::UpdateWalletResponse.new(
|
564
|
+
status_code: http_response.status,
|
565
|
+
content_type: content_type,
|
566
|
+
raw_response: http_response,
|
567
|
+
headers: http_response.headers,
|
568
|
+
wallet: T.unsafe(obj)
|
569
|
+
)
|
570
|
+
|
571
|
+
return response
|
572
|
+
else
|
573
|
+
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'
|
574
|
+
end
|
575
|
+
elsif Utils.match_status_code(http_response.status, ['400', '409'])
|
576
|
+
if Utils.match_content_type(content_type, 'application/json')
|
577
|
+
http_response = @sdk_configuration.hooks.after_success(
|
578
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
579
|
+
hook_ctx: hook_ctx
|
580
|
+
),
|
581
|
+
response: http_response
|
582
|
+
)
|
583
|
+
response_data = http_response.env.response_body
|
584
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::GenericError)
|
585
|
+
obj.raw_response = http_response
|
586
|
+
raise obj
|
587
|
+
else
|
588
|
+
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'
|
589
|
+
end
|
590
|
+
elsif Utils.match_status_code(http_response.status, ['422'])
|
591
|
+
if Utils.match_content_type(content_type, 'application/json')
|
592
|
+
http_response = @sdk_configuration.hooks.after_success(
|
593
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
594
|
+
hook_ctx: hook_ctx
|
595
|
+
),
|
596
|
+
response: http_response
|
597
|
+
)
|
598
|
+
response_data = http_response.env.response_body
|
599
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::PatchWalletError)
|
600
|
+
obj.raw_response = http_response
|
601
|
+
raise obj
|
602
|
+
else
|
603
|
+
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'
|
604
|
+
end
|
605
|
+
elsif Utils.match_status_code(http_response.status, ['401', '403', '404', '429'])
|
606
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
607
|
+
elsif Utils.match_status_code(http_response.status, ['500', '504'])
|
608
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
609
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
610
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
611
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
612
|
+
raise ::Moov::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
613
|
+
else
|
614
|
+
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'
|
615
|
+
|
616
|
+
end
|
617
|
+
end
|
287
618
|
end
|
288
619
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moov_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Speakeasy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|
@@ -550,6 +550,8 @@ files:
|
|
550
550
|
- lib/moov/models/components/createtransfersourceach.rbi
|
551
551
|
- lib/moov/models/components/createtransfersourcecard.rb
|
552
552
|
- lib/moov/models/components/createtransfersourcecard.rbi
|
553
|
+
- lib/moov/models/components/createwallet.rb
|
554
|
+
- lib/moov/models/components/createwallet.rbi
|
553
555
|
- lib/moov/models/components/customersupport.rb
|
554
556
|
- lib/moov/models/components/customersupport.rbi
|
555
557
|
- lib/moov/models/components/customersupporterror.rb
|
@@ -832,6 +834,8 @@ files:
|
|
832
834
|
- lib/moov/models/components/patchsweepconfig.rbi
|
833
835
|
- lib/moov/models/components/patchtransfer.rb
|
834
836
|
- lib/moov/models/components/patchtransfer.rbi
|
837
|
+
- lib/moov/models/components/patchwallet.rb
|
838
|
+
- lib/moov/models/components/patchwallet.rbi
|
835
839
|
- lib/moov/models/components/paymentdetailserror.rb
|
836
840
|
- lib/moov/models/components/paymentdetailserror.rbi
|
837
841
|
- lib/moov/models/components/paymentlink.rb
|
@@ -868,8 +872,6 @@ files:
|
|
868
872
|
- lib/moov/models/components/payoutrecipient.rbi
|
869
873
|
- lib/moov/models/components/payoutrecipienterror.rb
|
870
874
|
- lib/moov/models/components/payoutrecipienterror.rbi
|
871
|
-
- lib/moov/models/components/payoutrecipientupdate.rb
|
872
|
-
- lib/moov/models/components/payoutrecipientupdate.rbi
|
873
875
|
- lib/moov/models/components/pendinglitigation.rb
|
874
876
|
- lib/moov/models/components/pendinglitigation.rbi
|
875
877
|
- lib/moov/models/components/phone.rb
|
@@ -1152,6 +1154,8 @@ files:
|
|
1152
1154
|
- lib/moov/models/components/wallet.rbi
|
1153
1155
|
- lib/moov/models/components/walletavailablebalance.rb
|
1154
1156
|
- lib/moov/models/components/walletavailablebalance.rbi
|
1157
|
+
- lib/moov/models/components/walletstatus.rb
|
1158
|
+
- lib/moov/models/components/walletstatus.rbi
|
1155
1159
|
- lib/moov/models/components/wallettransaction.rb
|
1156
1160
|
- lib/moov/models/components/wallettransaction.rbi
|
1157
1161
|
- lib/moov/models/components/wallettransactionsourcetype.rb
|
@@ -1160,6 +1164,8 @@ files:
|
|
1160
1164
|
- lib/moov/models/components/wallettransactionstatus.rbi
|
1161
1165
|
- lib/moov/models/components/wallettransactiontype.rb
|
1162
1166
|
- lib/moov/models/components/wallettransactiontype.rbi
|
1167
|
+
- lib/moov/models/components/wallettype.rb
|
1168
|
+
- lib/moov/models/components/wallettype.rbi
|
1163
1169
|
- lib/moov/models/components/webhookdata.rb
|
1164
1170
|
- lib/moov/models/components/webhookdata.rbi
|
1165
1171
|
- lib/moov/models/components/webhookdataaccountcreated.rb
|
@@ -1226,8 +1232,12 @@ files:
|
|
1226
1232
|
- lib/moov/models/components/webhookdatatransferstatus.rbi
|
1227
1233
|
- lib/moov/models/components/webhookdatatransferupdated.rb
|
1228
1234
|
- lib/moov/models/components/webhookdatatransferupdated.rbi
|
1235
|
+
- lib/moov/models/components/webhookdatawalletcreated.rb
|
1236
|
+
- lib/moov/models/components/webhookdatawalletcreated.rbi
|
1229
1237
|
- lib/moov/models/components/webhookdatawallettransactionupdated.rb
|
1230
1238
|
- lib/moov/models/components/webhookdatawallettransactionupdated.rbi
|
1239
|
+
- lib/moov/models/components/webhookdatawalletupdated.rb
|
1240
|
+
- lib/moov/models/components/webhookdatawalletupdated.rbi
|
1231
1241
|
- lib/moov/models/components/webhookevent.rb
|
1232
1242
|
- lib/moov/models/components/webhookevent.rbi
|
1233
1243
|
- lib/moov/models/components/webhookeventtype.rb
|
@@ -1263,6 +1273,8 @@ files:
|
|
1263
1273
|
- lib/moov/models/errors/createsweepconfigerror.rbi
|
1264
1274
|
- lib/moov/models/errors/createticketerror.rb
|
1265
1275
|
- lib/moov/models/errors/createticketerror.rbi
|
1276
|
+
- lib/moov/models/errors/createwalleterror.rb
|
1277
|
+
- lib/moov/models/errors/createwalleterror.rbi
|
1266
1278
|
- lib/moov/models/errors/feeplanagreementerror.rb
|
1267
1279
|
- lib/moov/models/errors/feeplanagreementerror.rbi
|
1268
1280
|
- lib/moov/models/errors/fileuploadvalidationerror.rb
|
@@ -1283,6 +1295,8 @@ files:
|
|
1283
1295
|
- lib/moov/models/errors/patchaccounterror.rbi
|
1284
1296
|
- lib/moov/models/errors/patchsweepconfigerror.rb
|
1285
1297
|
- lib/moov/models/errors/patchsweepconfigerror.rbi
|
1298
|
+
- lib/moov/models/errors/patchwalleterror.rb
|
1299
|
+
- lib/moov/models/errors/patchwalleterror.rbi
|
1286
1300
|
- lib/moov/models/errors/refundvalidationerror.rb
|
1287
1301
|
- lib/moov/models/errors/refundvalidationerror.rbi
|
1288
1302
|
- lib/moov/models/errors/representativevalidationerror.rb
|
@@ -1408,6 +1422,10 @@ files:
|
|
1408
1422
|
- lib/moov/models/operations/createtransferoptions_request.rbi
|
1409
1423
|
- lib/moov/models/operations/createtransferoptions_response.rb
|
1410
1424
|
- lib/moov/models/operations/createtransferoptions_response.rbi
|
1425
|
+
- lib/moov/models/operations/createwallet_request.rb
|
1426
|
+
- lib/moov/models/operations/createwallet_request.rbi
|
1427
|
+
- lib/moov/models/operations/createwallet_response.rb
|
1428
|
+
- lib/moov/models/operations/createwallet_response.rbi
|
1411
1429
|
- lib/moov/models/operations/deletedisputeevidencefile_request.rb
|
1412
1430
|
- lib/moov/models/operations/deletedisputeevidencefile_request.rbi
|
1413
1431
|
- lib/moov/models/operations/deletedisputeevidencefile_response.rb
|
@@ -1872,6 +1890,10 @@ files:
|
|
1872
1890
|
- lib/moov/models/operations/updatetransfer_request.rbi
|
1873
1891
|
- lib/moov/models/operations/updatetransfer_response.rb
|
1874
1892
|
- lib/moov/models/operations/updatetransfer_response.rbi
|
1893
|
+
- lib/moov/models/operations/updatewallet_request.rb
|
1894
|
+
- lib/moov/models/operations/updatewallet_request.rbi
|
1895
|
+
- lib/moov/models/operations/updatewallet_response.rb
|
1896
|
+
- lib/moov/models/operations/updatewallet_response.rbi
|
1875
1897
|
- lib/moov/models/operations/uploaddisputeevidencefile_request.rb
|
1876
1898
|
- lib/moov/models/operations/uploaddisputeevidencefile_request.rbi
|
1877
1899
|
- lib/moov/models/operations/uploaddisputeevidencefile_response.rb
|
@@ -1,35 +0,0 @@
|
|
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
|
-
# Specify the intended recipient of the payout.
|
12
|
-
#
|
13
|
-
# This information will be used to authenticate the end user when they follow the payment link.
|
14
|
-
class PayoutRecipientUpdate
|
15
|
-
extend T::Sig
|
16
|
-
include Crystalline::MetadataFields
|
17
|
-
|
18
|
-
|
19
|
-
field :email, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Moov::Utils.field_name('email') } }
|
20
|
-
|
21
|
-
sig { params(email: T.nilable(::String)).void }
|
22
|
-
def initialize(email: nil)
|
23
|
-
@email = email
|
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 @email == other.email
|
30
|
-
true
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
|
5
|
-
class Moov::Models::Components::PayoutRecipientUpdate
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
7
|
-
end
|
8
|
-
|
9
|
-
|
10
|
-
class Moov::Models::Components::PayoutRecipientUpdate
|
11
|
-
def email(); end
|
12
|
-
def email=(str_); end
|
13
|
-
end
|