wire4_client 0.0.1.pre.SNAPSHOT → 0.0.9.pre.TEST

Sign up to get free protection for your applications and to get access to all the features.
Files changed (318) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +84 -44
  3. data/docs/Account.md +3 -3
  4. data/docs/AccountDetail.md +13 -0
  5. data/docs/AccountReassigned.md +22 -0
  6. data/docs/AccountResponse.md +6 -3
  7. data/docs/AccountSpid.md +2 -2
  8. data/docs/AddressCompany.md +17 -0
  9. data/docs/AmountRequest.md +2 -0
  10. data/docs/AuthorizationTransactionGroup.md +9 -0
  11. data/docs/AuthorizedBeneficiariesResponse.md +10 -0
  12. data/docs/AuthorizedUsers.md +13 -0
  13. data/docs/AutorizacinDeDepsitosApi.md +113 -0
  14. data/docs/BeneficiariesQueryRegisterStatus.md +13 -0
  15. data/docs/BillingTransaction.md +1 -1
  16. data/docs/CertificateRequest.md +11 -0
  17. data/docs/CodiCodeQrResponseDTO.md +17 -0
  18. data/docs/CodiCodeRequestDTO.md +14 -0
  19. data/docs/CodiOperationResponseDTO.md +14 -0
  20. data/docs/CodiOperationsFiltersRequestDTO.md +15 -0
  21. data/docs/CompanyRegistered.md +13 -0
  22. data/docs/CompanyRequested.md +11 -0
  23. data/docs/Compay.md +11 -0
  24. data/docs/ComprobanteElectrnicoDePagoCEPApi.md +6 -8
  25. data/docs/ConfigurationsLimits.md +9 -0
  26. data/docs/ContactoApi.md +6 -8
  27. data/docs/ContractDetailRequest.md +11 -0
  28. data/docs/ContractDetailResponse.md +9 -0
  29. data/docs/ContractsDetailsApi.md +222 -0
  30. data/docs/CuentasDeBeneficiariosSPEIApi.md +163 -54
  31. data/docs/CuentasDeBeneficiariosSPIDApi.md +73 -8
  32. data/docs/Deposit.md +1 -0
  33. data/docs/DepositAuthorizationRequest.md +10 -0
  34. data/docs/DepositantesApi.md +12 -16
  35. data/docs/DepositsAuthorizationResponse.md +10 -0
  36. data/docs/DetailedErrorResponse.md +10 -0
  37. data/docs/EmpresasCoDiApi.md +107 -0
  38. data/docs/FacturasApi.md +12 -16
  39. data/docs/InstitucionesApi.md +10 -9
  40. data/docs/Item.md +10 -0
  41. data/docs/LmitesDeMontosApi.md +112 -0
  42. data/docs/MessageAccountBeneficiary.md +2 -2
  43. data/docs/MessageCEP.md +9 -9
  44. data/docs/MessageCodiAction.md +19 -0
  45. data/docs/MessageConfigurationsLimits.md +8 -0
  46. data/docs/MessageDepositAuthorizationRequest.md +27 -0
  47. data/docs/MessageDepositReceived.md +1 -0
  48. data/docs/MessagePayment.md +3 -1
  49. data/docs/MessagePaymentStatePending.md +23 -0
  50. data/docs/MessageRequestChanged.md +9 -0
  51. data/docs/MessageSalesPoint.md +10 -0
  52. data/docs/MessageSubscription.md +6 -5
  53. data/docs/MessageUserAuthorized.md +14 -0
  54. data/docs/MessageWebHook.md +2 -2
  55. data/docs/OperacionesCoDiApi.md +68 -0
  56. data/docs/Operations.md +17 -0
  57. data/docs/PagerResponseDto.md +13 -0
  58. data/docs/Payment.md +4 -2
  59. data/docs/PaymentCODI.md +13 -0
  60. data/docs/PaymentRequestCodiResponseDTO.md +18 -0
  61. data/docs/PaymentsRequestId.md +13 -0
  62. data/docs/PeticionesDePagoPorCoDiApi.md +116 -0
  63. data/docs/PreMonexAuthorization.md +11 -0
  64. data/docs/PuntosDeVentaCoDiApi.md +113 -0
  65. data/docs/SaldoApi.md +6 -8
  66. data/docs/SalesPoint.md +10 -0
  67. data/docs/SalesPointFound.md +14 -0
  68. data/docs/SalesPointRequest.md +11 -0
  69. data/docs/SalesPointRespose.md +11 -0
  70. data/docs/SpidBeneficiariesResponse.md +8 -0
  71. data/docs/SpidBeneficiaryResponse.md +20 -0
  72. data/docs/SuscripcionesApi.md +32 -38
  73. data/docs/TransactionErrorCode.md +10 -0
  74. data/docs/TransactionOutgoing.md +2 -1
  75. data/docs/TransferenciasSPEIApi.md +136 -32
  76. data/docs/TransferenciasSPIDApi.md +12 -16
  77. data/docs/UpdateConfigurationsRequestDTO.md +8 -0
  78. data/docs/UrlsRedirect.md +9 -0
  79. data/docs/UserCompany.md +16 -0
  80. data/docs/WebHookDepositAuthorizationRequest.md +9 -0
  81. data/docs/WebHookDepositAuthorizationResponse.md +13 -0
  82. data/docs/Webhook.md +13 -0
  83. data/docs/WebhooksApi.md +22 -25
  84. data/lib/wire4_client.rb +56 -2
  85. data/lib/wire4_client/api/autorizacin_de_depsitos_api.rb +173 -0
  86. data/lib/wire4_client/api/comprobante_electrnico_de_pago_cep_api.rb +12 -5
  87. data/lib/wire4_client/api/contacto_api.rb +12 -5
  88. data/lib/wire4_client/api/contracts_details_api.rb +301 -0
  89. data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +262 -33
  90. data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +104 -5
  91. data/lib/wire4_client/api/depositantes_api.rb +23 -9
  92. data/lib/wire4_client/api/empresas_co_di_api.rb +137 -0
  93. data/lib/wire4_client/api/facturas_api.rb +23 -9
  94. data/lib/wire4_client/api/instituciones_api.rb +12 -5
  95. data/lib/wire4_client/api/lmites_de_montos_api.rb +160 -0
  96. data/lib/wire4_client/api/operaciones_co_di_api.rb +92 -0
  97. data/lib/wire4_client/api/peticiones_de_pago_por_co_di_api.rb +178 -0
  98. data/lib/wire4_client/api/puntos_de_venta_co_di_api.rb +151 -0
  99. data/lib/wire4_client/api/saldo_api.rb +12 -5
  100. data/lib/wire4_client/api/suscripciones_api.rb +48 -27
  101. data/lib/wire4_client/api/transferencias_spei_api.rb +204 -17
  102. data/lib/wire4_client/api/transferencias_spid_api.rb +23 -9
  103. data/lib/wire4_client/api/webhooks_api.rb +34 -13
  104. data/lib/wire4_client/api_client.rb +1 -2
  105. data/lib/wire4_client/api_error.rb +1 -1
  106. data/lib/wire4_client/configuration.rb +1 -22
  107. data/lib/wire4_client/models/account.rb +4 -4
  108. data/lib/wire4_client/models/account_detail.rb +239 -0
  109. data/lib/wire4_client/models/account_reassigned.rb +385 -0
  110. data/lib/wire4_client/models/account_request.rb +1 -1
  111. data/lib/wire4_client/models/account_response.rb +38 -8
  112. data/lib/wire4_client/models/account_spid.rb +3 -3
  113. data/lib/wire4_client/models/address_company.rb +275 -0
  114. data/lib/wire4_client/models/amount_request.rb +91 -5
  115. data/lib/wire4_client/models/authorization_transaction_group.rb +207 -0
  116. data/lib/wire4_client/models/authorized_beneficiaries_response.rb +206 -0
  117. data/lib/wire4_client/models/authorized_users.rb +235 -0
  118. data/lib/wire4_client/models/balance.rb +1 -1
  119. data/lib/wire4_client/models/balance_list_response.rb +1 -1
  120. data/lib/wire4_client/models/beneficiaries_query_register_status.rb +270 -0
  121. data/lib/wire4_client/models/beneficiaries_response.rb +1 -1
  122. data/lib/wire4_client/models/beneficiary_institution.rb +1 -1
  123. data/lib/wire4_client/models/billing.rb +1 -1
  124. data/lib/wire4_client/models/billing_transaction.rb +2 -2
  125. data/lib/wire4_client/models/cep_response.rb +1 -1
  126. data/lib/wire4_client/models/cep_search_banxico.rb +1 -1
  127. data/lib/wire4_client/models/certificate_request.rb +248 -0
  128. data/lib/wire4_client/models/codi_code_qr_response_dto.rb +320 -0
  129. data/lib/wire4_client/models/codi_code_request_dto.rb +402 -0
  130. data/lib/wire4_client/models/{timestamp.rb → codi_operation_response_dto.rb} +53 -72
  131. data/lib/wire4_client/models/codi_operations_filters_request_dto.rb +336 -0
  132. data/lib/wire4_client/models/company_registered.rb +235 -0
  133. data/lib/wire4_client/models/company_requested.rb +215 -0
  134. data/lib/wire4_client/models/compay.rb +215 -0
  135. data/lib/wire4_client/models/configurations_limits.rb +197 -0
  136. data/lib/wire4_client/models/contact_request.rb +1 -1
  137. data/lib/wire4_client/models/contract_detail_request.rb +247 -0
  138. data/lib/wire4_client/models/contract_detail_response.rb +194 -0
  139. data/lib/wire4_client/models/deposit.rb +12 -2
  140. data/lib/wire4_client/models/deposit_authorization_request.rb +205 -0
  141. data/lib/wire4_client/models/depositant.rb +1 -1
  142. data/lib/wire4_client/models/depositants_register.rb +1 -1
  143. data/lib/wire4_client/models/depositants_response.rb +1 -1
  144. data/lib/wire4_client/models/deposits_authorization_response.rb +205 -0
  145. data/lib/wire4_client/models/detailed_error_response.rb +203 -0
  146. data/lib/wire4_client/models/error_response.rb +1 -1
  147. data/lib/wire4_client/models/get_depositants.rb +1 -1
  148. data/lib/wire4_client/models/institution.rb +1 -1
  149. data/lib/wire4_client/models/institutions_list.rb +1 -1
  150. data/lib/wire4_client/models/item.rb +205 -0
  151. data/lib/wire4_client/models/message_account_beneficiary.rb +3 -3
  152. data/lib/wire4_client/models/message_cep.rb +11 -11
  153. data/lib/wire4_client/models/message_codi_action.rb +295 -0
  154. data/lib/wire4_client/models/message_configurations_limits.rb +187 -0
  155. data/lib/wire4_client/models/message_deposit_authorization_request.rb +375 -0
  156. data/lib/wire4_client/models/message_deposit_received.rb +13 -3
  157. data/lib/wire4_client/models/message_institution.rb +1 -1
  158. data/lib/wire4_client/models/message_payment.rb +24 -3
  159. data/lib/wire4_client/models/message_payment_state_pending.rb +335 -0
  160. data/lib/wire4_client/models/message_request_changed.rb +229 -0
  161. data/lib/wire4_client/models/message_sales_point.rb +205 -0
  162. data/lib/wire4_client/models/message_subscription.rb +18 -8
  163. data/lib/wire4_client/models/message_user_authorized.rb +245 -0
  164. data/lib/wire4_client/models/message_web_hook.rb +3 -3
  165. data/lib/wire4_client/models/operations.rb +321 -0
  166. data/lib/wire4_client/models/pager_response_dto.rb +236 -0
  167. data/lib/wire4_client/models/payment.rb +24 -4
  168. data/lib/wire4_client/models/payment_codi.rb +269 -0
  169. data/lib/wire4_client/models/payment_request_codi_response_dto.rb +287 -0
  170. data/lib/wire4_client/models/payments_request_id.rb +236 -0
  171. data/lib/wire4_client/models/person.rb +1 -1
  172. data/lib/wire4_client/models/pre_enrollment_data.rb +1 -1
  173. data/lib/wire4_client/models/pre_enrollment_response.rb +1 -1
  174. data/lib/wire4_client/models/pre_monex_authorization.rb +291 -0
  175. data/lib/wire4_client/models/relationship.rb +1 -1
  176. data/lib/wire4_client/models/relationships_response.rb +1 -1
  177. data/lib/wire4_client/models/sales_point.rb +205 -0
  178. data/lib/wire4_client/models/sales_point_found.rb +279 -0
  179. data/lib/wire4_client/models/sales_point_request.rb +254 -0
  180. data/lib/wire4_client/models/sales_point_respose.rb +215 -0
  181. data/lib/wire4_client/models/spid_beneficiaries_response.rb +186 -0
  182. data/lib/wire4_client/models/spid_beneficiary_response.rb +365 -0
  183. data/lib/wire4_client/models/spid_classification_dto.rb +1 -1
  184. data/lib/wire4_client/models/spid_classifications_response_dto.rb +1 -1
  185. data/lib/wire4_client/models/token_required_response.rb +1 -1
  186. data/lib/wire4_client/models/transaction_error_code.rb +201 -0
  187. data/lib/wire4_client/models/transaction_outgoing.rb +13 -3
  188. data/lib/wire4_client/models/transaction_outgoing_spid.rb +1 -1
  189. data/lib/wire4_client/models/transactions_outgoing_register.rb +1 -1
  190. data/lib/wire4_client/models/update_configurations_request_dto.rb +192 -0
  191. data/lib/wire4_client/models/urls_redirect.rb +205 -0
  192. data/lib/wire4_client/models/user_company.rb +269 -0
  193. data/lib/wire4_client/models/web_hook_deposit_authorization_request.rb +195 -0
  194. data/lib/wire4_client/models/web_hook_deposit_authorization_response.rb +237 -0
  195. data/lib/wire4_client/models/webhook.rb +271 -0
  196. data/lib/wire4_client/models/webhook_request.rb +1 -1
  197. data/lib/wire4_client/models/webhook_response.rb +1 -1
  198. data/lib/wire4_client/models/webhooks_list.rb +1 -1
  199. data/lib/wire4_client/version.rb +2 -2
  200. data/spec/api/autorizacin_de_depsitos_api_spec.rb +62 -0
  201. data/spec/api/comprobante_electrnico_de_pago_cep_api_spec.rb +2 -1
  202. data/spec/api/contacto_api_spec.rb +2 -1
  203. data/spec/api/contracts_details_api_spec.rb +90 -0
  204. data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +44 -4
  205. data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +22 -1
  206. data/spec/api/depositantes_api_spec.rb +3 -1
  207. data/spec/api/empresas_co_di_api_spec.rb +60 -0
  208. data/spec/api/facturas_api_spec.rb +3 -1
  209. data/spec/api/instituciones_api_spec.rb +2 -1
  210. data/spec/api/lmites_de_montos_api_spec.rb +62 -0
  211. data/spec/api/operaciones_co_di_api_spec.rb +52 -0
  212. data/spec/api/peticiones_de_pago_por_co_di_api_spec.rb +63 -0
  213. data/spec/api/puntos_de_venta_co_di_api_spec.rb +62 -0
  214. data/spec/api/saldo_api_spec.rb +2 -1
  215. data/spec/api/suscripciones_api_spec.rb +11 -8
  216. data/spec/api/transferencias_spei_api_spec.rb +34 -1
  217. data/spec/api/transferencias_spid_api_spec.rb +3 -1
  218. data/spec/api/webhooks_api_spec.rb +4 -1
  219. data/spec/api_client_spec.rb +1 -1
  220. data/spec/configuration_spec.rb +1 -1
  221. data/spec/models/account_detail_spec.rb +71 -0
  222. data/spec/models/account_reassigned_spec.rb +125 -0
  223. data/spec/models/account_request_spec.rb +1 -1
  224. data/spec/models/account_response_spec.rb +19 -1
  225. data/spec/models/account_spec.rb +1 -1
  226. data/spec/models/account_spid_spec.rb +1 -1
  227. data/spec/models/{timestamp_spec.rb → address_company_spec.rb} +17 -17
  228. data/spec/models/amount_request_spec.rb +13 -1
  229. data/spec/models/authorization_transaction_group_spec.rb +47 -0
  230. data/spec/models/authorized_beneficiaries_response_spec.rb +53 -0
  231. data/spec/models/authorized_users_spec.rb +71 -0
  232. data/spec/models/balance_list_response_spec.rb +1 -1
  233. data/spec/models/balance_spec.rb +1 -1
  234. data/spec/models/beneficiaries_query_register_status_spec.rb +75 -0
  235. data/spec/models/beneficiaries_response_spec.rb +1 -1
  236. data/spec/models/beneficiary_institution_spec.rb +1 -1
  237. data/spec/models/billing_spec.rb +1 -1
  238. data/spec/models/billing_transaction_spec.rb +1 -1
  239. data/spec/models/cep_response_spec.rb +1 -1
  240. data/spec/models/cep_search_banxico_spec.rb +1 -1
  241. data/spec/models/certificate_request_spec.rb +59 -0
  242. data/spec/models/codi_code_qr_response_dto_spec.rb +103 -0
  243. data/spec/models/codi_code_request_dto_spec.rb +81 -0
  244. data/spec/models/codi_operation_response_dto_spec.rb +77 -0
  245. data/spec/models/codi_operations_filters_request_dto_spec.rb +87 -0
  246. data/spec/models/company_registered_spec.rb +71 -0
  247. data/spec/models/company_requested_spec.rb +59 -0
  248. data/spec/models/compay_spec.rb +59 -0
  249. data/spec/models/configurations_limits_spec.rb +47 -0
  250. data/spec/models/contact_request_spec.rb +1 -1
  251. data/spec/models/contract_detail_request_spec.rb +59 -0
  252. data/spec/models/contract_detail_response_spec.rb +47 -0
  253. data/spec/models/deposit_authorization_request_spec.rb +53 -0
  254. data/spec/models/deposit_spec.rb +7 -1
  255. data/spec/models/depositant_spec.rb +1 -1
  256. data/spec/models/depositants_register_spec.rb +1 -1
  257. data/spec/models/depositants_response_spec.rb +1 -1
  258. data/spec/models/deposits_authorization_response_spec.rb +53 -0
  259. data/spec/models/detailed_error_response_spec.rb +53 -0
  260. data/spec/models/error_response_spec.rb +1 -1
  261. data/spec/models/get_depositants_spec.rb +1 -1
  262. data/spec/models/institution_spec.rb +1 -1
  263. data/spec/models/institutions_list_spec.rb +1 -1
  264. data/spec/models/item_spec.rb +53 -0
  265. data/spec/models/message_account_beneficiary_spec.rb +1 -1
  266. data/spec/models/message_cep_spec.rb +1 -1
  267. data/spec/models/message_codi_action_spec.rb +107 -0
  268. data/spec/models/message_configurations_limits_spec.rb +41 -0
  269. data/spec/models/message_deposit_authorization_request_spec.rb +155 -0
  270. data/spec/models/message_deposit_received_spec.rb +7 -1
  271. data/spec/models/message_institution_spec.rb +1 -1
  272. data/spec/models/message_payment_spec.rb +13 -1
  273. data/spec/models/message_payment_state_pending_spec.rb +131 -0
  274. data/spec/models/message_request_changed_spec.rb +51 -0
  275. data/spec/models/message_sales_point_spec.rb +53 -0
  276. data/spec/models/message_subscription_spec.rb +7 -1
  277. data/spec/models/message_user_authorized_spec.rb +77 -0
  278. data/spec/models/message_web_hook_spec.rb +1 -1
  279. data/spec/models/operations_spec.rb +103 -0
  280. data/spec/models/pager_response_dto_spec.rb +71 -0
  281. data/spec/models/payment_codi_spec.rb +75 -0
  282. data/spec/models/payment_request_codi_response_dto_spec.rb +101 -0
  283. data/spec/models/payment_spec.rb +13 -1
  284. data/spec/models/payments_request_id_spec.rb +71 -0
  285. data/spec/models/person_spec.rb +1 -1
  286. data/spec/models/pre_enrollment_data_spec.rb +1 -1
  287. data/spec/models/pre_enrollment_response_spec.rb +1 -1
  288. data/spec/models/pre_monex_authorization_spec.rb +59 -0
  289. data/spec/models/relationship_spec.rb +1 -1
  290. data/spec/models/relationships_response_spec.rb +1 -1
  291. data/spec/models/sales_point_found_spec.rb +81 -0
  292. data/spec/models/sales_point_request_spec.rb +59 -0
  293. data/spec/models/sales_point_respose_spec.rb +59 -0
  294. data/spec/models/sales_point_spec.rb +53 -0
  295. data/spec/models/spid_beneficiaries_response_spec.rb +41 -0
  296. data/spec/models/spid_beneficiary_response_spec.rb +113 -0
  297. data/spec/models/spid_classification_dto_spec.rb +1 -1
  298. data/spec/models/spid_classifications_response_dto_spec.rb +1 -1
  299. data/spec/models/token_required_response_spec.rb +1 -1
  300. data/spec/models/transaction_error_code_spec.rb +53 -0
  301. data/spec/models/transaction_outgoing_spec.rb +7 -1
  302. data/spec/models/transaction_outgoing_spid_spec.rb +1 -1
  303. data/spec/models/transactions_outgoing_register_spec.rb +1 -1
  304. data/spec/models/update_configurations_request_dto_spec.rb +41 -0
  305. data/spec/models/urls_redirect_spec.rb +47 -0
  306. data/spec/models/user_company_spec.rb +89 -0
  307. data/spec/models/web_hook_deposit_authorization_request_spec.rb +47 -0
  308. data/spec/models/web_hook_deposit_authorization_response_spec.rb +71 -0
  309. data/spec/models/webhook_request_spec.rb +1 -1
  310. data/spec/models/webhook_response_spec.rb +1 -1
  311. data/spec/models/webhook_spec.rb +75 -0
  312. data/spec/models/webhooks_list_spec.rb +1 -1
  313. data/spec/spec_helper.rb +1 -1
  314. data/wire4_client-1.0.9.gem +0 -0
  315. data/wire4_client.gemspec +2 -2
  316. metadata +267 -51
  317. data/Gemfile.lock +0 -69
  318. data/docs/Timestamp.md +0 -17
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Wire4RestAPI
3
3
 
