moov_ruby 25.11.6 → 25.11.8

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.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/lib/moov/account_terminal_applications.rb +16 -16
  3. data/lib/moov/accounts.rb +52 -54
  4. data/lib/moov/adjustments.rb +8 -8
  5. data/lib/moov/apple_pay.rb +20 -20
  6. data/lib/moov/authentication.rb +8 -8
  7. data/lib/moov/avatars.rb +4 -4
  8. data/lib/moov/bank_accounts.rb +36 -36
  9. data/lib/moov/branding.rb +12 -12
  10. data/lib/moov/capabilities.rb +20 -20
  11. data/lib/moov/card_issuing.rb +25 -25
  12. data/lib/moov/cards.rb +20 -20
  13. data/lib/moov/disputes.rb +44 -44
  14. data/lib/moov/end_to_end_encryption.rb +8 -8
  15. data/lib/moov/enriched_address.rb +4 -4
  16. data/lib/moov/enriched_profile.rb +4 -4
  17. data/lib/moov/fee_plans.rb +40 -40
  18. data/lib/moov/files.rb +12 -12
  19. data/lib/moov/images.rb +28 -28
  20. data/lib/moov/industries.rb +4 -4
  21. data/lib/moov/institutions.rb +8 -8
  22. data/lib/moov/issuing_transactions.rb +20 -20
  23. data/lib/moov/models/components/addcapabilities.rb +5 -1
  24. data/lib/moov/models/components/billingaddress.rb +52 -0
  25. data/lib/moov/models/components/billingaddress.rbi +23 -0
  26. data/lib/moov/models/components/capability.rb +7 -1
  27. data/lib/moov/models/components/capabilityid.rb +7 -1
  28. data/lib/moov/models/components/createaccount.rb +5 -1
  29. data/lib/moov/models/components/createpaymentlink.rb +4 -4
  30. data/lib/moov/models/components/fullissuedcard.rb +22 -10
  31. data/lib/moov/models/components/fullissuedcard.rbi +10 -4
  32. data/lib/moov/models/components/issuedcard.rb +22 -10
  33. data/lib/moov/models/components/issuedcard.rbi +10 -4
  34. data/lib/moov/models/components/onboardinginvite.rb +1 -1
  35. data/lib/moov/models/components/onboardinginviterequest.rb +1 -1
  36. data/lib/moov/models/components/paymentlink.rb +3 -3
  37. data/lib/moov/models/components/requestcard.rb +17 -17
  38. data/lib/moov/models/components/requestcard.rbi +8 -8
  39. data/lib/moov/models/components/updateissuedcard.rb +13 -9
  40. data/lib/moov/models/components/updateissuedcard.rbi +6 -4
  41. data/lib/moov/models/components/webhookdataauthorizationexpiring.rb +44 -0
  42. data/lib/moov/models/components/webhookdataauthorizationexpiring.rbi +19 -0
  43. data/lib/moov/models/components/webhookdatabankaccountdeleted.rb +6 -2
  44. data/lib/moov/models/components/webhookdatabankaccountdeleted.rbi +2 -0
  45. data/lib/moov/models/components/webhookdatacapabilityrequested.rb +7 -1
  46. data/lib/moov/models/components/webhookdatacapabilityupdated.rb +7 -1
  47. data/lib/moov/models/components/webhookdatasweepcreated.rb +6 -2
  48. data/lib/moov/models/components/webhookdatasweepcreated.rbi +2 -0
  49. data/lib/moov/models/components/webhookdatasweepupdated.rb +6 -2
  50. data/lib/moov/models/components/webhookdatasweepupdated.rbi +2 -0
  51. data/lib/moov/models/components/webhookevent.rb +2 -2
  52. data/lib/moov/models/components/webhookeventtype.rb +1 -0
  53. data/lib/moov/models/components.rb +2 -4
  54. data/lib/moov/models/errors/requestcarderror.rb +14 -14
  55. data/lib/moov/models/errors/requestcarderror.rbi +8 -8
  56. data/lib/moov/models/errors/updateissuedcarderror.rb +12 -8
  57. data/lib/moov/models/errors/updateissuedcarderror.rbi +6 -4
  58. data/lib/moov/models/operations/disablecapability_request.rb +7 -1
  59. data/lib/moov/models/operations/getcapability_request.rb +7 -1
  60. data/lib/moov/models/operations/listcancellations_request.rb +36 -0
  61. data/lib/moov/models/operations/listcancellations_request.rbi +15 -0
  62. data/lib/moov/models/operations/listcancellations_response.rb +48 -0
  63. data/lib/moov/models/operations/listcancellations_response.rbi +21 -0
  64. data/lib/moov/models/operations.rb +2 -0
  65. data/lib/moov/onboarding.rb +16 -16
  66. data/lib/moov/payment_links.rb +24 -24
  67. data/lib/moov/payment_methods.rb +8 -8
  68. data/lib/moov/ping.rb +4 -4
  69. data/lib/moov/products.rb +20 -20
  70. data/lib/moov/receipts.rb +8 -8
  71. data/lib/moov/representatives.rb +20 -20
  72. data/lib/moov/scheduling.rb +24 -24
  73. data/lib/moov/sdkconfiguration.rb +3 -3
  74. data/lib/moov/statements.rb +8 -8
  75. data/lib/moov/support.rb +20 -20
  76. data/lib/moov/sweeps.rb +24 -24
  77. data/lib/moov/terminal_applications.rb +20 -20
  78. data/lib/moov/transfers.rb +171 -48
  79. data/lib/moov/underwriting.rb +12 -12
  80. data/lib/moov/utils/retries.rb +4 -1
  81. data/lib/moov/wallet_transactions.rb +8 -8
  82. data/lib/moov/wallets.rb +16 -16
  83. data/lib/moov/webhooks.rb +32 -32
  84. metadata +10 -10
  85. data/lib/moov/models/components/authorizeduser.rb +0 -36
  86. data/lib/moov/models/components/authorizeduser.rbi +0 -15
  87. data/lib/moov/models/components/createauthorizeduser.rb +0 -40
  88. data/lib/moov/models/components/createauthorizeduser.rbi +0 -17
  89. data/lib/moov/models/components/createauthorizedusererror.rb +0 -40
  90. data/lib/moov/models/components/createauthorizedusererror.rbi +0 -17
  91. data/lib/moov/models/components/createauthorizeduserupdate.rb +0 -40
  92. data/lib/moov/models/components/createauthorizeduserupdate.rbi +0 -17
