hydrogen-integration-api 1.3.1

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 (449) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +87 -0
  4. data/Rakefile +8 -0
  5. data/git_push.sh +55 -0
  6. data/integration_api.gemspec +46 -0
  7. data/lib/integration_api.rb +257 -0
  8. data/lib/integration_api/api/accounting_api.rb +870 -0
  9. data/lib/integration_api/api/ach_api.rb +1109 -0
  10. data/lib/integration_api/api/aggregation_api.rb +616 -0
  11. data/lib/integration_api/api/async_api.rb +263 -0
  12. data/lib/integration_api/api/baas_api.rb +518 -0
  13. data/lib/integration_api/api/brokerage_api.rb +1091 -0
  14. data/lib/integration_api/api/card_api.rb +1651 -0
  15. data/lib/integration_api/api/iav_api.rb +186 -0
  16. data/lib/integration_api/api/kms_api.rb +301 -0
  17. data/lib/integration_api/api/kyc_api.rb +138 -0
  18. data/lib/integration_api/api/market_data_api.rb +127 -0
  19. data/lib/integration_api/api/rtp_api.rb +479 -0
  20. data/lib/integration_api/api/sms_api.rb +129 -0
  21. data/lib/integration_api/api/smtp_api.rb +129 -0
  22. data/lib/integration_api/api/utils_api.rb +296 -0
  23. data/lib/integration_api/api/webhook_api.rb +301 -0
  24. data/lib/integration_api/api/wire_api.rb +479 -0
  25. data/lib/integration_api/api_client.rb +392 -0
  26. data/lib/integration_api/api_error.rb +38 -0
  27. data/lib/integration_api/auth_configuration.rb +181 -0
  28. data/lib/integration_api/configuration.rb +209 -0
  29. data/lib/integration_api/environment.rb +26 -0
  30. data/lib/integration_api/models/accounting_customer_response_vo.rb +200 -0
  31. data/lib/integration_api/models/accounting_customer_revenue_response_vo.rb +199 -0
  32. data/lib/integration_api/models/accounting_final_response_vo.rb +252 -0
  33. data/lib/integration_api/models/accounting_invoice_payment_response_vo.rb +199 -0
  34. data/lib/integration_api/models/accounting_invoice_response_vo.rb +199 -0
  35. data/lib/integration_api/models/accounting_stats_response_vo.rb +199 -0
  36. data/lib/integration_api/models/ach_balance_response_vo.rb +230 -0
  37. data/lib/integration_api/models/ach_bank_link_request_co.rb +199 -0
  38. data/lib/integration_api/models/ach_bank_link_response_vo.rb +235 -0
  39. data/lib/integration_api/models/ach_beneficial_owner_request_co.rb +190 -0
  40. data/lib/integration_api/models/ach_beneficial_owner_response_vo.rb +208 -0
  41. data/lib/integration_api/models/ach_business_balance_response_vo.rb +226 -0
  42. data/lib/integration_api/models/ach_business_request_co.rb +199 -0
  43. data/lib/integration_api/models/ach_business_response_vo.rb +217 -0
  44. data/lib/integration_api/models/ach_card_link_request_co.rb +190 -0
  45. data/lib/integration_api/models/ach_card_link_response_vo.rb +217 -0
  46. data/lib/integration_api/models/ach_card_load_response_vo.rb +190 -0
  47. data/lib/integration_api/models/ach_card_request_co.rb +182 -0
  48. data/lib/integration_api/models/ach_card_reserve_request_co.rb +181 -0
  49. data/lib/integration_api/models/ach_card_reserve_response_vo.rb +217 -0
  50. data/lib/integration_api/models/ach_card_response_vo.rb +218 -0
  51. data/lib/integration_api/models/ach_client_request_co.rb +199 -0
  52. data/lib/integration_api/models/ach_client_response_vo.rb +217 -0
  53. data/lib/integration_api/models/ach_reserve_link_request_co.rb +181 -0
  54. data/lib/integration_api/models/ach_reserve_link_response_vo.rb +219 -0
  55. data/lib/integration_api/models/ach_status_response_vo.rb +260 -0
  56. data/lib/integration_api/models/ach_transfer_request_co.rb +199 -0
  57. data/lib/integration_api/models/ach_transfer_response_vo.rb +244 -0
  58. data/lib/integration_api/models/acquiree.rb +199 -0
  59. data/lib/integration_api/models/acquirer.rb +199 -0
  60. data/lib/integration_api/models/address.rb +278 -0
  61. data/lib/integration_api/models/aggregation_account.rb +495 -0
  62. data/lib/integration_api/models/aggregation_account_balance.rb +292 -0
  63. data/lib/integration_api/models/aggregation_account_balance_response_vo.rb +208 -0
  64. data/lib/integration_api/models/aggregation_account_holding.rb +370 -0
  65. data/lib/integration_api/models/aggregation_account_holding_response_internal_object_vo.rb +199 -0
  66. data/lib/integration_api/models/aggregation_account_holding_response_vo.rb +210 -0
  67. data/lib/integration_api/models/aggregation_account_response_internal_object_vo.rb +199 -0
  68. data/lib/integration_api/models/aggregation_account_response_vo.rb +208 -0
  69. data/lib/integration_api/models/aggregation_account_transaction.rb +329 -0
  70. data/lib/integration_api/models/aggregation_account_transaction_response_internal_object_vo.rb +199 -0
  71. data/lib/integration_api/models/aggregation_account_transaction_response_vo.rb +221 -0
  72. data/lib/integration_api/models/aggregation_accounts_response_vo.rb +210 -0
  73. data/lib/integration_api/models/aggregation_request_object.rb +226 -0
  74. data/lib/integration_api/models/aggregation_vendor_request_co.rb +199 -0
  75. data/lib/integration_api/models/apple_payload.rb +199 -0
  76. data/lib/integration_api/models/async_transaction.rb +217 -0
  77. data/lib/integration_api/models/async_transaction_vo.rb +199 -0
  78. data/lib/integration_api/models/attachment_vo.rb +199 -0
  79. data/lib/integration_api/models/baas_account_co.rb +190 -0
  80. data/lib/integration_api/models/baas_account_vo.rb +253 -0
  81. data/lib/integration_api/models/baas_balance_vo.rb +221 -0
  82. data/lib/integration_api/models/baas_business_vo.rb +237 -0
  83. data/lib/integration_api/models/baas_client_vo.rb +237 -0
  84. data/lib/integration_api/models/baas_statement_vo.rb +226 -0
  85. data/lib/integration_api/models/baas_statements_vo.rb +201 -0
  86. data/lib/integration_api/models/baas_sub_account_co.rb +181 -0
  87. data/lib/integration_api/models/baas_sub_account_vo.rb +244 -0
  88. data/lib/integration_api/models/baas_transactions_vo.rb +221 -0
  89. data/lib/integration_api/models/balances.rb +223 -0
  90. data/lib/integration_api/models/bank_credit.rb +282 -0
  91. data/lib/integration_api/models/bank_link.rb +431 -0
  92. data/lib/integration_api/models/bank_link_response_internal_object_vo.rb +199 -0
  93. data/lib/integration_api/models/bank_link_vendor_data_vo.rb +190 -0
  94. data/lib/integration_api/models/base_response_vo.rb +199 -0
  95. data/lib/integration_api/models/brokerage_account_co.rb +192 -0
  96. data/lib/integration_api/models/brokerage_account_vo.rb +217 -0
  97. data/lib/integration_api/models/brokerage_balance_vo.rb +228 -0
  98. data/lib/integration_api/models/brokerage_bank_link_co.rb +181 -0
  99. data/lib/integration_api/models/brokerage_bank_link_vo.rb +226 -0
  100. data/lib/integration_api/models/brokerage_create_client_co.rb +192 -0
  101. data/lib/integration_api/models/brokerage_create_client_vo.rb +217 -0
  102. data/lib/integration_api/models/brokerage_deposit_co.rb +181 -0
  103. data/lib/integration_api/models/brokerage_deposit_vo.rb +217 -0
  104. data/lib/integration_api/models/brokerage_document_co.rb +190 -0
  105. data/lib/integration_api/models/brokerage_document_vo.rb +226 -0
  106. data/lib/integration_api/models/brokerage_holding_vo.rb +226 -0
  107. data/lib/integration_api/models/brokerage_order_co.rb +181 -0
  108. data/lib/integration_api/models/brokerage_order_vo.rb +226 -0
  109. data/lib/integration_api/models/brokerage_performance_vo.rb +226 -0
  110. data/lib/integration_api/models/brokerage_securities_vo.rb +217 -0
  111. data/lib/integration_api/models/brokerage_statement_vo.rb +199 -0
  112. data/lib/integration_api/models/brokerage_transaction_vo.rb +226 -0
  113. data/lib/integration_api/models/brokerage_update_client_co.rb +183 -0
  114. data/lib/integration_api/models/brokerage_update_client_vo.rb +237 -0
  115. data/lib/integration_api/models/brokerage_withdrawal_co.rb +181 -0
  116. data/lib/integration_api/models/brokerage_withdrawal_vo.rb +217 -0
  117. data/lib/integration_api/models/business_address.rb +253 -0
  118. data/lib/integration_api/models/business_status_response_vo.rb +217 -0
  119. data/lib/integration_api/models/business_vendor_request_data_vo.rb +313 -0
  120. data/lib/integration_api/models/card_auto_reload_request_co.rb +208 -0
  121. data/lib/integration_api/models/card_auto_reload_response_vo.rb +226 -0
  122. data/lib/integration_api/models/card_balance_response_vo.rb +230 -0
  123. data/lib/integration_api/models/card_base_request_co.rb +199 -0
  124. data/lib/integration_api/models/card_business_request_co.rb +181 -0
  125. data/lib/integration_api/models/card_client_request_co.rb +192 -0
  126. data/lib/integration_api/models/card_load_request_co.rb +190 -0
  127. data/lib/integration_api/models/card_load_unload_response_vo.rb +235 -0
  128. data/lib/integration_api/models/card_pin_request_co.rb +208 -0
  129. data/lib/integration_api/models/card_replace_response_vo.rb +235 -0
  130. data/lib/integration_api/models/card_reserve_account_response_vo.rb +235 -0
  131. data/lib/integration_api/models/card_reserve_transfer_request_co.rb +181 -0
  132. data/lib/integration_api/models/card_reserve_transfer_response_vo.rb +217 -0
  133. data/lib/integration_api/models/card_spending_control_request_co.rb +181 -0
  134. data/lib/integration_api/models/card_spending_control_response_vo.rb +217 -0
  135. data/lib/integration_api/models/card_token_request_co.rb +242 -0
  136. data/lib/integration_api/models/card_token_response_vo.rb +278 -0
  137. data/lib/integration_api/models/card_transaction_response_vo.rb +230 -0
  138. data/lib/integration_api/models/card_unload_request_co.rb +190 -0
  139. data/lib/integration_api/models/card_update_pin_request_co.rb +208 -0
  140. data/lib/integration_api/models/cash.rb +213 -0
  141. data/lib/integration_api/models/client_address.rb +283 -0
  142. data/lib/integration_api/models/client_vendor_request_data_vo.rb +340 -0
  143. data/lib/integration_api/models/contact.rb +356 -0
  144. data/lib/integration_api/models/contact_address.rb +268 -0
  145. data/lib/integration_api/models/create_baas_business_co.rb +192 -0
  146. data/lib/integration_api/models/create_baas_client_co.rb +192 -0
  147. data/lib/integration_api/models/create_business_response_vo.rb +217 -0
  148. data/lib/integration_api/models/create_card_client_response_vo.rb +217 -0
  149. data/lib/integration_api/models/create_user_request.rb +235 -0
  150. data/lib/integration_api/models/customer_revenue.rb +296 -0
  151. data/lib/integration_api/models/dividend.rb +199 -0
  152. data/lib/integration_api/models/dividend_tax.rb +190 -0
  153. data/lib/integration_api/models/email.rb +359 -0
  154. data/lib/integration_api/models/email_click.rb +220 -0
  155. data/lib/integration_api/models/email_open.rb +205 -0
  156. data/lib/integration_api/models/exchange_public_token_vo.rb +227 -0
  157. data/lib/integration_api/models/exchange_token_co.rb +235 -0
  158. data/lib/integration_api/models/financial_statement.rb +362 -0
  159. data/lib/integration_api/models/get_card_image_response_vo.rb +217 -0
  160. data/lib/integration_api/models/get_card_pci_details_response_vo.rb +235 -0
  161. data/lib/integration_api/models/get_card_statement_response_vo.rb +282 -0
  162. data/lib/integration_api/models/get_card_token_response_vo.rb +278 -0
  163. data/lib/integration_api/models/get_transactions_response.rb +183 -0
  164. data/lib/integration_api/models/google_payload.rb +181 -0
  165. data/lib/integration_api/models/iav_aggregation_response_vo.rb +190 -0
  166. data/lib/integration_api/models/iav_bank_link_response_vo.rb +192 -0
  167. data/lib/integration_api/models/iav_request_co.rb +244 -0
  168. data/lib/integration_api/models/iav_response_vo.rb +199 -0
  169. data/lib/integration_api/models/iav_token_exchange_vendor_response_vo.rb +172 -0
  170. data/lib/integration_api/models/iav_vendor_request_co.rb +199 -0
  171. data/lib/integration_api/models/identification.rb +235 -0
  172. data/lib/integration_api/models/instrument.rb +199 -0
  173. data/lib/integration_api/models/investment.rb +283 -0
  174. data/lib/integration_api/models/invoice.rb +472 -0
  175. data/lib/integration_api/models/invoice_payment.rb +269 -0
  176. data/lib/integration_api/models/json_node.rb +172 -0
  177. data/lib/integration_api/models/kms_config.rb +307 -0
  178. data/lib/integration_api/models/kyc_request_co.rb +255 -0
  179. data/lib/integration_api/models/kyc_response_vo.rb +271 -0
  180. data/lib/integration_api/models/kyc_vendor_request_data_vo.rb +385 -0
  181. data/lib/integration_api/models/line_items.rb +278 -0
  182. data/lib/integration_api/models/location.rb +253 -0
  183. data/lib/integration_api/models/mapstringobject.rb +172 -0
  184. data/lib/integration_api/models/md_history_item_vo.rb +235 -0
  185. data/lib/integration_api/models/md_history_request_co.rb +221 -0
  186. data/lib/integration_api/models/md_history_response_vo.rb +183 -0
  187. data/lib/integration_api/models/md_quote_item_vo.rb +352 -0
  188. data/lib/integration_api/models/md_quote_request_co.rb +246 -0
  189. data/lib/integration_api/models/md_quote_response_vo.rb +183 -0
  190. data/lib/integration_api/models/merger_acquisition.rb +199 -0
  191. data/lib/integration_api/models/nucleus_transfer_fields_co.rb +190 -0
  192. data/lib/integration_api/models/ownership.rb +190 -0
  193. data/lib/integration_api/models/page_ach_transfer_response_vo.rb +258 -0
  194. data/lib/integration_api/models/page_kms_config.rb +258 -0
  195. data/lib/integration_api/models/page_webhook.rb +258 -0
  196. data/lib/integration_api/models/pageobject.rb +258 -0
  197. data/lib/integration_api/models/politically_exposed_person_dto.rb +208 -0
  198. data/lib/integration_api/models/portfolio_asset_size_log.rb +329 -0
  199. data/lib/integration_api/models/property_value_response_vo.rb +226 -0
  200. data/lib/integration_api/models/response_entity.rb +233 -0
  201. data/lib/integration_api/models/rtp_bank_link_request_co.rb +190 -0
  202. data/lib/integration_api/models/rtp_bank_link_response_vo.rb +235 -0
  203. data/lib/integration_api/models/rtp_transfer_request_co.rb +190 -0
  204. data/lib/integration_api/models/rtp_transfer_response_vo.rb +226 -0
  205. data/lib/integration_api/models/samsung_payload.rb +181 -0
  206. data/lib/integration_api/models/sms.rb +335 -0
  207. data/lib/integration_api/models/sms_response_vo.rb +226 -0
  208. data/lib/integration_api/models/smsvo.rb +217 -0
  209. data/lib/integration_api/models/smtp_response_vo.rb +226 -0
  210. data/lib/integration_api/models/smtp_vo.rb +273 -0
  211. data/lib/integration_api/models/sort.rb +233 -0
  212. data/lib/integration_api/models/spending_control_vendor_request_data_vo.rb +255 -0
  213. data/lib/integration_api/models/stat.rb +203 -0
  214. data/lib/integration_api/models/transaction.rb +370 -0
  215. data/lib/integration_api/models/update_baas_business_co.rb +183 -0
  216. data/lib/integration_api/models/update_baas_client_co.rb +183 -0
  217. data/lib/integration_api/models/update_business_response_vo.rb +217 -0
  218. data/lib/integration_api/models/update_card_client_response_vo.rb +217 -0
  219. data/lib/integration_api/models/user_response_interface.rb +172 -0
  220. data/lib/integration_api/models/user_response_vo.rb +235 -0
  221. data/lib/integration_api/models/vendor_access_config_vo.rb +202 -0
  222. data/lib/integration_api/models/webhook.rb +277 -0
  223. data/lib/integration_api/models/widget_url_vo.rb +190 -0
  224. data/lib/integration_api/models/wire_bank_link_request_co.rb +190 -0
  225. data/lib/integration_api/models/wire_bank_link_response_vo.rb +235 -0
  226. data/lib/integration_api/models/wire_transfer_request_co.rb +190 -0
  227. data/lib/integration_api/models/wire_transfer_response_vo.rb +226 -0
  228. data/lib/integration_api/models/zillow_property_vendor_response_vo.rb +217 -0
  229. data/lib/integration_api/version.rb +15 -0
  230. data/spec/api/accounting_api_spec.rb +234 -0
  231. data/spec/api/ach_api_spec.rb +259 -0
  232. data/spec/api/aggregation_api_spec.rb +172 -0
  233. data/spec/api/async_api_spec.rb +88 -0
  234. data/spec/api/baas_api_spec.rb +143 -0
  235. data/spec/api/brokerage_api_spec.rb +264 -0
  236. data/spec/api/card_api_spec.rb +385 -0
  237. data/spec/api/iav_api_spec.rb +73 -0
  238. data/spec/api/kms_api_spec.rb +100 -0
  239. data/spec/api/kyc_api_spec.rb +63 -0
  240. data/spec/api/market_data_api_spec.rb +57 -0
  241. data/spec/api/rtp_api_spec.rb +134 -0
  242. data/spec/api/sms_api_spec.rb +59 -0
  243. data/spec/api/smtp_api_spec.rb +59 -0
  244. data/spec/api/utils_api_spec.rb +104 -0
  245. data/spec/api/webhook_api_spec.rb +100 -0
  246. data/spec/api/wire_api_spec.rb +134 -0
  247. data/spec/api_client_spec.rb +243 -0
  248. data/spec/configuration_spec.rb +42 -0
  249. data/spec/models/accounting_customer_response_vo_spec.rb +53 -0
  250. data/spec/models/accounting_customer_revenue_response_vo_spec.rb +53 -0
  251. data/spec/models/accounting_final_response_vo_spec.rb +83 -0
  252. data/spec/models/accounting_invoice_payment_response_vo_spec.rb +53 -0
  253. data/spec/models/accounting_invoice_response_vo_spec.rb +53 -0
  254. data/spec/models/accounting_stats_response_vo_spec.rb +53 -0
  255. data/spec/models/ach_balance_response_vo_spec.rb +71 -0
  256. data/spec/models/ach_bank_link_request_co_spec.rb +53 -0
  257. data/spec/models/ach_bank_link_response_vo_spec.rb +77 -0
  258. data/spec/models/ach_beneficial_owner_request_co_spec.rb +47 -0
  259. data/spec/models/ach_beneficial_owner_response_vo_spec.rb +59 -0
  260. data/spec/models/ach_business_balance_response_vo_spec.rb +71 -0
  261. data/spec/models/ach_business_request_co_spec.rb +53 -0
  262. data/spec/models/ach_business_response_vo_spec.rb +65 -0
  263. data/spec/models/ach_card_link_request_co_spec.rb +47 -0
  264. data/spec/models/ach_card_link_response_vo_spec.rb +65 -0
  265. data/spec/models/ach_card_load_response_vo_spec.rb +47 -0
  266. data/spec/models/ach_card_request_co_spec.rb +41 -0
  267. data/spec/models/ach_card_reserve_request_co_spec.rb +41 -0
  268. data/spec/models/ach_card_reserve_response_vo_spec.rb +65 -0
  269. data/spec/models/ach_card_response_vo_spec.rb +65 -0
  270. data/spec/models/ach_client_request_co_spec.rb +53 -0
  271. data/spec/models/ach_client_response_vo_spec.rb +65 -0
  272. data/spec/models/ach_reserve_link_request_co_spec.rb +41 -0
  273. data/spec/models/ach_reserve_link_response_vo_spec.rb +65 -0
  274. data/spec/models/ach_status_response_vo_spec.rb +75 -0
  275. data/spec/models/ach_transfer_request_co_spec.rb +53 -0
  276. data/spec/models/ach_transfer_response_vo_spec.rb +83 -0
  277. data/spec/models/acquiree_spec.rb +53 -0
  278. data/spec/models/acquirer_spec.rb +53 -0
  279. data/spec/models/address_spec.rb +87 -0
  280. data/spec/models/aggregation_account_balance_response_vo_spec.rb +59 -0
  281. data/spec/models/aggregation_account_balance_spec.rb +101 -0
  282. data/spec/models/aggregation_account_holding_response_internal_object_vo_spec.rb +53 -0
  283. data/spec/models/aggregation_account_holding_response_vo_spec.rb +59 -0
  284. data/spec/models/aggregation_account_holding_spec.rb +155 -0
  285. data/spec/models/aggregation_account_response_internal_object_vo_spec.rb +53 -0
  286. data/spec/models/aggregation_account_response_vo_spec.rb +59 -0
  287. data/spec/models/aggregation_account_spec.rb +221 -0
  288. data/spec/models/aggregation_account_transaction_response_internal_object_vo_spec.rb +53 -0
  289. data/spec/models/aggregation_account_transaction_response_vo_spec.rb +65 -0
  290. data/spec/models/aggregation_account_transaction_spec.rb +125 -0
  291. data/spec/models/aggregation_accounts_response_vo_spec.rb +59 -0
  292. data/spec/models/aggregation_request_object_spec.rb +71 -0
  293. data/spec/models/aggregation_vendor_request_co_spec.rb +53 -0
  294. data/spec/models/apple_payload_spec.rb +53 -0
  295. data/spec/models/async_transaction_spec.rb +65 -0
  296. data/spec/models/async_transaction_vo_spec.rb +53 -0
  297. data/spec/models/attachment_vo_spec.rb +53 -0
  298. data/spec/models/baas_account_co_spec.rb +47 -0
  299. data/spec/models/baas_account_vo_spec.rb +89 -0
  300. data/spec/models/baas_balance_vo_spec.rb +65 -0
  301. data/spec/models/baas_business_vo_spec.rb +77 -0
  302. data/spec/models/baas_client_vo_spec.rb +77 -0
  303. data/spec/models/baas_statement_vo_spec.rb +71 -0
  304. data/spec/models/baas_statements_vo_spec.rb +53 -0
  305. data/spec/models/baas_sub_account_co_spec.rb +41 -0
  306. data/spec/models/baas_sub_account_vo_spec.rb +83 -0
  307. data/spec/models/baas_transactions_vo_spec.rb +65 -0
  308. data/spec/models/balances_spec.rb +65 -0
  309. data/spec/models/bank_credit_spec.rb +95 -0
  310. data/spec/models/bank_link_response_internal_object_vo_spec.rb +53 -0
  311. data/spec/models/bank_link_spec.rb +179 -0
  312. data/spec/models/bank_link_vendor_data_vo_spec.rb +47 -0
  313. data/spec/models/base_response_vo_spec.rb +53 -0
  314. data/spec/models/brokerage_account_co_spec.rb +47 -0
  315. data/spec/models/brokerage_account_vo_spec.rb +65 -0
  316. data/spec/models/brokerage_balance_vo_spec.rb +71 -0
  317. data/spec/models/brokerage_bank_link_co_spec.rb +41 -0
  318. data/spec/models/brokerage_bank_link_vo_spec.rb +71 -0
  319. data/spec/models/brokerage_create_client_co_spec.rb +47 -0
  320. data/spec/models/brokerage_create_client_vo_spec.rb +65 -0
  321. data/spec/models/brokerage_deposit_co_spec.rb +41 -0
  322. data/spec/models/brokerage_deposit_vo_spec.rb +65 -0
  323. data/spec/models/brokerage_document_co_spec.rb +47 -0
  324. data/spec/models/brokerage_document_vo_spec.rb +71 -0
  325. data/spec/models/brokerage_holding_vo_spec.rb +71 -0
  326. data/spec/models/brokerage_order_co_spec.rb +41 -0
  327. data/spec/models/brokerage_order_vo_spec.rb +71 -0
  328. data/spec/models/brokerage_performance_vo_spec.rb +71 -0
  329. data/spec/models/brokerage_securities_vo_spec.rb +65 -0
  330. data/spec/models/brokerage_statement_vo_spec.rb +53 -0
  331. data/spec/models/brokerage_transaction_vo_spec.rb +71 -0
  332. data/spec/models/brokerage_update_client_co_spec.rb +41 -0
  333. data/spec/models/brokerage_update_client_vo_spec.rb +77 -0
  334. data/spec/models/brokerage_withdrawal_co_spec.rb +41 -0
  335. data/spec/models/brokerage_withdrawal_vo_spec.rb +65 -0
  336. data/spec/models/business_address_spec.rb +83 -0
  337. data/spec/models/business_status_response_vo_spec.rb +65 -0
  338. data/spec/models/business_vendor_request_data_vo_spec.rb +125 -0
  339. data/spec/models/card_auto_reload_request_co_spec.rb +59 -0
  340. data/spec/models/card_auto_reload_response_vo_spec.rb +71 -0
  341. data/spec/models/card_balance_response_vo_spec.rb +71 -0
  342. data/spec/models/card_base_request_co_spec.rb +53 -0
  343. data/spec/models/card_business_request_co_spec.rb +41 -0
  344. data/spec/models/card_client_request_co_spec.rb +47 -0
  345. data/spec/models/card_load_request_co_spec.rb +47 -0
  346. data/spec/models/card_load_unload_response_vo_spec.rb +77 -0
  347. data/spec/models/card_pin_request_co_spec.rb +59 -0
  348. data/spec/models/card_replace_response_vo_spec.rb +77 -0
  349. data/spec/models/card_reserve_account_response_vo_spec.rb +77 -0
  350. data/spec/models/card_reserve_transfer_request_co_spec.rb +41 -0
  351. data/spec/models/card_reserve_transfer_response_vo_spec.rb +65 -0
  352. data/spec/models/card_spending_control_request_co_spec.rb +41 -0
  353. data/spec/models/card_spending_control_response_vo_spec.rb +65 -0
  354. data/spec/models/card_token_request_co_spec.rb +63 -0
  355. data/spec/models/card_token_response_vo_spec.rb +87 -0
  356. data/spec/models/card_transaction_response_vo_spec.rb +71 -0
  357. data/spec/models/card_unload_request_co_spec.rb +47 -0
  358. data/spec/models/card_update_pin_request_co_spec.rb +59 -0
  359. data/spec/models/cash_spec.rb +53 -0
  360. data/spec/models/client_address_spec.rb +87 -0
  361. data/spec/models/client_vendor_request_data_vo_spec.rb +143 -0
  362. data/spec/models/contact_address_spec.rb +77 -0
  363. data/spec/models/contact_spec.rb +143 -0
  364. data/spec/models/create_baas_business_co_spec.rb +47 -0
  365. data/spec/models/create_baas_client_co_spec.rb +47 -0
  366. data/spec/models/create_business_response_vo_spec.rb +65 -0
  367. data/spec/models/create_card_client_response_vo_spec.rb +65 -0
  368. data/spec/models/create_user_request_spec.rb +77 -0
  369. data/spec/models/customer_revenue_spec.rb +95 -0
  370. data/spec/models/dividend_spec.rb +53 -0
  371. data/spec/models/dividend_tax_spec.rb +47 -0
  372. data/spec/models/email_click_spec.rb +59 -0
  373. data/spec/models/email_open_spec.rb +53 -0
  374. data/spec/models/email_spec.rb +149 -0
  375. data/spec/models/exchange_public_token_vo_spec.rb +71 -0
  376. data/spec/models/exchange_token_co_spec.rb +77 -0
  377. data/spec/models/financial_statement_spec.rb +137 -0
  378. data/spec/models/get_card_image_response_vo_spec.rb +65 -0
  379. data/spec/models/get_card_pci_details_response_vo_spec.rb +77 -0
  380. data/spec/models/get_card_statement_response_vo_spec.rb +107 -0
  381. data/spec/models/get_card_token_response_vo_spec.rb +87 -0
  382. data/spec/models/get_transactions_response_spec.rb +41 -0
  383. data/spec/models/google_payload_spec.rb +41 -0
  384. data/spec/models/iav_aggregation_response_vo_spec.rb +47 -0
  385. data/spec/models/iav_bank_link_response_vo_spec.rb +47 -0
  386. data/spec/models/iav_request_co_spec.rb +83 -0
  387. data/spec/models/iav_response_vo_spec.rb +53 -0
  388. data/spec/models/iav_token_exchange_vendor_response_vo_spec.rb +35 -0
  389. data/spec/models/iav_vendor_request_co_spec.rb +53 -0
  390. data/spec/models/identification_spec.rb +77 -0
  391. data/spec/models/instrument_spec.rb +53 -0
  392. data/spec/models/investment_spec.rb +89 -0
  393. data/spec/models/invoice_payment_spec.rb +83 -0
  394. data/spec/models/invoice_spec.rb +197 -0
  395. data/spec/models/json_node_spec.rb +35 -0
  396. data/spec/models/kms_config_spec.rb +107 -0
  397. data/spec/models/kyc_request_co_spec.rb +89 -0
  398. data/spec/models/kyc_response_vo_spec.rb +101 -0
  399. data/spec/models/kyc_vendor_request_data_vo_spec.rb +173 -0
  400. data/spec/models/line_items_spec.rb +83 -0
  401. data/spec/models/location_spec.rb +83 -0
  402. data/spec/models/mapstringobject_spec.rb +35 -0
  403. data/spec/models/md_history_item_vo_spec.rb +77 -0
  404. data/spec/models/md_history_request_co_spec.rb +65 -0
  405. data/spec/models/md_history_response_vo_spec.rb +41 -0
  406. data/spec/models/md_quote_item_vo_spec.rb +155 -0
  407. data/spec/models/md_quote_request_co_spec.rb +63 -0
  408. data/spec/models/md_quote_response_vo_spec.rb +41 -0
  409. data/spec/models/merger_acquisition_spec.rb +53 -0
  410. data/spec/models/nucleus_transfer_fields_co_spec.rb +47 -0
  411. data/spec/models/ownership_spec.rb +47 -0
  412. data/spec/models/page_ach_transfer_response_vo_spec.rb +89 -0
  413. data/spec/models/page_kms_config_spec.rb +89 -0
  414. data/spec/models/page_webhook_spec.rb +89 -0
  415. data/spec/models/pageobject_spec.rb +89 -0
  416. data/spec/models/politically_exposed_person_dto_spec.rb +59 -0
  417. data/spec/models/portfolio_asset_size_log_spec.rb +113 -0
  418. data/spec/models/property_value_response_vo_spec.rb +71 -0
  419. data/spec/models/response_entity_spec.rb +57 -0
  420. data/spec/models/rtp_bank_link_request_co_spec.rb +47 -0
  421. data/spec/models/rtp_bank_link_response_vo_spec.rb +77 -0
  422. data/spec/models/rtp_transfer_request_co_spec.rb +47 -0
  423. data/spec/models/rtp_transfer_response_vo_spec.rb +71 -0
  424. data/spec/models/samsung_payload_spec.rb +41 -0
  425. data/spec/models/sms_response_vo_spec.rb +71 -0
  426. data/spec/models/sms_spec.rb +137 -0
  427. data/spec/models/smsvo_spec.rb +65 -0
  428. data/spec/models/smtp_response_vo_spec.rb +71 -0
  429. data/spec/models/smtp_vo_spec.rb +101 -0
  430. data/spec/models/sort_spec.rb +71 -0
  431. data/spec/models/spending_control_vendor_request_data_vo_spec.rb +89 -0
  432. data/spec/models/stat_spec.rb +47 -0
  433. data/spec/models/transaction_spec.rb +167 -0
  434. data/spec/models/update_baas_business_co_spec.rb +41 -0
  435. data/spec/models/update_baas_client_co_spec.rb +41 -0
  436. data/spec/models/update_business_response_vo_spec.rb +65 -0
  437. data/spec/models/update_card_client_response_vo_spec.rb +65 -0
  438. data/spec/models/user_response_interface_spec.rb +35 -0
  439. data/spec/models/user_response_vo_spec.rb +77 -0
  440. data/spec/models/vendor_access_config_vo_spec.rb +53 -0
  441. data/spec/models/webhook_spec.rb +87 -0
  442. data/spec/models/widget_url_vo_spec.rb +47 -0
  443. data/spec/models/wire_bank_link_request_co_spec.rb +47 -0
  444. data/spec/models/wire_bank_link_response_vo_spec.rb +77 -0
  445. data/spec/models/wire_transfer_request_co_spec.rb +47 -0
  446. data/spec/models/wire_transfer_response_vo_spec.rb +71 -0
  447. data/spec/models/zillow_property_vendor_response_vo_spec.rb +65 -0
  448. data/spec/spec_helper.rb +111 -0
  449. metadata +909 -0
