cybrid_api_bank_ruby 0.27.0 → 0.37.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +101 -42
  4. data/cybrid_api_bank_ruby.gemspec +2 -2
  5. data/docs/AccountBankModel.md +5 -1
  6. data/docs/AccountsBankApi.md +3 -3
  7. data/docs/AssetsBankApi.md +2 -2
  8. data/docs/BankBankModel.md +4 -2
  9. data/docs/BanksBankApi.md +78 -3
  10. data/docs/CustomerBankModel.md +2 -2
  11. data/docs/CustomersBankApi.md +2 -2
  12. data/docs/{TradingConfigurationBankModel.md → FeeConfigurationBankModel.md} +6 -2
  13. data/docs/{TradingConfigurationListBankModel.md → FeeConfigurationListBankModel.md} +3 -3
  14. data/docs/FeeConfigurationsBankApi.md +230 -0
  15. data/docs/IdentityRecordsBankApi.md +3 -3
  16. data/docs/PatchBankBankModel.md +22 -0
  17. data/docs/PostAccountBankModel.md +2 -0
  18. data/docs/PostBankBankModel.md +4 -2
  19. data/docs/PostFeeConfigurationBankModel.md +24 -0
  20. data/docs/PostQuoteBankModel.md +11 -5
  21. data/docs/PostRewardBankModel.md +24 -0
  22. data/docs/QuoteBankModel.md +13 -7
  23. data/docs/QuotesBankApi.md +3 -3
  24. data/docs/RewardBankModel.md +36 -0
  25. data/docs/{ExchangeListBankModel.md → RewardListBankModel.md} +3 -3
  26. data/docs/RewardsBankApi.md +236 -0
  27. data/docs/TradesBankApi.md +2 -2
  28. data/docs/VerificationKeysBankApi.md +2 -2
  29. data/lib/cybrid_api_bank_ruby/api/accounts_bank_api.rb +6 -6
  30. data/lib/cybrid_api_bank_ruby/api/assets_bank_api.rb +6 -6
  31. data/lib/cybrid_api_bank_ruby/api/banks_bank_api.rb +80 -6
  32. data/lib/cybrid_api_bank_ruby/api/customers_bank_api.rb +6 -6
  33. data/lib/cybrid_api_bank_ruby/api/fee_configurations_bank_api.rb +228 -0
  34. data/lib/cybrid_api_bank_ruby/api/identity_records_bank_api.rb +8 -8
  35. data/lib/cybrid_api_bank_ruby/api/prices_bank_api.rb +2 -2
  36. data/lib/cybrid_api_bank_ruby/api/quotes_bank_api.rb +6 -6
  37. data/lib/cybrid_api_bank_ruby/api/rewards_bank_api.rb +237 -0
  38. data/lib/cybrid_api_bank_ruby/api/symbols_bank_api.rb +2 -2
  39. data/lib/cybrid_api_bank_ruby/api/trades_bank_api.rb +6 -6
  40. data/lib/cybrid_api_bank_ruby/api/verification_keys_bank_api.rb +6 -6
  41. data/lib/cybrid_api_bank_ruby/api_client.rb +2 -2
  42. data/lib/cybrid_api_bank_ruby/api_error.rb +2 -2
  43. data/lib/cybrid_api_bank_ruby/configuration.rb +2 -2
  44. data/lib/cybrid_api_bank_ruby/models/account_bank_model.rb +53 -8
  45. data/lib/cybrid_api_bank_ruby/models/account_list_bank_model.rb +2 -2
  46. data/lib/cybrid_api_bank_ruby/models/asset_bank_model.rb +2 -2
  47. data/lib/cybrid_api_bank_ruby/models/asset_list_bank_model.rb +2 -2
  48. data/lib/cybrid_api_bank_ruby/models/attestation_details_bank_model.rb +2 -2
  49. data/lib/cybrid_api_bank_ruby/models/bank_bank_model.rb +25 -13
  50. data/lib/cybrid_api_bank_ruby/models/bank_list_bank_model.rb +2 -2
  51. data/lib/cybrid_api_bank_ruby/models/customer_bank_model.rb +16 -16
  52. data/lib/cybrid_api_bank_ruby/models/customer_list_bank_model.rb +2 -2
  53. data/lib/cybrid_api_bank_ruby/models/error_response_bank_model.rb +2 -2
  54. data/lib/cybrid_api_bank_ruby/models/fee_bank_model.rb +2 -2
  55. data/lib/cybrid_api_bank_ruby/models/fee_configuration_bank_model.rb +402 -0
  56. data/lib/cybrid_api_bank_ruby/models/fee_configuration_list_bank_model.rb +296 -0
  57. data/lib/cybrid_api_bank_ruby/models/identity_record_bank_model.rb +2 -2
  58. data/lib/cybrid_api_bank_ruby/models/identity_record_list_bank_model.rb +2 -2
  59. data/lib/cybrid_api_bank_ruby/models/patch_bank_bank_model.rb +268 -0
  60. data/lib/cybrid_api_bank_ruby/models/post_account_bank_model.rb +27 -5
  61. data/lib/cybrid_api_bank_ruby/models/post_bank_bank_model.rb +28 -16
  62. data/lib/cybrid_api_bank_ruby/models/post_customer_bank_model.rb +2 -2
  63. data/lib/cybrid_api_bank_ruby/models/post_fee_bank_model.rb +2 -2
  64. data/lib/cybrid_api_bank_ruby/models/post_fee_configuration_bank_model.rb +342 -0
  65. data/lib/cybrid_api_bank_ruby/models/post_identity_record_attestation_details_bank_model.rb +2 -2
  66. data/lib/cybrid_api_bank_ruby/models/post_identity_record_bank_model.rb +2 -2
  67. data/lib/cybrid_api_bank_ruby/models/post_quote_bank_model.rb +97 -26
  68. data/lib/cybrid_api_bank_ruby/models/post_reward_bank_model.rb +316 -0
  69. data/lib/cybrid_api_bank_ruby/models/post_trade_bank_model.rb +2 -2
  70. data/lib/cybrid_api_bank_ruby/models/post_verification_key_bank_model.rb +2 -2
  71. data/lib/cybrid_api_bank_ruby/models/quote_bank_model.rb +96 -14
  72. data/lib/cybrid_api_bank_ruby/models/quote_list_bank_model.rb +2 -2
  73. data/lib/cybrid_api_bank_ruby/models/reward_bank_model.rb +440 -0
  74. data/lib/cybrid_api_bank_ruby/models/reward_list_bank_model.rb +329 -0
  75. data/lib/cybrid_api_bank_ruby/models/symbol_price_bank_model.rb +2 -2
  76. data/lib/cybrid_api_bank_ruby/models/trade_bank_model.rb +2 -2
  77. data/lib/cybrid_api_bank_ruby/models/trade_list_bank_model.rb +2 -2
  78. data/lib/cybrid_api_bank_ruby/models/verification_key_bank_model.rb +2 -2
  79. data/lib/cybrid_api_bank_ruby/models/verification_key_list_bank_model.rb +2 -2
  80. data/lib/cybrid_api_bank_ruby/version.rb +3 -3
  81. data/lib/cybrid_api_bank_ruby.rb +11 -11
  82. data/spec/api/accounts_bank_api_spec.rb +2 -2
  83. data/spec/api/assets_bank_api_spec.rb +2 -2
  84. data/spec/api/banks_bank_api_spec.rb +15 -2
  85. data/spec/api/customers_bank_api_spec.rb +2 -2
  86. data/spec/api/fee_configurations_bank_api_spec.rb +72 -0
  87. data/spec/api/identity_records_bank_api_spec.rb +3 -3
  88. data/spec/api/prices_bank_api_spec.rb +2 -2
  89. data/spec/api/quotes_bank_api_spec.rb +2 -2
  90. data/spec/api/rewards_bank_api_spec.rb +75 -0
  91. data/spec/api/symbols_bank_api_spec.rb +2 -2
  92. data/spec/api/trades_bank_api_spec.rb +2 -2
  93. data/spec/api/verification_keys_bank_api_spec.rb +2 -2
  94. data/spec/api_client_spec.rb +2 -2
  95. data/spec/configuration_spec.rb +2 -2
  96. data/spec/models/account_bank_model_spec.rb +23 -3
  97. data/spec/models/account_list_bank_model_spec.rb +2 -2
  98. data/spec/models/asset_bank_model_spec.rb +2 -2
  99. data/spec/models/asset_list_bank_model_spec.rb +2 -2
  100. data/spec/models/attestation_details_bank_model_spec.rb +2 -2
  101. data/spec/models/bank_bank_model_spec.rb +10 -4
  102. data/spec/models/bank_list_bank_model_spec.rb +2 -2
  103. data/spec/models/customer_bank_model_spec.rb +4 -4
  104. data/spec/models/customer_list_bank_model_spec.rb +2 -2
  105. data/spec/models/error_response_bank_model_spec.rb +2 -2
  106. data/spec/models/fee_bank_model_spec.rb +2 -2
  107. data/spec/models/fee_configuration_bank_model_spec.rb +78 -0
  108. data/spec/models/fee_configuration_list_bank_model_spec.rb +52 -0
  109. data/spec/models/identity_record_bank_model_spec.rb +2 -2
  110. data/spec/models/identity_record_list_bank_model_spec.rb +2 -2
  111. data/spec/models/patch_bank_bank_model_spec.rb +46 -0
  112. data/spec/models/post_account_bank_model_spec.rb +13 -3
  113. data/spec/models/post_bank_bank_model_spec.rb +10 -4
  114. data/spec/models/post_customer_bank_model_spec.rb +2 -2
  115. data/spec/models/post_fee_bank_model_spec.rb +2 -2
  116. data/spec/models/post_fee_configuration_bank_model_spec.rb +60 -0
  117. data/spec/models/post_identity_record_attestation_details_bank_model_spec.rb +2 -2
  118. data/spec/models/post_identity_record_bank_model_spec.rb +2 -2
  119. data/spec/models/post_quote_bank_model_spec.rb +29 -3
  120. data/spec/models/post_reward_bank_model_spec.rb +52 -0
  121. data/spec/models/post_trade_bank_model_spec.rb +2 -2
  122. data/spec/models/post_verification_key_bank_model_spec.rb +2 -2
  123. data/spec/models/quote_bank_model_spec.rb +29 -3
  124. data/spec/models/quote_list_bank_model_spec.rb +2 -2
  125. data/spec/models/reward_bank_model_spec.rb +92 -0
  126. data/spec/models/reward_list_bank_model_spec.rb +52 -0
  127. data/spec/models/symbol_price_bank_model_spec.rb +2 -2
  128. data/spec/models/trade_bank_model_spec.rb +2 -2
  129. data/spec/models/trade_list_bank_model_spec.rb +2 -2
  130. data/spec/models/verification_key_bank_model_spec.rb +2 -2
  131. data/spec/models/verification_key_list_bank_model_spec.rb +2 -2
  132. data/spec/spec_helper.rb +2 -2
  133. data/vendor/bundle/ruby/3.1.0/cache/parser-3.1.2.1.gem +0 -0
  134. data/vendor/bundle/ruby/3.1.0/cache/pry-0.14.1.gem +0 -0
  135. data/vendor/bundle/ruby/3.1.0/cache/pry-byebug-3.10.1.gem +0 -0
  136. data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/byebug-11.1.3/gem_make.out +2 -2
  137. data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/ffi-1.15.5/gem_make.out +2 -2
  138. data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/jaro_winkler-1.5.4/gem_make.out +2 -2
  139. data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/psych-4.0.4/gem_make.out +2 -2
  140. data/vendor/bundle/ruby/3.1.0/extensions/x86_64-linux/3.1.0-static/stringio-3.0.2/gem_make.out +2 -2
  141. data/vendor/bundle/ruby/3.1.0/gems/byebug-11.1.3/ext/byebug/Makefile +2 -2
  142. data/vendor/bundle/ruby/3.1.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  143. data/vendor/bundle/ruby/3.1.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +2 -2
  144. data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby31.rb +4 -0
  145. data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby32.rb +4 -0
  146. data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/version.rb +1 -1
  147. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/CHANGELOG.md +34 -0
  148. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/README.md +2 -2
  149. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/cli.rb +7 -27
  150. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/code.rb +1 -1
  151. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/show_doc.rb +0 -1
  152. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/show_source.rb +1 -0
  153. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/config.rb +0 -4
  154. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/helpers/documentation_helpers.rb +2 -1
  155. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/helpers/text.rb +6 -6
  156. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/pry_class.rb +0 -5
  157. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/version.rb +1 -1
  158. data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry.rb +0 -1
  159. data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/CHANGELOG.md +16 -0
  160. data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/README.md +2 -5
  161. data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/byebug/processors/pry_processor.rb +2 -10
  162. data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/pry_ext.rb +5 -3
  163. data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/version.rb +1 -1
  164. data/vendor/bundle/ruby/3.1.0/gems/psych-4.0.4/ext/psych/Makefile +2 -2
  165. data/vendor/bundle/ruby/3.1.0/gems/stringio-3.0.2/ext/stringio/Makefile +2 -2
  166. data/vendor/bundle/ruby/3.1.0/specifications/{parser-3.1.2.0.gemspec → parser-3.1.2.1.gemspec} +4 -4
  167. data/vendor/bundle/ruby/3.1.0/specifications/{pry-0.13.1.gemspec → pry-0.14.1.gemspec} +3 -3
  168. data/vendor/bundle/ruby/3.1.0/specifications/{pry-byebug-3.9.0.gemspec → pry-byebug-3.10.1.gemspec} +6 -6
  169. metadata +285 -286
  170. data/docs/CybridAccountBankModel.md +0 -28
  171. data/docs/ExchangeAccountBankModel.md +0 -26
  172. data/docs/ExchangeBankModel.md +0 -26
  173. data/docs/PostTradingConfigurationBankModel.md +0 -20
  174. data/docs/SystemAccountBankModel.md +0 -26
  175. data/docs/TradingConfigurationsBankApi.md +0 -230
  176. data/lib/cybrid_api_bank_ruby/api/trading_configurations_bank_api.rb +0 -228
  177. data/lib/cybrid_api_bank_ruby/models/cybrid_account_bank_model.rb +0 -388
  178. data/lib/cybrid_api_bank_ruby/models/exchange_account_bank_model.rb +0 -366
  179. data/lib/cybrid_api_bank_ruby/models/exchange_bank_model.rb +0 -354
  180. data/lib/cybrid_api_bank_ruby/models/exchange_list_bank_model.rb +0 -329
  181. data/lib/cybrid_api_bank_ruby/models/post_trading_configuration_bank_model.rb +0 -270
  182. data/lib/cybrid_api_bank_ruby/models/system_account_bank_model.rb +0 -366
  183. data/lib/cybrid_api_bank_ruby/models/trading_configuration_bank_model.rb +0 -335
  184. data/lib/cybrid_api_bank_ruby/models/trading_configuration_list_bank_model.rb +0 -296
  185. data/spec/api/trading_configurations_bank_api_spec.rb +0 -72
  186. data/spec/models/cybrid_account_bank_model_spec.rb +0 -72
  187. data/spec/models/exchange_account_bank_model_spec.rb +0 -62
  188. data/spec/models/exchange_bank_model_spec.rb +0 -66
  189. data/spec/models/exchange_list_bank_model_spec.rb +0 -52
  190. data/spec/models/post_trading_configuration_bank_model_spec.rb +0 -40
  191. data/spec/models/system_account_bank_model_spec.rb +0 -62
  192. data/spec/models/trading_configuration_bank_model_spec.rb +0 -58
  193. data/spec/models/trading_configuration_list_bank_model_spec.rb +0 -52
  194. data/vendor/bundle/ruby/3.1.0/cache/parser-3.1.2.0.gem +0 -0
  195. data/vendor/bundle/ruby/3.1.0/cache/pry-0.13.1.gem +0 -0
  196. data/vendor/bundle/ruby/3.1.0/cache/pry-byebug-3.9.0.gem +0 -0
  197. data/vendor/bundle/ruby/3.1.0/gems/pry-0.13.1/lib/pry/plugins.rb +0 -139
  198. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/LICENSE.txt +0 -0
  199. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/bin/ruby-parse +0 -0
  200. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/bin/ruby-rewrite +0 -0
  201. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/gauntlet_parser.rb +0 -0
  202. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/all.rb +0 -0
  203. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ast/node.rb +0 -0
  204. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ast/processor.rb +0 -0
  205. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/base.rb +0 -0
  206. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/builders/default.rb +0 -0
  207. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/clobbering_error.rb +0 -0
  208. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/color.rb +0 -0
  209. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/context.rb +0 -0
  210. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/current.rb +0 -0
  211. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/current_arg_stack.rb +0 -0
  212. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/deprecation.rb +0 -0
  213. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/diagnostic/engine.rb +0 -0
  214. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/diagnostic.rb +0 -0
  215. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/lexer/dedenter.rb +0 -0
  216. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/lexer/explanation.rb +0 -0
  217. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/lexer/literal.rb +0 -0
  218. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/lexer/stack_state.rb +0 -0
  219. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/lexer.rb +0 -0
  220. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/macruby.rb +0 -0
  221. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/max_numparam_stack.rb +0 -0
  222. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/messages.rb +0 -0
  223. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/meta.rb +0 -0
  224. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/rewriter.rb +0 -0
  225. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby18.rb +0 -0
  226. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby19.rb +0 -0
  227. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby20.rb +0 -0
  228. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby21.rb +0 -0
  229. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby22.rb +0 -0
  230. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby23.rb +0 -0
  231. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby24.rb +0 -0
  232. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby25.rb +0 -0
  233. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby26.rb +0 -0
  234. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby27.rb +0 -0
  235. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby28.rb +0 -0
  236. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/ruby30.rb +0 -0
  237. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/rubymotion.rb +0 -0
  238. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/runner/ruby_parse.rb +0 -0
  239. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/runner/ruby_rewrite.rb +0 -0
  240. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/runner.rb +0 -0
  241. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/buffer.rb +0 -0
  242. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/comment/associator.rb +0 -0
  243. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/comment.rb +0 -0
  244. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/collection.rb +0 -0
  245. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/condition.rb +0 -0
  246. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/constant.rb +0 -0
  247. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/definition.rb +0 -0
  248. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/for.rb +0 -0
  249. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/heredoc.rb +0 -0
  250. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/index.rb +0 -0
  251. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/keyword.rb +0 -0
  252. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/method_definition.rb +0 -0
  253. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/objc_kwarg.rb +0 -0
  254. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/operator.rb +0 -0
  255. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/rescue_body.rb +0 -0
  256. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/send.rb +0 -0
  257. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/ternary.rb +0 -0
  258. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map/variable.rb +0 -0
  259. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/map.rb +0 -0
  260. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/range.rb +0 -0
  261. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/rewriter/action.rb +0 -0
  262. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/rewriter.rb +0 -0
  263. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/tree_rewriter/action.rb +0 -0
  264. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/source/tree_rewriter.rb +0 -0
  265. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/static_environment.rb +0 -0
  266. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/syntax_error.rb +0 -0
  267. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/tree_rewriter.rb +0 -0
  268. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser/variables_stack.rb +0 -0
  269. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/lib/parser.rb +0 -0
  270. /data/vendor/bundle/ruby/3.1.0/gems/{parser-3.1.2.0 → parser-3.1.2.1}/parser.gemspec +0 -0
  271. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/LICENSE +0 -0
  272. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/bin/pry +0 -0
  273. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/basic_object.rb +0 -0
  274. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/block_command.rb +0 -0
  275. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/class_command.rb +0 -0
  276. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/code/code_file.rb +0 -0
  277. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/code/code_range.rb +0 -0
  278. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/code/loc.rb +0 -0
  279. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/code_object.rb +0 -0
  280. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/color_printer.rb +0 -0
  281. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/command.rb +0 -0
  282. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/command_set.rb +0 -0
  283. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/command_state.rb +0 -0
  284. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/amend_line.rb +0 -0
  285. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/bang.rb +0 -0
  286. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/bang_pry.rb +0 -0
  287. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/cat/abstract_formatter.rb +0 -0
  288. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/cat/exception_formatter.rb +0 -0
  289. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/cat/file_formatter.rb +0 -0
  290. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/cat/input_expression_formatter.rb +0 -0
  291. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/cat.rb +0 -0
  292. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/cd.rb +0 -0
  293. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/change_inspector.rb +0 -0
  294. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/change_prompt.rb +0 -0
  295. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/clear_screen.rb +0 -0
  296. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/code_collector.rb +0 -0
  297. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/disable_pry.rb +0 -0
  298. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/easter_eggs.rb +0 -0
  299. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/edit/exception_patcher.rb +0 -0
  300. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/edit/file_and_line_locator.rb +0 -0
  301. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/edit.rb +0 -0
  302. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/exit.rb +0 -0
  303. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/exit_all.rb +0 -0
  304. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/exit_program.rb +0 -0
  305. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/find_method.rb +0 -0
  306. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/fix_indent.rb +0 -0
  307. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/help.rb +0 -0
  308. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/hist.rb +0 -0
  309. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/import_set.rb +0 -0
  310. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/jump_to.rb +0 -0
  311. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/list_inspectors.rb +0 -0
  312. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/constants.rb +0 -0
  313. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/formatter.rb +0 -0
  314. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/globals.rb +0 -0
  315. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/grep.rb +0 -0
  316. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/instance_vars.rb +0 -0
  317. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/interrogatable.rb +0 -0
  318. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/jruby_hacks.rb +0 -0
  319. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/local_names.rb +0 -0
  320. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/local_vars.rb +0 -0
  321. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/ls_entity.rb +0 -0
  322. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/methods.rb +0 -0
  323. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/methods_helper.rb +0 -0
  324. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls/self_methods.rb +0 -0
  325. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ls.rb +0 -0
  326. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/nesting.rb +0 -0
  327. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/play.rb +0 -0
  328. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/pry_backtrace.rb +0 -0
  329. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/pry_version.rb +0 -0
  330. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/raise_up.rb +0 -0
  331. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/reload_code.rb +0 -0
  332. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/reset.rb +0 -0
  333. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/ri.rb +0 -0
  334. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/save_file.rb +0 -0
  335. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/shell_command.rb +0 -0
  336. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/shell_mode.rb +0 -0
  337. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/show_info.rb +0 -0
  338. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/show_input.rb +0 -0
  339. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/stat.rb +0 -0
  340. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/switch_to.rb +0 -0
  341. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/toggle_color.rb +0 -0
  342. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/watch_expression/expression.rb +0 -0
  343. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/watch_expression.rb +0 -0
  344. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/whereami.rb +0 -0
  345. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/commands/wtf.rb +0 -0
  346. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/config/attributable.rb +0 -0
  347. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/config/lazy_value.rb +0 -0
  348. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/config/memoized_value.rb +0 -0
  349. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/config/value.rb +0 -0
  350. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/control_d_handler.rb +0 -0
  351. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/core_extensions.rb +0 -0
  352. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/editor.rb +0 -0
  353. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/env.rb +0 -0
  354. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/exception_handler.rb +0 -0
  355. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/exceptions.rb +0 -0
  356. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/forwardable.rb +0 -0
  357. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/helpers/base_helpers.rb +0 -0
  358. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/helpers/command_helpers.rb +0 -0
  359. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/helpers/options_helpers.rb +0 -0
  360. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/helpers/platform.rb +0 -0
  361. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/helpers/table.rb +0 -0
  362. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/helpers.rb +0 -0
  363. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/history.rb +0 -0
  364. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/hooks.rb +0 -0
  365. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/indent.rb +0 -0
  366. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/input_completer.rb +0 -0
  367. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/input_lock.rb +0 -0
  368. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/inspector.rb +0 -0
  369. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/last_exception.rb +0 -0
  370. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/method/disowned.rb +0 -0
  371. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/method/patcher.rb +0 -0
  372. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/method/weird_method_locator.rb +0 -0
  373. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/method.rb +0 -0
  374. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/object_path.rb +0 -0
  375. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/output.rb +0 -0
  376. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/pager.rb +0 -0
  377. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/prompt.rb +0 -0
  378. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/pry_instance.rb +0 -0
  379. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/repl.rb +0 -0
  380. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/repl_file_loader.rb +0 -0
  381. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/ring.rb +0 -0
  382. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/slop/LICENSE +0 -0
  383. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/slop/commands.rb +0 -0
  384. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/slop/option.rb +0 -0
  385. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/slop.rb +0 -0
  386. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/syntax_highlighter.rb +0 -0
  387. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/system_command_handler.rb +0 -0
  388. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/testable/evalable.rb +0 -0
  389. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/testable/mockable.rb +0 -0
  390. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/testable/pry_tester.rb +0 -0
  391. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/testable/utility.rb +0 -0
  392. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/testable/variables.rb +0 -0
  393. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/testable.rb +0 -0
  394. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/warning.rb +0 -0
  395. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/wrapped_module/candidate.rb +0 -0
  396. /data/vendor/bundle/ruby/3.1.0/gems/{pry-0.13.1 → pry-0.14.1}/lib/pry/wrapped_module.rb +0 -0
  397. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/LICENSE +0 -0
  398. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry/byebug/breakpoints.rb +0 -0
  399. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/base.rb +0 -0
  400. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/cli.rb +0 -0
  401. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/commands/backtrace.rb +0 -0
  402. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/commands/breakpoint.rb +0 -0
  403. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/commands/continue.rb +0 -0
  404. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/commands/down.rb +0 -0
  405. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/commands/exit_all.rb +0 -0
  406. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/commands/finish.rb +0 -0
  407. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/commands/frame.rb +0 -0
  408. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/commands/next.rb +0 -0
  409. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/commands/step.rb +0 -0
  410. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/commands/up.rb +0 -0
  411. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/commands.rb +0 -0
  412. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/control_d_handler.rb +0 -0
  413. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/helpers/breakpoints.rb +0 -0
  414. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/helpers/location.rb +0 -0
  415. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/helpers/multiline.rb +0 -0
  416. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/helpers/navigation.rb +0 -0
  417. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug/pry_remote_ext.rb +0 -0
  418. /data/vendor/bundle/ruby/3.1.0/gems/{pry-byebug-3.9.0 → pry-byebug-3.10.1}/lib/pry-byebug.rb +0 -0