@@ -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 Operations
10
+
11
+ class ListCancellationsRequest
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # Moov account ID of the partner or transfer's source or destination.
16
+ field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
17
+ # Identifier for the transfer.
18
+ field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }
19
+
20
+ sig { params(account_id: ::String, transfer_id: ::String).void }
21
+ def initialize(account_id:, transfer_id:)
22
+ @account_id = account_id
23
+ @transfer_id = transfer_id
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 @account_id == other.account_id
30
+ return false unless @transfer_id == other.transfer_id
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::Operations::ListCancellationsRequest
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::ListCancellationsRequest
11
+ def account_id(); end
12
+ def account_id=(str_); end
13
+ def transfer_id(); end
14
+ def transfer_id=(str_); end
15
+ end
@@ -0,0 +1,48 @@
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 Operations
10
+
11
+ class ListCancellationsResponse
12
+ extend T::Sig
13
+ include Crystalline::MetadataFields
14
+
15
+ # HTTP response content type for this operation
16
+ field :content_type, ::String
17
+ # HTTP response status code for this operation
18
+ field :status_code, ::Integer
19
+ # Raw HTTP response; suitable for custom response parsing
20
+ field :raw_response, ::Faraday::Response
21
+
22
+ field :headers, Crystalline::Hash.new(Symbol, Crystalline::Array.new(::String))
23
+ # The request completed successfully.
24
+ field :cancellations, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::Cancellation))
25
+
26
+ sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, headers: T::Hash[Symbol, T::Array[::String]], cancellations: T.nilable(T::Array[Models::Components::Cancellation])).void }
27
+ def initialize(content_type:, status_code:, raw_response:, headers:, cancellations: nil)
28
+ @content_type = content_type
29
+ @status_code = status_code
30
+ @raw_response = raw_response
31
+ @headers = headers
32
+ @cancellations = cancellations
33
+ end
34
+
35
+ sig { params(other: T.untyped).returns(T::Boolean) }
36
+ def ==(other)
37
+ return false unless other.is_a? self.class
38
+ return false unless @content_type == other.content_type
39
+ return false unless @status_code == other.status_code
40
+ return false unless @raw_response == other.raw_response
41
+ return false unless @headers == other.headers
42
+ return false unless @cancellations == other.cancellations
43
+ true
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,21 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Moov::Models::Operations::ListCancellationsResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Moov::Models::Operations::ListCancellationsResponse
11
+ def content_type(); end
12
+ def content_type=(str_); end
13
+ def status_code(); end
14
+ def status_code=(str_); end
15
+ def raw_response(); end
16
+ def raw_response=(str_); end
17
+ def headers(); end
18
+ def headers=(str_); end
19
+ def cancellations(); end
20
+ def cancellations=(str_); end
21
+ end
@@ -198,6 +198,8 @@ module Moov
198
198
  autoload :ListAdjustmentsResponse, 'moov/models/operations/listadjustments_response.rb'