4
- #Referencia de la API de Wire4
4
+ # # Referencia de API La API de Wire4 está organizada en torno a REST.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
@@ -21,23 +21,29 @@ module Wire4Client
21
21
  end
22
22
  # Consulta las clasificaciones para operaciones con SPID
23
23
  # Obtiene las clasificaciones para operaciones con dólares (SPID) de Monex.<br/>Este recurso se debe invocar previo al realizar una operación SPID.<br/>Se requiere que el token de autenticación se genere con scope spid_admin.
24
+ # @param authorization Header para token
24
25
  # @param subscription El identificador de la suscripción a esta API
25
26
  # @param [Hash] opts the optional parameters
26
27
  # @return [SpidClassificationsResponseDTO]
27
- def get_spid_classifications_using_get(subscription, opts = {})
28
- data, _status_code, _headers = get_spid_classifications_using_get_with_http_info(subscription, opts)
28
+ def get_spid_classifications_using_get(authorization, subscription, opts = {})
29
+ data, _status_code, _headers = get_spid_classifications_using_get_with_http_info(authorization, subscription, opts)
29
30
  data
30
31
  end
31
32
 
32
33
  # Consulta las clasificaciones para operaciones con SPID
33
34
  # Obtiene las clasificaciones para operaciones con dólares (SPID) de Monex.&lt;br/&gt;Este recurso se debe invocar previo al realizar una operación SPID.&lt;br/&gt;Se requiere que el token de autenticación se genere con scope spid_admin.