@@ -0,0 +1,228 @@
1
+ =begin
2
+ #Cybrid Bank API
3
+
4
+ ## Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-lable crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our API's. If you'd like to use a different tool to exercise our API's, you can download the [Open API 3.0 yaml](https://bank.demo.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our API's and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started) 2. [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading) 3. [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) (or, alternatively, [Testing with Hosted Web Demo App](https://www.cybrid.xyz/guides/testing-with-the-web-demo-crypo-app)) In [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started), we walk you through how to use the [Cybrid Sandbox](https://id.demo.cybrid.app/) to create a test bank, generate API keys, and set banks fees. In [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. If you've already run through the first two guides, you can follow the [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) guide to test our web SDK with your sandbox `bank` and `customer`. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API Clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), Apple-coming soon) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of API's reside. *The complete set of APIs can be found on the following pages:* | API | Description | |----------------------------------------------------------------|------------------------------| | [Organization API](https://organization.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.demo.cybrid.app). An `Organization` Token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` Token is specific to an individual Bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `bearer token` for use in testing the API or demo applications. ``` curl -X POST https://id.demo.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write accounts:read accounts:execute customers:read customers:write customers:execute prices:read quotes:execute trades:execute trades:read\" }' -H \"Content-Type: application/json\" ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization or a Bank token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope | Write scope | Execute scope | Token Type | |---------------|--------------------|----------------------|-------------------|--------------------| | Organizations | organizations:read | organizations:write | | Organization/ Bank | | Banks | banks:read | banks:write | banks:execute | Organization/ Bank | | Customers | customers:read | customers:write | customers:execute | Bank | | Assets | prices:read | | | Bank | | Accounts | accounts:read | | accounts:execute | Bank | | Prices | prices:read | | | Bank | | Symbols | prices:read | | | Bank | | Quotes | quotes:read | | quotes:execute | Bank | | Trades | trades:read | | trades:execute | Bank | | Rewards | rewards:read | | rewards:execute | Bank | ## Available Endpoints The available API's for the [Identity](https://id.demo.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.demo.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.demo.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Sevice | Model | API Endpoint Path | Description | | ------------ | ---------------- | ------------------------------ | ------------------------------------------------------------------------- | | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | Organization | /api/organization_applications | Create and list organizations | | Organization | Organization | /api/organizations | API's to retrieve and update organization name | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | VerificationKey | /api/bank_verification_keys | Create, list and retrive verification keys, used for signing identities | | Bank | Banks | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | FeeConfiguration | /api/fee_configurations | Create and list bank fees (spread or fixed) | | Bank | Customers | /api/customers | Create and list customers | | Bank | IdentityRecord | /api/identity_records | Create and list identity records, which are attached to customers for KYC | | Bank | Accounts | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Symbols | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Prices | /api/prices | Get the current prices for assets on the platform | | Bank | Quotes | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Trades | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Rewards | /api/rewards | Create a new reward (automates quote/trade for simplicity) | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `Customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where Sandbox is the environment that you would test, prototype and build in prior to production. An `Organization` can have multiple `banks`, in either sandbox or production environments. A sandbox Bank will be backed by stubbed data and process flows. For instance, funding source processes will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amout of simulated fiat currency for testing purposes. ## Customers `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified in our system before they can play any part on the platform, which means they must have an associated and valid `Identity Record`. See the Identity Records section for more details on how a customer can be verified. `Customers` must also have an `account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
5
+
6
+ The version of the OpenAPI document: v0.37.25
7
+ Contact: support@cybrid.app
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module CybridApiBank
16
+ class FeeConfigurationsBankApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create Fee Configuration
23
+ # Creates a fee configuration. Required scope: **banks:write**
24
+ # @param post_fee_configuration_bank_model [PostFeeConfigurationBankModel]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [FeeConfigurationBankModel]
27
+ def create_fee_configuration(post_fee_configuration_bank_model, opts = {})
28
+ data, _status_code, _headers = create_fee_configuration_with_http_info(post_fee_configuration_bank_model, opts)
29
+ data
30
+ end
31
+
32
+ # Create Fee Configuration
33
+ # Creates a fee configuration. Required scope: **banks:write**
34
+ # @param post_fee_configuration_bank_model [PostFeeConfigurationBankModel]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(FeeConfigurationBankModel, Integer, Hash)>] FeeConfigurationBankModel data, response status code and response headers
37
+ def create_fee_configuration_with_http_info(post_fee_configuration_bank_model, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: FeeConfigurationsBankApi.create_fee_configuration ...'
40
+ end
41
+ # verify the required parameter 'post_fee_configuration_bank_model' is set
42
+ if @api_client.config.client_side_validation && post_fee_configuration_bank_model.nil?
43
+ fail ArgumentError, "Missing the required parameter 'post_fee_configuration_bank_model' when calling FeeConfigurationsBankApi.create_fee_configuration"
44
+ end
45
+ # resource path
46
+ local_var_path = '/api/fee_configurations'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ content_type = @api_client.select_header_content_type(['application/json'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
60
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(post_fee_configuration_bank_model)
66
+
67
+ # return_type
68
+ return_type = opts[:debug_return_type] || 'FeeConfigurationBankModel'
69
+
70
+ # auth_names
71
+ auth_names = opts[:debug_auth_names] || ['BearerAuth', 'oauth2']
72
+
73
+ new_options = opts.merge(
74
+ :operation => :"FeeConfigurationsBankApi.create_fee_configuration",
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: FeeConfigurationsBankApi#create_fee_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Get Fee Configuration
91
+ # Retrieves a fee configuration. Required scope: **banks:read**
92
+ # @param fee_configuration_guid [String] Identifier for the fee configuration.
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [FeeConfigurationBankModel]
95
+ def get_fee_configuration(fee_configuration_guid, opts = {})
96
+ data, _status_code, _headers = get_fee_configuration_with_http_info(fee_configuration_guid, opts)
97
+ data
98
+ end
99
+
100
+ # Get Fee Configuration
101
+ # Retrieves a fee configuration. Required scope: **banks:read**
102
+ # @param fee_configuration_guid [String] Identifier for the fee configuration.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(FeeConfigurationBankModel, Integer, Hash)>] FeeConfigurationBankModel data, response status code and response headers
105
+ def get_fee_configuration_with_http_info(fee_configuration_guid, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: FeeConfigurationsBankApi.get_fee_configuration ...'
108
+ end
109
+ # verify the required parameter 'fee_configuration_guid' is set
110
+ if @api_client.config.client_side_validation && fee_configuration_guid.nil?
111
+ fail ArgumentError, "Missing the required parameter 'fee_configuration_guid' when calling FeeConfigurationsBankApi.get_fee_configuration"
112
+ end
113
+ # resource path
114
+ local_var_path = '/api/fee_configurations/{fee_configuration_guid}'.sub('{' + 'fee_configuration_guid' + '}', CGI.escape(fee_configuration_guid.to_s))
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
123
+
124
+ # form parameters
125
+ form_params = opts[:form_params] || {}
126
+
127
+ # http body (model)
128
+ post_body = opts[:debug_body]
129
+
130
+ # return_type
131
+ return_type = opts[:debug_return_type] || 'FeeConfigurationBankModel'
132
+
133
+ # auth_names
134
+ auth_names = opts[:debug_auth_names] || ['BearerAuth', 'oauth2']
135
+
136
+ new_options = opts.merge(
137
+ :operation => :"FeeConfigurationsBankApi.get_fee_configuration",
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => return_type
144
+ )
145
+
146
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
147
+ if @api_client.config.debugging
148
+ @api_client.config.logger.debug "API called: FeeConfigurationsBankApi#get_fee_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ end
150
+ return data, status_code, headers
151
+ end
152
+
153
+ # List Fee Configurations
154
+ # Retrieves a listing of fee configurations for a bank. Required scope: **banks:read**
155
+ # @param [Hash] opts the optional parameters
156
+ # @option opts [Integer] :page
157
+ # @option opts [Integer] :per_page
158
+ # @return [FeeConfigurationListBankModel]
159
+ def list_fee_configurations(opts = {})
160
+ data, _status_code, _headers = list_fee_configurations_with_http_info(opts)
161
+ data
162
+ end
163
+
164
+ # List Fee Configurations
165
+ # Retrieves a listing of fee configurations for a bank. Required scope: **banks:read**
166
+ # @param [Hash] opts the optional parameters
167
+ # @option opts [Integer] :page
168
+ # @option opts [Integer] :per_page
169
+ # @return [Array<(FeeConfigurationListBankModel, Integer, Hash)>] FeeConfigurationListBankModel data, response status code and response headers
170
+ def list_fee_configurations_with_http_info(opts = {})
171
+ if @api_client.config.debugging
172
+ @api_client.config.logger.debug 'Calling API: FeeConfigurationsBankApi.list_fee_configurations ...'
173
+ end
174
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
175
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling FeeConfigurationsBankApi.list_fee_configurations, must be greater than or equal to 0.'
176
+ end
177
+
178
+ if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 100
179
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling FeeConfigurationsBankApi.list_fee_configurations, must be smaller than or equal to 100.'
180
+ end
181
+
182
+ if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
183
+ fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling FeeConfigurationsBankApi.list_fee_configurations, must be greater than or equal to 1.'
184
+ end
185
+
186
+ # resource path
187
+ local_var_path = '/api/fee_configurations'
188
+
189
+ # query parameters
190
+ query_params = opts[:query_params] || {}
191
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
192
+ query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
193
+
194
+ # header parameters
195
+ header_params = opts[:header_params] || {}
196
+ # HTTP header 'Accept' (if needed)
197
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
198
+
199
+ # form parameters
200
+ form_params = opts[:form_params] || {}
201
+
202
+ # http body (model)
203
+ post_body = opts[:debug_body]
204
+
205
+ # return_type
206
+ return_type = opts[:debug_return_type] || 'FeeConfigurationListBankModel'
207
+
208
+ # auth_names
209
+ auth_names = opts[:debug_auth_names] || ['BearerAuth', 'oauth2']
210
+
211
+ new_options = opts.merge(
212
+ :operation => :"FeeConfigurationsBankApi.list_fee_configurations",
213
+ :header_params => header_params,
214
+ :query_params => query_params,
215
+ :form_params => form_params,
216
+ :body => post_body,
217
+ :auth_names => auth_names,
218
+ :return_type => return_type
219
+ )
220
+
221
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
222
+ if @api_client.config.debugging
223
+ @api_client.config.logger.debug "API called: FeeConfigurationsBankApi#list_fee_configurations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
224
+ end
225
+ return data, status_code, headers
226
+ end
227
+ end
228
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Cybrid Bank API
3
3
 
4
- ## Welcome Welcome to the Cybrid platform; enabling turnkey crypto banking services! In these documents, you will find information on the operations provided by our platform, as well as details on how our REST API operates more generally. Our complete set of APIs allows you to manage all your resources: your Organization, your banks and your identities. The complete set of APIs can be found on the following pages: | API | Description | |----------------------------------------------------------------|------------------------------| | [Organization API](https://organization.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage banks | | [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage identities | When you're ready, [request access](https://www.cybrid.xyz/access) to your Dashboard to view and administer your Organization. Once you've logged in, you can begin creating Banks, either for sandbox or production usage, and start enabling your customers to leverage DeFi and web3 with confidence. If you have any questions, please contact [Support](mailto:support@cybrid.app) at any time so that we can help. ## Authentication The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create Organization and Bank tokens can be generated via your Dashboard ([request access](https://www.cybrid.xyz/access)). An Organization Token applies broadly to the whole Organization and all of its Banks, whereas, a Bank Token is specific to an individual Bank. Both Organization and Bank tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique Client ID and Secret that allows for machine-to-machine authentication. **Never share your Client ID or Secret publicly or in your source code repository** Your Client ID and Secret can be exchanged for a time-limited Bearer Token by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document: ``` curl -X POST https://id.demo.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"<Your requested scopes -- space separated>\" }' -H \"Content-Type: application/json\" ``` ## Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization or a Bank token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope | Write scope | Execute scope | Token Type | |---------------|--------------------|----------------------|-------------------|--------------------| | Organizations | organizations:read | organizations:write | | Organization/ Bank | | Banks | banks:read | banks:write | banks:execute | Organization/ Bank | | Customers | customers:read | customers:write | customers:execute | Bank | | Assets | prices:read | | | Bank | | Accounts | accounts:read | | accounts:execute | Bank | | Prices | prices:read | | | Bank | | Symbols | prices:read | | | Bank | | Quotes | quotes:read | | quotes:execute | Bank | | Trades | trades:read | | trades:execute | Bank | ## Organizations An Organization is meant to model the organization partnering with Cybrid to use our platform. An Organization does not directly interact with customers. Instead, an Organization has one or more banks, which encompass the financial service offerings of the platform. ## Banks A Bank is owned by an Organization and can be thought of as an environment or container for Customers and product offerings. An example of a Bank would be your customer facing banking website, or an internal staging environment for testing and integration. An Organization can have multiple banks, in sandbox or production environments. A sandbox Bank will be backed by stubbed data and process flows. For instance, identity record and funding source processes will be simulated rather than performed. ## Customers Customers represent your banking users on the platform. At present, we offer support for Individuals as Customers. Customers must be verified in our system before they can play any part on the platform. See the Identity Records section for more details on how a customer can be verified. Customers must also have an account to be able to transact. See the Accounts APIs for more details on setting up accounts for the customer.
4
+ ## Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-lable crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our API's. If you'd like to use a different tool to exercise our API's, you can download the [Open API 3.0 yaml](https://bank.demo.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our API's and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started) 2. [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading) 3. [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) (or, alternatively, [Testing with Hosted Web Demo App](https://www.cybrid.xyz/guides/testing-with-the-web-demo-crypo-app)) In [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started), we walk you through how to use the [Cybrid Sandbox](https://id.demo.cybrid.app/) to create a test bank, generate API keys, and set banks fees. In [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. If you've already run through the first two guides, you can follow the [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) guide to test our web SDK with your sandbox `bank` and `customer`. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API Clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), Apple-coming soon) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of API's reside. *The complete set of APIs can be found on the following pages:* | API | Description | |----------------------------------------------------------------|------------------------------| | [Organization API](https://organization.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.demo.cybrid.app). An `Organization` Token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` Token is specific to an individual Bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `bearer token` for use in testing the API or demo applications. ``` curl -X POST https://id.demo.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write accounts:read accounts:execute customers:read customers:write customers:execute prices:read quotes:execute trades:execute trades:read\" }' -H \"Content-Type: application/json\" ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization or a Bank token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope | Write scope | Execute scope | Token Type | |---------------|--------------------|----------------------|-------------------|--------------------| | Organizations | organizations:read | organizations:write | | Organization/ Bank | | Banks | banks:read | banks:write | banks:execute | Organization/ Bank | | Customers | customers:read | customers:write | customers:execute | Bank | | Assets | prices:read | | | Bank | | Accounts | accounts:read | | accounts:execute | Bank | | Prices | prices:read | | | Bank | | Symbols | prices:read | | | Bank | | Quotes | quotes:read | | quotes:execute | Bank | | Trades | trades:read | | trades:execute | Bank | | Rewards | rewards:read | | rewards:execute | Bank | ## Available Endpoints The available API's for the [Identity](https://id.demo.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.demo.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.demo.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Sevice | Model | API Endpoint Path | Description | | ------------ | ---------------- | ------------------------------ | ------------------------------------------------------------------------- | | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | Organization | /api/organization_applications | Create and list organizations | | Organization | Organization | /api/organizations | API's to retrieve and update organization name | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | VerificationKey | /api/bank_verification_keys | Create, list and retrive verification keys, used for signing identities | | Bank | Banks | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | FeeConfiguration | /api/fee_configurations | Create and list bank fees (spread or fixed) | | Bank | Customers | /api/customers | Create and list customers | | Bank | IdentityRecord | /api/identity_records | Create and list identity records, which are attached to customers for KYC | | Bank | Accounts | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Symbols | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Prices | /api/prices | Get the current prices for assets on the platform | | Bank | Quotes | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Trades | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Rewards | /api/rewards | Create a new reward (automates quote/trade for simplicity) | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `Customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where Sandbox is the environment that you would test, prototype and build in prior to production. An `Organization` can have multiple `banks`, in either sandbox or production environments. A sandbox Bank will be backed by stubbed data and process flows. For instance, funding source processes will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amout of simulated fiat currency for testing purposes. ## Customers `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified in our system before they can play any part on the platform, which means they must have an associated and valid `Identity Record`. See the Identity Records section for more details on how a customer can be verified. `Customers` must also have an `account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
5
5
 
6
- The version of the OpenAPI document: v0.27.0
6
+ The version of the OpenAPI document: v0.37.25
7
7
  Contact: support@cybrid.app
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0
@@ -20,7 +20,7 @@ module CybridApiBank
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create Identity Record
23
- # Creates an identity record. ## Identity Records Identity Records verify an individual for inclusion on the platform. This know-your-customer (KYC) process is a requirement for individuals to be able to transact. At present, we offer support for Attestation Identity Records. Once an Identity Record has been submitted, it will be reviewed by our system and transit through a lifecycle before ultimately being `verified` or `failed`. If an Identity Record is ends up `failed`, contextual information as to the reason may be provided on the resource and additional attempts can be made. ## Attestation Identity Records An Attestation Identity Record is a confirmation of fact that the Organization has completed their own KYC process and can vouch for its correctness. Prior to uploading `verified` attestation identity records, an Organization must register their signing public key with their Bank through the create Verification Key API. To create an attestation identity record, a signed JWT is required as proof that the Customer's identity has been verified by the Organization. When creating the JWT, the Organization must use the RS512 signing algorithm. The JWT must contain the following headers: - **alg**: The RS512 algorithm value, e.g., 'RS512'. - **kid**: Set to the guid of the verification key that has been registered for the Bank The JWT must contain the following claims: - **iss**: Set to http://api.cybrid.app/banks/{bank_guid} - **aud**: Set to http://api.cybrid.app - **sub**: Set to http://api.cybrid.app/customers/{customer_guid} - **iat**: Set to the time at which the JWT was issued - **exp**: Set to the time after which the JWT expires - **jti**: Set to a unique identifier for the JWT Example code (python) for generating an Attestation Identity Record JWT token: ```python # Assumes an RSA private key has been generated (`private_key`), a Verification Key has been created and a `verification_key_guid` is available. # # `customer_guid` should be set to the guid assigned to a Customer that has been created. # `bank_guid` should be set to the guid of your bank # import uuid from datetime import datetime, timezone, timedelta from jwcrypto import jwt, jwk from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.serialization import load_pem_private_key algorithm = 'RS512' issued_at = datetime.now(timezone.utc) expired_at = issued_at + timedelta(days=365) with open(\"verification_key.pem\", 'rb') as pem_in: pem_lines = pem_in.read() private_key = load_pem_private_key(pem_lines, None) ### DISCLAIMER:- Since NO ENCRYPTION is used in the key storage/formatting. Please DO NOT use this code in production environment. signing_key = jwk.JWK.from_pem( private_key.private_bytes( encoding=serialization.Encoding.PEM, format=serialization.PrivateFormat.PKCS8, encryption_algorithm=serialization.NoEncryption() ) ) signing_key.update({\"kid\": verification_key_guid}) attestation_jwt = jwt.JWT( header={ \"alg\": algorithm, \"kid\": verification_key_guid }, claims={ \"iss\": f\"http://api.cybrid.app/banks/{bank_guid}\", \"aud\": \"http://api.cybrid.app\", \"sub\": f\"http://api.cybrid.app/customers/{customer_guid}\", \"iat\": int(issued_at.timestamp()), \"exp\": int(expired_at.timestamp()), \"jti\": str(uuid.uuid4()) }, key=signing_key, algs=[algorithm] ) attestation_jwt.make_signed_token(signing_key) token = attestation_jwt.serialize(compact=True) print(\"Token is : \", token) ``` ## Attestation State | State | Description | |-------|-------------| | storing | The Platform is storing the attestation in our private store | | pending | The Platform is verifying the attestation's JWT | | verified | The Platform has verified the attestation and the customer is able to transact | | failed | The Platform was not able to verify the attestation and the customer is not able to transact | Required scope: **customers:write**
23
+ # Creates an identity record. ## Identity Records Identity Records verify an individual for inclusion on the platform. This know-your-customer (KYC) process is a requirement for individuals to be able to transact. At present, we offer support for Attestation Identity Records. Once an Identity Record has been submitted, it will be reviewed by our system and transit through a lifecycle before ultimately being `verified` or `failed`. If an Identity Record is ends up `failed`, contextual information as to the reason may be provided on the resource and additional attempts can be made. ## Attestation Identity Records An Attestation Identity Record is a confirmation of fact that the Organization has completed their own KYC process and can vouch for its correctness. Prior to uploading `verified` attestation identity records, an Organization must register their signing public key with their Bank through the create Verification Key API. To create an attestation identity record, a signed JWT is required as proof that the Customer's identity has been verified by the Organization. When creating the JWT, the Organization must use the RS512 signing algorithm. The JWT must contain the following headers: - **alg**: The RS512 algorithm value, e.g., 'RS512'. - **kid**: Set to the guid of the verification key that has been registered for the Bank The JWT must contain the following claims: - **iss**: Set to http://api.cybrid.app/banks/{bank_guid} - **aud**: Set to http://api.cybrid.app - **sub**: Set to http://api.cybrid.app/customers/{customer_guid} - **iat**: Set to the time at which the JWT was issued - **exp**: Set to the time after which the JWT expires - **jti**: Set to a unique identifier for the JWT Example code (python) for generating an Attestation Identity Record JWT token: ```python # Assumes an RSA private key has been generated (`private_key`), a Verification Key has been created and a `verification_key_guid` is available. # # `customer_guid` should be set to the guid assigned to a Customer that has been created. # `bank_guid` should be set to the guid of your bank # import uuid from datetime import datetime, timezone, timedelta from jwcrypto import jwt, jwk from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.serialization import load_pem_private_key algorithm = 'RS512' issued_at = datetime.now(timezone.utc) expired_at = issued_at + timedelta(days=365) with open(\"verification_key.pem\", 'rb') as pem_in: pem_lines = pem_in.read() private_key = load_pem_private_key(pem_lines, None) ### DISCLAIMER:- Since NO ENCRYPTION is used in the key storage/formatting. Please DO NOT use this code in production environment. signing_key = jwk.JWK.from_pem( private_key.private_bytes( encoding=serialization.Encoding.PEM, format=serialization.PrivateFormat.PKCS8, encryption_algorithm=serialization.NoEncryption() ) ) signing_key.update({\"kid\": verification_key_guid}) attestation_jwt = jwt.JWT( header={ \"alg\": algorithm, \"kid\": verification_key_guid }, claims={ \"iss\": f\"http://api.cybrid.app/banks/{bank_guid}\", \"aud\": \"http://api.cybrid.app\", \"sub\": f\"http://api.cybrid.app/customers/{customer_guid}\", \"iat\": int(issued_at.timestamp()), \"exp\": int(expired_at.timestamp()), \"jti\": str(uuid.uuid4()) }, key=signing_key, algs=[algorithm] ) attestation_jwt.make_signed_token(signing_key) token = attestation_jwt.serialize(compact=True) print(\"Token is : \", token) ``` ## Default Attestation Signing Key The Cybrid Sandbox environment comes provisioned with a default signing key that can be used to perform identity record attestation. The default identity signing key provides a convenient starting point for testing Sandbox flows that require identity attestation, such as executing trades. The signing key can be loaded directly into a client application by passing its PEM encoded value as an environment variable. ``` -----BEGIN PRIVATE KEY----- MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDZ75nSfJy/eeuj 4f7EK7i+n4FUDE8BsD/acCdk9Pn56suuDc3SFcMoyjBIoDLZkbRsVfmBEcPDNJOp GNqzoaXa7qe7Yw0qpK9MbNbAYxiyAfxwVHM+ZpwP6M/r3LmsCRFXgNdCjfOzok7u V59hDjfHMMQm/M9ztGVhaJpgozY/7DKk+R6qY/DEBs63eXwfcHE0u0NbS8Y9Qp+6 7cB2f1iuy++5Uut1vx4qdgZ4UFMkwIdTWl/e6LDcdXhk3///T5WOnDlI+S4rhGUO xsAOfOa+T9uqYBr2hbQR9emTEYmwF1lgZ7VU4S9sSjAMKpB/TVlVVOsNhdNSGg6f 6hu7fuadAgMBAAECggEBAMUJL1VyfHVRUY5VoPTTYrBVnaPTjQrFwrVHeRZ5thgS BBxVNqSeMFgMlSLUU6UJasoX4QCkgw1V17qmUfTeTQlnhBaTMzA+vI6oSHCgJ4+o 5AbbE2Zzdt2ba4Cfiu7TM+6c+gGePZtHP32Vku84340jtfRZ1WWSz6YF4K1GYqHe y7I4POotHu2WcSTXYKs2zTu5KAO7gvx7yITVytaiUGUHk9FNyZPDIh0u7e9CAEti BangdYTfvbXAIx9lrg3XQ4gtFXTd0aY/3R9K3SE+s5iWh/SabjV4U7x+MuHZS5kv 8rcLCPQ5kUgiF4bQMy7QznUuNso65SbRJKHaU8UAuIECgYEA7+bNdz/uiN/JxUJY 3xwjD+CG4vXOyEmCioBjllYBeXQyB/VrsdzVrdF2JiECnStPRH6/6nd7/wUcLORv NyrQqnCa5/O8Kv9Z3t4TmxYf+ECIgx+gazehQHptUkr8QWtxceorUC9pu4cUJ8z3 nQLCggHYQ3g7xj73LLZ+5QQBC8kCgYEA6I91Dgs+HZWDMMcGbKV2cMkXK8BTOgZZ 6B6i6flO4tf9U2CPBZsjYLBN5EEuxxy9Yl7rlV7CxAhnnjdIKk2jQbzTPI0qmJfp 397rvdR8bur1OkALj2Tb39fz8z1Qy7AcN8siqXuortZZ5OI9XRWgnG/3B4gUFOnW 4Mr0dhfaxjUCgYEAmVcricehjneMnrtz1thDSQi47yUzES57dE/wV82Nj7ZHrHKg bcW8ByhVnrWG2DMwrZVe0l2hMjZv9fnlZJvHWMo1GYHfipRBO4UzfvO7Z5DIMRfs D9w1A+O9MNahOqeUkb2eBdjoemcy6OXId+Gltje7phSaEHN6xme34GaYzJECgYBP eRbLYdQsT/exJ5JudmzvRgkBDoxie+EljbKmumfW5XDQmWLGy6lfVWCI7C2MJaoi f8WKGgP88dJXIxUqP7XWtSyKuMMhumhV9Nwi1wZe8TQ0X8aTjigFassXCJEfymMa PfTubi/K771wlk/aC5YDX8/PZxVVwEOKNlEsOiKtMQKBgQDqRv5AUHhabqcMfbs7 DTeo/fS/eXJv8MN+CUU2RSrNUKjEdHT2R5KP550TyXr1JXLKpEEZu8wvvaQDV4Dw p0Eij6bKsh03X38NR+C5SxonXPosdvoiXR8uUgya2f/aJYV+aWZ9euFgYZAXf/0Q MnWdKylfZlV50XP2KFn07wPs7w== -----END PRIVATE KEY----- ``` A corresponding public verification key can be retrieved from the Cybrid Banks API using the `/api/bank_verification_keys` endpoint. Performing a `get` request to this endpoint returns the available Verification Key records, the first of which is the provisioned default. The endpoint can be hit directly or by using the Cybrid Banks API client: ```python ... api_client = cybrid_api_bank.ApiClient(configuration) api_instance = verification_keys_bank_api.VerificationKeysBankApi(api_client) verification_keys = api_instance.list_verification_keys() verification_key = verification_keys.objects[0] ``` Once available to the application, the signing key and Verification Key record can be used in conjunction to create the attestation JWT. The Verification Key's GUID is passed as the JWT's `kid` while the signing key is used to sign the JWT. ## Attestation State | State | Description | |-------|-------------| | storing | The Platform is storing the attestation in our private store | | pending | The Platform is verifying the attestation's JWT | | verified | The Platform has verified the attestation and the customer is able to transact | | failed | The Platform was not able to verify the attestation and the customer is not able to transact | Required scope: **customers:write**
24
24
  # @param post_identity_record_bank_model [PostIdentityRecordBankModel]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [IdentityRecordBankModel]
@@ -30,7 +30,7 @@ module CybridApiBank
30
30
  end
31
31
 
32
32
  # Create Identity Record
33
- # Creates an identity record. ## Identity Records Identity Records verify an individual for inclusion on the platform. This know-your-customer (KYC) process is a requirement for individuals to be able to transact. At present, we offer support for Attestation Identity Records. Once an Identity Record has been submitted, it will be reviewed by our system and transit through a lifecycle before ultimately being &#x60;verified&#x60; or &#x60;failed&#x60;. If an Identity Record is ends up &#x60;failed&#x60;, contextual information as to the reason may be provided on the resource and additional attempts can be made. ## Attestation Identity Records An Attestation Identity Record is a confirmation of fact that the Organization has completed their own KYC process and can vouch for its correctness. Prior to uploading &#x60;verified&#x60; attestation identity records, an Organization must register their signing public key with their Bank through the create Verification Key API. To create an attestation identity record, a signed JWT is required as proof that the Customer&#39;s identity has been verified by the Organization. When creating the JWT, the Organization must use the RS512 signing algorithm. The JWT must contain the following headers: - **alg**: The RS512 algorithm value, e.g., &#39;RS512&#39;. - **kid**: Set to the guid of the verification key that has been registered for the Bank The JWT must contain the following claims: - **iss**: Set to http://api.cybrid.app/banks/{bank_guid} - **aud**: Set to http://api.cybrid.app - **sub**: Set to http://api.cybrid.app/customers/{customer_guid} - **iat**: Set to the time at which the JWT was issued - **exp**: Set to the time after which the JWT expires - **jti**: Set to a unique identifier for the JWT Example code (python) for generating an Attestation Identity Record JWT token: &#x60;&#x60;&#x60;python # Assumes an RSA private key has been generated (&#x60;private_key&#x60;), a Verification Key has been created and a &#x60;verification_key_guid&#x60; is available. # # &#x60;customer_guid&#x60; should be set to the guid assigned to a Customer that has been created. # &#x60;bank_guid&#x60; should be set to the guid of your bank # import uuid from datetime import datetime, timezone, timedelta from jwcrypto import jwt, jwk from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.serialization import load_pem_private_key algorithm &#x3D; &#39;RS512&#39; issued_at &#x3D; datetime.now(timezone.utc) expired_at &#x3D; issued_at + timedelta(days&#x3D;365) with open(\&quot;verification_key.pem\&quot;, &#39;rb&#39;) as pem_in: pem_lines &#x3D; pem_in.read() private_key &#x3D; load_pem_private_key(pem_lines, None) ### DISCLAIMER:- Since NO ENCRYPTION is used in the key storage/formatting. Please DO NOT use this code in production environment. signing_key &#x3D; jwk.JWK.from_pem( private_key.private_bytes( encoding&#x3D;serialization.Encoding.PEM, format&#x3D;serialization.PrivateFormat.PKCS8, encryption_algorithm&#x3D;serialization.NoEncryption() ) ) signing_key.update({\&quot;kid\&quot;: verification_key_guid}) attestation_jwt &#x3D; jwt.JWT( header&#x3D;{ \&quot;alg\&quot;: algorithm, \&quot;kid\&quot;: verification_key_guid }, claims&#x3D;{ \&quot;iss\&quot;: f\&quot;http://api.cybrid.app/banks/{bank_guid}\&quot;, \&quot;aud\&quot;: \&quot;http://api.cybrid.app\&quot;, \&quot;sub\&quot;: f\&quot;http://api.cybrid.app/customers/{customer_guid}\&quot;, \&quot;iat\&quot;: int(issued_at.timestamp()), \&quot;exp\&quot;: int(expired_at.timestamp()), \&quot;jti\&quot;: str(uuid.uuid4()) }, key&#x3D;signing_key, algs&#x3D;[algorithm] ) attestation_jwt.make_signed_token(signing_key) token &#x3D; attestation_jwt.serialize(compact&#x3D;True) print(\&quot;Token is : \&quot;, token) &#x60;&#x60;&#x60; ## Attestation State | State | Description | |-------|-------------| | storing | The Platform is storing the attestation in our private store | | pending | The Platform is verifying the attestation&#39;s JWT | | verified | The Platform has verified the attestation and the customer is able to transact | | failed | The Platform was not able to verify the attestation and the customer is not able to transact | Required scope: **customers:write**
33
+ # Creates an identity record. ## Identity Records Identity Records verify an individual for inclusion on the platform. This know-your-customer (KYC) process is a requirement for individuals to be able to transact. At present, we offer support for Attestation Identity Records. Once an Identity Record has been submitted, it will be reviewed by our system and transit through a lifecycle before ultimately being &#x60;verified&#x60; or &#x60;failed&#x60;. If an Identity Record is ends up &#x60;failed&#x60;, contextual information as to the reason may be provided on the resource and additional attempts can be made. ## Attestation Identity Records An Attestation Identity Record is a confirmation of fact that the Organization has completed their own KYC process and can vouch for its correctness. Prior to uploading &#x60;verified&#x60; attestation identity records, an Organization must register their signing public key with their Bank through the create Verification Key API. To create an attestation identity record, a signed JWT is required as proof that the Customer&#39;s identity has been verified by the Organization. When creating the JWT, the Organization must use the RS512 signing algorithm. The JWT must contain the following headers: - **alg**: The RS512 algorithm value, e.g., &#39;RS512&#39;. - **kid**: Set to the guid of the verification key that has been registered for the Bank The JWT must contain the following claims: - **iss**: Set to http://api.cybrid.app/banks/{bank_guid} - **aud**: Set to http://api.cybrid.app - **sub**: Set to http://api.cybrid.app/customers/{customer_guid} - **iat**: Set to the time at which the JWT was issued - **exp**: Set to the time after which the JWT expires - **jti**: Set to a unique identifier for the JWT Example code (python) for generating an Attestation Identity Record JWT token: &#x60;&#x60;&#x60;python # Assumes an RSA private key has been generated (&#x60;private_key&#x60;), a Verification Key has been created and a &#x60;verification_key_guid&#x60; is available. # # &#x60;customer_guid&#x60; should be set to the guid assigned to a Customer that has been created. # &#x60;bank_guid&#x60; should be set to the guid of your bank # import uuid from datetime import datetime, timezone, timedelta from jwcrypto import jwt, jwk from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.serialization import load_pem_private_key algorithm &#x3D; &#39;RS512&#39; issued_at &#x3D; datetime.now(timezone.utc) expired_at &#x3D; issued_at + timedelta(days&#x3D;365) with open(\&quot;verification_key.pem\&quot;, &#39;rb&#39;) as pem_in: pem_lines &#x3D; pem_in.read() private_key &#x3D; load_pem_private_key(pem_lines, None) ### DISCLAIMER:- Since NO ENCRYPTION is used in the key storage/formatting. Please DO NOT use this code in production environment. signing_key &#x3D; jwk.JWK.from_pem( private_key.private_bytes( encoding&#x3D;serialization.Encoding.PEM, format&#x3D;serialization.PrivateFormat.PKCS8, encryption_algorithm&#x3D;serialization.NoEncryption() ) ) signing_key.update({\&quot;kid\&quot;: verification_key_guid}) attestation_jwt &#x3D; jwt.JWT( header&#x3D;{ \&quot;alg\&quot;: algorithm, \&quot;kid\&quot;: verification_key_guid }, claims&#x3D;{ \&quot;iss\&quot;: f\&quot;http://api.cybrid.app/banks/{bank_guid}\&quot;, \&quot;aud\&quot;: \&quot;http://api.cybrid.app\&quot;, \&quot;sub\&quot;: f\&quot;http://api.cybrid.app/customers/{customer_guid}\&quot;, \&quot;iat\&quot;: int(issued_at.timestamp()), \&quot;exp\&quot;: int(expired_at.timestamp()), \&quot;jti\&quot;: str(uuid.uuid4()) }, key&#x3D;signing_key, algs&#x3D;[algorithm] ) attestation_jwt.make_signed_token(signing_key) token &#x3D; attestation_jwt.serialize(compact&#x3D;True) print(\&quot;Token is : \&quot;, token) &#x60;&#x60;&#x60; ## Default Attestation Signing Key The Cybrid Sandbox environment comes provisioned with a default signing key that can be used to perform identity record attestation. The default identity signing key provides a convenient starting point for testing Sandbox flows that require identity attestation, such as executing trades. The signing key can be loaded directly into a client application by passing its PEM encoded value as an environment variable. &#x60;&#x60;&#x60; -----BEGIN PRIVATE KEY----- MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDZ75nSfJy/eeuj 4f7EK7i+n4FUDE8BsD/acCdk9Pn56suuDc3SFcMoyjBIoDLZkbRsVfmBEcPDNJOp GNqzoaXa7qe7Yw0qpK9MbNbAYxiyAfxwVHM+ZpwP6M/r3LmsCRFXgNdCjfOzok7u V59hDjfHMMQm/M9ztGVhaJpgozY/7DKk+R6qY/DEBs63eXwfcHE0u0NbS8Y9Qp+6 7cB2f1iuy++5Uut1vx4qdgZ4UFMkwIdTWl/e6LDcdXhk3///T5WOnDlI+S4rhGUO xsAOfOa+T9uqYBr2hbQR9emTEYmwF1lgZ7VU4S9sSjAMKpB/TVlVVOsNhdNSGg6f 6hu7fuadAgMBAAECggEBAMUJL1VyfHVRUY5VoPTTYrBVnaPTjQrFwrVHeRZ5thgS BBxVNqSeMFgMlSLUU6UJasoX4QCkgw1V17qmUfTeTQlnhBaTMzA+vI6oSHCgJ4+o 5AbbE2Zzdt2ba4Cfiu7TM+6c+gGePZtHP32Vku84340jtfRZ1WWSz6YF4K1GYqHe y7I4POotHu2WcSTXYKs2zTu5KAO7gvx7yITVytaiUGUHk9FNyZPDIh0u7e9CAEti BangdYTfvbXAIx9lrg3XQ4gtFXTd0aY/3R9K3SE+s5iWh/SabjV4U7x+MuHZS5kv 8rcLCPQ5kUgiF4bQMy7QznUuNso65SbRJKHaU8UAuIECgYEA7+bNdz/uiN/JxUJY 3xwjD+CG4vXOyEmCioBjllYBeXQyB/VrsdzVrdF2JiECnStPRH6/6nd7/wUcLORv NyrQqnCa5/O8Kv9Z3t4TmxYf+ECIgx+gazehQHptUkr8QWtxceorUC9pu4cUJ8z3 nQLCggHYQ3g7xj73LLZ+5QQBC8kCgYEA6I91Dgs+HZWDMMcGbKV2cMkXK8BTOgZZ 6B6i6flO4tf9U2CPBZsjYLBN5EEuxxy9Yl7rlV7CxAhnnjdIKk2jQbzTPI0qmJfp 397rvdR8bur1OkALj2Tb39fz8z1Qy7AcN8siqXuortZZ5OI9XRWgnG/3B4gUFOnW 4Mr0dhfaxjUCgYEAmVcricehjneMnrtz1thDSQi47yUzES57dE/wV82Nj7ZHrHKg bcW8ByhVnrWG2DMwrZVe0l2hMjZv9fnlZJvHWMo1GYHfipRBO4UzfvO7Z5DIMRfs D9w1A+O9MNahOqeUkb2eBdjoemcy6OXId+Gltje7phSaEHN6xme34GaYzJECgYBP eRbLYdQsT/exJ5JudmzvRgkBDoxie+EljbKmumfW5XDQmWLGy6lfVWCI7C2MJaoi f8WKGgP88dJXIxUqP7XWtSyKuMMhumhV9Nwi1wZe8TQ0X8aTjigFassXCJEfymMa PfTubi/K771wlk/aC5YDX8/PZxVVwEOKNlEsOiKtMQKBgQDqRv5AUHhabqcMfbs7 DTeo/fS/eXJv8MN+CUU2RSrNUKjEdHT2R5KP550TyXr1JXLKpEEZu8wvvaQDV4Dw p0Eij6bKsh03X38NR+C5SxonXPosdvoiXR8uUgya2f/aJYV+aWZ9euFgYZAXf/0Q MnWdKylfZlV50XP2KFn07wPs7w&#x3D;&#x3D; -----END PRIVATE KEY----- &#x60;&#x60;&#x60; A corresponding public verification key can be retrieved from the Cybrid Banks API using the &#x60;/api/bank_verification_keys&#x60; endpoint. Performing a &#x60;get&#x60; request to this endpoint returns the available Verification Key records, the first of which is the provisioned default. The endpoint can be hit directly or by using the Cybrid Banks API client: &#x60;&#x60;&#x60;python ... api_client &#x3D; cybrid_api_bank.ApiClient(configuration) api_instance &#x3D; verification_keys_bank_api.VerificationKeysBankApi(api_client) verification_keys &#x3D; api_instance.list_verification_keys() verification_key &#x3D; verification_keys.objects[0] &#x60;&#x60;&#x60; Once available to the application, the signing key and Verification Key record can be used in conjunction to create the attestation JWT. The Verification Key&#39;s GUID is passed as the JWT&#39;s &#x60;kid&#x60; while the signing key is used to sign the JWT. ## Attestation State | State | Description | |-------|-------------| | storing | The Platform is storing the attestation in our private store | | pending | The Platform is verifying the attestation&#39;s JWT | | verified | The Platform has verified the attestation and the customer is able to transact | | failed | The Platform was not able to verify the attestation and the customer is not able to transact | Required scope: **customers:write**
34
34
  # @param post_identity_record_bank_model [PostIdentityRecordBankModel]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(IdentityRecordBankModel, Integer, Hash)>] IdentityRecordBankModel data, response status code and response headers
@@ -154,8 +154,8 @@ module CybridApiBank
154
154
  # Retrieves a listing of identity records for a bank. Required scope: **customers:read**
155
155
  # @param [Hash] opts the optional parameters
156
156
  # @option opts [String] :customer_guid Comma separated customer identifier to list identity records for.
157
- # @option opts [Integer] :page (default to 0)
158
- # @option opts [Integer] :per_page (default to 10)
157
+ # @option opts [Integer] :page
158
+ # @option opts [Integer] :per_page
159
159
  # @return [IdentityRecordListBankModel]
160
160
  def list_identity_records(opts = {})
161
161
  data, _status_code, _headers = list_identity_records_with_http_info(opts)
@@ -166,8 +166,8 @@ module CybridApiBank
166
166
  # Retrieves a listing of identity records for a bank. Required scope: **customers:read**
167
167
  # @param [Hash] opts the optional parameters
168
168
  # @option opts [String] :customer_guid Comma separated customer identifier to list identity records for.
169
- # @option opts [Integer] :page (default to 0)
170
- # @option opts [Integer] :per_page (default to 10)
169
+ # @option opts [Integer] :page
170
+ # @option opts [Integer] :per_page
171
171
  # @return [Array<(IdentityRecordListBankModel, Integer, Hash)>] IdentityRecordListBankModel data, response status code and response headers
172
172
  def list_identity_records_with_http_info(opts = {})
173
173
  if @api_client.config.debugging
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Cybrid Bank API
3
3
 
4
- ## Welcome Welcome to the Cybrid platform; enabling turnkey crypto banking services! In these documents, you will find information on the operations provided by our platform, as well as details on how our REST API operates more generally. Our complete set of APIs allows you to manage all your resources: your Organization, your banks and your identities. The complete set of APIs can be found on the following pages: | API | Description | |----------------------------------------------------------------|------------------------------| | [Organization API](https://organization.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage banks | | [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage identities | When you're ready, [request access](https://www.cybrid.xyz/access) to your Dashboard to view and administer your Organization. Once you've logged in, you can begin creating Banks, either for sandbox or production usage, and start enabling your customers to leverage DeFi and web3 with confidence. If you have any questions, please contact [Support](mailto:support@cybrid.app) at any time so that we can help. ## Authentication The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create Organization and Bank tokens can be generated via your Dashboard ([request access](https://www.cybrid.xyz/access)). An Organization Token applies broadly to the whole Organization and all of its Banks, whereas, a Bank Token is specific to an individual Bank. Both Organization and Bank tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique Client ID and Secret that allows for machine-to-machine authentication. **Never share your Client ID or Secret publicly or in your source code repository** Your Client ID and Secret can be exchanged for a time-limited Bearer Token by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document: ``` curl -X POST https://id.demo.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"<Your requested scopes -- space separated>\" }' -H \"Content-Type: application/json\" ``` ## Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization or a Bank token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope | Write scope | Execute scope | Token Type | |---------------|--------------------|----------------------|-------------------|--------------------| | Organizations | organizations:read | organizations:write | | Organization/ Bank | | Banks | banks:read | banks:write | banks:execute | Organization/ Bank | | Customers | customers:read | customers:write | customers:execute | Bank | | Assets | prices:read | | | Bank | | Accounts | accounts:read | | accounts:execute | Bank | | Prices | prices:read | | | Bank | | Symbols | prices:read | | | Bank | | Quotes | quotes:read | | quotes:execute | Bank | | Trades | trades:read | | trades:execute | Bank | ## Organizations An Organization is meant to model the organization partnering with Cybrid to use our platform. An Organization does not directly interact with customers. Instead, an Organization has one or more banks, which encompass the financial service offerings of the platform. ## Banks A Bank is owned by an Organization and can be thought of as an environment or container for Customers and product offerings. An example of a Bank would be your customer facing banking website, or an internal staging environment for testing and integration. An Organization can have multiple banks, in sandbox or production environments. A sandbox Bank will be backed by stubbed data and process flows. For instance, identity record and funding source processes will be simulated rather than performed. ## Customers Customers represent your banking users on the platform. At present, we offer support for Individuals as Customers. Customers must be verified in our system before they can play any part on the platform. See the Identity Records section for more details on how a customer can be verified. Customers must also have an account to be able to transact. See the Accounts APIs for more details on setting up accounts for the customer.
4
+ ## Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-lable crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our API's. If you'd like to use a different tool to exercise our API's, you can download the [Open API 3.0 yaml](https://bank.demo.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our API's and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started) 2. [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading) 3. [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) (or, alternatively, [Testing with Hosted Web Demo App](https://www.cybrid.xyz/guides/testing-with-the-web-demo-crypo-app)) In [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started), we walk you through how to use the [Cybrid Sandbox](https://id.demo.cybrid.app/) to create a test bank, generate API keys, and set banks fees. In [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. If you've already run through the first two guides, you can follow the [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) guide to test our web SDK with your sandbox `bank` and `customer`. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API Clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), Apple-coming soon) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of API's reside. *The complete set of APIs can be found on the following pages:* | API | Description | |----------------------------------------------------------------|------------------------------| | [Organization API](https://organization.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.demo.cybrid.app). An `Organization` Token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` Token is specific to an individual Bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `bearer token` for use in testing the API or demo applications. ``` curl -X POST https://id.demo.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write accounts:read accounts:execute customers:read customers:write customers:execute prices:read quotes:execute trades:execute trades:read\" }' -H \"Content-Type: application/json\" ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization or a Bank token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope | Write scope | Execute scope | Token Type | |---------------|--------------------|----------------------|-------------------|--------------------| | Organizations | organizations:read | organizations:write | | Organization/ Bank | | Banks | banks:read | banks:write | banks:execute | Organization/ Bank | | Customers | customers:read | customers:write | customers:execute | Bank | | Assets | prices:read | | | Bank | | Accounts | accounts:read | | accounts:execute | Bank | | Prices | prices:read | | | Bank | | Symbols | prices:read | | | Bank | | Quotes | quotes:read | | quotes:execute | Bank | | Trades | trades:read | | trades:execute | Bank | | Rewards | rewards:read | | rewards:execute | Bank | ## Available Endpoints The available API's for the [Identity](https://id.demo.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.demo.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.demo.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Sevice | Model | API Endpoint Path | Description | | ------------ | ---------------- | ------------------------------ | ------------------------------------------------------------------------- | | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | Organization | /api/organization_applications | Create and list organizations | | Organization | Organization | /api/organizations | API's to retrieve and update organization name | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | VerificationKey | /api/bank_verification_keys | Create, list and retrive verification keys, used for signing identities | | Bank | Banks | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | FeeConfiguration | /api/fee_configurations | Create and list bank fees (spread or fixed) | | Bank | Customers | /api/customers | Create and list customers | | Bank | IdentityRecord | /api/identity_records | Create and list identity records, which are attached to customers for KYC | | Bank | Accounts | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Symbols | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Prices | /api/prices | Get the current prices for assets on the platform | | Bank | Quotes | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Trades | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Rewards | /api/rewards | Create a new reward (automates quote/trade for simplicity) | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `Customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where Sandbox is the environment that you would test, prototype and build in prior to production. An `Organization` can have multiple `banks`, in either sandbox or production environments. A sandbox Bank will be backed by stubbed data and process flows. For instance, funding source processes will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amout of simulated fiat currency for testing purposes. ## Customers `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified in our system before they can play any part on the platform, which means they must have an associated and valid `Identity Record`. See the Identity Records section for more details on how a customer can be verified. `Customers` must also have an `account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
5
5
 
6
- The version of the OpenAPI document: v0.27.0
6
+ The version of the OpenAPI document: v0.37.25
7
7
  Contact: support@cybrid.app
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Cybrid Bank API
3
3
 
4
- ## Welcome Welcome to the Cybrid platform; enabling turnkey crypto banking services! In these documents, you will find information on the operations provided by our platform, as well as details on how our REST API operates more generally. Our complete set of APIs allows you to manage all your resources: your Organization, your banks and your identities. The complete set of APIs can be found on the following pages: | API | Description | |----------------------------------------------------------------|------------------------------| | [Organization API](https://organization.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage banks | | [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage identities | When you're ready, [request access](https://www.cybrid.xyz/access) to your Dashboard to view and administer your Organization. Once you've logged in, you can begin creating Banks, either for sandbox or production usage, and start enabling your customers to leverage DeFi and web3 with confidence. If you have any questions, please contact [Support](mailto:support@cybrid.app) at any time so that we can help. ## Authentication The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create Organization and Bank tokens can be generated via your Dashboard ([request access](https://www.cybrid.xyz/access)). An Organization Token applies broadly to the whole Organization and all of its Banks, whereas, a Bank Token is specific to an individual Bank. Both Organization and Bank tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique Client ID and Secret that allows for machine-to-machine authentication. **Never share your Client ID or Secret publicly or in your source code repository** Your Client ID and Secret can be exchanged for a time-limited Bearer Token by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document: ``` curl -X POST https://id.demo.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"<Your requested scopes -- space separated>\" }' -H \"Content-Type: application/json\" ``` ## Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization or a Bank token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope | Write scope | Execute scope | Token Type | |---------------|--------------------|----------------------|-------------------|--------------------| | Organizations | organizations:read | organizations:write | | Organization/ Bank | | Banks | banks:read | banks:write | banks:execute | Organization/ Bank | | Customers | customers:read | customers:write | customers:execute | Bank | | Assets | prices:read | | | Bank | | Accounts | accounts:read | | accounts:execute | Bank | | Prices | prices:read | | | Bank | | Symbols | prices:read | | | Bank | | Quotes | quotes:read | | quotes:execute | Bank | | Trades | trades:read | | trades:execute | Bank | ## Organizations An Organization is meant to model the organization partnering with Cybrid to use our platform. An Organization does not directly interact with customers. Instead, an Organization has one or more banks, which encompass the financial service offerings of the platform. ## Banks A Bank is owned by an Organization and can be thought of as an environment or container for Customers and product offerings. An example of a Bank would be your customer facing banking website, or an internal staging environment for testing and integration. An Organization can have multiple banks, in sandbox or production environments. A sandbox Bank will be backed by stubbed data and process flows. For instance, identity record and funding source processes will be simulated rather than performed. ## Customers Customers represent your banking users on the platform. At present, we offer support for Individuals as Customers. Customers must be verified in our system before they can play any part on the platform. See the Identity Records section for more details on how a customer can be verified. Customers must also have an account to be able to transact. See the Accounts APIs for more details on setting up accounts for the customer.
4
+ ## Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-lable crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our API's. If you'd like to use a different tool to exercise our API's, you can download the [Open API 3.0 yaml](https://bank.demo.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our API's and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started) 2. [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading) 3. [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) (or, alternatively, [Testing with Hosted Web Demo App](https://www.cybrid.xyz/guides/testing-with-the-web-demo-crypo-app)) In [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started), we walk you through how to use the [Cybrid Sandbox](https://id.demo.cybrid.app/) to create a test bank, generate API keys, and set banks fees. In [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. If you've already run through the first two guides, you can follow the [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) guide to test our web SDK with your sandbox `bank` and `customer`. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API Clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), Apple-coming soon) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of API's reside. *The complete set of APIs can be found on the following pages:* | API | Description | |----------------------------------------------------------------|------------------------------| | [Organization API](https://organization.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.demo.cybrid.app). An `Organization` Token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` Token is specific to an individual Bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `bearer token` for use in testing the API or demo applications. ``` curl -X POST https://id.demo.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write accounts:read accounts:execute customers:read customers:write customers:execute prices:read quotes:execute trades:execute trades:read\" }' -H \"Content-Type: application/json\" ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization or a Bank token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope | Write scope | Execute scope | Token Type | |---------------|--------------------|----------------------|-------------------|--------------------| | Organizations | organizations:read | organizations:write | | Organization/ Bank | | Banks | banks:read | banks:write | banks:execute | Organization/ Bank | | Customers | customers:read | customers:write | customers:execute | Bank | | Assets | prices:read | | | Bank | | Accounts | accounts:read | | accounts:execute | Bank | | Prices | prices:read | | | Bank | | Symbols | prices:read | | | Bank | | Quotes | quotes:read | | quotes:execute | Bank | | Trades | trades:read | | trades:execute | Bank | | Rewards | rewards:read | | rewards:execute | Bank | ## Available Endpoints The available API's for the [Identity](https://id.demo.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.demo.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.demo.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Sevice | Model | API Endpoint Path | Description | | ------------ | ---------------- | ------------------------------ | ------------------------------------------------------------------------- | | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | Organization | /api/organization_applications | Create and list organizations | | Organization | Organization | /api/organizations | API's to retrieve and update organization name | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | VerificationKey | /api/bank_verification_keys | Create, list and retrive verification keys, used for signing identities | | Bank | Banks | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | FeeConfiguration | /api/fee_configurations | Create and list bank fees (spread or fixed) | | Bank | Customers | /api/customers | Create and list customers | | Bank | IdentityRecord | /api/identity_records | Create and list identity records, which are attached to customers for KYC | | Bank | Accounts | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Symbols | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Prices | /api/prices | Get the current prices for assets on the platform | | Bank | Quotes | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Trades | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Rewards | /api/rewards | Create a new reward (automates quote/trade for simplicity) | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `Customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where Sandbox is the environment that you would test, prototype and build in prior to production. An `Organization` can have multiple `banks`, in either sandbox or production environments. A sandbox Bank will be backed by stubbed data and process flows. For instance, funding source processes will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amout of simulated fiat currency for testing purposes. ## Customers `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified in our system before they can play any part on the platform, which means they must have an associated and valid `Identity Record`. See the Identity Records section for more details on how a customer can be verified. `Customers` must also have an `account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
5
5
 
6
- The version of the OpenAPI document: v0.27.0
6
+ The version of the OpenAPI document: v0.37.25
7
7
  Contact: support@cybrid.app
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0
@@ -153,8 +153,8 @@ module CybridApiBank
153
153
  # Get quotes list
154
154
  # Retrieves a listing of quotes for all customers of a bank. Required scope: **quotes:read**
155
155
  # @param [Hash] opts the optional parameters
156
- # @option opts [Integer] :page (default to 0)
157
- # @option opts [Integer] :per_page (default to 10)
156
+ # @option opts [Integer] :page
157
+ # @option opts [Integer] :per_page
158
158
  # @option opts [String] :guid Comma separated quote_guids to list quotes for.
159
159
  # @option opts [String] :bank_guid Comma separated bank_guids to list quotes for.
160
160
  # @option opts [String] :customer_guid Comma separated customer_guids to list quotes for.
@@ -167,8 +167,8 @@ module CybridApiBank
167
167
  # Get quotes list
168
168
  # Retrieves a listing of quotes for all customers of a bank. Required scope: **quotes:read**
169
169
  # @param [Hash] opts the optional parameters
170
- # @option opts [Integer] :page (default to 0)
171
- # @option opts [Integer] :per_page (default to 10)
170
+ # @option opts [Integer] :page
171
+ # @option opts [Integer] :per_page
172
172
  # @option opts [String] :guid Comma separated quote_guids to list quotes for.
173
173
  # @option opts [String] :bank_guid Comma separated bank_guids to list quotes for.
174
174
  # @option opts [String] :customer_guid Comma separated customer_guids to list quotes for.