199
199
  autoload :ListBankAccountsRequest, 'moov/models/operations/listbankaccounts_request.rb'
200
200
  autoload :ListBankAccountsResponse, 'moov/models/operations/listbankaccounts_response.rb'
201
+ autoload :ListCancellationsRequest, 'moov/models/operations/listcancellations_request.rb'
202
+ autoload :ListCancellationsResponse, 'moov/models/operations/listcancellations_response.rb'
201
203
  autoload :ListCapabilitiesRequest, 'moov/models/operations/listcapabilities_request.rb'
202
204
  autoload :ListCapabilitiesResponse, 'moov/models/operations/listcapabilities_response.rb'
203
205
  autoload :ListCardsRequest, 'moov/models/operations/listcards_request.rb'
@@ -70,7 +70,7 @@ module Moov
70
70
 
71
71
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
72
72
  timeout ||= @sdk_configuration.timeout
73
-
73
+
74
74
 
75
75
  connection = @sdk_configuration.client
76
76
 
@@ -85,7 +85,7 @@ module Moov
85
85
  error = T.let(nil, T.nilable(StandardError))
86
86
  http_response = T.let(nil, T.nilable(Faraday::Response))
87
87
 
88
-
88
+
89
89
  begin
90
90
  http_response = T.must(connection).post(url) do |req|
91
91
  req.body = body
@@ -122,13 +122,13 @@ module Moov
122
122
  response: http_response
123
123
  )
124
124
  end
125
-
125
+
126
126
  if http_response.nil?
127
127
  raise error if !error.nil?
128
128
  raise 'no response'
129
129
  end
130
130
  end
131
-
131
+
132
132
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
133
133
  if Utils.match_status_code(http_response.status, ['200'])
134
134
  if Utils.match_content_type(content_type, 'application/json')
@@ -215,7 +215,7 @@ module Moov
215
215
 
216
216
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
217
217
  timeout ||= @sdk_configuration.timeout
218
-
218
+
219
219
 
220
220
  connection = @sdk_configuration.client
221
221
 
@@ -230,7 +230,7 @@ module Moov
230
230
  error = T.let(nil, T.nilable(StandardError))
231
231
  http_response = T.let(nil, T.nilable(Faraday::Response))
232
232
 
233
-
233
+
234
234
  begin
235
235
  http_response = T.must(connection).get(url) do |req|
236
236
  req.headers.merge!(headers)
@@ -266,13 +266,13 @@ module Moov
266
266
  response: http_response
267
267
  )
268
268
  end