35
+ # @param authorization Header para token
34
36
  # @param subscription El identificador de la suscripción a esta API
35
37
  # @param [Hash] opts the optional parameters
36
38
  # @return [Array<(SpidClassificationsResponseDTO, Fixnum, Hash)>] SpidClassificationsResponseDTO data, response status code and response headers
37
- def get_spid_classifications_using_get_with_http_info(subscription, opts = {})
39
+ def get_spid_classifications_using_get_with_http_info(authorization, subscription, opts = {})
38
40
  if @api_client.config.debugging
39
41
  @api_client.config.logger.debug 'Calling API: TransferenciasSPIDApi.get_spid_classifications_using_get ...'
40
42
  end
43
+ # verify the required parameter 'authorization' is set
44
+ if @api_client.config.client_side_validation && authorization.nil?
45
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling TransferenciasSPIDApi.get_spid_classifications_using_get"
46
+ end
41
47
  # verify the required parameter 'subscription' is set
42
48
  if @api_client.config.client_side_validation && subscription.nil?
43
49
  fail ArgumentError, "Missing the required parameter 'subscription' when calling TransferenciasSPIDApi.get_spid_classifications_using_get"
@@ -60,13 +66,14 @@ module Wire4Client
60
66
  header_params = {}
61
67
  # HTTP header 'Accept' (if needed)
