coinbase-sdk 0.10.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/lib/coinbase/address/wallet_address.rb +28 -0
  3. data/lib/coinbase/address.rb +22 -3
  4. data/lib/coinbase/address_reputation.rb +67 -0
  5. data/lib/coinbase/balance.rb +1 -1
  6. data/lib/coinbase/client/api/addresses_api.rb +10 -10
  7. data/lib/coinbase/client/api/assets_api.rb +2 -2
  8. data/lib/coinbase/client/api/balance_history_api.rb +2 -2
  9. data/lib/coinbase/client/api/contract_events_api.rb +2 -2
  10. data/lib/coinbase/client/api/contract_invocations_api.rb +5 -5
  11. data/lib/coinbase/client/api/external_addresses_api.rb +246 -5
  12. data/lib/coinbase/client/api/fund_api.rb +5 -5
  13. data/lib/coinbase/client/api/{wallet_stake_api.rb → mpc_wallet_stake_api.rb} +24 -24
  14. data/lib/coinbase/client/api/networks_api.rb +2 -2
  15. data/lib/coinbase/client/api/onchain_identity_api.rb +2 -2
  16. data/lib/coinbase/client/api/reputation_api.rb +91 -0
  17. data/lib/coinbase/client/api/server_signers_api.rb +7 -7
  18. data/lib/coinbase/client/api/smart_contracts_api.rb +169 -26
  19. data/lib/coinbase/client/api/stake_api.rb +163 -6
  20. data/lib/coinbase/client/api/trades_api.rb +5 -5
  21. data/lib/coinbase/client/api/transaction_history_api.rb +2 -2
  22. data/lib/coinbase/client/api/transfers_api.rb +14 -14
  23. data/lib/coinbase/client/api/users_api.rb +1 -1
  24. data/lib/coinbase/client/api/wallets_api.rb +6 -6
  25. data/lib/coinbase/client/api/webhooks_api.rb +6 -6
  26. data/lib/coinbase/client/api_client.rb +1 -1
  27. data/lib/coinbase/client/api_error.rb +1 -1
  28. data/lib/coinbase/client/configuration.rb +15 -1
  29. data/lib/coinbase/client/models/address.rb +1 -1
  30. data/lib/coinbase/client/models/address_balance_list.rb +1 -1
  31. data/lib/coinbase/client/models/address_historical_balance_list.rb +1 -1
  32. data/lib/coinbase/client/models/address_list.rb +1 -1
  33. data/lib/coinbase/client/models/address_reputation.rb +239 -0
  34. data/lib/coinbase/client/models/address_reputation_metadata.rb +376 -0
  35. data/lib/coinbase/client/models/address_transaction_list.rb +1 -1
  36. data/lib/coinbase/client/models/asset.rb +1 -1
  37. data/lib/coinbase/client/models/balance.rb +1 -1
  38. data/lib/coinbase/client/models/broadcast_contract_invocation_request.rb +1 -1
  39. data/lib/coinbase/client/models/{broadcast_transfer_request.rb → broadcast_external_transfer_request.rb} +4 -4
  40. data/lib/coinbase/client/models/broadcast_staking_operation_request.rb +1 -1
  41. data/lib/coinbase/client/models/broadcast_trade_request.rb +1 -1
  42. data/lib/coinbase/client/models/build_staking_operation_request.rb +2 -1
  43. data/lib/coinbase/client/models/contract_event.rb +1 -1
  44. data/lib/coinbase/client/models/contract_event_list.rb +1 -1
  45. data/lib/coinbase/client/models/contract_invocation.rb +1 -1
  46. data/lib/coinbase/client/models/contract_invocation_list.rb +1 -1
  47. data/lib/coinbase/client/models/create_address_request.rb +1 -1
  48. data/lib/coinbase/client/models/create_contract_invocation_request.rb +1 -1
  49. data/lib/coinbase/client/models/create_external_transfer_request.rb +273 -0
  50. data/lib/coinbase/client/models/create_fund_operation_request.rb +2 -2
  51. data/lib/coinbase/client/models/create_fund_quote_request.rb +2 -2
  52. data/lib/coinbase/client/models/create_payload_signature_request.rb +1 -1
  53. data/lib/coinbase/client/models/create_server_signer_request.rb +1 -1
  54. data/lib/coinbase/client/models/create_smart_contract_request.rb +1 -1
  55. data/lib/coinbase/client/models/create_staking_operation_request.rb +2 -1
  56. data/lib/coinbase/client/models/create_trade_request.rb +1 -1
  57. data/lib/coinbase/client/models/create_transfer_request.rb +2 -2
  58. data/lib/coinbase/client/models/create_wallet_request.rb +1 -1
  59. data/lib/coinbase/client/models/create_wallet_request_wallet.rb +1 -1
  60. data/lib/coinbase/client/models/create_wallet_webhook_request.rb +1 -1
  61. data/lib/coinbase/client/models/create_webhook_request.rb +1 -1
  62. data/lib/coinbase/client/models/crypto_amount.rb +1 -1
  63. data/lib/coinbase/client/models/deploy_smart_contract_request.rb +1 -1
  64. data/lib/coinbase/client/models/erc20_transfer_event.rb +1 -1
  65. data/lib/coinbase/client/models/erc721_transfer_event.rb +1 -1
  66. data/lib/coinbase/client/models/error.rb +1 -1
  67. data/lib/coinbase/client/models/ethereum_token_transfer.rb +1 -1
  68. data/lib/coinbase/client/models/ethereum_transaction.rb +15 -5
  69. data/lib/coinbase/client/models/ethereum_transaction_access.rb +1 -1
  70. data/lib/coinbase/client/models/ethereum_transaction_access_list.rb +1 -1
  71. data/lib/coinbase/client/models/ethereum_transaction_flattened_trace.rb +1 -1
  72. data/lib/coinbase/client/models/ethereum_validator_metadata.rb +1 -1
  73. data/lib/coinbase/client/models/faucet_transaction.rb +1 -1
  74. data/lib/coinbase/client/models/feature_set.rb +1 -1
  75. data/lib/coinbase/client/models/fetch_historical_staking_balances200_response.rb +1 -1
  76. data/lib/coinbase/client/models/fetch_staking_rewards200_response.rb +1 -1
  77. data/lib/coinbase/client/models/fetch_staking_rewards_request.rb +1 -1
  78. data/lib/coinbase/client/models/fiat_amount.rb +1 -1
  79. data/lib/coinbase/client/models/fund_operation.rb +1 -1
  80. data/lib/coinbase/client/models/fund_operation_fees.rb +1 -1
  81. data/lib/coinbase/client/models/fund_operation_list.rb +1 -1
  82. data/lib/coinbase/client/models/fund_quote.rb +1 -1
  83. data/lib/coinbase/client/models/get_staking_context_request.rb +2 -1
  84. data/lib/coinbase/client/models/historical_balance.rb +1 -1
  85. data/lib/coinbase/client/models/multi_token_contract_options.rb +1 -1
  86. data/lib/coinbase/client/models/network.rb +1 -1
  87. data/lib/coinbase/client/models/network_identifier.rb +1 -1
  88. data/lib/coinbase/client/models/nft_contract_options.rb +1 -1
  89. data/lib/coinbase/client/models/onchain_name.rb +1 -1
  90. data/lib/coinbase/client/models/onchain_name_list.rb +1 -1
  91. data/lib/coinbase/client/models/payload_signature.rb +1 -1
  92. data/lib/coinbase/client/models/payload_signature_list.rb +1 -1
  93. data/lib/coinbase/client/models/read_contract_request.rb +1 -1
  94. data/lib/coinbase/client/models/register_smart_contract_request.rb +252 -0
  95. data/lib/coinbase/client/models/seed_creation_event.rb +1 -1
  96. data/lib/coinbase/client/models/seed_creation_event_result.rb +1 -1
  97. data/lib/coinbase/client/models/server_signer.rb +1 -1
  98. data/lib/coinbase/client/models/server_signer_event.rb +1 -1
  99. data/lib/coinbase/client/models/server_signer_event_event.rb +1 -1
  100. data/lib/coinbase/client/models/server_signer_event_list.rb +1 -1
  101. data/lib/coinbase/client/models/server_signer_list.rb +1 -1
  102. data/lib/coinbase/client/models/signature_creation_event.rb +1 -1
  103. data/lib/coinbase/client/models/signature_creation_event_result.rb +1 -1
  104. data/lib/coinbase/client/models/signed_voluntary_exit_message_metadata.rb +1 -1
  105. data/lib/coinbase/client/models/smart_contract.rb +37 -31
  106. data/lib/coinbase/client/models/smart_contract_activity_event.rb +386 -0
  107. data/lib/coinbase/client/models/smart_contract_list.rb +1 -1
  108. data/lib/coinbase/client/models/smart_contract_options.rb +1 -1
  109. data/lib/coinbase/client/models/smart_contract_type.rb +3 -2
  110. data/lib/coinbase/client/models/solidity_value.rb +3 -3
  111. data/lib/coinbase/client/models/sponsored_send.rb +1 -1
  112. data/lib/coinbase/client/models/staking_balance.rb +1 -1
  113. data/lib/coinbase/client/models/staking_context.rb +1 -1
  114. data/lib/coinbase/client/models/staking_context_context.rb +1 -1
  115. data/lib/coinbase/client/models/staking_operation.rb +1 -1
  116. data/lib/coinbase/client/models/staking_operation_metadata.rb +1 -1
  117. data/lib/coinbase/client/models/staking_reward.rb +1 -1
  118. data/lib/coinbase/client/models/staking_reward_format.rb +1 -1
  119. data/lib/coinbase/client/models/staking_reward_usd_value.rb +1 -1
  120. data/lib/coinbase/client/models/token_contract_options.rb +1 -1
  121. data/lib/coinbase/client/models/token_transfer_type.rb +1 -1
  122. data/lib/coinbase/client/models/trade.rb +1 -1
  123. data/lib/coinbase/client/models/trade_list.rb +1 -1
  124. data/lib/coinbase/client/models/transaction.rb +1 -1
  125. data/lib/coinbase/client/models/transaction_content.rb +1 -1
  126. data/lib/coinbase/client/models/transaction_type.rb +1 -1
  127. data/lib/coinbase/client/models/transfer.rb +2 -37
  128. data/lib/coinbase/client/models/transfer_list.rb +1 -1
  129. data/lib/coinbase/client/models/update_smart_contract_request.rb +245 -0
  130. data/lib/coinbase/client/models/update_webhook_request.rb +1 -1
  131. data/lib/coinbase/client/models/user.rb +1 -1
  132. data/lib/coinbase/client/models/validator.rb +1 -1
  133. data/lib/coinbase/client/models/validator_details.rb +1 -1
  134. data/lib/coinbase/client/models/validator_list.rb +1 -1
  135. data/lib/coinbase/client/models/validator_status.rb +1 -1
  136. data/lib/coinbase/client/models/wallet.rb +1 -1
  137. data/lib/coinbase/client/models/wallet_list.rb +1 -1
  138. data/lib/coinbase/client/models/webhook.rb +1 -1
  139. data/lib/coinbase/client/models/webhook_event_filter.rb +1 -1
  140. data/lib/coinbase/client/models/webhook_event_type.rb +3 -2
  141. data/lib/coinbase/client/models/webhook_event_type_filter.rb +2 -1
  142. data/lib/coinbase/client/models/webhook_list.rb +1 -1
  143. data/lib/coinbase/client/models/webhook_smart_contract_event_filter.rb +225 -0
  144. data/lib/coinbase/client/models/webhook_wallet_activity_filter.rb +8 -1
  145. data/lib/coinbase/client/version.rb +1 -1
  146. data/lib/coinbase/client.rb +11 -4
  147. data/lib/coinbase/crypto_amount.rb +62 -0
  148. data/lib/coinbase/errors.rb +8 -0
  149. data/lib/coinbase/fiat_amount.rb +40 -0
  150. data/lib/coinbase/fund_operation.rb +228 -0
  151. data/lib/coinbase/fund_quote.rb +149 -0
  152. data/lib/coinbase/smart_contract.rb +337 -244
  153. data/lib/coinbase/staking_operation.rb +2 -2
  154. data/lib/coinbase/validator.rb +7 -10
  155. data/lib/coinbase/version.rb +1 -1
  156. data/lib/coinbase/wallet/data.rb +6 -4
  157. data/lib/coinbase/wallet.rb +16 -3
  158. data/lib/coinbase.rb +6 -1
  159. metadata +20 -8
  160. data/lib/coinbase/client/api/validators_api.rb +0 -179
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -68,7 +68,7 @@ module Coinbase::Client
68
68
  return_type = opts[:debug_return_type] || 'StakingOperation'