269
-
269
+
270
270
  if http_response.nil?
271
271
  raise error if !error.nil?
272
272
  raise 'no response'
273
273
  end
274
274
  end
275
-
275
+
276
276
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
277
277
  if Utils.match_status_code(http_response.status, ['200'])
278
278
  if Utils.match_content_type(content_type, 'application/json')
@@ -337,7 +337,7 @@ module Moov
337
337
 
338
338
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
339
339
  timeout ||= @sdk_configuration.timeout
340
-
340
+
341
341
 
342
342
  connection = @sdk_configuration.client
343
343
 
@@ -352,7 +352,7 @@ module Moov
352
352
  error = T.let(nil, T.nilable(StandardError))
353
353
  http_response = T.let(nil, T.nilable(Faraday::Response))
354
354
 
355
-
355
+
356
356
  begin
357
357
  http_response = T.must(connection).get(url) do |req|
358
358
  req.headers.merge!(headers)
@@ -388,13 +388,13 @@ module Moov
388
388
  response: http_response
389
389
  )
390
390
  end
391
-
391
+
392
392
  if http_response.nil?
393
393
  raise error if !error.nil?
394
394
  raise 'no response'
395
395
  end
396
396
  end
397
-
397
+
398
398
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
399
399
  if Utils.match_status_code(http_response.status, ['200'])
400
400
  if Utils.match_content_type(content_type, 'application/json')
@@ -459,7 +459,7 @@ module Moov
459
459
 
460
460
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
461
461
  timeout ||= @sdk_configuration.timeout
462
-
462
+
463
463
 
464
464
  connection = @sdk_configuration.client
465
465
 
@@ -474,7 +474,7 @@ module Moov
474
474
  error = T.let(nil, T.nilable(StandardError))
475
475
  http_response = T.let(nil, T.nilable(Faraday::Response))
476
476
 
477
-
477
+
478
478
  begin
479
479
  http_response = T.must(connection).delete(url) do |req|
480
480
  req.headers.merge!(headers)
@@ -510,13 +510,13 @@ module Moov
510
510
  response: http_response
511
511
  )
512
512
  end
513
-
513
+
514
514
  if http_response.nil?
515
515
  raise error if !error.nil?
516
516
  raise 'no response'
517
517
  end
518
518
  end
519
-
519
+
520
520
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
521
521
  if Utils.match_status_code(http_response.status, ['204'])
522
522
  http_response = @sdk_configuration.hooks.after_success(
@@ -79,7 +79,7 @@ module Moov
79
79
 
80
80
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
81
81
  timeout ||= @sdk_configuration.timeout
82
-
82
+
83
83
 
84
84
  connection = @sdk_configuration.client
85
85
 
@@ -94,7 +94,7 @@ module Moov
94
94
  error = T.let(nil, T.nilable(StandardError))
95
95
  http_response = T.let(nil, T.nilable(Faraday::Response))
96
96
 
97
-
97
+
98
98
  begin
99
99
  http_response = T.must(connection).post(url) do |req|
100
100
  req.body = body
@@ -131,13 +131,13 @@ module Moov
131
131
  response: http_response
132
132
  )
133
133
  end
134
-
134
+
135
135
  if http_response.nil?
136
136
  raise error if !error.nil?
137
137
  raise 'no response'
138
138
  end
139
139
  end
140
-
140
+
141
141
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
142
142
  if Utils.match_status_code(http_response.status, ['200'])
143
143
  if Utils.match_content_type(content_type, 'application/json')
@@ -236,7 +236,7 @@ module Moov
236
236
 
237
237
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
238
238
  timeout ||= @sdk_configuration.timeout
239
-
239
+
240
240
 
241
241
  connection = @sdk_configuration.client
242
242
 
@@ -251,7 +251,7 @@ module Moov
251
251
  error = T.let(nil, T.nilable(StandardError))
252
252
  http_response = T.let(nil, T.nilable(Faraday::Response))
253
253
 
254
-
254
+
255
255
  begin