62
68
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
69
+ header_params[:'Authorization'] = authorization
63
70
 
64
71
  # form parameters
65
72
  form_params = {}
66
73
 
67
74
  # http body (model)
68
75
  post_body = nil
69
- auth_names = ['wire4_aut_app_user_spid']
76
+ auth_names = []
70
77
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
71
78
  :header_params => header_params,
72
79
  :query_params => query_params,
@@ -81,25 +88,31 @@ module Wire4Client
81
88
  end
82
89
  # Registro de transferencias SPID
83
90
  # Registra un conjunto de transferencias a realizar en la cuenta del cliente Monex relacionada a la suscripción, las transferencias deben ser confirmadas por el cliente para que se efectuen.
91
+ # @param authorization Header para token
84
92
  # @param subscription El identificador de la suscripción a esta API
85
93
  # @param transactions Información de las transferencias SPID de salida
86
94
  # @param [Hash] opts the optional parameters
87
95
  # @return [TokenRequiredResponse]
88
- def register_outgoing_spid_transaction_using_post(subscription, transactions, opts = {})
89
- data, _status_code, _headers = register_outgoing_spid_transaction_using_post_with_http_info(subscription, transactions, opts)
96
+ def register_outgoing_spid_transaction_using_post(authorization, subscription, transactions, opts = {})
97
+ data, _status_code, _headers = register_outgoing_spid_transaction_using_post_with_http_info(authorization, subscription, transactions, opts)
90
98
  data