69
69
 
70
70
  # auth_names
71
- auth_names = opts[:debug_auth_names] || []
71
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
72
72
 
73
73
  new_options = opts.merge(
74
74
  :operation => :"StakeApi.build_staking_operation",
@@ -180,7 +180,7 @@ module Coinbase::Client
180
180
  return_type = opts[:debug_return_type] || 'FetchHistoricalStakingBalances200Response'
181
181
 
182
182
  # auth_names
183
- auth_names = opts[:debug_auth_names] || []
183
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
184
184
 
185
185
  new_options = opts.merge(
186
186
  :operation => :"StakeApi.fetch_historical_staking_balances",
@@ -258,7 +258,7 @@ module Coinbase::Client
258
258
  return_type = opts[:debug_return_type] || 'FetchStakingRewards200Response'
259
259
 
260
260
  # auth_names
261
- auth_names = opts[:debug_auth_names] || []
261
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
262
262
 
263
263
  new_options = opts.merge(
264
264
  :operation => :"StakeApi.fetch_staking_rewards",
@@ -333,7 +333,7 @@ module Coinbase::Client
333
333
  return_type = opts[:debug_return_type] || 'StakingOperation'
334
334
 
335
335
  # auth_names
336
- auth_names = opts[:debug_auth_names] || []
336
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
337
337
 
338
338
  new_options = opts.merge(
339
339
  :operation => :"StakeApi.get_external_staking_operation",
@@ -401,7 +401,7 @@ module Coinbase::Client
401
401
  return_type = opts[:debug_return_type] || 'StakingContext'
402
402
 
403
403
  # auth_names
404
- auth_names = opts[:debug_auth_names] || []
404
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
405
405
 
406
406
  new_options = opts.merge(
407
407
  :operation => :"StakeApi.get_staking_context",
@@ -419,5 +419,162 @@ module Coinbase::Client
419
419
  end
420
420
  return data, status_code, headers
421
421
  end
422
+
423
+ # Get a validator belonging to the CDP project
424
+ # Get a validator belonging to the user for a given network, asset and id.
425
+ # @param network_id [String] The ID of the blockchain network.
426
+ # @param asset_id [String] The symbol of the asset to get the validator for.
427
+ # @param validator_id [String] The unique id of the validator to fetch details for.
428
+ # @param [Hash] opts the optional parameters
429
+ # @return [Validator]
430
+ def get_validator(network_id, asset_id, validator_id, opts = {})
431
+ data, _status_code, _headers = get_validator_with_http_info(network_id, asset_id, validator_id, opts)
432
+ data
433
+ end
434
+
435
+ # Get a validator belonging to the CDP project
436
+ # Get a validator belonging to the user for a given network, asset and id.
437
+ # @param network_id [String] The ID of the blockchain network.
438
+ # @param asset_id [String] The symbol of the asset to get the validator for.
439
+ # @param validator_id [String] The unique id of the validator to fetch details for.
440
+ # @param [Hash] opts the optional parameters
441
+ # @return [Array<(Validator, Integer, Hash)>] Validator data, response status code and response headers
442
+ def get_validator_with_http_info(network_id, asset_id, validator_id, opts = {})
443
+ if @api_client.config.debugging
444
+ @api_client.config.logger.debug 'Calling API: StakeApi.get_validator ...'
445
+ end
446
+ # verify the required parameter 'network_id' is set
447
+ if @api_client.config.client_side_validation && network_id.nil?
448
+ fail ArgumentError, "Missing the required parameter 'network_id' when calling StakeApi.get_validator"
449
+ end
450
+ # verify the required parameter 'asset_id' is set
451
+ if @api_client.config.client_side_validation && asset_id.nil?
452
+ fail ArgumentError, "Missing the required parameter 'asset_id' when calling StakeApi.get_validator"
453
+ end
454
+ # verify the required parameter 'validator_id' is set
455
+ if @api_client.config.client_side_validation && validator_id.nil?
456
+ fail ArgumentError, "Missing the required parameter 'validator_id' when calling StakeApi.get_validator"
457
+ end
458
+ # resource path
459
+ local_var_path = '/v1/networks/{network_id}/assets/{asset_id}/validators/{validator_id}'.sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s)).sub('{' + 'validator_id' + '}', CGI.escape(validator_id.to_s))
460
+
461
+ # query parameters
462
+ query_params = opts[:query_params] || {}
463
+
464
+ # header parameters
465
+ header_params = opts[:header_params] || {}
466
+ # HTTP header 'Accept' (if needed)
467
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
468
+
469
+ # form parameters
470
+ form_params = opts[:form_params] || {}
471
+
472
+ # http body (model)
473
+ post_body = opts[:debug_body]
474
+
475
+ # return_type
476
+ return_type = opts[:debug_return_type] || 'Validator'
477
+
478
+ # auth_names
479
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
480
+
481
+ new_options = opts.merge(
482
+ :operation => :"StakeApi.get_validator",
483
+ :header_params => header_params,
484
+ :query_params => query_params,
485
+ :form_params => form_params,
486
+ :body => post_body,
487
+ :auth_names => auth_names,
488
+ :return_type => return_type
489
+ )
490
+
491
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
492
+ if @api_client.config.debugging
493
+ @api_client.config.logger.debug "API called: StakeApi#get_validator\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
494
+ end
495
+ return data, status_code, headers
496
+ end
497
+
498
+ # List validators belonging to the CDP project
499
+ # List validators belonging to the user for a given network and asset.
500
+ # @param network_id [String] The ID of the blockchain network.
501
+ # @param asset_id [String] The symbol of the asset to get the validators for.
502
+ # @param [Hash] opts the optional parameters
503
+ # @option opts [ValidatorStatus] :status A filter to list validators based on a status.
504
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50.
505
+ # @option opts [String] :page A cursor for pagination across multiple pages of results. Don&#39;t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.
506
+ # @return [ValidatorList]
507
+ def list_validators(network_id, asset_id, opts = {})
508
+ data, _status_code, _headers = list_validators_with_http_info(network_id, asset_id, opts)
509
+ data
510
+ end
511
+
512
+ # List validators belonging to the CDP project
513
+ # List validators belonging to the user for a given network and asset.
514
+ # @param network_id [String] The ID of the blockchain network.
515
+ # @param asset_id [String] The symbol of the asset to get the validators for.
516
+ # @param [Hash] opts the optional parameters
517
+ # @option opts [ValidatorStatus] :status A filter to list validators based on a status.
518
+ # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50.
519
+ # @option opts [String] :page A cursor for pagination across multiple pages of results. Don&#39;t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.
520
+ # @return [Array<(ValidatorList, Integer, Hash)>] ValidatorList data, response status code and response headers
521
+ def list_validators_with_http_info(network_id, asset_id, opts = {})
522
+ if @api_client.config.debugging
523
+ @api_client.config.logger.debug 'Calling API: StakeApi.list_validators ...'
524
+ end
525
+ # verify the required parameter 'network_id' is set
526
+ if @api_client.config.client_side_validation && network_id.nil?
527
+ fail ArgumentError, "Missing the required parameter 'network_id' when calling StakeApi.list_validators"
528
+ end
529
+ # verify the required parameter 'asset_id' is set
530
+ if @api_client.config.client_side_validation && asset_id.nil?
531
+ fail ArgumentError, "Missing the required parameter 'asset_id' when calling StakeApi.list_validators"
532
+ end
533
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'].to_s.length > 5000
534
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling StakeApi.list_validators, the character length must be smaller than or equal to 5000.'
535
+ end
536
+
537
+ # resource path
538
+ local_var_path = '/v1/networks/{network_id}/assets/{asset_id}/validators'.sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s))
539
+
540
+ # query parameters
541
+ query_params = opts[:query_params] || {}
542
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
543
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
544
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
545
+
546
+ # header parameters
547
+ header_params = opts[:header_params] || {}
548
+ # HTTP header 'Accept' (if needed)
549
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
550
+
551
+ # form parameters
552
+ form_params = opts[:form_params] || {}
553
+
554
+ # http body (model)
555
+ post_body = opts[:debug_body]
556
+
557
+ # return_type
558
+ return_type = opts[:debug_return_type] || 'ValidatorList'
559
+
560
+ # auth_names
561
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
562
+
563
+ new_options = opts.merge(
564
+ :operation => :"StakeApi.list_validators",
565
+ :header_params => header_params,
566
+ :query_params => query_params,
567
+ :form_params => form_params,
568
+ :body => post_body,
569
+ :auth_names => auth_names,
570
+ :return_type => return_type
571
+ )
572
+
573
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
574
+ if @api_client.config.debugging
575
+ @api_client.config.logger.debug "API called: StakeApi#list_validators\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
576
+ end
577
+ return data, status_code, headers
578
+ end
422
579
  end
423
580
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -86,7 +86,7 @@ module Coinbase::Client
86
86
  return_type = opts[:debug_return_type] || 'Trade'
87
87
 
88
88
  # auth_names
89
- auth_names = opts[:debug_auth_names] || []
89
+ auth_names = opts[:debug_auth_names] || ['apiKey']
90
90
 
91
91
  new_options = opts.merge(
92
92
  :operation => :"TradesApi.broadcast_trade",
@@ -166,7 +166,7 @@ module Coinbase::Client
166
166
  return_type = opts[:debug_return_type] || 'Trade'
167
167
 
168
168
  # auth_names
169
- auth_names = opts[:debug_auth_names] || []
169
+ auth_names = opts[:debug_auth_names] || ['apiKey']
170
170
 
171
171
  new_options = opts.merge(
172
172
  :operation => :"TradesApi.create_trade",
@@ -241,7 +241,7 @@ module Coinbase::Client
241
241
  return_type = opts[:debug_return_type] || 'Trade'
242
242
 
243
243
  # auth_names
244
- auth_names = opts[:debug_auth_names] || []
244
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
245
245
 
246
246
  new_options = opts.merge(
247
247
  :operation => :"TradesApi.get_trade",
@@ -320,7 +320,7 @@ module Coinbase::Client
320
320
  return_type = opts[:debug_return_type] || 'TradeList'
321
321
 
322
322
  # auth_names
323
- auth_names = opts[:debug_auth_names] || []
323
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
324
324
 
325
325
  new_options = opts.merge(
326
326
  :operation => :"TradesApi.list_trades",
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -79,7 +79,7 @@ module Coinbase::Client
79
79
  return_type = opts[:debug_return_type] || 'AddressTransactionList'
80
80
 
81
81
  # auth_names
82
- auth_names = opts[:debug_auth_names] || []
82
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
83
83
 
84
84
  new_options = opts.merge(
85
85
  :operation => :"TransactionHistoryApi.list_address_transactions",
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -24,11 +24,11 @@ module Coinbase::Client
24
24
  # @param wallet_id [String] The ID of the wallet the address belongs to
25
25
  # @param address_id [String] The ID of the address the transfer belongs to
26
26
  # @param transfer_id [String] The ID of the transfer to broadcast
27
- # @param broadcast_transfer_request [BroadcastTransferRequest]
27
+ # @param broadcast_external_transfer_request [BroadcastExternalTransferRequest]
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @return [Transfer]
30
- def broadcast_transfer(wallet_id, address_id, transfer_id, broadcast_transfer_request, opts = {})
31
- data, _status_code, _headers = broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadcast_transfer_request, opts)
30
+ def broadcast_transfer(wallet_id, address_id, transfer_id, broadcast_external_transfer_request, opts = {})
31
+ data, _status_code, _headers = broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadcast_external_transfer_request, opts)
32
32
  data
33
33
  end
34
34
 
@@ -37,10 +37,10 @@ module Coinbase::Client
37
37
  # @param wallet_id [String] The ID of the wallet the address belongs to
38
38
  # @param address_id [String] The ID of the address the transfer belongs to
39
39
  # @param transfer_id [String] The ID of the transfer to broadcast
40
- # @param broadcast_transfer_request [BroadcastTransferRequest]
40
+ # @param broadcast_external_transfer_request [BroadcastExternalTransferRequest]
41
41
  # @param [Hash] opts the optional parameters
42
42
  # @return [Array<(Transfer, Integer, Hash)>] Transfer data, response status code and response headers
43
- def broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadcast_transfer_request, opts = {})
43
+ def broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadcast_external_transfer_request, opts = {})
44
44
  if @api_client.config.debugging
45
45
  @api_client.config.logger.debug 'Calling API: TransfersApi.broadcast_transfer ...'
46
46
  end
@@ -56,9 +56,9 @@ module Coinbase::Client
56
56
  if @api_client.config.client_side_validation && transfer_id.nil?
57
57
  fail ArgumentError, "Missing the required parameter 'transfer_id' when calling TransfersApi.broadcast_transfer"
58
58
  end
59
- # verify the required parameter 'broadcast_transfer_request' is set
60
- if @api_client.config.client_side_validation && broadcast_transfer_request.nil?
61
- fail ArgumentError, "Missing the required parameter 'broadcast_transfer_request' when calling TransfersApi.broadcast_transfer"
59
+ # verify the required parameter 'broadcast_external_transfer_request' is set
60
+ if @api_client.config.client_side_validation && broadcast_external_transfer_request.nil?
61
+ fail ArgumentError, "Missing the required parameter 'broadcast_external_transfer_request' when calling TransfersApi.broadcast_transfer"
62
62
  end
63
63
  # resource path
64
64
  local_var_path = '/v1/wallets/{wallet_id}/addresses/{address_id}/transfers/{transfer_id}/broadcast'.sub('{' + 'wallet_id' + '}', CGI.escape(wallet_id.to_s)).sub('{' + 'address_id' + '}', CGI.escape(address_id.to_s)).sub('{' + 'transfer_id' + '}', CGI.escape(transfer_id.to_s))
@@ -80,13 +80,13 @@ module Coinbase::Client
80
80
  form_params = opts[:form_params] || {}
81
81
 
82
82
  # http body (model)
83
- post_body = opts[:debug_body] || @api_client.object_to_http_body(broadcast_transfer_request)
83
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(broadcast_external_transfer_request)
84
84
 
85
85
  # return_type
86
86
  return_type = opts[:debug_return_type] || 'Transfer'
87
87
 
88
88
  # auth_names
89
- auth_names = opts[:debug_auth_names] || []
89
+ auth_names = opts[:debug_auth_names] || ['apiKey']
90
90
 
91
91
  new_options = opts.merge(
92
92
  :operation => :"TransfersApi.broadcast_transfer",
@@ -166,7 +166,7 @@ module Coinbase::Client
166
166
  return_type = opts[:debug_return_type] || 'Transfer'
167
167
 
168
168
  # auth_names
169
- auth_names = opts[:debug_auth_names] || []
169
+ auth_names = opts[:debug_auth_names] || ['apiKey']
170
170
 
171
171
  new_options = opts.merge(
172
172
  :operation => :"TransfersApi.create_transfer",
@@ -241,7 +241,7 @@ module Coinbase::Client
241
241
  return_type = opts[:debug_return_type] || 'Transfer'
242
242
 
243
243
  # auth_names
244
- auth_names = opts[:debug_auth_names] || []
244
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
245
245
 
246
246
  new_options = opts.merge(
247
247
  :operation => :"TransfersApi.get_transfer",
@@ -320,7 +320,7 @@ module Coinbase::Client
320
320
  return_type = opts[:debug_return_type] || 'TransferList'
321
321
 
322
322
  # auth_names
323
- auth_names = opts[:debug_auth_names] || []
323
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
324
324
 
325
325
  new_options = opts.merge(
326
326
  :operation => :"TransfersApi.list_transfers",
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -64,7 +64,7 @@ module Coinbase::Client
64
64
  return_type = opts[:debug_return_type] || 'Wallet'
65
65
 
66
66
  # auth_names
67
- auth_names = opts[:debug_auth_names] || []
67
+ auth_names = opts[:debug_auth_names] || ['apiKey']
68
68
 
69
69
  new_options = opts.merge(
70
70
  :operation => :"WalletsApi.create_wallet",
@@ -127,7 +127,7 @@ module Coinbase::Client
127
127
  return_type = opts[:debug_return_type] || 'Wallet'
128
128
 
129
129
  # auth_names
130
- auth_names = opts[:debug_auth_names] || []
130
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
131
131
 
132
132
  new_options = opts.merge(
133
133
  :operation => :"WalletsApi.get_wallet",
@@ -196,7 +196,7 @@ module Coinbase::Client
196
196
  return_type = opts[:debug_return_type] || 'Balance'
197
197
 
198
198
  # auth_names
199
- auth_names = opts[:debug_auth_names] || []
199
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
200
200
 
201
201
  new_options = opts.merge(
202
202
  :operation => :"WalletsApi.get_wallet_balance",
@@ -259,7 +259,7 @@ module Coinbase::Client
259
259
  return_type = opts[:debug_return_type] || 'AddressBalanceList'
260
260
 
261
261
  # auth_names
262
- auth_names = opts[:debug_auth_names] || []
262
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
263
263
 
264
264
  new_options = opts.merge(
265
265
  :operation => :"WalletsApi.list_wallet_balances",
@@ -326,7 +326,7 @@ module Coinbase::Client
326
326
  return_type = opts[:debug_return_type] || 'WalletList'
327
327
 
328
328
  # auth_names
329
- auth_names = opts[:debug_auth_names] || []
329
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
330
330
 
331
331
  new_options = opts.merge(
332
332
  :operation => :"WalletsApi.list_wallets",
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -70,7 +70,7 @@ module Coinbase::Client
70
70
  return_type = opts[:debug_return_type] || 'Webhook'
71
71
 
72
72
  # auth_names
73
- auth_names = opts[:debug_auth_names] || []
73
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
74
74
 
75
75
  new_options = opts.merge(
76
76
  :operation => :"WebhooksApi.create_wallet_webhook",
@@ -134,7 +134,7 @@ module Coinbase::Client
134
134
  return_type = opts[:debug_return_type] || 'Webhook'
135
135
 
136
136
  # auth_names
137
- auth_names = opts[:debug_auth_names] || []
137
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
138
138
 
139
139
  new_options = opts.merge(
140
140
  :operation => :"WebhooksApi.create_webhook",
@@ -197,7 +197,7 @@ module Coinbase::Client
197
197
  return_type = opts[:debug_return_type]
198
198
 
199
199
  # auth_names
200
- auth_names = opts[:debug_auth_names] || []
200
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
201
201
 
202
202
  new_options = opts.merge(
203
203
  :operation => :"WebhooksApi.delete_webhook",
@@ -264,7 +264,7 @@ module Coinbase::Client
264
264
  return_type = opts[:debug_return_type] || 'WebhookList'
265
265
 
266
266
  # auth_names
267
- auth_names = opts[:debug_auth_names] || []
267
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
268
268
 
269
269
  new_options = opts.merge(
270
270
  :operation => :"WebhooksApi.list_webhooks",
@@ -334,7 +334,7 @@ module Coinbase::Client
334
334
  return_type = opts[:debug_return_type] || 'Webhook'
335
335
 
336
336
  # auth_names
337
- auth_names = opts[:debug_auth_names] || []
337
+ auth_names = opts[:debug_auth_names] || ['apiKey', 'session']
338
338
 
339
339
  new_options = opts.merge(
340
340
  :operation => :"WebhooksApi.update_webhook",
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -248,6 +248,20 @@ module Coinbase::Client
248
248
  # Returns Auth Settings hash for api client.
249
249
  def auth_settings
250
250
  {
251
+ 'apiKey' =>
252
+ {
253
+ type: 'api_key',
254
+ in: 'header',
255
+ key: 'Jwt',
256
+ value: api_key_with_prefix('Jwt')
257
+ },
258
+ 'session' =>
259
+ {
260
+ type: 'api_key',
261
+ in: 'header',
262
+ key: 'Jwt',
263
+ value: api_key_with_prefix('Jwt')
264
+ },
251
265
  }
252
266
  end
253
267
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.0.1-alpha
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.8.0
9
+ Generator version: 7.10.0
10
10
 
11
11
  =end
12
12