256
256
  http_response = T.must(connection).get(url) do |req|
257
257
  req.headers.merge!(headers)
@@ -288,13 +288,13 @@ module Moov
288
288
  response: http_response
289
289
  )
290
290
  end
291
-
291
+
292
292
  if http_response.nil?
293
293
  raise error if !error.nil?
294
294
  raise 'no response'
295
295
  end
296
296
  end
297
-
297
+
298
298
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
299
299
  if Utils.match_status_code(http_response.status, ['200'])
300
300
  if Utils.match_content_type(content_type, 'application/json')
@@ -360,7 +360,7 @@ module Moov
360
360
 
361
361
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
362
362
  timeout ||= @sdk_configuration.timeout
363
-
363
+
364
364
 
365
365
  connection = @sdk_configuration.client
366
366
 
@@ -375,7 +375,7 @@ module Moov
375
375
  error = T.let(nil, T.nilable(StandardError))
376
376
  http_response = T.let(nil, T.nilable(Faraday::Response))
377
377
 
378
-
378
+
379
379
  begin
380
380
  http_response = T.must(connection).get(url) do |req|
381
381
  req.headers.merge!(headers)
@@ -411,13 +411,13 @@ module Moov
411
411
  response: http_response
412
412
  )
413
413
  end
414
-
414
+
415
415
  if http_response.nil?
416
416
  raise error if !error.nil?
417
417
  raise 'no response'
418
418
  end
419
419
  end
420
-
420
+
421
421
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
422
422
  if Utils.match_status_code(http_response.status, ['200'])
423
423
  if Utils.match_content_type(content_type, 'application/json')
@@ -495,7 +495,7 @@ module Moov
495
495
 
496
496
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
497
497
  timeout ||= @sdk_configuration.timeout
498
-
498
+
499
499
 
500
500
  connection = @sdk_configuration.client
501
501
 
@@ -510,7 +510,7 @@ module Moov
510
510
  error = T.let(nil, T.nilable(StandardError))
511
511
  http_response = T.let(nil, T.nilable(Faraday::Response))
512
512
 
513
-
513
+
514
514
  begin
515
515
  http_response = T.must(connection).patch(url) do |req|
516
516
  req.body = body
@@ -547,13 +547,13 @@ module Moov
547
547
  response: http_response
548
548
  )
549
549
  end
550
-
550
+
551
551
  if http_response.nil?
552
552
  raise error if !error.nil?
553
553
  raise 'no response'
554
554
  end
555
555
  end
556
-
556
+
557
557
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
558
558
  if Utils.match_status_code(http_response.status, ['200'])
559
559
  if Utils.match_content_type(content_type, 'application/json')
@@ -649,7 +649,7 @@ module Moov
649
649
 
650
650
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
651
651
  timeout ||= @sdk_configuration.timeout
652
-
652
+
653
653
 
654
654
  connection = @sdk_configuration.client
655
655
 
@@ -664,7 +664,7 @@ module Moov
664
664
  error = T.let(nil, T.nilable(StandardError))
665
665
  http_response = T.let(nil, T.nilable(Faraday::Response))
666
666
 
667
-
667
+
668
668
  begin
669
669
  http_response = T.must(connection).delete(url) do |req|
670
670
  req.headers.merge!(headers)
@@ -700,13 +700,13 @@ module Moov
700
700
  response: http_response
701
701
  )
702
702
  end
703
-
703
+
704
704
  if http_response.nil?
705
705
  raise error if !error.nil?
706
706
  raise 'no response'
707
707
  end
708
708
  end
709
-
709
+
710
710
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
711
711
  if Utils.match_status_code(http_response.status, ['204'])