91
99
  end
92
100
 
93
101
  # Registro de transferencias SPID
94
102
  # Registra un conjunto de transferencias a realizar en la cuenta del cliente Monex relacionada a la suscripción, las transferencias deben ser confirmadas por el cliente para que se efectuen.
103
+ # @param authorization Header para token
95
104
  # @param subscription El identificador de la suscripción a esta API
96
105
  # @param transactions Información de las transferencias SPID de salida
97
106
  # @param [Hash] opts the optional parameters
98
107
  # @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
99
- def register_outgoing_spid_transaction_using_post_with_http_info(subscription, transactions, opts = {})
108
+ def register_outgoing_spid_transaction_using_post_with_http_info(authorization, subscription, transactions, opts = {})
100
109
  if @api_client.config.debugging
101
110
  @api_client.config.logger.debug 'Calling API: TransferenciasSPIDApi.register_outgoing_spid_transaction_using_post ...'
102
111
  end
112
+ # verify the required parameter 'authorization' is set
113
+ if @api_client.config.client_side_validation && authorization.nil?
114
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling TransferenciasSPIDApi.register_outgoing_spid_transaction_using_post"
115
+ end
103
116
  # verify the required parameter 'subscription' is set
104
117
  if @api_client.config.client_side_validation && subscription.nil?
105
118
  fail ArgumentError, "Missing the required parameter 'subscription' when calling TransferenciasSPIDApi.register_outgoing_spid_transaction_using_post"
@@ -132,13 +145,14 @@ module Wire4Client
132
145
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
133
146
  # HTTP header 'Content-Type'
134
147
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
148
+ header_params[:'Authorization'] = authorization
135
149
 
136
150
  # form parameters
137
151
  form_params = {}
138
152
 
139
153
  # http body (model)
140
154
  post_body = @api_client.object_to_http_body(transactions)
141
- auth_names = ['wire4_aut_app_user_spid']
155
+ auth_names = []
142
156
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
143
157
  :header_params => header_params,
