coinbase-sdk 0.2.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coinbase/address/wallet_address.rb +61 -0
- data/lib/coinbase/address.rb +25 -1
- data/lib/coinbase/client/api/addresses_api.rb +238 -8
- data/lib/coinbase/client/api/assets_api.rb +3 -3
- data/lib/coinbase/client/api/balance_history_api.rb +107 -0
- data/lib/coinbase/client/api/contract_events_api.rb +5 -5
- data/lib/coinbase/client/api/contract_invocations_api.rb +342 -0
- data/lib/coinbase/client/api/external_addresses_api.rb +24 -30
- data/lib/coinbase/client/api/networks_api.rb +3 -3
- data/lib/coinbase/client/api/server_signers_api.rb +8 -8
- data/lib/coinbase/client/api/stake_api.rb +7 -7
- data/lib/coinbase/client/api/trades_api.rb +6 -6
- data/lib/coinbase/client/api/transfers_api.rb +6 -6
- data/lib/coinbase/client/api/validators_api.rb +8 -8
- data/lib/coinbase/client/api/wallet_stake_api.rb +5 -5
- data/lib/coinbase/client/api/wallets_api.rb +11 -11
- data/lib/coinbase/client/api/webhooks_api.rb +6 -6
- data/lib/coinbase/client/api_client.rb +31 -25
- data/lib/coinbase/client/api_error.rb +2 -2
- data/lib/coinbase/client/configuration.rb +2 -2
- data/lib/coinbase/client/models/address.rb +2 -2
- data/lib/coinbase/client/models/address_balance_list.rb +2 -2
- data/lib/coinbase/client/models/address_historical_balance_list.rb +2 -2
- data/lib/coinbase/client/models/address_list.rb +2 -2
- data/lib/coinbase/client/models/address_transaction_list.rb +258 -0
- data/lib/coinbase/client/models/asset.rb +2 -2
- data/lib/coinbase/client/models/balance.rb +2 -2
- data/lib/coinbase/client/models/{user.rb → broadcast_contract_invocation_request.rb} +17 -26
- data/lib/coinbase/client/models/broadcast_staking_operation_request.rb +2 -2
- data/lib/coinbase/client/models/broadcast_trade_request.rb +2 -2
- data/lib/coinbase/client/models/broadcast_transfer_request.rb +2 -2
- data/lib/coinbase/client/models/build_staking_operation_request.rb +2 -2
- data/lib/coinbase/client/models/contract_event.rb +2 -2
- data/lib/coinbase/client/models/contract_event_list.rb +2 -2
- data/lib/coinbase/client/models/contract_invocation.rb +368 -0
- data/lib/coinbase/client/models/contract_invocation_list.rb +274 -0
- data/lib/coinbase/client/models/create_address_request.rb +2 -2
- data/lib/coinbase/client/models/create_contract_invocation_request.rb +276 -0
- data/lib/coinbase/client/models/create_payload_signature_request.rb +232 -0
- data/lib/coinbase/client/models/create_server_signer_request.rb +2 -2
- data/lib/coinbase/client/models/create_staking_operation_request.rb +2 -2
- data/lib/coinbase/client/models/create_trade_request.rb +2 -2
- data/lib/coinbase/client/models/create_transfer_request.rb +3 -3
- data/lib/coinbase/client/models/create_wallet_request.rb +2 -2
- data/lib/coinbase/client/models/create_wallet_request_wallet.rb +2 -2
- data/lib/coinbase/client/models/create_webhook_request.rb +30 -6
- data/lib/coinbase/client/models/erc20_transfer_event.rb +336 -0
- data/lib/coinbase/client/models/erc721_transfer_event.rb +336 -0
- data/lib/coinbase/client/models/error.rb +16 -6
- data/lib/coinbase/client/models/ethereum_transaction.rb +389 -0
- data/lib/coinbase/client/models/ethereum_transaction_access.rb +225 -0
- data/lib/coinbase/client/models/ethereum_transaction_access_list.rb +216 -0
- data/lib/coinbase/client/models/ethereum_transaction_flattened_trace.rb +378 -0
- data/lib/coinbase/client/models/ethereum_validator_metadata.rb +2 -2
- data/lib/coinbase/client/models/faucet_transaction.rb +2 -2
- data/lib/coinbase/client/models/feature_set.rb +2 -2
- data/lib/coinbase/client/models/fetch_historical_staking_balances200_response.rb +2 -2
- data/lib/coinbase/client/models/fetch_staking_rewards200_response.rb +2 -2
- data/lib/coinbase/client/models/fetch_staking_rewards_request.rb +2 -2
- data/lib/coinbase/client/models/get_staking_context_request.rb +2 -2
- data/lib/coinbase/client/models/historical_balance.rb +2 -2
- data/lib/coinbase/client/models/network.rb +4 -4
- data/lib/coinbase/client/models/network_identifier.rb +5 -3
- data/lib/coinbase/client/models/payload_signature.rb +335 -0
- data/lib/coinbase/client/models/payload_signature_list.rb +275 -0
- data/lib/coinbase/client/models/seed_creation_event.rb +2 -2
- data/lib/coinbase/client/models/seed_creation_event_result.rb +2 -2
- data/lib/coinbase/client/models/server_signer.rb +2 -2
- data/lib/coinbase/client/models/server_signer_event.rb +2 -2
- data/lib/coinbase/client/models/server_signer_event_event.rb +2 -2
- data/lib/coinbase/client/models/server_signer_event_list.rb +2 -2
- data/lib/coinbase/client/models/server_signer_list.rb +2 -2
- data/lib/coinbase/client/models/signature_creation_event.rb +2 -2
- data/lib/coinbase/client/models/signature_creation_event_result.rb +2 -2
- data/lib/coinbase/client/models/signed_voluntary_exit_message_metadata.rb +2 -2
- data/lib/coinbase/client/models/sponsored_send.rb +2 -2
- data/lib/coinbase/client/models/staking_balance.rb +2 -2
- data/lib/coinbase/client/models/staking_context.rb +2 -2
- data/lib/coinbase/client/models/staking_context_context.rb +2 -2
- data/lib/coinbase/client/models/staking_operation.rb +2 -2
- data/lib/coinbase/client/models/staking_operation_metadata.rb +2 -2
- data/lib/coinbase/client/models/staking_reward.rb +2 -2
- data/lib/coinbase/client/models/staking_reward_format.rb +2 -2
- data/lib/coinbase/client/models/staking_reward_usd_value.rb +2 -2
- data/lib/coinbase/client/models/trade.rb +2 -2
- data/lib/coinbase/client/models/trade_list.rb +2 -2
- data/lib/coinbase/client/models/transaction.rb +37 -8
- data/lib/coinbase/client/models/transaction_content.rb +104 -0
- data/lib/coinbase/client/models/transaction_type.rb +2 -2
- data/lib/coinbase/client/models/transfer.rb +2 -2
- data/lib/coinbase/client/models/transfer_list.rb +2 -2
- data/lib/coinbase/client/models/update_webhook_request.rb +3 -51
- data/lib/coinbase/client/models/validator.rb +2 -2
- data/lib/coinbase/client/models/validator_details.rb +2 -2
- data/lib/coinbase/client/models/validator_list.rb +2 -2
- data/lib/coinbase/client/models/validator_status.rb +2 -2
- data/lib/coinbase/client/models/wallet.rb +2 -2
- data/lib/coinbase/client/models/wallet_list.rb +2 -2
- data/lib/coinbase/client/models/webhook.rb +16 -6
- data/lib/coinbase/client/models/webhook_event_filter.rb +5 -5
- data/lib/coinbase/client/models/webhook_event_type.rb +2 -2
- data/lib/coinbase/client/models/webhook_list.rb +2 -2
- data/lib/coinbase/client/version.rb +2 -2
- data/lib/coinbase/client.rb +19 -4
- data/lib/coinbase/constants.rb +3 -0
- data/lib/coinbase/contract_invocation.rb +259 -0
- data/lib/coinbase/payload_signature.rb +181 -0
- data/lib/coinbase/transaction.rb +21 -0
- data/lib/coinbase/version.rb +1 -1
- data/lib/coinbase/wallet.rb +11 -1
- data/lib/coinbase/webhook.rb +17 -6
- data/lib/coinbase.rb +2 -0
- metadata +21 -5
- data/lib/coinbase/client/api/users_api.rb +0 -79
- data/lib/coinbase/client/models/feature.rb +0 -43
@@ -0,0 +1,258 @@
|
|
1
|
+
=begin
|
2
|
+
#Coinbase Platform API
|
3
|
+
|
4
|
+
#This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.0.1-alpha
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.8.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Coinbase::Client
|
17
|
+
#
|
18
|
+
class AddressTransactionList
|
19
|
+
attr_accessor :data
|
20
|
+
|
21
|
+
# True if this list has another page of items after this one that can be fetched.
|
22
|
+
attr_accessor :has_more
|
23
|
+
|
24
|
+
# The page token to be used to fetch the next page.
|
25
|
+
attr_accessor :next_page
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'data' => :'data',
|
31
|
+
:'has_more' => :'has_more',
|
32
|
+
:'next_page' => :'next_page'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.openapi_types
|
43
|
+
{
|
44
|
+
:'data' => :'Array<Transaction>',
|
45
|
+
:'has_more' => :'Boolean',
|
46
|
+
:'next_page' => :'String'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# List of attributes with nullable: true
|
51
|
+
def self.openapi_nullable
|
52
|
+
Set.new([
|
53
|
+
])
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Coinbase::Client::AddressTransactionList` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Coinbase::Client::AddressTransactionList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
67
|
+
end
|
68
|
+
h[k.to_sym] = v
|
69
|
+
}
|
70
|
+
|
71
|
+
if attributes.key?(:'data')
|
72
|
+
if (value = attributes[:'data']).is_a?(Array)
|
73
|
+
self.data = value
|
74
|
+
end
|
75
|
+
else
|
76
|
+
self.data = nil
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'has_more')
|
80
|
+
self.has_more = attributes[:'has_more']
|
81
|
+
else
|
82
|
+
self.has_more = nil
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'next_page')
|
86
|
+
self.next_page = attributes[:'next_page']
|
87
|
+
else
|
88
|
+
self.next_page = nil
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
93
|
+
# @return Array for valid properties with the reasons
|
94
|
+
def list_invalid_properties
|
95
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
96
|
+
invalid_properties = Array.new
|
97
|
+
if @data.nil?
|
98
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
if @has_more.nil?
|
102
|
+
invalid_properties.push('invalid value for "has_more", has_more cannot be nil.')
|
103
|
+
end
|
104
|
+
|
105
|
+
if @next_page.nil?
|
106
|
+
invalid_properties.push('invalid value for "next_page", next_page cannot be nil.')
|
107
|
+
end
|
108
|
+
|
109
|
+
invalid_properties
|
110
|
+
end
|
111
|
+
|
112
|
+
# Check to see if the all the properties in the model are valid
|
113
|
+
# @return true if the model is valid
|
114
|
+
def valid?
|
115
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
116
|
+
return false if @data.nil?
|
117
|
+
return false if @has_more.nil?
|
118
|
+
return false if @next_page.nil?
|
119
|
+
true
|
120
|
+
end
|
121
|
+
|
122
|
+
# Checks equality by comparing each attribute.
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def ==(o)
|
125
|
+
return true if self.equal?(o)
|
126
|
+
self.class == o.class &&
|
127
|
+
data == o.data &&
|
128
|
+
has_more == o.has_more &&
|
129
|
+
next_page == o.next_page
|
130
|
+
end
|
131
|
+
|
132
|
+
# @see the `==` method
|
133
|
+
# @param [Object] Object to be compared
|
134
|
+
def eql?(o)
|
135
|
+
self == o
|
136
|
+
end
|
137
|
+
|
138
|
+
# Calculates hash code according to all attributes.
|
139
|
+
# @return [Integer] Hash code
|
140
|
+
def hash
|
141
|
+
[data, has_more, next_page].hash
|
142
|
+
end
|
143
|
+
|
144
|
+
# Builds the object from hash
|
145
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
146
|
+
# @return [Object] Returns the model itself
|
147
|
+
def self.build_from_hash(attributes)
|
148
|
+
return nil unless attributes.is_a?(Hash)
|
149
|
+
attributes = attributes.transform_keys(&:to_sym)
|
150
|
+
transformed_hash = {}
|
151
|
+
openapi_types.each_pair do |key, type|
|
152
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
153
|
+
transformed_hash["#{key}"] = nil
|
154
|
+
elsif type =~ /\AArray<(.*)>/i
|
155
|
+
# check to ensure the input is an array given that the attribute
|
156
|
+
# is documented as an array but the input is not
|
157
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
158
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
159
|
+
end
|
160
|
+
elsif !attributes[attribute_map[key]].nil?
|
161
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
162
|
+
end
|
163
|
+
end
|
164
|
+
new(transformed_hash)
|
165
|
+
end
|
166
|
+
|
167
|
+
# Deserializes the data based on type
|
168
|
+
# @param string type Data type
|
169
|
+
# @param string value Value to be deserialized
|
170
|
+
# @return [Object] Deserialized data
|
171
|
+
def self._deserialize(type, value)
|
172
|
+
case type.to_sym
|
173
|
+
when :Time
|
174
|
+
Time.parse(value)
|
175
|
+
when :Date
|
176
|
+
Date.parse(value)
|
177
|
+
when :String
|
178
|
+
value.to_s
|
179
|
+
when :Integer
|
180
|
+
value.to_i
|
181
|
+
when :Float
|
182
|
+
value.to_f
|
183
|
+
when :Boolean
|
184
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
185
|
+
true
|
186
|
+
else
|
187
|
+
false
|
188
|
+
end
|
189
|
+
when :Object
|
190
|
+
# generic object (usually a Hash), return directly
|
191
|
+
value
|
192
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
193
|
+
inner_type = Regexp.last_match[:inner_type]
|
194
|
+
value.map { |v| _deserialize(inner_type, v) }
|
195
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
196
|
+
k_type = Regexp.last_match[:k_type]
|
197
|
+
v_type = Regexp.last_match[:v_type]
|
198
|
+
{}.tap do |hash|
|
199
|
+
value.each do |k, v|
|
200
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
else # model
|
204
|
+
# models (e.g. Pet) or oneOf
|
205
|
+
klass = Coinbase::Client.const_get(type)
|
206
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the string representation of the object
|
211
|
+
# @return [String] String presentation of the object
|
212
|
+
def to_s
|
213
|
+
to_hash.to_s
|
214
|
+
end
|
215
|
+
|
216
|
+
# to_body is an alias to to_hash (backward compatibility)
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
218
|
+
def to_body
|
219
|
+
to_hash
|
220
|
+
end
|
221
|
+
|
222
|
+
# Returns the object in the form of hash
|
223
|
+
# @return [Hash] Returns the object in the form of hash
|
224
|
+
def to_hash
|
225
|
+
hash = {}
|
226
|
+
self.class.attribute_map.each_pair do |attr, param|
|
227
|
+
value = self.send(attr)
|
228
|
+
if value.nil?
|
229
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
230
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
231
|
+
end
|
232
|
+
|
233
|
+
hash[param] = _to_hash(value)
|
234
|
+
end
|
235
|
+
hash
|
236
|
+
end
|
237
|
+
|
238
|
+
# Outputs non-array value in the form of hash
|
239
|
+
# For object, use to_hash. Otherwise, just return the value
|
240
|
+
# @param [Object] value Any valid value
|
241
|
+
# @return [Hash] Returns the value in the form of hash
|
242
|
+
def _to_hash(value)
|
243
|
+
if value.is_a?(Array)
|
244
|
+
value.compact.map { |v| _to_hash(v) }
|
245
|
+
elsif value.is_a?(Hash)
|
246
|
+
{}.tap do |hash|
|
247
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
248
|
+
end
|
249
|
+
elsif value.respond_to? :to_hash
|
250
|
+
value.to_hash
|
251
|
+
else
|
252
|
+
value
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
end
|
257
|
+
|
258
|
+
end
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
|
5
5
|
|
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.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
|
5
5
|
|
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.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
|
5
5
|
|
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.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,17 +14,14 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Coinbase::Client
|
17
|
-
class
|
18
|
-
# The
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
attr_accessor :display_name
|
17
|
+
class BroadcastContractInvocationRequest
|
18
|
+
# The hex-encoded signed payload of the contract invocation
|
19
|
+
attr_accessor :signed_payload
|
22
20
|
|
23
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
22
|
def self.attribute_map
|
25
23
|
{
|
26
|
-
:'
|
27
|
-
:'display_name' => :'display_name'
|
24
|
+
:'signed_payload' => :'signed_payload'
|
28
25
|
}
|
29
26
|
end
|
30
27
|
|
@@ -36,8 +33,7 @@ module Coinbase::Client
|
|
36
33
|
# Attribute type mapping.
|
37
34
|
def self.openapi_types
|
38
35
|
{
|
39
|
-
:'
|
40
|
-
:'display_name' => :'String'
|
36
|
+
:'signed_payload' => :'String'
|
41
37
|
}
|
42
38
|
end
|
43
39
|
|
@@ -51,25 +47,21 @@ module Coinbase::Client
|
|
51
47
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
48
|
def initialize(attributes = {})
|
53
49
|
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Coinbase::Client::
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Coinbase::Client::BroadcastContractInvocationRequest` initialize method"
|
55
51
|
end
|
56
52
|
|
57
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
55
|
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Coinbase::Client::
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Coinbase::Client::BroadcastContractInvocationRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
57
|
end
|
62
58
|
h[k.to_sym] = v
|
63
59
|
}
|
64
60
|
|
65
|
-
if attributes.key?(:'
|
66
|
-
self.
|
61
|
+
if attributes.key?(:'signed_payload')
|
62
|
+
self.signed_payload = attributes[:'signed_payload']
|
67
63
|
else
|
68
|
-
self.
|
69
|
-
end
|
70
|
-
|
71
|
-
if attributes.key?(:'display_name')
|
72
|
-
self.display_name = attributes[:'display_name']
|
64
|
+
self.signed_payload = nil
|
73
65
|
end
|
74
66
|
end
|
75
67
|
|
@@ -78,8 +70,8 @@ module Coinbase::Client
|
|
78
70
|
def list_invalid_properties
|
79
71
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
80
72
|
invalid_properties = Array.new
|
81
|
-
if @
|
82
|
-
invalid_properties.push('invalid value for "
|
73
|
+
if @signed_payload.nil?
|
74
|
+
invalid_properties.push('invalid value for "signed_payload", signed_payload cannot be nil.')
|
83
75
|
end
|
84
76
|
|
85
77
|
invalid_properties
|
@@ -89,7 +81,7 @@ module Coinbase::Client
|
|
89
81
|
# @return true if the model is valid
|
90
82
|
def valid?
|
91
83
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
92
|
-
return false if @
|
84
|
+
return false if @signed_payload.nil?
|
93
85
|
true
|
94
86
|
end
|
95
87
|
|
@@ -98,8 +90,7 @@ module Coinbase::Client
|
|
98
90
|
def ==(o)
|
99
91
|
return true if self.equal?(o)
|
100
92
|
self.class == o.class &&
|
101
|
-
|
102
|
-
display_name == o.display_name
|
93
|
+
signed_payload == o.signed_payload
|
103
94
|
end
|
104
95
|
|
105
96
|
# @see the `==` method
|
@@ -111,7 +102,7 @@ module Coinbase::Client
|
|
111
102
|
# Calculates hash code according to all attributes.
|
112
103
|
# @return [Integer] Hash code
|
113
104
|
def hash
|
114
|
-
[
|
105
|
+
[signed_payload].hash
|
115
106
|
end
|
116
107
|
|
117
108
|
# Builds the object from hash
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
|
5
5
|
|
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.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
|
5
5
|
|
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.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
|
5
5
|
|
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.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
|
5
5
|
|
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.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
|
5
5
|
|
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.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -4,9 +4,9 @@
|
|
4
4
|
#This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs.
|
5
5
|
|
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.
|
9
|
+
Generator version: 7.8.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|