712
712
  http_response = @sdk_configuration.hooks.after_success(
@@ -765,7 +765,7 @@ module Moov
765
765
 
766
766
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
767
767
  timeout ||= @sdk_configuration.timeout
768
-
768
+
769
769
 
770
770
  connection = @sdk_configuration.client
771
771
 
@@ -780,7 +780,7 @@ module Moov
780
780
  error = T.let(nil, T.nilable(StandardError))
781
781
  http_response = T.let(nil, T.nilable(Faraday::Response))
782
782
 
783
-
783
+
784
784
  begin
785
785
  http_response = T.must(connection).get(url) do |req|
786
786
  req.headers.merge!(headers)
@@ -816,13 +816,13 @@ module Moov
816
816
  response: http_response
817
817
  )
818
818
  end
819
-
819
+
820
820
  if http_response.nil?
821
821
  raise error if !error.nil?
822
822
  raise 'no response'
823
823
  end
824
824
  end
825
-
825
+
826
826
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
827
827
  if Utils.match_status_code(http_response.status, ['200'])
828
828
  if Utils.match_content_type(content_type, 'application/json')
@@ -71,7 +71,7 @@ module Moov
71
71
 
72
72
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
73
73
  timeout ||= @sdk_configuration.timeout
74
-
74
+
75
75
 
76
76
  connection = @sdk_configuration.client
77
77
 
@@ -86,7 +86,7 @@ module Moov
86
86
  error = T.let(nil, T.nilable(StandardError))
87
87
  http_response = T.let(nil, T.nilable(Faraday::Response))
88
88
 
89
-
89
+
90
90
  begin
91
91
  http_response = T.must(connection).get(url) do |req|
92
92
  req.headers.merge!(headers)
@@ -123,13 +123,13 @@ module Moov
123
123
  response: http_response
124
124
  )
125
125
  end
126
-
126
+
127
127
  if http_response.nil?
128
128
  raise error if !error.nil?
129
129
  raise 'no response'
130
130
  end
131
131
  end
132
-
132
+
133
133
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
134
134
  if Utils.match_status_code(http_response.status, ['200'])
135
135
  if Utils.match_content_type(content_type, 'application/json')
@@ -195,7 +195,7 @@ module Moov
195
195
 
196
196
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
197
197
  timeout ||= @sdk_configuration.timeout
198
-
198
+
199
199
 
200
200
  connection = @sdk_configuration.client
201
201
 
@@ -210,7 +210,7 @@ module Moov
210
210
  error = T.let(nil, T.nilable(StandardError))
211
211
  http_response = T.let(nil, T.nilable(Faraday::Response))
212
212
 
213
-
213
+
214
214
  begin
215
215
  http_response = T.must(connection).get(url) do |req|
216
216
  req.headers.merge!(headers)
@@ -246,13 +246,13 @@ module Moov
246
246
  response: http_response
247
247
  )
248
248
  end
249
-
249
+
250
250
  if http_response.nil?
251
251
  raise error if !error.nil?
252
252
  raise 'no response'
253
253
  end
254
254
  end
255
-
255
+
256
256
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
257
257
  if Utils.match_status_code(http_response.status, ['200'])
258
258
  if Utils.match_content_type(content_type, 'application/json')
data/lib/moov/ping.rb CHANGED
@@ -59,7 +59,7 @@ module Moov
59
59
 
60
60
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
61
61
  timeout ||= @sdk_configuration.timeout
62
-
62
+
63
63
 
64
64
  connection = @sdk_configuration.client
65
65
 
@@ -74,7 +74,7 @@ module Moov
74
74
  error = T.let(nil, T.nilable(StandardError))
75
75
  http_response = T.let(nil, T.nilable(Faraday::Response))
76
76
 
77
-
77
+
78
78
  begin
79
79
  http_response = T.must(connection).get(url) do |req|
80
80
  req.headers.merge!(headers)
@@ -110,13 +110,13 @@ module Moov
110
110
  response: http_response
111
111
  )
112
112
  end
113
-
113
+
114
114
  if http_response.nil?
115
115
  raise error if !error.nil?
116
116
  raise 'no response'
117
117
  end
118
118
  end
119
-
119
+
120
120
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
121
121
  if Utils.match_status_code(http_response.status, ['200'])
122
122
  http_response = @sdk_configuration.hooks.after_success(