144
158
  :query_params => query_params,
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Wire4RestAPI
3
3
 
4
- #Referencia de la API de Wire4
4
+ # # Referencia de API La API de Wire4 está organizada en torno a REST.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
@@ -21,23 +21,29 @@ module Wire4Client
21
21
  end
22
22
  # Consulta de Webhook
23
23
  # Obtiene un webhook registrado en la plataforma mediante su identificador.
24
+ # @param authorization Header para token
24
25
  # @param id Identificador del webhook
25
26
  # @param [Hash] opts the optional parameters
26
27
  # @return [WebhookResponse]
27
- def get_webhook(id, opts = {})
28
- data, _status_code, _headers = get_webhook_with_http_info(id, opts)
28
+ def get_webhook(authorization, id, opts = {})
29
+ data, _status_code, _headers = get_webhook_with_http_info(authorization, id, opts)
29
30
  data
30
31
  end
31
32
 
32
33
  # Consulta de Webhook
33
34
  # Obtiene un webhook registrado en la plataforma mediante su identificador.
35
+ # @param authorization Header para token
34
36
  # @param id Identificador del webhook
35
37
  # @param [Hash] opts the optional parameters
36
38
  # @return [Array<(WebhookResponse, Fixnum, Hash)>] WebhookResponse data, response status code and response headers
37
- def get_webhook_with_http_info(id, opts = {})
39
+ def get_webhook_with_http_info(authorization, id, opts = {})
38
40
  if @api_client.config.debugging
39
41
  @api_client.config.logger.debug 'Calling API: WebhooksApi.get_webhook ...'
40
42
  end
43
+ # verify the required parameter 'authorization' is set
44
+ if @api_client.config.client_side_validation && authorization.nil?
45
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling WebhooksApi.get_webhook"
46
+ end
41
47
  # verify the required parameter 'id' is set
42
48
  if @api_client.config.client_side_validation && id.nil?
43
49
  fail ArgumentError, "Missing the required parameter 'id' when calling WebhooksApi.get_webhook"
@@ -52,13 +58,14 @@ module Wire4Client
52
58
  header_params = {}
53
59
  # HTTP header 'Accept' (if needed)
54
60
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ header_params[:'Authorization'] = authorization
55
62
 
56
63
  # form parameters
57
64
  form_params = {}
58
65
 
59
66
  # http body (model)
60
67
  post_body = nil
61
- auth_names = ['wire4_aut_app']
68
+ auth_names = []
62
69
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
63
70
  :header_params => header_params,
64
71
  :query_params => query_params,
@@ -73,21 +80,27 @@ module Wire4Client
73
80
  end
74
81
  # Consulta de Webhooks
75
82
  # Obtiene los webhooks registrados en la plataforma que tengan estatus 'ACTIVE' e 'INACTIVE'.
83
+ # @param authorization Header para token
76
84
  # @param [Hash] opts the optional parameters
77
85
  # @return [WebhooksList]
78
- def get_webhooks(opts = {})
79
- data, _status_code, _headers = get_webhooks_with_http_info(opts)
86
+ def get_webhooks(authorization, opts = {})
87
+ data, _status_code, _headers = get_webhooks_with_http_info(authorization, opts)
80
88
  data
81
89
  end
82
90
 
83
91
  # Consulta de Webhooks
84
92
  # Obtiene los webhooks registrados en la plataforma que tengan estatus &#39;ACTIVE&#39; e &#39;INACTIVE&#39;.
93
+ # @param authorization Header para token
85
94
  # @param [Hash] opts the optional parameters
86
95
  # @return [Array<(WebhooksList, Fixnum, Hash)>] WebhooksList data, response status code and response headers
87
- def get_webhooks_with_http_info(opts = {})
96
+ def get_webhooks_with_http_info(authorization, opts = {})
88
97
  if @api_client.config.debugging
89
98
  @api_client.config.logger.debug 'Calling API: WebhooksApi.get_webhooks ...'
90
99
  end
100
+ # verify the required parameter 'authorization' is set
101
+ if @api_client.config.client_side_validation && authorization.nil?
102
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling WebhooksApi.get_webhooks"
103
+ end
91
104
  # resource path
92
105
  local_var_path = '/webhooks'
93
106
 
@@ -98,13 +111,14 @@ module Wire4Client
98
111
  header_params = {}
99
112
  # HTTP header 'Accept' (if needed)
100
113
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
114
+ header_params[:'Authorization'] = authorization
101
115
 
102
116
  # form parameters
103
117
  form_params = {}
104
118
 
105
119
  # http body (model)
106
120
  post_body = nil
107
- auth_names = ['wire4_aut_app']
121
+ auth_names = []
108
122
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
109
123
  :header_params => header_params,
110
124
  :query_params => query_params,
@@ -119,23 +133,29 @@ module Wire4Client
119
133
  end
120
134
  # Alta de Webhook
121
135
  # Registra un webhook en la plataforma para su uso como notificador de eventos cuando estos ocurran.
136
+ # @param authorization Header para token
122
137
  # @param webhook_request Información para registrar un Webhook
123
138
  # @param [Hash] opts the optional parameters
124
139
  # @return [WebhookResponse]
125
- def register_webhook(webhook_request, opts = {})
126
- data, _status_code, _headers = register_webhook_with_http_info(webhook_request, opts)
140
+ def register_webhook(authorization, webhook_request, opts = {})
141
+ data, _status_code, _headers = register_webhook_with_http_info(authorization, webhook_request, opts)
127
142
  data
128
143
  end
129
144
 
130
145
  # Alta de Webhook
131
146
  # Registra un webhook en la plataforma para su uso como notificador de eventos cuando estos ocurran.
147
+ # @param authorization Header para token
132
148
  # @param webhook_request Información para registrar un Webhook
133
149
  # @param [Hash] opts the optional parameters
