crypto_apis 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +51 -15
  3. data/docs/BroadcastLocallySignedTransactionR.md +24 -0
  4. data/docs/BroadcastLocallySignedTransactionRB.md +20 -0
  5. data/docs/BroadcastLocallySignedTransactionRBData.md +18 -0
  6. data/docs/BroadcastLocallySignedTransactionRBDataItem.md +22 -0
  7. data/docs/BroadcastLocallySignedTransactionRData.md +18 -0
  8. data/docs/BroadcastLocallySignedTransactionRI.md +18 -0
  9. data/docs/BroadcastTransactionFail.md +24 -0
  10. data/docs/BroadcastTransactionFailData.md +22 -0
  11. data/docs/BroadcastTransactionFailDataItem.md +24 -0
  12. data/docs/BroadcastTransactionSuccess.md +24 -0
  13. data/docs/BroadcastTransactionSuccessData.md +22 -0
  14. data/docs/BroadcastTransactionSuccessDataItem.md +22 -0
  15. data/docs/CreateCoinsTransactionRequestFromAddressRBDataItem.md +6 -2
  16. data/docs/CreateCoinsTransactionRequestFromAddressRI.md +4 -0
  17. data/docs/CreateCoinsTransactionRequestFromWalletRBDataItem.md +7 -3
  18. data/docs/{CreateCoinsTransactionRequestFromWalletRBDataItemDestinations.md → CreateCoinsTransactionRequestFromWalletRBDataItemRecipients.md} +3 -3
  19. data/docs/CreateCoinsTransactionRequestFromWalletRI.md +4 -0
  20. data/docs/CreateTokensTransactionRequestFromAddressRBDataItem.md +6 -2
  21. data/docs/CreateTokensTransactionRequestFromAddressRI.md +4 -0
  22. data/docs/FeaturesApi.md +167 -0
  23. data/docs/{ListReceivingAddressesR.md → GenerateDepositAddressR.md} +3 -3
  24. data/docs/{GenerateReceivingAddressRB.md → GenerateDepositAddressRB.md} +3 -3
  25. data/docs/GenerateDepositAddressRBData.md +18 -0
  26. data/docs/{GenerateReceivingAddressRBDataItem.md → GenerateDepositAddressRBDataItem.md} +2 -2
  27. data/docs/GenerateDepositAddressRData.md +18 -0
  28. data/docs/{GenerateReceivingAddressRI.md → GenerateDepositAddressRI.md} +2 -2
  29. data/docs/GeneratingApi.md +16 -16
  30. data/docs/GetAddressDetailsRIConfirmedBalance.md +2 -2
  31. data/docs/GetAddressDetailsRITotalReceived.md +2 -2
  32. data/docs/GetAddressDetailsRITotalSpent.md +2 -2
  33. data/docs/GetBlockDetailsByBlockHashRIBS.md +2 -0
  34. data/docs/GetBlockDetailsByBlockHashRIBSBSC.md +36 -0
  35. data/docs/GetBlockDetailsByBlockHeightRIBS.md +2 -0
  36. data/docs/GetBlockDetailsByBlockHeightRIBSBSC.md +34 -0
  37. data/docs/GetLatestMinedBlockRIBS.md +2 -0
  38. data/docs/GetLatestMinedBlockRIBSBSC.md +34 -0
  39. data/docs/GetTransactionDetailsByTransactionIDRIBS.md +2 -0
  40. data/docs/GetTransactionDetailsByTransactionIDRIBSBSC.md +28 -0
  41. data/docs/GetTransactionDetailsByTransactionIDRIBSBSCGasPrice.md +20 -0
  42. data/docs/GetTransactionDetailsByTransactionIDRIFee.md +1 -1
  43. data/docs/InformativeApi.md +15 -15
  44. data/docs/{GenerateReceivingAddressR.md → ListDepositAddressesR.md} +3 -3
  45. data/docs/{ListReceivingAddressesRData.md → ListDepositAddressesRData.md} +3 -3
  46. data/docs/{ListReceivingAddressesRI.md → ListDepositAddressesRI.md} +2 -2
  47. data/docs/ListTransactionsByAddressRIBS.md +2 -0
  48. data/docs/ListTransactionsByAddressRIBSBSC.md +30 -0
  49. data/docs/ListTransactionsByBlockHashRIBS.md +2 -0
  50. data/docs/ListTransactionsByBlockHashRIBSBSC.md +30 -0
  51. data/docs/ListTransactionsByBlockHashRIFee.md +1 -1
  52. data/docs/ListTransactionsByBlockHeightRIBS.md +2 -0
  53. data/docs/ListTransactionsByBlockHeightRIBSBSC.md +28 -0
  54. data/docs/ListTransactionsByBlockHeightRIBSBSCGasPrice.md +20 -0
  55. data/docs/ListXRPRippleTransactionsByAddressRI.md +2 -4
  56. data/docs/TransactionRequestApproval.md +24 -0
  57. data/docs/TransactionRequestApprovalData.md +22 -0
  58. data/docs/TransactionRequestApprovalDataItem.md +28 -0
  59. data/docs/TransactionRequestBroadcasted.md +24 -0
  60. data/docs/TransactionRequestBroadcastedData.md +22 -0
  61. data/docs/TransactionRequestBroadcastedDataItem.md +30 -0
  62. data/docs/TransactionRequestFail.md +24 -0
  63. data/docs/TransactionRequestFailData.md +22 -0
  64. data/docs/TransactionRequestFailDataItem.md +30 -0
  65. data/docs/TransactionRequestMined.md +24 -0
  66. data/docs/TransactionRequestMinedData.md +22 -0
  67. data/docs/TransactionRequestRejection.md +24 -0
  68. data/docs/TransactionRequestRejectionData.md +22 -0
  69. data/docs/TransactionRequestRejectionDataItem.md +28 -0
  70. data/docs/TransactionsApi.md +10 -10
  71. data/docs/XRPRippleApi.md +3 -1
  72. data/lib/crypto_apis.rb +46 -11
  73. data/lib/crypto_apis/api/features_api.rb +194 -0
  74. data/lib/crypto_apis/api/generating_api.rb +17 -17
  75. data/lib/crypto_apis/api/informative_api.rb +18 -18
  76. data/lib/crypto_apis/api/transactions_api.rb +10 -10
  77. data/lib/crypto_apis/api/unified_endpoints_api.rb +7 -7
  78. data/lib/crypto_apis/api/xrp_ripple_api.rb +7 -0
  79. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_r.rb +263 -0
  80. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_r_data.rb +223 -0
  81. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_rb.rb +233 -0
  82. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_rb_data.rb +223 -0
  83. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_rb_data_item.rb +249 -0
  84. data/lib/crypto_apis/models/broadcast_locally_signed_transaction_ri.rb +224 -0
  85. data/lib/crypto_apis/models/broadcast_transaction_fail.rb +268 -0
  86. data/lib/crypto_apis/models/broadcast_transaction_fail_data.rb +254 -0
  87. data/lib/crypto_apis/models/broadcast_transaction_fail_data_item.rb +270 -0
  88. data/lib/crypto_apis/models/broadcast_transaction_success.rb +268 -0
  89. data/lib/crypto_apis/models/broadcast_transaction_success_data.rb +254 -0
  90. data/lib/crypto_apis/models/broadcast_transaction_success_data_item.rb +255 -0
  91. data/lib/crypto_apis/models/create_coins_transaction_request_from_address_rb_data_item.rb +30 -10
  92. data/lib/crypto_apis/models/create_coins_transaction_request_from_address_ri.rb +21 -1
  93. data/lib/crypto_apis/models/create_coins_transaction_request_from_wallet_rb_data_item.rb +38 -18
  94. data/lib/crypto_apis/models/{create_coins_transaction_request_from_wallet_rb_data_item_destinations.rb → create_coins_transaction_request_from_wallet_rb_data_item_recipients.rb} +4 -4
  95. data/lib/crypto_apis/models/create_coins_transaction_request_from_wallet_ri.rb +21 -1
  96. data/lib/crypto_apis/models/create_tokens_transaction_request_from_address_rb_data_item.rb +30 -10
  97. data/lib/crypto_apis/models/create_tokens_transaction_request_from_address_ri.rb +31 -1
  98. data/lib/crypto_apis/models/{list_receiving_addresses_r.rb → generate_deposit_address_r.rb} +4 -4
  99. data/lib/crypto_apis/models/{generate_receiving_address_r_data.rb → generate_deposit_address_r_data.rb} +4 -4
  100. data/lib/crypto_apis/models/{generate_receiving_address_rb.rb → generate_deposit_address_rb.rb} +4 -4
  101. data/lib/crypto_apis/models/{generate_receiving_address_rb_data.rb → generate_deposit_address_rb_data.rb} +4 -4
  102. data/lib/crypto_apis/models/{generate_receiving_address_rb_data_item.rb → generate_deposit_address_rb_data_item.rb} +3 -3
  103. data/lib/crypto_apis/models/{list_receiving_addresses_ri.rb → generate_deposit_address_ri.rb} +3 -3
  104. data/lib/crypto_apis/models/get_address_details_ri_confirmed_balance.rb +0 -1
  105. data/lib/crypto_apis/models/get_address_details_ri_total_received.rb +0 -1
  106. data/lib/crypto_apis/models/get_address_details_ri_total_spent.rb +0 -1
  107. data/lib/crypto_apis/models/get_block_details_by_block_hash_ribs.rb +1 -0
  108. data/lib/crypto_apis/models/get_block_details_by_block_hash_ribsbsc.rb +361 -0
  109. data/lib/crypto_apis/models/get_block_details_by_block_height_ribs.rb +1 -0
  110. data/lib/crypto_apis/models/get_block_details_by_block_height_ribsbsc.rb +345 -0
  111. data/lib/crypto_apis/models/get_latest_mined_block_ribs.rb +1 -0
  112. data/lib/crypto_apis/models/get_latest_mined_block_ribsbsc.rb +345 -0
  113. data/lib/crypto_apis/models/get_transaction_details_by_transaction_idri_fee.rb +0 -1
  114. data/lib/crypto_apis/models/get_transaction_details_by_transaction_idribs.rb +1 -0
  115. data/lib/crypto_apis/models/get_transaction_details_by_transaction_idribsbsc.rb +299 -0
  116. data/lib/crypto_apis/models/get_transaction_details_by_transaction_idribsbsc_gas_price.rb +238 -0
  117. data/lib/crypto_apis/models/{generate_receiving_address_r.rb → list_deposit_addresses_r.rb} +4 -4
  118. data/lib/crypto_apis/models/{list_receiving_addresses_r_data.rb → list_deposit_addresses_r_data.rb} +4 -4
  119. data/lib/crypto_apis/models/{generate_receiving_address_ri.rb → list_deposit_addresses_ri.rb} +3 -3
  120. data/lib/crypto_apis/models/list_transactions_by_address_ribs.rb +1 -0
  121. data/lib/crypto_apis/models/list_transactions_by_address_ribsbsc.rb +314 -0
  122. data/lib/crypto_apis/models/list_transactions_by_block_hash_ri_fee.rb +0 -1
  123. data/lib/crypto_apis/models/list_transactions_by_block_hash_ribs.rb +1 -0
  124. data/lib/crypto_apis/models/list_transactions_by_block_hash_ribsbsc.rb +314 -0
  125. data/lib/crypto_apis/models/list_transactions_by_block_height_ribs.rb +1 -0
  126. data/lib/crypto_apis/models/list_transactions_by_block_height_ribsbsc.rb +299 -0
  127. data/lib/crypto_apis/models/list_transactions_by_block_height_ribsbsc_gas_price.rb +238 -0
  128. data/lib/crypto_apis/models/list_xrp_ripple_transactions_by_address_ri.rb +1 -16
  129. data/lib/crypto_apis/models/transaction_request_approval.rb +268 -0
  130. data/lib/crypto_apis/models/transaction_request_approval_data.rb +254 -0
  131. data/lib/crypto_apis/models/transaction_request_approval_data_item.rb +300 -0
  132. data/lib/crypto_apis/models/transaction_request_broadcasted.rb +268 -0
  133. data/lib/crypto_apis/models/transaction_request_broadcasted_data.rb +254 -0
  134. data/lib/crypto_apis/models/transaction_request_broadcasted_data_item.rb +315 -0
  135. data/lib/crypto_apis/models/transaction_request_fail.rb +268 -0
  136. data/lib/crypto_apis/models/transaction_request_fail_data.rb +254 -0
  137. data/lib/crypto_apis/models/transaction_request_fail_data_item.rb +315 -0
  138. data/lib/crypto_apis/models/transaction_request_mined.rb +268 -0
  139. data/lib/crypto_apis/models/transaction_request_mined_data.rb +254 -0
  140. data/lib/crypto_apis/models/transaction_request_rejection.rb +268 -0
  141. data/lib/crypto_apis/models/transaction_request_rejection_data.rb +254 -0
  142. data/lib/crypto_apis/models/transaction_request_rejection_data_item.rb +300 -0
  143. data/lib/crypto_apis/version.rb +1 -1
  144. data/spec/api/{validating_api_spec.rb → features_api_spec.rb} +21 -6
  145. data/spec/api/generating_api_spec.rb +5 -5
  146. data/spec/api/informative_api_spec.rb +5 -5
  147. data/spec/api/transactions_api_spec.rb +1 -1
  148. data/spec/api/xrp_ripple_api_spec.rb +1 -0
  149. data/spec/models/broadcast_locally_signed_transaction_r_data_spec.rb +34 -0
  150. data/spec/models/broadcast_locally_signed_transaction_r_spec.rb +52 -0
  151. data/spec/models/broadcast_locally_signed_transaction_rb_data_item_spec.rb +46 -0
  152. data/spec/models/broadcast_locally_signed_transaction_rb_data_spec.rb +34 -0
  153. data/spec/models/broadcast_locally_signed_transaction_rb_spec.rb +40 -0
  154. data/spec/models/broadcast_locally_signed_transaction_ri_spec.rb +34 -0
  155. data/spec/models/broadcast_transaction_fail_data_item_spec.rb +52 -0
  156. data/spec/models/broadcast_transaction_fail_data_spec.rb +46 -0
  157. data/spec/models/broadcast_transaction_fail_spec.rb +52 -0
  158. data/spec/models/broadcast_transaction_success_data_item_spec.rb +46 -0
  159. data/spec/models/broadcast_transaction_success_data_spec.rb +46 -0
  160. data/spec/models/broadcast_transaction_success_spec.rb +52 -0
  161. data/spec/models/create_coins_transaction_request_from_address_rb_data_item_spec.rb +13 -1
  162. data/spec/models/create_coins_transaction_request_from_address_ri_spec.rb +12 -0
  163. data/spec/models/{create_coins_transaction_request_from_wallet_rb_data_item_destinations_spec.rb → create_coins_transaction_request_from_wallet_rb_data_item_recipients_spec.rb} +6 -6
  164. data/spec/models/create_coins_transaction_request_from_wallet_rb_data_item_spec.rb +13 -1
  165. data/spec/models/create_coins_transaction_request_from_wallet_ri_spec.rb +12 -0
  166. data/spec/models/create_tokens_transaction_request_from_address_rb_data_item_spec.rb +13 -1
  167. data/spec/models/create_tokens_transaction_request_from_address_ri_spec.rb +12 -0
  168. data/spec/models/{generate_receiving_address_r_data_spec.rb → generate_deposit_address_r_data_spec.rb} +6 -6
  169. data/spec/models/{list_receiving_addresses_r_spec.rb → generate_deposit_address_r_spec.rb} +6 -6
  170. data/spec/models/{generate_receiving_address_rb_data_item_spec.rb → generate_deposit_address_rb_data_item_spec.rb} +6 -6
  171. data/spec/models/{generate_receiving_address_rb_data_spec.rb → generate_deposit_address_rb_data_spec.rb} +6 -6
  172. data/spec/models/{generate_receiving_address_rb_spec.rb → generate_deposit_address_rb_spec.rb} +6 -6
  173. data/spec/models/{list_receiving_addresses_ri_spec.rb → generate_deposit_address_ri_spec.rb} +6 -6
  174. data/spec/models/get_block_details_by_block_hash_ribsbsc_spec.rb +88 -0
  175. data/spec/models/get_block_details_by_block_height_ribsbsc_spec.rb +82 -0
  176. data/spec/models/get_latest_mined_block_ribsbsc_spec.rb +82 -0
  177. data/spec/models/get_transaction_details_by_transaction_idribsbsc_gas_price_spec.rb +40 -0
  178. data/spec/models/get_transaction_details_by_transaction_idribsbsc_spec.rb +64 -0
  179. data/spec/models/{list_receiving_addresses_r_data_spec.rb → list_deposit_addresses_r_data_spec.rb} +6 -6
  180. data/spec/models/{generate_receiving_address_r_spec.rb → list_deposit_addresses_r_spec.rb} +6 -6
  181. data/spec/models/{generate_receiving_address_ri_spec.rb → list_deposit_addresses_ri_spec.rb} +6 -6
  182. data/spec/models/list_transactions_by_address_ribsbsc_spec.rb +70 -0
  183. data/spec/models/list_transactions_by_block_hash_ribsbsc_spec.rb +70 -0
  184. data/spec/models/list_transactions_by_block_height_ribsbsc_gas_price_spec.rb +40 -0
  185. data/spec/models/list_transactions_by_block_height_ribsbsc_spec.rb +64 -0
  186. data/spec/models/list_xrp_ripple_transactions_by_address_ri_spec.rb +0 -6
  187. data/spec/models/transaction_request_approval_data_item_spec.rb +64 -0
  188. data/spec/models/transaction_request_approval_data_spec.rb +46 -0
  189. data/spec/models/transaction_request_approval_spec.rb +52 -0
  190. data/spec/models/transaction_request_broadcasted_data_item_spec.rb +70 -0
  191. data/spec/models/transaction_request_broadcasted_data_spec.rb +46 -0
  192. data/spec/models/transaction_request_broadcasted_spec.rb +52 -0
  193. data/spec/models/transaction_request_fail_data_item_spec.rb +70 -0
  194. data/spec/models/transaction_request_fail_data_spec.rb +46 -0
  195. data/spec/models/transaction_request_fail_spec.rb +52 -0
  196. data/spec/models/transaction_request_mined_data_spec.rb +46 -0
  197. data/spec/models/transaction_request_mined_spec.rb +52 -0
  198. data/spec/models/transaction_request_rejection_data_item_spec.rb +64 -0
  199. data/spec/models/transaction_request_rejection_data_spec.rb +46 -0
  200. data/spec/models/transaction_request_rejection_spec.rb +52 -0
  201. metadata +186 -46
  202. data/docs/GenerateReceivingAddressRBData.md +0 -18
  203. data/docs/GenerateReceivingAddressRData.md +0 -18
  204. data/docs/ValidatingApi.md +0 -87
  205. data/lib/crypto_apis/api/validating_api.rb +0 -108