@@ -0,0 +1,220 @@
1
+ =begin
2
+ #Hydrogen Integration API
3
+
4
+ #The Hydrogen Integration API
5
+
6
+ OpenAPI spec version: 1.3.1
7
+ Contact: info@hydrogenplatform.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module IntegrationApi
16
+ class EmailClick
17
+ # click_timestamp
18
+ attr_accessor :click_timestamp
19
+
20
+ attr_accessor :email
21
+
22
+ attr_accessor :id
23
+
24
+ # url
25
+ attr_accessor :url
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'click_timestamp' => :'click_timestamp',
31
+ :'email' => :'email',
32
+ :'id' => :'id',
33
+ :'url' => :'url'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.swagger_types
39
+ {
40
+ :'click_timestamp' => :'DateTime',
41
+ :'email' => :'Email',
42
+ :'id' => :'String',
43
+ :'url' => :'String'
44
+ }
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ return unless attributes.is_a?(Hash)
51
+
52
+ # convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
54
+
55
+ if attributes.has_key?(:'click_timestamp')
56
+ self.click_timestamp = attributes[:'click_timestamp']
57
+ end
58
+
59
+ if attributes.has_key?(:'email')
60
+ self.email = attributes[:'email']
61
+ end
62
+
63
+ if attributes.has_key?(:'id')
64
+ self.id = attributes[:'id']
65
+ end
66
+
67
+ if attributes.has_key?(:'url')
68
+ self.url = attributes[:'url']
69
+ end
70
+ end
71
+
72
+ # Show invalid properties with the reasons. Usually used together with valid?
73
+ # @return Array for valid properties with the reasons
74
+ def list_invalid_properties
75
+ invalid_properties = Array.new
76
+ if @click_timestamp.nil?
77
+ invalid_properties.push('invalid value for "click_timestamp", click_timestamp cannot be nil.')
78
+ end
79
+
80
+ if @url.nil?
81
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
82
+ end
83
+
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ return false if @click_timestamp.nil?
91
+ return false if @url.nil?
92
+ true
93
+ end
94
+
95
+ # Checks equality by comparing each attribute.
96
+ # @param [Object] Object to be compared
97
+ def ==(o)
98
+ return true if self.equal?(o)
99
+ self.class == o.class &&
100
+ click_timestamp == o.click_timestamp &&
101
+ email == o.email &&
102
+ id == o.id &&
103
+ url == o.url
104
+ end
105
+
106
+ # @see the `==` method
107
+ # @param [Object] Object to be compared
108
+ def eql?(o)
109
+ self == o
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Fixnum] Hash code
114
+ def hash
115
+ [click_timestamp, email, id, url].hash
116
+ end
117
+
118
+ # Builds the object from hash
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ # @return [Object] Returns the model itself
121
+ def build_from_hash(attributes)
122
+ self.class.swagger_types.each_pair do |key, type|
123
+ if type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
132
+ end
133
+
134
+ self
135
+ end
136
+
137
+ # Deserializes the data based on type
138
+ # @param string type Data type
139
+ # @param string value Value to be deserialized
140
+ # @return [Object] Deserialized data
141
+ def _deserialize(type, value)
142
+ case type.to_sym
143
+ when :DateTime
144
+ value
145
+ when :Date
146
+ value
147
+ when :String
148
+ value.to_s
149
+ when :Integer
150
+ value.to_i
151
+ when :Float
152
+ value.to_f
153
+ when :BOOLEAN
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
155
+ true
156
+ else
157
+ false
158
+ end
159
+ when :Object
160
+ # generic object (usually a Hash), return directly
161
+ value
162
+ when /\AArray<(?<inner_type>.+)>\z/
163
+ inner_type = Regexp.last_match[:inner_type]
164
+ value.map { |v| _deserialize(inner_type, v) }
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
166
+ k_type = Regexp.last_match[:k_type]
167
+ v_type = Regexp.last_match[:v_type]
168
+ {}.tap do |hash|
169
+ value.each do |k, v|
170
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
171
+ end
172
+ end
173
+ else # model
174
+ temp_model = IntegrationApi.const_get(type).new
175
+ temp_model.build_from_hash(value)
176
+ end
177
+ end
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ # Outputs non-array value in the form of hash
202
+ # For object, use to_hash. Otherwise, just return the value
203
+ # @param [Object] value Any valid value
204
+ # @return [Hash] Returns the value in the form of hash
205
+ def _to_hash(value)
206
+ if value.is_a?(Array)
207
+ value.compact.map { |v| _to_hash(v) }
208
+ elsif value.is_a?(Hash)
209
+ {}.tap do |hash|
210
+ value.each { |k, v| hash[k] = _to_hash(v) }
211
+ end
212
+ elsif value.respond_to? :to_hash
213
+ value.to_hash
214
+ else
215
+ value
216
+ end
217
+ end
218
+
219
+ end
220
+ end
@@ -0,0 +1,205 @@
1
+ =begin
2
+ #Hydrogen Integration API
3
+
4
+ #The Hydrogen Integration API
5
+
6
+ OpenAPI spec version: 1.3.1
7
+ Contact: info@hydrogenplatform.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module IntegrationApi
16
+ class EmailOpen
17
+ attr_accessor :email
18
+
19
+ attr_accessor :id
20
+
21
+ # open_timestamp
22
+ attr_accessor :open_timestamp
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'email' => :'email',
28
+ :'id' => :'id',
29
+ :'open_timestamp' => :'open_timestamp'
30
+ }
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.swagger_types
35
+ {
36
+ :'email' => :'Email',
37
+ :'id' => :'String',
38
+ :'open_timestamp' => :'DateTime'
39
+ }
40
+ end
41
+
42
+ # Initializes the object
43
+ # @param [Hash] attributes Model attributes in the form of hash
44
+ def initialize(attributes = {})
45
+ return unless attributes.is_a?(Hash)
46
+
47
+ # convert string to symbol for hash key
48
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
49
+
50
+ if attributes.has_key?(:'email')
51
+ self.email = attributes[:'email']
52
+ end
53
+
54
+ if attributes.has_key?(:'id')
55
+ self.id = attributes[:'id']
56
+ end
57
+
58
+ if attributes.has_key?(:'open_timestamp')
59
+ self.open_timestamp = attributes[:'open_timestamp']
60
+ end
61
+ end
62
+
63
+ # Show invalid properties with the reasons. Usually used together with valid?
64
+ # @return Array for valid properties with the reasons
65
+ def list_invalid_properties
66
+ invalid_properties = Array.new
67
+ if @open_timestamp.nil?
68
+ invalid_properties.push('invalid value for "open_timestamp", open_timestamp cannot be nil.')
69
+ end
70
+
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ return false if @open_timestamp.nil?
78
+ true
79
+ end
80
+
81
+ # Checks equality by comparing each attribute.
82
+ # @param [Object] Object to be compared
83
+ def ==(o)
84
+ return true if self.equal?(o)
85
+ self.class == o.class &&
86
+ email == o.email &&
87
+ id == o.id &&
88
+ open_timestamp == o.open_timestamp
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Fixnum] Hash code
99
+ def hash
100
+ [email, id, open_timestamp].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ self.class.swagger_types.each_pair do |key, type|
108
+ if type =~ /\AArray<(.*)>/i
109
+ # check to ensure the input is an array given that the attribute
110
+ # is documented as an array but the input is not
111
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
112
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
113
+ end
114
+ elsif !attributes[self.class.attribute_map[key]].nil?
115
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
116
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
117
+ end
118
+
119
+ self
120
+ end
121
+
122
+ # Deserializes the data based on type
123
+ # @param string type Data type
124
+ # @param string value Value to be deserialized
125
+ # @return [Object] Deserialized data
126
+ def _deserialize(type, value)
127
+ case type.to_sym
128
+ when :DateTime
129
+ value
130
+ when :Date
131
+ value
132
+ when :String
133
+ value.to_s
134
+ when :Integer
135
+ value.to_i
136
+ when :Float
137
+ value.to_f
138
+ when :BOOLEAN
139
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
140
+ true
141
+ else
142
+ false
143
+ end
144
+ when :Object
145
+ # generic object (usually a Hash), return directly
146
+ value
147
+ when /\AArray<(?<inner_type>.+)>\z/
148
+ inner_type = Regexp.last_match[:inner_type]
149
+ value.map { |v| _deserialize(inner_type, v) }
150
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
151
+ k_type = Regexp.last_match[:k_type]
152
+ v_type = Regexp.last_match[:v_type]
153
+ {}.tap do |hash|
154
+ value.each do |k, v|
155
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
156
+ end
157
+ end
158
+ else # model
159
+ temp_model = IntegrationApi.const_get(type).new
160
+ temp_model.build_from_hash(value)
161
+ end
162
+ end
163
+ # Returns the string representation of the object
164
+ # @return [String] String presentation of the object
165
+ def to_s
166
+ to_hash.to_s
167
+ end
168
+
169
+ # to_body is an alias to to_hash (backward compatibility)
170
+ # @return [Hash] Returns the object in the form of hash
171
+ def to_body
172
+ to_hash
173
+ end
174
+
175
+ # Returns the object in the form of hash
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_hash
178
+ hash = {}
179
+ self.class.attribute_map.each_pair do |attr, param|
180
+ value = self.send(attr)
181
+ hash[param] = _to_hash(value)
182
+ end
183
+ hash
184
+ end
185
+
186
+ # Outputs non-array value in the form of hash
187
+ # For object, use to_hash. Otherwise, just return the value
188
+ # @param [Object] value Any valid value
189
+ # @return [Hash] Returns the value in the form of hash
190
+ def _to_hash(value)
191
+ if value.is_a?(Array)
192
+ value.compact.map { |v| _to_hash(v) }
193
+ elsif value.is_a?(Hash)
194
+ {}.tap do |hash|
195
+ value.each { |k, v| hash[k] = _to_hash(v) }
196
+ end
197
+ elsif value.respond_to? :to_hash
198
+ value.to_hash
199
+ else
200
+ value
201
+ end
202
+ end
203
+
204
+ end
205
+ end
@@ -0,0 +1,227 @@
1
+ =begin
2
+ #Hydrogen Integration API
3
+
4
+ #The Hydrogen Integration API
5
+
6
+ OpenAPI spec version: 1.3.1
7
+ Contact: info@hydrogenplatform.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.21
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module IntegrationApi
16
+ class ExchangePublicTokenVO
17
+ attr_accessor :integration_type
18
+
19
+ attr_accessor :nucleus_business_id
20
+
21
+ attr_accessor :nucleus_client_id
22
+
23
+ attr_accessor :product
24
+
25
+ attr_accessor :vendor_name
26
+
27
+ attr_accessor :vendor_response
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'integration_type' => :'integration_type',
33
+ :'nucleus_business_id' => :'nucleus_business_id',
34
+ :'nucleus_client_id' => :'nucleus_client_id',
35
+ :'product' => :'product',
36
+ :'vendor_name' => :'vendor_name',
37
+ :'vendor_response' => :'vendor_response'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ :'integration_type' => :'String',
45
+ :'nucleus_business_id' => :'String',
46
+ :'nucleus_client_id' => :'String',
47
+ :'product' => :'String',
48
+ :'vendor_name' => :'String',
49
+ :'vendor_response' => :'Object'
50
+ }
51
+ end
52
+
53
+ # Initializes the object
54
+ # @param [Hash] attributes Model attributes in the form of hash
55
+ def initialize(attributes = {})
56
+ return unless attributes.is_a?(Hash)
57
+
58
+ # convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
+
61
+ if attributes.has_key?(:'integration_type')
62
+ self.integration_type = attributes[:'integration_type']
63
+ end
64
+
65
+ if attributes.has_key?(:'nucleus_business_id')
66
+ self.nucleus_business_id = attributes[:'nucleus_business_id']
67
+ end
68
+
69
+ if attributes.has_key?(:'nucleus_client_id')
70
+ self.nucleus_client_id = attributes[:'nucleus_client_id']
71
+ end
72
+
73
+ if attributes.has_key?(:'product')
74
+ self.product = attributes[:'product']
75
+ end
76
+
77
+ if attributes.has_key?(:'vendor_name')
78
+ self.vendor_name = attributes[:'vendor_name']
79
+ end
80
+
81
+ if attributes.has_key?(:'vendor_response')
82
+ self.vendor_response = attributes[:'vendor_response']
83
+ end
84
+ end
85
+
86
+ # Show invalid properties with the reasons. Usually used together with valid?
87
+ # @return Array for valid properties with the reasons
88
+ def list_invalid_properties
89
+ invalid_properties = Array.new
90
+ invalid_properties
91
+ end
92
+
93
+ # Check to see if the all the properties in the model are valid
94
+ # @return true if the model is valid
95
+ def valid?
96
+ true
97
+ end
98
+
99
+ # Checks equality by comparing each attribute.
100
+ # @param [Object] Object to be compared
101
+ def ==(o)
102
+ return true if self.equal?(o)
103
+ self.class == o.class &&
104
+ integration_type == o.integration_type &&
105
+ nucleus_business_id == o.nucleus_business_id &&
106
+ nucleus_client_id == o.nucleus_client_id &&
107
+ product == o.product &&
108
+ vendor_name == o.vendor_name &&
109
+ vendor_response == o.vendor_response
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Fixnum] Hash code
120
+ def hash
121
+ [integration_type, nucleus_business_id, nucleus_client_id, product, vendor_name, vendor_response].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ self.class.swagger_types.each_pair do |key, type|
129
+ if type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the attribute
131
+ # is documented as an array but the input is not
132
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
133
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
134
+ end
135
+ elsif !attributes[self.class.attribute_map[key]].nil?
136
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
137
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
138
+ end
139
+
140
+ self
141
+ end
142
+
143
+ # Deserializes the data based on type
144
+ # @param string type Data type
145
+ # @param string value Value to be deserialized
146
+ # @return [Object] Deserialized data
147
+ def _deserialize(type, value)
148
+ case type.to_sym
149
+ when :DateTime
150
+ value
151
+ when :Date
152
+ value
153
+ when :String
154
+ value.to_s
155
+ when :Integer
156
+ value.to_i
157
+ when :Float
158
+ value.to_f
159
+ when :BOOLEAN
160
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
161
+ true
162
+ else
163
+ false
164
+ end
165
+ when :Object
166
+ # generic object (usually a Hash), return directly
167
+ value
168
+ when /\AArray<(?<inner_type>.+)>\z/
169
+ inner_type = Regexp.last_match[:inner_type]
170
+ value.map { |v| _deserialize(inner_type, v) }
171
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
+ k_type = Regexp.last_match[:k_type]
173
+ v_type = Regexp.last_match[:v_type]
174
+ {}.tap do |hash|
175
+ value.each do |k, v|
176
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
+ end
178
+ end
179
+ else # model
180
+ temp_model = IntegrationApi.const_get(type).new
181
+ temp_model.build_from_hash(value)
182
+ end
183
+ end
184
+
185
+ # Returns the string representation of the object
186
+ # @return [String] String presentation of the object
187
+ def to_s
188
+ to_hash.to_s
189
+ end
190
+
191
+ # to_body is an alias to to_hash (backward compatibility)
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_body
194
+ to_hash
195
+ end
196
+
197
+ # Returns the object in the form of hash
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_hash
200
+ hash = {}
201
+ self.class.attribute_map.each_pair do |attr, param|
202
+ value = self.send(attr)
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end
225
+
226
+ end
227
+ end