134
150
  # @return [Array<(WebhookResponse, Fixnum, Hash)>] WebhookResponse data, response status code and response headers
135
- def register_webhook_with_http_info(webhook_request, opts = {})
151
+ def register_webhook_with_http_info(authorization, webhook_request, opts = {})
136
152
  if @api_client.config.debugging
137
153
  @api_client.config.logger.debug 'Calling API: WebhooksApi.register_webhook ...'
138
154
  end
155
+ # verify the required parameter 'authorization' is set
156
+ if @api_client.config.client_side_validation && authorization.nil?
157
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling WebhooksApi.register_webhook"
158
+ end
139
159
  # verify the required parameter 'webhook_request' is set
140
160
  if @api_client.config.client_side_validation && webhook_request.nil?
141
161
  fail ArgumentError, "Missing the required parameter 'webhook_request' when calling WebhooksApi.register_webhook"
@@ -152,13 +172,14 @@ module Wire4Client
152
172
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
153
173
  # HTTP header 'Content-Type'
154
174
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
175
+ header_params[:'Authorization'] = authorization
155
176
 
156
177
  # form parameters
157
178
  form_params = {}
158
179
 
159
180
  # http body (model)
160
181
  post_body = @api_client.object_to_http_body(webhook_request)
161
- auth_names = ['wire4_aut_app']
182
+ auth_names = []
162
183
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
163
184
  :header_params => header_params,
164
185
  :query_params => query_params,
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Wire4RestAPI
3
3
 
4
- #Referencia de la API de Wire4
4
+ # # Referencia de API La API de Wire4 está organizada en torno a REST.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
@@ -94,7 +94,6 @@ module Wire4Client
94
94
  query_params = opts[:query_params] || {}
95
95
  form_params = opts[:form_params] || {}
96
96
 
97
- update_params_for_auth! header_params, query_params, opts[:auth_names]
98
97
 
99
98
  # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
100
99
  _verify_ssl_host = @config.verify_ssl_host ? 2 : 0
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Wire4RestAPI
3
3
 
4
- #Referencia de la API de Wire4
4
+ # # Referencia de API La API de Wire4 está organizada en torno a REST.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Wire4RestAPI
3
3
 
4
- #Referencia de la API de Wire4
4
+ # # Referencia de API La API de Wire4 está organizada en torno a REST.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
@@ -196,27 +196,6 @@ module Wire4Client
196
196
  # Returns Auth Settings hash for api client.
197
197
  def auth_settings
198
198
  {
199
- 'wire4_aut_app' =>
200
- {
201
- type: 'oauth2',
202
- in: 'header',
203
- key: 'Authorization',
204
- value: "Bearer #{access_token}"
205
- },
206
- 'wire4_aut_app_user_spei' =>
207
- {
208
- type: 'oauth2',
209
- in: 'header',
210
- key: 'Authorization',
211
- value: "Bearer #{access_token}"
212
- },
213
- 'wire4_aut_app_user_spid' =>
214
- {
215
- type: 'oauth2',
216
- in: 'header',
217
- key: 'Authorization',
218
- value: "Bearer #{access_token}"
219
- },
220
199
  }
221
200
  end
222
201
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Wire4RestAPI
3
3
 
4
- #Referencia de la API de Wire4
4
+ # # Referencia de API La API de Wire4 está organizada en torno a REST.
5
5
 
6
6
  OpenAPI spec version: 1.0.0
7
7
 
@@ -30,7 +30,7 @@ module Wire4Client
30
30
  # Objeto que contiene el nombre de la institución, es mutuamente exclusivo con el objeto Person
31
31
  attr_accessor :institution
32
32
 
33
- # Tipo de relación con el propietario de la cuenta, para registrar una cuenta este valor se debe obtener del recurso relationships
33
+ # Tipo de relación con el propietario de la cuenta, para registrar una cuenta este valor se debe obtener del recurso relationships. <br> Nota: Si en la respuesta de Monex esta propiedad es nula, tampoco estará presente en esta respuesta.
34
34
  attr_accessor :kind_of_relationship
35
35
 
36
36
  # Referencia numérica a utilizar cuando se realice una transferencia y no se especifique una referencia
@@ -42,10 +42,10 @@ module Wire4Client
42
42
  # Objeto que contiene los datos de la persona propietaria de la cuenta, si se incluye este atributo, el atributo institution no debe estar presente
43
43
  attr_accessor :person
44
44
 
45
- # Relación con el propietario de la cuenta, para registrar una cuenta este valor se debe obtener del recurso relationships
45
+ # Relación con el propietario de la cuenta, para registrar una cuenta este valor se debe obtener del recurso relationships. <br> Nota: Si en la respuesta de Monex esta propiedad es nula, tampoco estará presente en esta respuesta.
46
46
  attr_accessor :relationship
47
47
 
48
- # Registro federal de contribuyentes de la persona o institución propietaria de la cuenta
48
+ # Registro federal de contribuyentes de la persona o institución propietaria de la cuenta. <br> Nota: Si en la respuesta de Monex esta propiedad es nula, tampoco estará presente en esta respuesta.
49
49
  attr_accessor :rfc