@@ -14,8 +14,8 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module CryptoApis
17
- class CreateCoinsTransactionRequestFromWalletRBDataItemDestinations
18
- # Defines the specific destination address.
17
+ class CreateCoinsTransactionRequestFromWalletRBDataItemRecipients
18
+ # Defines the specific recipient/destination address.
19
19
  attr_accessor :address
20
20
 
21
21
  # Represents the specific amount of the transaction's destination.
@@ -52,13 +52,13 @@ module CryptoApis
52
52
  # @param [Hash] attributes Model attributes in the form of hash
53
53
  def initialize(attributes = {})
54
54
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::CreateCoinsTransactionRequestFromWalletRBDataItemDestinations` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::CreateCoinsTransactionRequestFromWalletRBDataItemRecipients` initialize method"
56
56
  end
57
57
 
58
58
  # check to see if the attribute exists and convert string to symbol for hash key
59
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
60
  if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::CreateCoinsTransactionRequestFromWalletRBDataItemDestinations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::CreateCoinsTransactionRequestFromWalletRBDataItemRecipients`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
62
  end
63
63
  h[k.to_sym] = v
64
64
  }
@@ -15,6 +15,12 @@ require 'time'
15
15
 
16
16
  module CryptoApis
17
17
  class CreateCoinsTransactionRequestFromWalletRI
18
+ # Represents the Secret Key value provided by the customer. This field is used for security purposes during the callback notification, in order to prove the sender of the callback as Crypto APIs.
19
+ attr_accessor :callback_secret_key
20
+
21
+ # Verified URL for sending callbacks
22
+ attr_accessor :callback_url
23
+
18
24
  # Represents the fee priority of the automation, whether it is \"slow\", \"standard\" or \"fast\".
19
25
  attr_accessor :fee_priority
20
26
 
@@ -52,6 +58,8 @@ module CryptoApis
52
58
  # Attribute mapping from ruby-style variable name to JSON key.
53
59
  def self.attribute_map
54
60
  {
61
+ :'callback_secret_key' => :'callbackSecretKey',
62
+ :'callback_url' => :'callbackUrl',
55
63
  :'fee_priority' => :'feePriority',
56
64
  :'recipients' => :'recipients',
57
65
  :'total_transaction_amount' => :'totalTransactionAmount',
@@ -67,6 +75,8 @@ module CryptoApis
67
75
  # Attribute type mapping.
68
76
  def self.openapi_types
69
77
  {
78
+ :'callback_secret_key' => :'String',
79
+ :'callback_url' => :'String',
70
80
  :'fee_priority' => :'String',
71
81
  :'recipients' => :'Array<CreateCoinsTransactionRequestFromWalletRIRecipients>',
72
82
  :'total_transaction_amount' => :'String',
@@ -95,6 +105,14 @@ module CryptoApis
95
105
  h[k.to_sym] = v
96
106
  }
97
107
 
108
+ if attributes.key?(:'callback_secret_key')
109
+ self.callback_secret_key = attributes[:'callback_secret_key']
110
+ end
111
+
112
+ if attributes.key?(:'callback_url')
113
+ self.callback_url = attributes[:'callback_url']
114
+ end
115
+
98
116
  if attributes.key?(:'fee_priority')
99
117
  self.fee_priority = attributes[:'fee_priority']
100
118
  end
@@ -176,6 +194,8 @@ module CryptoApis
176
194
  def ==(o)
177
195
  return true if self.equal?(o)
178
196
  self.class == o.class &&
197
+ callback_secret_key == o.callback_secret_key &&
198
+ callback_url == o.callback_url &&
179
199
  fee_priority == o.fee_priority &&
180
200
  recipients == o.recipients &&
181
201
  total_transaction_amount == o.total_transaction_amount &&
@@ -191,7 +211,7 @@ module CryptoApis
191
211
  # Calculates hash code according to all attributes.
192
212
  # @return [Integer] Hash code
193
213
  def hash
194
- [fee_priority, recipients, total_transaction_amount, transaction_request_status].hash
214
+ [callback_secret_key, callback_url, fee_priority, recipients, total_transaction_amount, transaction_request_status].hash
195
215
  end
196
216
 
197
217
  # Builds the object from hash
@@ -18,11 +18,17 @@ module CryptoApis
18
18
  # Represents the specific amount of the transaction.
19
19
  attr_accessor :amount
20
20
 
21
+ # Represents the Secret Key value provided by the customer. This field is used for security purposes during the callback notification, in order to prove the sender of the callback as Crypto APIs.
22
+ attr_accessor :callback_secret_key
23
+
24
+ # Verified URL for sending callbacks
25
+ attr_accessor :callback_url
26
+
21
27
  # Represents the fee priority of the automation, whether it is \"slow\", \"standard\" or \"fast\".
22
28
  attr_accessor :fee_priority
23
29
 
24
30
  # Defines the specific recipient address for the transaction.
25
- attr_accessor :to_address
31
+ attr_accessor :recipient_address
26
32
 
27
33
  # Defines the specific token identifier. For Bitcoin-based transactions it should be the `propertyId` and for Ethereum-based transactions - the `contract`.
28
34
  attr_accessor :token_identifier
@@ -53,8 +59,10 @@ module CryptoApis
53
59
  def self.attribute_map
54
60
  {
55
61
  :'amount' => :'amount',
62
+ :'callback_secret_key' => :'callbackSecretKey',
63
+ :'callback_url' => :'callbackUrl',
56
64
  :'fee_priority' => :'feePriority',
57
- :'to_address' => :'toAddress',
65
+ :'recipient_address' => :'recipientAddress',
58
66
  :'token_identifier' => :'tokenIdentifier'
59
67
  }
60
68
  end
@@ -68,8 +76,10 @@ module CryptoApis
68
76
  def self.openapi_types
69
77
  {
70
78
  :'amount' => :'String',
79
+ :'callback_secret_key' => :'String',
80
+ :'callback_url' => :'String',
71
81
  :'fee_priority' => :'String',
72
- :'to_address' => :'String',
82
+ :'recipient_address' => :'String',
73
83
  :'token_identifier' => :'String'
74
84
  }
75
85
  end
@@ -99,12 +109,20 @@ module CryptoApis
99
109
  self.amount = attributes[:'amount']
100
110
  end
101
111
 
112
+ if attributes.key?(:'callback_secret_key')
113
+ self.callback_secret_key = attributes[:'callback_secret_key']
114
+ end
115
+
116
+ if attributes.key?(:'callback_url')
117
+ self.callback_url = attributes[:'callback_url']
118
+ end
119
+
102
120
  if attributes.key?(:'fee_priority')
103
121
  self.fee_priority = attributes[:'fee_priority']
104
122
  end
105
123
 
106
- if attributes.key?(:'to_address')
107
- self.to_address = attributes[:'to_address']
124
+ if attributes.key?(:'recipient_address')
125
+ self.recipient_address = attributes[:'recipient_address']
108
126
  end
109
127
 
110
128
  if attributes.key?(:'token_identifier')
@@ -124,8 +142,8 @@ module CryptoApis
124
142
  invalid_properties.push('invalid value for "fee_priority", fee_priority cannot be nil.')
125
143
  end
126
144
 
127
- if @to_address.nil?
128
- invalid_properties.push('invalid value for "to_address", to_address cannot be nil.')
145
+ if @recipient_address.nil?
146
+ invalid_properties.push('invalid value for "recipient_address", recipient_address cannot be nil.')
129
147
  end
130
148
 
131
149
  if @token_identifier.nil?
@@ -142,7 +160,7 @@ module CryptoApis
142
160
  return false if @fee_priority.nil?
143
161
  fee_priority_validator = EnumAttributeValidator.new('String', ["slow", "standard", "fast"])
144
162
  return false unless fee_priority_validator.valid?(@fee_priority)
145
- return false if @to_address.nil?
163
+ return false if @recipient_address.nil?
146
164
  return false if @token_identifier.nil?
147
165
  true
148
166
  end
@@ -163,8 +181,10 @@ module CryptoApis
163
181
  return true if self.equal?(o)
164
182
  self.class == o.class &&
165
183
  amount == o.amount &&
184
+ callback_secret_key == o.callback_secret_key &&
185
+ callback_url == o.callback_url &&
166
186
  fee_priority == o.fee_priority &&
167
- to_address == o.to_address &&
187
+ recipient_address == o.recipient_address &&
168
188
  token_identifier == o.token_identifier
169
189
  end
170
190
 
@@ -177,7 +197,7 @@ module CryptoApis
177
197
  # Calculates hash code according to all attributes.
178
198
  # @return [Integer] Hash code
179
199
  def hash
180
- [amount, fee_priority, to_address, token_identifier].hash
200
+ [amount, callback_secret_key, callback_url, fee_priority, recipient_address, token_identifier].hash
181
201
  end
182
202
 
183
203
  # Builds the object from hash
@@ -15,6 +15,12 @@ require 'time'
15
15
 
16
16
  module CryptoApis
17
17
  class CreateTokensTransactionRequestFromAddressRI
18
+ # Represents the Secret Key value provided by the customer. This field is used for security purposes during the callback notification, in order to prove the sender of the callback as Crypto APIs.
19
+ attr_accessor :callback_secret_key
20
+
21
+ # Verified URL for sending callbacks
22
+ attr_accessor :callback_url
23
+
18
24
  # Represents the fee priority of the automation, whether it is \"slow\", \"standard\" or \"fast\".
19
25
  attr_accessor :fee_priority
20
26
 
@@ -50,6 +56,8 @@ module CryptoApis
50
56
  # Attribute mapping from ruby-style variable name to JSON key.
51
57
  def self.attribute_map
52
58
  {
59
+ :'callback_secret_key' => :'callbackSecretKey',
60
+ :'callback_url' => :'callbackUrl',
53
61
  :'fee_priority' => :'feePriority',
54
62
  :'recipients' => :'recipients',
55
63
  :'senders' => :'senders',
@@ -65,6 +73,8 @@ module CryptoApis
65
73
  # Attribute type mapping.
66
74
  def self.openapi_types
67
75
  {
76
+ :'callback_secret_key' => :'String',
77
+ :'callback_url' => :'String',
68
78
  :'fee_priority' => :'String',
69
79
  :'recipients' => :'Array<CreateTokensTransactionRequestFromAddressRIRecipients>',
70
80
  :'senders' => :'CreateTokensTransactionRequestFromAddressRISenders',
@@ -93,6 +103,14 @@ module CryptoApis
93
103
  h[k.to_sym] = v
94
104
  }
95
105
 
106
+ if attributes.key?(:'callback_secret_key')
107
+ self.callback_secret_key = attributes[:'callback_secret_key']
108
+ end
109
+
110
+ if attributes.key?(:'callback_url')
111
+ self.callback_url = attributes[:'callback_url']
112
+ end
113
+
96
114
  if attributes.key?(:'fee_priority')
97
115
  self.fee_priority = attributes[:'fee_priority']
98
116
  end
@@ -116,6 +134,14 @@ module CryptoApis
116
134
  # @return Array for valid properties with the reasons
117
135
  def list_invalid_properties
118
136
  invalid_properties = Array.new
137
+ if @callback_secret_key.nil?
138
+ invalid_properties.push('invalid value for "callback_secret_key", callback_secret_key cannot be nil.')
139
+ end
140
+
141
+ if @callback_url.nil?
142
+ invalid_properties.push('invalid value for "callback_url", callback_url cannot be nil.')
143
+ end
144
+
119
145
  if @fee_priority.nil?
120
146
  invalid_properties.push('invalid value for "fee_priority", fee_priority cannot be nil.')
121
147
  end
@@ -138,6 +164,8 @@ module CryptoApis
138
164
  # Check to see if the all the properties in the model are valid
139
165
  # @return true if the model is valid
140
166
  def valid?
167
+ return false if @callback_secret_key.nil?
168
+ return false if @callback_url.nil?
141
169
  return false if @fee_priority.nil?
142
170
  fee_priority_validator = EnumAttributeValidator.new('String', ["slow", "standard", "fast"])
143
171
  return false unless fee_priority_validator.valid?(@fee_priority)
@@ -162,6 +190,8 @@ module CryptoApis
162
190
  def ==(o)
163
191
  return true if self.equal?(o)
164
192
  self.class == o.class &&
193
+ callback_secret_key == o.callback_secret_key &&
194
+ callback_url == o.callback_url &&
165
195
  fee_priority == o.fee_priority &&
166
196
  recipients == o.recipients &&
167
197
  senders == o.senders &&
@@ -177,7 +207,7 @@ module CryptoApis
177
207
  # Calculates hash code according to all attributes.
178
208
  # @return [Integer] Hash code
179
209
  def hash
180
- [fee_priority, recipients, senders, token_type_specific_data].hash
210
+ [callback_secret_key, callback_url, fee_priority, recipients, senders, token_type_specific_data].hash
181
211
  end
182
212
 
183
213
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module CryptoApis
17
- class ListReceivingAddressesR
17
+ class GenerateDepositAddressR
18
18
  # Specifies the version of the API that incorporates this endpoint.
19
19
  attr_accessor :api_version
20
20
 
@@ -47,7 +47,7 @@ module CryptoApis
47
47
  :'api_version' => :'String',
48
48
  :'request_id' => :'String',
49
49
  :'context' => :'String',
50
- :'data' => :'ListReceivingAddressesRData'
50
+ :'data' => :'GenerateDepositAddressRData'
51
51
  }
52
52
  end
53
53
 
@@ -61,13 +61,13 @@ module CryptoApis
61
61
  # @param [Hash] attributes Model attributes in the form of hash
62
62
  def initialize(attributes = {})
63
63
  if (!attributes.is_a?(Hash))
64
- fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::ListReceivingAddressesR` initialize method"
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::GenerateDepositAddressR` initialize method"
65
65
  end
66
66
 
67
67
  # check to see if the attribute exists and convert string to symbol for hash key
68
68
  attributes = attributes.each_with_object({}) { |(k, v), h|
69
69
  if (!self.class.attribute_map.key?(k.to_sym))
70
- fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::ListReceivingAddressesR`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::GenerateDepositAddressR`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
71
  end
72
72
  h[k.to_sym] = v
73
73
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module CryptoApis
17
- class GenerateReceivingAddressRData
17
+ class GenerateDepositAddressRData
18
18
  attr_accessor :item
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -32,7 +32,7 @@ module CryptoApis
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'item' => :'GenerateReceivingAddressRI'
35
+ :'item' => :'GenerateDepositAddressRI'
36
36
  }
37
37
  end
38
38
 
@@ -46,13 +46,13 @@ module CryptoApis
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
48
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::GenerateReceivingAddressRData` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::GenerateDepositAddressRData` initialize method"
50
50
  end
51
51
 
52
52
  # check to see if the attribute exists and convert string to symbol for hash key
53
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::GenerateReceivingAddressRData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::GenerateDepositAddressRData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
56
  end
57
57
  h[k.to_sym] = v
58
58
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module CryptoApis
17
- class GenerateReceivingAddressRB
17
+ class GenerateDepositAddressRB
18
18
  # In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user.
19
19
  attr_accessor :context
20
20
 
@@ -37,7 +37,7 @@ module CryptoApis
37
37
  def self.openapi_types
38
38
  {
39
39
  :'context' => :'String',
40
- :'data' => :'GenerateReceivingAddressRBData'
40
+ :'data' => :'GenerateDepositAddressRBData'
41
41
  }
42
42
  end
43
43
 
@@ -51,13 +51,13 @@ module CryptoApis
51
51
  # @param [Hash] attributes Model attributes in the form of hash
52
52
  def initialize(attributes = {})
53
53
  if (!attributes.is_a?(Hash))
54
- fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::GenerateReceivingAddressRB` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::GenerateDepositAddressRB` initialize method"
55
55
  end
56
56
 
57
57
  # check to see if the attribute exists and convert string to symbol for hash key
58
58
  attributes = attributes.each_with_object({}) { |(k, v), h|
59
59
  if (!self.class.attribute_map.key?(k.to_sym))
60
- fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::GenerateReceivingAddressRB`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::GenerateDepositAddressRB`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
61
  end
62
62
  h[k.to_sym] = v
63
63
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module CryptoApis
17
- class GenerateReceivingAddressRBData
17
+ class GenerateDepositAddressRBData
18
18
  attr_accessor :item
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -32,7 +32,7 @@ module CryptoApis
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'item' => :'GenerateReceivingAddressRBDataItem'
35
+ :'item' => :'GenerateDepositAddressRBDataItem'
36
36
  }
37
37
  end
38
38
 
@@ -46,13 +46,13 @@ module CryptoApis
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
48
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::GenerateReceivingAddressRBData` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::GenerateDepositAddressRBData` initialize method"
50
50
  end
51
51
 
52
52
  # check to see if the attribute exists and convert string to symbol for hash key
53
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::GenerateReceivingAddressRBData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::GenerateDepositAddressRBData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
56
  end
57
57
  h[k.to_sym] = v
58
58
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module CryptoApis
17
- class GenerateReceivingAddressRBDataItem
17
+ class GenerateDepositAddressRBDataItem
18
18
  # Represents a custom tag that customers can set up for their Wallets and addresses. E.g. custom label named \"Special addresses\".
19
19
  attr_accessor :label
20
20
 
@@ -47,13 +47,13 @@ module CryptoApis
47
47
  # @param [Hash] attributes Model attributes in the form of hash
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::GenerateReceivingAddressRBDataItem` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::GenerateDepositAddressRBDataItem` initialize method"
51
51
  end
52
52
 
53
53
  # check to see if the attribute exists and convert string to symbol for hash key
54
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
55
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::GenerateReceivingAddressRBDataItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::GenerateDepositAddressRBDataItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
57
  end
58
58
  h[k.to_sym] = v
59
59
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module CryptoApis
17
- class ListReceivingAddressesRI
17
+ class GenerateDepositAddressRI
18
18
  # Specifies the specific address's unique string value.
19
19
  attr_accessor :address
20
20
 
@@ -57,13 +57,13 @@ module CryptoApis
57
57
  # @param [Hash] attributes Model attributes in the form of hash
58
58
  def initialize(attributes = {})
59
59
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::ListReceivingAddressesRI` initialize method"
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `CryptoApis::GenerateDepositAddressRI` initialize method"
61
61
  end
62
62
 
63
63
  # check to see if the attribute exists and convert string to symbol for hash key
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
65
  if (!self.class.attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::ListReceivingAddressesRI`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `CryptoApis::GenerateDepositAddressRI`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
67
  end
68
68
  h[k.to_sym] = v
69
69
  }