50
50
 
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -0,0 +1,239 @@
1
+ =begin
2
+ #Wire4RestAPI
3
+
4
+ # # Referencia de API La API de Wire4 está organizada en torno a REST.
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.10
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Wire4Client
16
+ # La información de la compañía que corresponde al contrato
17
+ class AccountDetail
18
+ # La dirección del negocio
19
+ attr_accessor :address
20
+
21
+ # El nombre del negocio
22
+ attr_accessor :business_name
23
+
24
+ # La fecha de constitución del negocio
25
+ attr_accessor :constitution_date
26
+
27
+ # La lista de correos del negocio
28
+ attr_accessor :emails
29
+
30
+ # La lista de los representantes legales negocio
31
+ attr_accessor :legal_representatives
32
+
33
+ # El RFC del negocio
34
+ attr_accessor :rfc
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'address' => :'address',
40
+ :'business_name' => :'business_name',
41
+ :'constitution_date' => :'constitution_date',
42
+ :'emails' => :'emails',
43
+ :'legal_representatives' => :'legal_representatives',
44
+ :'rfc' => :'rfc'
45
+ }
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.swagger_types
50
+ {
51
+ :'address' => :'AddressCompany',
52
+ :'business_name' => :'String',
53
+ :'constitution_date' => :'String',
54
+ :'emails' => :'Array<String>',
55
+ :'legal_representatives' => :'Array<String>',
56
+ :'rfc' => :'String'
57
+ }
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ return unless attributes.is_a?(Hash)
64
+
65
+ # convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
+
68
+ if attributes.has_key?(:'address')
69
+ self.address = attributes[:'address']
70
+ end
71
+
72
+ if attributes.has_key?(:'business_name')
73
+ self.business_name = attributes[:'business_name']
74
+ end
75
+
76
+ if attributes.has_key?(:'constitution_date')
77
+ self.constitution_date = attributes[:'constitution_date']
78
+ end
79
+
80
+ if attributes.has_key?(:'emails')
81
+ if (value = attributes[:'emails']).is_a?(Array)
82
+ self.emails = value
83
+ end
84
+ end
85
+
86
+ if attributes.has_key?(:'legal_representatives')
87
+ if (value = attributes[:'legal_representatives']).is_a?(Array)
88
+ self.legal_representatives = value
89
+ end
90
+ end
91
+
92
+ if attributes.has_key?(:'rfc')
93
+ self.rfc = attributes[:'rfc']
94
+ end
95
+ end
96
+
97
+ # Show invalid properties with the reasons. Usually used together with valid?
98
+ # @return Array for valid properties with the reasons
99
+ def list_invalid_properties
100
+ invalid_properties = Array.new
101
+ invalid_properties
102
+ end
103
+
104
+ # Check to see if the all the properties in the model are valid
105
+ # @return true if the model is valid
106
+ def valid?
107
+ true
108
+ end
109
+
110
+ # Checks equality by comparing each attribute.
111
+ # @param [Object] Object to be compared
112
+ def ==(o)
113
+ return true if self.equal?(o)
114
+ self.class == o.class &&
115
+ address == o.address &&
116
+ business_name == o.business_name &&
117
+ constitution_date == o.constitution_date &&
118
+ emails == o.emails &&
119
+ legal_representatives == o.legal_representatives &&
120
+ rfc == o.rfc
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Fixnum] Hash code
131
+ def hash
132
+ [address, business_name, constitution_date, emails, legal_representatives, rfc].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ self.class.swagger_types.each_pair do |key, type|
141
+ if type =~ /\AArray<(.*)>/i
142
+ # check to ensure the input is an array given that the the attribute
143
+ # is documented as an array but the input is not
144
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
145
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
146
+ end
147
+ elsif !attributes[self.class.attribute_map[key]].nil?
148
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
149
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
150
+ end
151
+
152
+ self
153
+ end
154
+
155
+ # Deserializes the data based on type
156
+ # @param string type Data type
157
+ # @param string value Value to be deserialized
158
+ # @return [Object] Deserialized data
159
+ def _deserialize(type, value)
160
+ case type.to_sym
161
+ when :DateTime
162
+ DateTime.parse(value)
163
+ when :Date
164
+ Date.parse(value)
165
+ when :String
166
+ value.to_s
167
+ when :Integer
168
+ value.to_i
169
+ when :Float
170
+ value.to_f
171
+ when :BOOLEAN
172
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
173
+ true
174
+ else
175
+ false
176
+ end
177
+ when :Object
178
+ # generic object (usually a Hash), return directly
179
+ value
180
+ when /\AArray<(?<inner_type>.+)>\z/
181
+ inner_type = Regexp.last_match[:inner_type]
182
+ value.map { |v| _deserialize(inner_type, v) }
183
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
184
+ k_type = Regexp.last_match[:k_type]
185
+ v_type = Regexp.last_match[:v_type]
186
+ {}.tap do |hash|
187
+ value.each do |k, v|
188
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
+ end
190
+ end
191
+ else # model
192
+ temp_model = Wire4Client.const_get(type).new
193
+ temp_model.build_from_hash(value)
194
+ end
195
+ end
196
+
197
+ # Returns the string representation of the object
198
+ # @return [String] String presentation of the object
199
+ def to_s
200
+ to_hash.to_s
201
+ end
202
+
203
+ # to_body is an alias to to_hash (backward compatibility)
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_body
206
+ to_hash
207
+ end
208
+
209
+ # Returns the object in the form of hash
210
+ # @return [Hash] Returns the object in the form of hash
211
+ def to_hash
212
+ hash = {}
213
+ self.class.attribute_map.each_pair do |attr, param|
214
+ value = self.send(attr)
215
+ next if value.nil?
216
+ hash[param] = _to_hash(value)
217
+ end
218
+ hash
219
+ end
220
+
221
+ # Outputs non-array value in the form of hash
222
+ # For object, use to_hash. Otherwise, just return the value
223
+ # @param [Object] value Any valid value
224
+ # @return [Hash] Returns the value in the form of hash
225
+ def _to_hash(value)
226
+ if value.is_a?(Array)
227
+ value.compact.map { |v| _to_hash(v) }
228
+ elsif value.is_a?(Hash)
229
+ {}.tap do |hash|
230
+ value.each { |k, v| hash[k] = _to_hash(v) }
231
+ end
232
+ elsif value.respond_to? :to_hash
233
+ value.to_hash
234
+ else
235
+ value
236
+ end
237
+ end
238
+ end
239
+ end