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 de CEP
23
23
  # Consulta el CEP de un pago realizado a través del SPEI, si es que este se encuentra disponible en BANXICO.
24
+ # @param authorization Header para token
24
25
  # @param cep_data Información para buscar un CEP
25
26
  # @param [Hash] opts the optional parameters
26
27
  # @return [CepResponse]
27
- def obtain_transaction_cep_using_post(cep_data, opts = {})
28
- data, _status_code, _headers = obtain_transaction_cep_using_post_with_http_info(cep_data, opts)
28
+ def obtain_transaction_cep_using_post(authorization, cep_data, opts = {})
29
+ data, _status_code, _headers = obtain_transaction_cep_using_post_with_http_info(authorization, cep_data, opts)
29
30
  data
30
31
  end
31
32
 
32
33
  # Consulta de CEP
33
34
  # Consulta el CEP de un pago realizado a través del SPEI, si es que este se encuentra disponible en BANXICO.
35
+ # @param authorization Header para token
34
36
  # @param cep_data Información para buscar un CEP
35
37
  # @param [Hash] opts the optional parameters
36
38
  # @return [Array<(CepResponse, Fixnum, Hash)>] CepResponse data, response status code and response headers
37
- def obtain_transaction_cep_using_post_with_http_info(cep_data, opts = {})
39
+ def obtain_transaction_cep_using_post_with_http_info(authorization, cep_data, opts = {})
38
40
  if @api_client.config.debugging
39
41
  @api_client.config.logger.debug 'Calling API: ComprobanteElectrnicoDePagoCEPApi.obtain_transaction_cep_using_post ...'
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 ComprobanteElectrnicoDePagoCEPApi.obtain_transaction_cep_using_post"
46
+ end
41
47
  # verify the required parameter 'cep_data' is set
42
48
  if @api_client.config.client_side_validation && cep_data.nil?
43
49
  fail ArgumentError, "Missing the required parameter 'cep_data' when calling ComprobanteElectrnicoDePagoCEPApi.obtain_transaction_cep_using_post"
@@ -54,13 +60,14 @@ module Wire4Client
54
60
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
61
  # HTTP header 'Content-Type'
56
62
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
63
+ header_params[:'Authorization'] = authorization
57
64
 
58
65
  # form parameters
59
66
  form_params = {}
60
67
 
61
68
  # http body (model)
62
69
  post_body = @api_client.object_to_http_body(cep_data)
63
- auth_names = ['wire4_aut_app']
70
+ auth_names = []
64
71
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
65
72
  :header_params => header_params,
66
73
  :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
  # Solicitud de contacto
23
23
  # Notifica a un asesor Monex para que se ponga en contacto con un posible cliente.
24
+ # @param authorization Header para token
24
25
  # @param request_dto Información del contacto
25
26
  # @param [Hash] opts the optional parameters
26
27
  # @return [nil]
27
- def send_contact_using_post(request_dto, opts = {})
28
- send_contact_using_post_with_http_info(request_dto, opts)
28
+ def send_contact_using_post(authorization, request_dto, opts = {})
29
+ send_contact_using_post_with_http_info(authorization, request_dto, opts)
29
30
  nil
30
31
  end
31
32
 
32
33
  # Solicitud de contacto
33
34
  # Notifica a un asesor Monex para que se ponga en contacto con un posible cliente.
35
+ # @param authorization Header para token
34
36
  # @param request_dto Información del contacto
35
37
  # @param [Hash] opts the optional parameters
36
38
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
37
- def send_contact_using_post_with_http_info(request_dto, opts = {})
39
+ def send_contact_using_post_with_http_info(authorization, request_dto, opts = {})
38
40
  if @api_client.config.debugging
39
41
  @api_client.config.logger.debug 'Calling API: ContactoApi.send_contact_using_post ...'
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 ContactoApi.send_contact_using_post"
46
+ end
41
47
  # verify the required parameter 'request_dto' is set
42
48
  if @api_client.config.client_side_validation && request_dto.nil?
43
49
  fail ArgumentError, "Missing the required parameter 'request_dto' when calling ContactoApi.send_contact_using_post"
@@ -54,13 +60,14 @@ module Wire4Client
54
60
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
61
  # HTTP header 'Content-Type'
56
62
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
63
+ header_params[:'Authorization'] = authorization
57
64
 
58
65
  # form parameters
59
66
  form_params = {}
60
67
 
61
68
  # http body (model)
62
69
  post_body = @api_client.object_to_http_body(request_dto)
63
- auth_names = ['wire4_aut_app']
70
+ auth_names = []
64
71
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
65
72
  :header_params => header_params,
66
73
  :query_params => query_params,
@@ -0,0 +1,301 @@
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 'uri'
14
+
15
+ module Wire4Client
16
+ class ContractsDetailsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Devuelve la URL para autorización del usuario Monex
23
+ # Se obtiene la URL para la autorización del usuario Monex.
24
+ # @param authorization Header para token
25
+ # @param pre_monex_authorization Información para la autorización
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [TokenRequiredResponse]
28
+ def create_authorization(authorization, pre_monex_authorization, opts = {})
29
+ data, _status_code, _headers = create_authorization_with_http_info(authorization, pre_monex_authorization, opts)
30
+ data
31
+ end
32
+
33
+ # Devuelve la URL para autorización del usuario Monex
34
+ # Se obtiene la URL para la autorización del usuario Monex.
35
+ # @param authorization Header para token
36
+ # @param pre_monex_authorization Información para la autorización
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
39
+ def create_authorization_with_http_info(authorization, pre_monex_authorization, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: ContractsDetailsApi.create_authorization ...'
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 ContractsDetailsApi.create_authorization"
46
+ end
47
+ # verify the required parameter 'pre_monex_authorization' is set
48
+ if @api_client.config.client_side_validation && pre_monex_authorization.nil?
49
+ fail ArgumentError, "Missing the required parameter 'pre_monex_authorization' when calling ContractsDetailsApi.create_authorization"
50
+ end
51
+ # resource path
52
+ local_var_path = '/onboarding/accounts/authorize'
53
+
54
+ # query parameters
55
+ query_params = {}
56
+
57
+ # header parameters
58
+ header_params = {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
63
+ header_params[:'Authorization'] = authorization
64
+
65
+ # form parameters
66
+ form_params = {}
67
+
68
+ # http body (model)
69
+ post_body = @api_client.object_to_http_body(pre_monex_authorization)
70
+ auth_names = []
71
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => 'TokenRequiredResponse')
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: ContractsDetailsApi#create_authorization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+ # Obtiene los usuarios autorizados
84
+ # Obtienen los detalles de los usuarios autorizados de Monex.
85
+ # @param authorization Header para token
86
+ # @param x_access_key La llave de acceso de la aplicación
87
+ # @param request_id El identificador de la petición a esta API
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [Array<AuthorizedUsers>]
90
+ def obtain_authorized_users(authorization, x_access_key, request_id, opts = {})
91
+ data, _status_code, _headers = obtain_authorized_users_with_http_info(authorization, x_access_key, request_id, opts)
92
+ data
93
+ end
94
+
95
+ # Obtiene los usuarios autorizados
96
+ # Obtienen los detalles de los usuarios autorizados de Monex.
97
+ # @param authorization Header para token
98
+ # @param x_access_key La llave de acceso de la aplicación
99
+ # @param request_id El identificador de la petición a esta API
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [Array<(Array<AuthorizedUsers>, Fixnum, Hash)>] Array<AuthorizedUsers> data, response status code and response headers
102
+ def obtain_authorized_users_with_http_info(authorization, x_access_key, request_id, opts = {})
103
+ if @api_client.config.debugging
104
+ @api_client.config.logger.debug 'Calling API: ContractsDetailsApi.obtain_authorized_users ...'
105
+ end
106
+ # verify the required parameter 'authorization' is set
107
+ if @api_client.config.client_side_validation && authorization.nil?
108
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ContractsDetailsApi.obtain_authorized_users"
109
+ end
110
+ # verify the required parameter 'x_access_key' is set
111
+ if @api_client.config.client_side_validation && x_access_key.nil?
112
+ fail ArgumentError, "Missing the required parameter 'x_access_key' when calling ContractsDetailsApi.obtain_authorized_users"
113
+ end
114
+ # verify the required parameter 'request_id' is set
115
+ if @api_client.config.client_side_validation && request_id.nil?
116
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling ContractsDetailsApi.obtain_authorized_users"
117
+ end
118
+ if @api_client.config.client_side_validation && request_id.to_s.length > 36
119
+ fail ArgumentError, 'invalid value for "request_id" when calling ContractsDetailsApi.obtain_authorized_users, the character length must be smaller than or equal to 36.'
120
+ end
121
+
122
+ if @api_client.config.client_side_validation && request_id.to_s.length < 36
123
+ fail ArgumentError, 'invalid value for "request_id" when calling ContractsDetailsApi.obtain_authorized_users, the character length must be great than or equal to 36.'
124
+ end
125
+
126
+ if @api_client.config.client_side_validation && request_id !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
127
+ fail ArgumentError, "invalid value for 'request_id' when calling ContractsDetailsApi.obtain_authorized_users, must conform to the pattern /[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/."
128
+ end
129
+
130
+ # resource path
131
+ local_var_path = '/onboarding/accounts/{requestId}/authorized-users'.sub('{' + 'requestId' + '}', request_id.to_s)
132
+
133
+ # query parameters
134
+ query_params = {}
135
+
136
+ # header parameters
137
+ header_params = {}
138
+ # HTTP header 'Accept' (if needed)
139
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
140
+ header_params[:'Authorization'] = authorization
141
+ header_params[:'X-ACCESS-KEY'] = x_access_key
142
+
143
+ # form parameters
144
+ form_params = {}
145
+
146
+ # http body (model)
147
+ post_body = nil
148
+ auth_names = []
149
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
150
+ :header_params => header_params,
151
+ :query_params => query_params,
152
+ :form_params => form_params,
153
+ :body => post_body,
154
+ :auth_names => auth_names,
155
+ :return_type => 'Array<AuthorizedUsers>')
156
+ if @api_client.config.debugging
157
+ @api_client.config.logger.debug "API called: ContractsDetailsApi#obtain_authorized_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
158
+ end
159
+ return data, status_code, headers
160
+ end
161
+ # Obtiene los usuarios autorizados por contrato
162
+ # Obtienen los detalles de los usuarios autorizados por contrato Monex.
163
+ # @param authorization Header para token
164
+ # @param x_access_key La llave de acceso de la aplicación
165
+ # @param [Hash] opts the optional parameters
166
+ # @option opts [String] :contract El contrato Monex
167
+ # @return [Array<AuthorizedUsers>]
168
+ def obtain_authorized_users_by_contract(authorization, x_access_key, opts = {})
169
+ data, _status_code, _headers = obtain_authorized_users_by_contract_with_http_info(authorization, x_access_key, opts)
170
+ data
171
+ end
172
+
173
+ # Obtiene los usuarios autorizados por contrato
174
+ # Obtienen los detalles de los usuarios autorizados por contrato Monex.
175
+ # @param authorization Header para token
176
+ # @param x_access_key La llave de acceso de la aplicación
177
+ # @param [Hash] opts the optional parameters
178
+ # @option opts [String] :contract El contrato Monex
179
+ # @return [Array<(Array<AuthorizedUsers>, Fixnum, Hash)>] Array<AuthorizedUsers> data, response status code and response headers
180
+ def obtain_authorized_users_by_contract_with_http_info(authorization, x_access_key, opts = {})
181
+ if @api_client.config.debugging
182
+ @api_client.config.logger.debug 'Calling API: ContractsDetailsApi.obtain_authorized_users_by_contract ...'
183
+ end
184
+ # verify the required parameter 'authorization' is set
185
+ if @api_client.config.client_side_validation && authorization.nil?
186
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ContractsDetailsApi.obtain_authorized_users_by_contract"
187
+ end
188
+ # verify the required parameter 'x_access_key' is set
189
+ if @api_client.config.client_side_validation && x_access_key.nil?
190
+ fail ArgumentError, "Missing the required parameter 'x_access_key' when calling ContractsDetailsApi.obtain_authorized_users_by_contract"
191
+ end
192
+ if @api_client.config.client_side_validation && !opts[:'contract'].nil? && opts[:'contract'].to_s.length > 11
193
+ fail ArgumentError, 'invalid value for "opts[:"contract"]" when calling ContractsDetailsApi.obtain_authorized_users_by_contract, the character length must be smaller than or equal to 11.'
194
+ end
195
+
196
+ if @api_client.config.client_side_validation && !opts[:'contract'].nil? && opts[:'contract'].to_s.length < 1
197
+ fail ArgumentError, 'invalid value for "opts[:"contract"]" when calling ContractsDetailsApi.obtain_authorized_users_by_contract, the character length must be great than or equal to 1.'
198
+ end
199
+
200
+ # resource path
201
+ local_var_path = '/onboarding/accounts/authorized-users'
202
+
203
+ # query parameters
204
+ query_params = {}
205
+ query_params[:'contract'] = opts[:'contract'] if !opts[:'contract'].nil?
206
+
207
+ # header parameters
208
+ header_params = {}
209
+ # HTTP header 'Accept' (if needed)
210
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
211
+ header_params[:'Authorization'] = authorization
212
+ header_params[:'X-ACCESS-KEY'] = x_access_key
213
+
214
+ # form parameters
215
+ form_params = {}
216
+
217
+ # http body (model)
218
+ post_body = nil
219
+ auth_names = []
220
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
221
+ :header_params => header_params,
222
+ :query_params => query_params,
223
+ :form_params => form_params,
224
+ :body => post_body,
225
+ :auth_names => auth_names,
226
+ :return_type => 'Array<AuthorizedUsers>')
227
+ if @api_client.config.debugging
228
+ @api_client.config.logger.debug "API called: ContractsDetailsApi#obtain_authorized_users_by_contract\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
229
+ end
230
+ return data, status_code, headers
231
+ end
232
+ # Obtiene los detalles de la empresa del contrato
233
+ # Detalles de la compañía relacionada con el contrato de Monex.
234
+ # @param authorization Header para token
235
+ # @param x_access_key La llave de acceso de la aplicación
236
+ # @param contract_detail_request Información para obtener los detalles de la companía
237
+ # @param [Hash] opts the optional parameters
238
+ # @return [ContractDetailResponse]
239
+ def obtain_contract_details(authorization, x_access_key, contract_detail_request, opts = {})
240
+ data, _status_code, _headers = obtain_contract_details_with_http_info(authorization, x_access_key, contract_detail_request, opts)
241
+ data
242
+ end
243
+
244
+ # Obtiene los detalles de la empresa del contrato
245
+ # Detalles de la compañía relacionada con el contrato de Monex.
246
+ # @param authorization Header para token
247
+ # @param x_access_key La llave de acceso de la aplicación
248
+ # @param contract_detail_request Información para obtener los detalles de la companía
249
+ # @param [Hash] opts the optional parameters
250
+ # @return [Array<(ContractDetailResponse, Fixnum, Hash)>] ContractDetailResponse data, response status code and response headers
251
+ def obtain_contract_details_with_http_info(authorization, x_access_key, contract_detail_request, opts = {})
252
+ if @api_client.config.debugging
253
+ @api_client.config.logger.debug 'Calling API: ContractsDetailsApi.obtain_contract_details ...'
254
+ end
255
+ # verify the required parameter 'authorization' is set
256
+ if @api_client.config.client_side_validation && authorization.nil?
257
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ContractsDetailsApi.obtain_contract_details"
258
+ end
259
+ # verify the required parameter 'x_access_key' is set
260
+ if @api_client.config.client_side_validation && x_access_key.nil?
261
+ fail ArgumentError, "Missing the required parameter 'x_access_key' when calling ContractsDetailsApi.obtain_contract_details"
262
+ end
263
+ # verify the required parameter 'contract_detail_request' is set
264
+ if @api_client.config.client_side_validation && contract_detail_request.nil?
265
+ fail ArgumentError, "Missing the required parameter 'contract_detail_request' when calling ContractsDetailsApi.obtain_contract_details"
266
+ end
267
+ # resource path
268
+ local_var_path = '/onboarding/accounts/details'
269
+
270
+ # query parameters
271
+ query_params = {}
272
+
273
+ # header parameters
274
+ header_params = {}
275
+ # HTTP header 'Accept' (if needed)
276
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
277
+ # HTTP header 'Content-Type'
278
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
279
+ header_params[:'Authorization'] = authorization
280
+ header_params[:'X-ACCESS-KEY'] = x_access_key
281
+
282
+ # form parameters
283
+ form_params = {}
284
+
285
+ # http body (model)
286
+ post_body = @api_client.object_to_http_body(contract_detail_request)
287
+ auth_names = []
288
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
289
+ :header_params => header_params,
290
+ :query_params => query_params,
291
+ :form_params => form_params,
292
+ :body => post_body,
293
+ :auth_names => auth_names,
294
+ :return_type => 'ContractDetailResponse')
295
+ if @api_client.config.debugging
296
+ @api_client.config.logger.debug "API called: ContractsDetailsApi#obtain_contract_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
297
+ end
298
+ return data, status_code, headers
299
+ end
300
+ end
301
+ 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
 
@@ -19,27 +19,112 @@ module Wire4Client
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Recibe la solicitud para agrupar las cuentas SPEI/SPID de beneficiarios en estado pendiente que deben ser autorizadas
23
+ # Solicta autorizar las cuentas de beneficiarios en estado pendiente agrupandolas en un set de cuentas que pueden incluir tanto cuentas de SPI como de SPID, debe indicar las urls de redireccion en caso de error y en caso de exito<br/>
24
+ # @param authorization Header para token
25
+ # @param subscription El identificador de la suscripción a esta API
26
+ # @param urls_redirect_dto Información de la cuenta del beneficiario
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [AuthorizedBeneficiariesResponse]
29
+ def authorize_accounts_pending_put(authorization, subscription, urls_redirect_dto, opts = {})
30
+ data, _status_code, _headers = authorize_accounts_pending_put_with_http_info(authorization, subscription, urls_redirect_dto, opts)
31
+ data
32
+ end
33
+
34
+ # Recibe la solicitud para agrupar las cuentas SPEI/SPID de beneficiarios en estado pendiente que deben ser autorizadas
35
+ # Solicta autorizar las cuentas de beneficiarios en estado pendiente agrupandolas en un set de cuentas que pueden incluir tanto cuentas de SPI como de SPID, debe indicar las urls de redireccion en caso de error y en caso de exito&lt;br/&gt;
36
+ # @param authorization Header para token
37
+ # @param subscription El identificador de la suscripción a esta API
38
+ # @param urls_redirect_dto Información de la cuenta del beneficiario
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Array<(AuthorizedBeneficiariesResponse, Fixnum, Hash)>] AuthorizedBeneficiariesResponse data, response status code and response headers
41
+ def authorize_accounts_pending_put_with_http_info(authorization, subscription, urls_redirect_dto, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put ...'
44
+ end
45
+ # verify the required parameter 'authorization' is set
46
+ if @api_client.config.client_side_validation && authorization.nil?
47
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put"
48
+ end
49
+ # verify the required parameter 'subscription' is set
50
+ if @api_client.config.client_side_validation && subscription.nil?
51
+ fail ArgumentError, "Missing the required parameter 'subscription' when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put"
52
+ end
53
+ if @api_client.config.client_side_validation && subscription.to_s.length > 36
54
+ fail ArgumentError, 'invalid value for "subscription" when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put, the character length must be smaller than or equal to 36.'
55
+ end
56
+
57
+ if @api_client.config.client_side_validation && subscription.to_s.length < 36
58
+ fail ArgumentError, 'invalid value for "subscription" when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put, the character length must be great than or equal to 36.'
59
+ end
60
+
61
+ if @api_client.config.client_side_validation && subscription !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
62
+ fail ArgumentError, "invalid value for 'subscription' when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put, must conform to the pattern /[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/."
63
+ end
64
+
65
+ # verify the required parameter 'urls_redirect_dto' is set
66
+ if @api_client.config.client_side_validation && urls_redirect_dto.nil?
67
+ fail ArgumentError, "Missing the required parameter 'urls_redirect_dto' when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put"
68
+ end
69
+ # resource path
70
+ local_var_path = '/subscriptions/{subscription}/beneficiaries/pending'.sub('{' + 'subscription' + '}', subscription.to_s)
71
+
72
+ # query parameters
73
+ query_params = {}
74
+
75
+ # header parameters
76
+ header_params = {}
77
+ # HTTP header 'Accept' (if needed)
78
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
79
+ # HTTP header 'Content-Type'
80
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
81
+ header_params[:'Authorization'] = authorization
82
+
83
+ # form parameters
84
+ form_params = {}
85
+
86
+ # http body (model)
87
+ post_body = @api_client.object_to_http_body(urls_redirect_dto)
88
+ auth_names = []
89
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
90
+ :header_params => header_params,
91
+ :query_params => query_params,
92
+ :form_params => form_params,
93
+ :body => post_body,
94
+ :auth_names => auth_names,
95
+ :return_type => 'AuthorizedBeneficiariesResponse')
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: CuentasDeBeneficiariosSPEIApi#authorize_accounts_pending_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ return data, status_code, headers
100
+ end
22
101
  # Elimina la cuenta del beneficiario
23
102
  # Borra la cuenta de beneficiario proporcionada relacionada al contrato perteneciente a la subscripción. La cuenta a borrar debe ser una cuenta que opere con SPEI.
103
+ # @param authorization Header para token
24
104
  # @param account La cuenta del beneciario que será eliminada
25
105
  # @param subscription El identificador de la suscripción a esta API
26
106
  # @param [Hash] opts the optional parameters
27
107
  # @return [nil]
28
- def delete_account_using_delete(account, subscription, opts = {})
29
- delete_account_using_delete_with_http_info(account, subscription, opts)
108
+ def delete_account_using_delete(authorization, account, subscription, opts = {})
109
+ delete_account_using_delete_with_http_info(authorization, account, subscription, opts)
30
110
  nil
31
111
  end
32
112
 
33
113
  # Elimina la cuenta del beneficiario
34
114
  # Borra la cuenta de beneficiario proporcionada relacionada al contrato perteneciente a la subscripción. La cuenta a borrar debe ser una cuenta que opere con SPEI.
115
+ # @param authorization Header para token
35
116
  # @param account La cuenta del beneciario que será eliminada
36
117
  # @param subscription El identificador de la suscripción a esta API
37
118
  # @param [Hash] opts the optional parameters
38
119
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
39
- def delete_account_using_delete_with_http_info(account, subscription, opts = {})
120
+ def delete_account_using_delete_with_http_info(authorization, account, subscription, opts = {})
40
121
  if @api_client.config.debugging
41
122
  @api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.delete_account_using_delete ...'
42
123
  end
124
+ # verify the required parameter 'authorization' is set
125
+ if @api_client.config.client_side_validation && authorization.nil?
126
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.delete_account_using_delete"
127
+ end
43
128
  # verify the required parameter 'account' is set
44
129
  if @api_client.config.client_side_validation && account.nil?
45
130
  fail ArgumentError, "Missing the required parameter 'account' when calling CuentasDeBeneficiariosSPEIApi.delete_account_using_delete"
@@ -78,13 +163,14 @@ module Wire4Client
78
163
  header_params = {}
79
164
  # HTTP header 'Accept' (if needed)
80
165
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
166
+ header_params[:'Authorization'] = authorization
81
167
 
82
168
  # form parameters
83
169
  form_params = {}
84
170
 
85
171
  # http body (model)
86
172
  post_body = nil
87
- auth_names = ['wire4_aut_app_user_spei']
173
+ auth_names = []
88
174
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
89
175
  :header_params => header_params,
90
176
  :query_params => query_params,
@@ -98,23 +184,29 @@ module Wire4Client
98
184
  end
99
185
  # Consulta de relaciones
100
186
  # Obtiene las posibles relaciones existentes para registrar beneficiarios en Monex. Se debe invocar este recurso antes de pre-registrar una cuenta de beneficiario.
187
+ # @param authorization Header para token
101
188
  # @param subscription Identificador de la suscripción a esta API
102
189
  # @param [Hash] opts the optional parameters
103
190
  # @return [RelationshipsResponse]
104
- def get_available_relationships_monex_using_get(subscription, opts = {})
105
- data, _status_code, _headers = get_available_relationships_monex_using_get_with_http_info(subscription, opts)
191
+ def get_available_relationships_monex_using_get(authorization, subscription, opts = {})
192
+ data, _status_code, _headers = get_available_relationships_monex_using_get_with_http_info(authorization, subscription, opts)
106
193
  data
107
194
  end
108
195
 
109
196
  # Consulta de relaciones
110
197
  # Obtiene las posibles relaciones existentes para registrar beneficiarios en Monex. Se debe invocar este recurso antes de pre-registrar una cuenta de beneficiario.
198
+ # @param authorization Header para token
111
199
  # @param subscription Identificador de la suscripción a esta API
112
200
  # @param [Hash] opts the optional parameters
113
201
  # @return [Array<(RelationshipsResponse, Fixnum, Hash)>] RelationshipsResponse data, response status code and response headers
114
- def get_available_relationships_monex_using_get_with_http_info(subscription, opts = {})
202
+ def get_available_relationships_monex_using_get_with_http_info(authorization, subscription, opts = {})
115
203
  if @api_client.config.debugging
116
204
  @api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.get_available_relationships_monex_using_get ...'
117
205
  end
206
+ # verify the required parameter 'authorization' is set
207
+ if @api_client.config.client_side_validation && authorization.nil?
208
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.get_available_relationships_monex_using_get"
209
+ end
118
210
  # verify the required parameter 'subscription' is set
119
211
  if @api_client.config.client_side_validation && subscription.nil?
120
212
  fail ArgumentError, "Missing the required parameter 'subscription' when calling CuentasDeBeneficiariosSPEIApi.get_available_relationships_monex_using_get"
@@ -141,13 +233,14 @@ module Wire4Client
141
233
  header_params = {}
142
234
  # HTTP header 'Accept' (if needed)
143
235
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
236
+ header_params[:'Authorization'] = authorization
144
237
 
145
238
  # form parameters
146
239
  form_params = {}
147
240
 
148
241
  # http body (model)
149
242
  post_body = nil
150
- auth_names = ['wire4_aut_app_user_spei']
243
+ auth_names = []
151
244
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
152
245
  :header_params => header_params,
153
246
  :query_params => query_params,
@@ -160,27 +253,134 @@ module Wire4Client
160
253
  end
161
254
  return data, status_code, headers
162
255
  end
256
+ # Consulta los beneficiarios por el identificador de la petición de registro
257
+ # Obtiene los beneficiarios enviados para registro en una petición al contrato relacionado con la suscripción, Los beneficiarios son los que actualmente se encuentran registrados en banca Monex, que pertenezcan a la petición que se solicita.
258
+ # @param authorization Header para token
259
+ # @param request_id El identificador de la petición del registro de beneficiarios a esta API
260
+ # @param subscription El identificador de la suscripción a esta API
261
+ # @param [Hash] opts the optional parameters
262
+ # @return [BeneficiariesResponse]
263
+ def get_beneficiaries_by_request_id(authorization, request_id, subscription, opts = {})
264
+ data, _status_code, _headers = get_beneficiaries_by_request_id_with_http_info(authorization, request_id, subscription, opts)
265
+ data
266
+ end
267
+
268
+ # Consulta los beneficiarios por el identificador de la petición de registro
269
+ # Obtiene los beneficiarios enviados para registro en una petición al contrato relacionado con la suscripción, Los beneficiarios son los que actualmente se encuentran registrados en banca Monex, que pertenezcan a la petición que se solicita.
270
+ # @param authorization Header para token
271
+ # @param request_id El identificador de la petición del registro de beneficiarios a esta API
272
+ # @param subscription El identificador de la suscripción a esta API
273
+ # @param [Hash] opts the optional parameters
274
+ # @return [Array<(BeneficiariesResponse, Fixnum, Hash)>] BeneficiariesResponse data, response status code and response headers
275
+ def get_beneficiaries_by_request_id_with_http_info(authorization, request_id, subscription, opts = {})
276
+ if @api_client.config.debugging
277
+ @api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id ...'
278
+ end
279
+ # verify the required parameter 'authorization' is set
280
+ if @api_client.config.client_side_validation && authorization.nil?
281
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id"
282
+ end
283
+ # verify the required parameter 'request_id' is set
284
+ if @api_client.config.client_side_validation && request_id.nil?
285
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id"
286
+ end
287
+ if @api_client.config.client_side_validation && request_id.to_s.length > 36
288
+ fail ArgumentError, 'invalid value for "request_id" when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, the character length must be smaller than or equal to 36.'
289
+ end
290
+
291
+ if @api_client.config.client_side_validation && request_id.to_s.length < 36
292
+ fail ArgumentError, 'invalid value for "request_id" when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, the character length must be great than or equal to 36.'
293
+ end
294
+
295
+ if @api_client.config.client_side_validation && request_id !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
296
+ fail ArgumentError, "invalid value for 'request_id' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, must conform to the pattern /[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/."
297
+ end
298
+
299
+ # verify the required parameter 'subscription' is set
300
+ if @api_client.config.client_side_validation && subscription.nil?
301
+ fail ArgumentError, "Missing the required parameter 'subscription' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id"
302
+ end
303
+ if @api_client.config.client_side_validation && subscription.to_s.length > 36
304
+ fail ArgumentError, 'invalid value for "subscription" when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, the character length must be smaller than or equal to 36.'
305
+ end
306
+
307
+ if @api_client.config.client_side_validation && subscription.to_s.length < 36
308
+ fail ArgumentError, 'invalid value for "subscription" when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, the character length must be great than or equal to 36.'
309
+ end
310
+
311
+ if @api_client.config.client_side_validation && subscription !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
312
+ fail ArgumentError, "invalid value for 'subscription' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id, must conform to the pattern /[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/."
313
+ end
314
+
315
+ # resource path
316
+ local_var_path = '/subscriptions/{subscription}/beneficiaries/spei/{requestId}'.sub('{' + 'requestId' + '}', request_id.to_s).sub('{' + 'subscription' + '}', subscription.to_s)
317
+
318
+ # query parameters
319
+ query_params = {}
320
+
321
+ # header parameters
322
+ header_params = {}
323
+ # HTTP header 'Accept' (if needed)
324
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
325
+ header_params[:'Authorization'] = authorization
326
+
327
+ # form parameters
328
+ form_params = {}
329
+
330
+ # http body (model)
331
+ post_body = nil
332
+ auth_names = []
333
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
334
+ :header_params => header_params,
335
+ :query_params => query_params,
336
+ :form_params => form_params,
337
+ :body => post_body,
338
+ :auth_names => auth_names,
339
+ :return_type => 'BeneficiariesResponse')
340
+ if @api_client.config.debugging
341
+ @api_client.config.logger.debug "API called: CuentasDeBeneficiariosSPEIApi#get_beneficiaries_by_request_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
342
+ end
343
+ return data, status_code, headers
344
+ end
163
345
  # Consulta los beneficiarios registrados
164
346
  # Obtiene los beneficiarios registrados al contrato relacionado con la suscripción, Los beneficiarios son los que actualmente se encuentran registrados en banca Monex.
347
+ # @param authorization Header para token
165
348
  # @param subscription El identificador de la suscripción a esta API
166
349
  # @param [Hash] opts the optional parameters
350
+ # @option opts [String] :account Cuenta del beneficiario, puede ser Clabe, TDD o Celular
351
+ # @option opts [String] :beneficiary_bank Clave del banco beneficiario
352
+ # @option opts [String] :beneficiary_name Nombre del beneficiario
353
+ # @option opts [String] :end_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
354
+ # @option opts [String] :init_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
167
355
  # @option opts [String] :rfc RFC del beneficiario
356
+ # @option opts [String] :status Estatus de la cuenta
168
357
  # @return [BeneficiariesResponse]
169
- def get_beneficiaries_for_account_using_get(subscription, opts = {})
170
- data, _status_code, _headers = get_beneficiaries_for_account_using_get_with_http_info(subscription, opts)
358
+ def get_beneficiaries_for_account_using_get(authorization, subscription, opts = {})
359
+ data, _status_code, _headers = get_beneficiaries_for_account_using_get_with_http_info(authorization, subscription, opts)
171
360
  data
172
361
  end
173
362
 
174
363
  # Consulta los beneficiarios registrados
175
364
  # Obtiene los beneficiarios registrados al contrato relacionado con la suscripción, Los beneficiarios son los que actualmente se encuentran registrados en banca Monex.
365
+ # @param authorization Header para token
176
366
  # @param subscription El identificador de la suscripción a esta API
177
367
  # @param [Hash] opts the optional parameters
368
+ # @option opts [String] :account Cuenta del beneficiario, puede ser Clabe, TDD o Celular
369
+ # @option opts [String] :beneficiary_bank Clave del banco beneficiario
370
+ # @option opts [String] :beneficiary_name Nombre del beneficiario
371
+ # @option opts [String] :end_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
372
+ # @option opts [String] :init_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
178
373
  # @option opts [String] :rfc RFC del beneficiario
374
+ # @option opts [String] :status Estatus de la cuenta
179
375
  # @return [Array<(BeneficiariesResponse, Fixnum, Hash)>] BeneficiariesResponse data, response status code and response headers
180
- def get_beneficiaries_for_account_using_get_with_http_info(subscription, opts = {})
376
+ def get_beneficiaries_for_account_using_get_with_http_info(authorization, subscription, opts = {})
181
377
  if @api_client.config.debugging
182
378
  @api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.get_beneficiaries_for_account_using_get ...'
183
379
  end
380
+ # verify the required parameter 'authorization' is set
381
+ if @api_client.config.client_side_validation && authorization.nil?
382
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_for_account_using_get"
383
+ end
184
384
  # verify the required parameter 'subscription' is set
185
385
  if @api_client.config.client_side_validation && subscription.nil?
186
386
  fail ArgumentError, "Missing the required parameter 'subscription' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_for_account_using_get"
@@ -202,19 +402,26 @@ module Wire4Client
202
402
 
203
403
  # query parameters
204
404
  query_params = {}
405
+ query_params[:'account'] = opts[:'account'] if !opts[:'account'].nil?
406
+ query_params[:'beneficiary_bank'] = opts[:'beneficiary_bank'] if !opts[:'beneficiary_bank'].nil?
407
+ query_params[:'beneficiary_name'] = opts[:'beneficiary_name'] if !opts[:'beneficiary_name'].nil?
408
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
409
+ query_params[:'init_date'] = opts[:'init_date'] if !opts[:'init_date'].nil?
205
410
  query_params[:'rfc'] = opts[:'rfc'] if !opts[:'rfc'].nil?
411
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
206
412
 
207
413
  # header parameters
208
414
  header_params = {}
209
415
  # HTTP header 'Accept' (if needed)
210
416
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
417
+ header_params[:'Authorization'] = authorization
211
418
 
212
419
  # form parameters
213
420
  form_params = {}
214
421
 
215
422
  # http body (model)
216
423
  post_body = nil
217
- auth_names = ['wire4_aut_app_user_spei']
424
+ auth_names = []
218
425
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
219
426
  :header_params => header_params,
220
427
  :query_params => query_params,
@@ -229,25 +436,31 @@ module Wire4Client
229
436
  end
230
437
  # Pre-registro de cuentas de beneficiarios.
231
438
  # Pre-registra una o más cuentas de beneficiario en la plataforma, proporcionando una URL donde el cuentahabiente Monex debe ingresar un valor de su llave digital para confirmar el alta de las cuentas de beneficiarios.<br/>Los posibles valores de <i>relationship</i> y <i>kind_of_relationship</i> se deben obtener de /subscriptions/{subscription}/beneficiaries/relationships.<br/><br/>La confirmación de registro en Monex se realiza a través de una llamada a los webhooks registrados con el evento ACCOUNT.CREATED.
439
+ # @param authorization Header para token
232
440
  # @param request_dto Información de la cuenta del beneficiario
233
441
  # @param subscription El identificador de la suscripción a esta API
234
442
  # @param [Hash] opts the optional parameters
235
443
  # @return [TokenRequiredResponse]
236
- def pre_register_accounts_using_post(request_dto, subscription, opts = {})
237
- data, _status_code, _headers = pre_register_accounts_using_post_with_http_info(request_dto, subscription, opts)
444
+ def pre_register_accounts_using_post(authorization, request_dto, subscription, opts = {})
445
+ data, _status_code, _headers = pre_register_accounts_using_post_with_http_info(authorization, request_dto, subscription, opts)
238
446
  data
239
447
  end
240
448
 
241
449
  # Pre-registro de cuentas de beneficiarios.
242
450
  # Pre-registra una o más cuentas de beneficiario en la plataforma, proporcionando una URL donde el cuentahabiente Monex debe ingresar un valor de su llave digital para confirmar el alta de las cuentas de beneficiarios.&lt;br/&gt;Los posibles valores de &lt;i&gt;relationship&lt;/i&gt; y &lt;i&gt;kind_of_relationship&lt;/i&gt; se deben obtener de /subscriptions/{subscription}/beneficiaries/relationships.&lt;br/&gt;&lt;br/&gt;La confirmación de registro en Monex se realiza a través de una llamada a los webhooks registrados con el evento ACCOUNT.CREATED.
451
+ # @param authorization Header para token
243
452
  # @param request_dto Información de la cuenta del beneficiario
244
453
  # @param subscription El identificador de la suscripción a esta API
245
454
  # @param [Hash] opts the optional parameters
246
455
  # @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
247
- def pre_register_accounts_using_post_with_http_info(request_dto, subscription, opts = {})
456
+ def pre_register_accounts_using_post_with_http_info(authorization, request_dto, subscription, opts = {})
248
457
  if @api_client.config.debugging
249
458
  @api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.pre_register_accounts_using_post ...'
250
459
  end
460
+ # verify the required parameter 'authorization' is set
461
+ if @api_client.config.client_side_validation && authorization.nil?
462
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.pre_register_accounts_using_post"
463
+ end
251
464
  # verify the required parameter 'request_dto' is set
252
465
  if @api_client.config.client_side_validation && request_dto.nil?
253
466
  fail ArgumentError, "Missing the required parameter 'request_dto' when calling CuentasDeBeneficiariosSPEIApi.pre_register_accounts_using_post"
@@ -280,13 +493,14 @@ module Wire4Client
280
493
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
281
494
  # HTTP header 'Content-Type'
282
495
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
496
+ header_params[:'Authorization'] = authorization
283
497
 
284
498
  # form parameters
285
499
  form_params = {}
286
500
 
287
501
  # http body (model)
288
502
  post_body = @api_client.object_to_http_body(request_dto)
289
- auth_names = ['wire4_aut_app_user_spei']
503
+ auth_names = []
290
504
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
291
505
  :header_params => header_params,
292
506
  :query_params => query_params,
@@ -301,25 +515,31 @@ module Wire4Client
301
515
  end
302
516
  # Eliminación de beneficiarios SPEI® sin confirmar
303
517
  # Elimina un conjunto de beneficiarios a registrar en la cuenta del cliente Monex relacionada a la suscripción, los beneficiarios no deben haber sido confirmados por el cliente.
518
+ # @param authorization Header para token
304
519
  # @param request_id Identificador de los beneficiarios a eliminar
305
520
  # @param subscription El identificador de la suscripción a esta API
306
521
  # @param [Hash] opts the optional parameters
307
522
  # @return [nil]
308
- def remove_beneficiaries_pending_using_delete(request_id, subscription, opts = {})
309
- remove_beneficiaries_pending_using_delete_with_http_info(request_id, subscription, opts)
523
+ def remove_beneficiaries_pending_using_delete(authorization, request_id, subscription, opts = {})
524
+ remove_beneficiaries_pending_using_delete_with_http_info(authorization, request_id, subscription, opts)
310
525
  nil
311
526
  end
312
527
 
313
528
  # Eliminación de beneficiarios SPEI® sin confirmar
314
529
  # Elimina un conjunto de beneficiarios a registrar en la cuenta del cliente Monex relacionada a la suscripción, los beneficiarios no deben haber sido confirmados por el cliente.
530
+ # @param authorization Header para token
315
531
  # @param request_id Identificador de los beneficiarios a eliminar
316
532
  # @param subscription El identificador de la suscripción a esta API
317
533
  # @param [Hash] opts the optional parameters
318
534
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
319
- def remove_beneficiaries_pending_using_delete_with_http_info(request_id, subscription, opts = {})
535
+ def remove_beneficiaries_pending_using_delete_with_http_info(authorization, request_id, subscription, opts = {})
320
536
  if @api_client.config.debugging
321
537
  @api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.remove_beneficiaries_pending_using_delete ...'
322
538
  end
539
+ # verify the required parameter 'authorization' is set
540
+ if @api_client.config.client_side_validation && authorization.nil?
541
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.remove_beneficiaries_pending_using_delete"
542
+ end
323
543
  # verify the required parameter 'request_id' is set
324
544
  if @api_client.config.client_side_validation && request_id.nil?
325
545
  fail ArgumentError, "Missing the required parameter 'request_id' when calling CuentasDeBeneficiariosSPEIApi.remove_beneficiaries_pending_using_delete"
@@ -346,13 +566,14 @@ module Wire4Client
346
566
  header_params = {}
347
567
  # HTTP header 'Accept' (if needed)
348
568
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
569
+ header_params[:'Authorization'] = authorization
349
570
 
350
571
  # form parameters
351
572
  form_params = {}
352
573
 
353
574
  # http body (model)
354
575
  post_body = nil
355
- auth_names = ['wire4_aut_app_user_spei']
576
+ auth_names = []
356
577
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
357
578
  :header_params => header_params,
358
579
  :query_params => query_params,
@@ -364,29 +585,35 @@ module Wire4Client
364
585
  end
365
586
  return data, status_code, headers
366
587
  end
367
- # Actualiza el monto límite
368
- # Actualiza el monto límite a la cuenta de beneficiario proporcionada relacionada al contrato perteneciente a la subscripción.
588
+ # Solicitud para actualizar el monto límite
589
+ # Inicia una solicitud para actualizar el monto límite a la cuenta de beneficiario proporcionada relacionada al contrato perteneciente a la subscripción.
590
+ # @param authorization Header para token
369
591
  # @param account Cuenta a actualizar
370
592
  # @param request_dto Información de la cuenta y el monto límite a actualizar
371
593
  # @param subscription El identificador de la suscripción a esta API
372
594
  # @param [Hash] opts the optional parameters
373
- # @return [nil]
374
- def update_amount_limit_account_using_put(account, request_dto, subscription, opts = {})
375
- update_amount_limit_account_using_put_with_http_info(account, request_dto, subscription, opts)
376
- nil
595
+ # @return [TokenRequiredResponse]
596
+ def update_amount_limit_account_using_put(authorization, account, request_dto, subscription, opts = {})
597
+ data, _status_code, _headers = update_amount_limit_account_using_put_with_http_info(authorization, account, request_dto, subscription, opts)
598
+ data
377
599
  end
378
600
 
379
- # Actualiza el monto límite
380
- # Actualiza el monto límite a la cuenta de beneficiario proporcionada relacionada al contrato perteneciente a la subscripción.
601
+ # Solicitud para actualizar el monto límite
602
+ # Inicia una solicitud para actualizar el monto límite a la cuenta de beneficiario proporcionada relacionada al contrato perteneciente a la subscripción.
603
+ # @param authorization Header para token
381
604
  # @param account Cuenta a actualizar
382
605
  # @param request_dto Información de la cuenta y el monto límite a actualizar
383
606
  # @param subscription El identificador de la suscripción a esta API
384
607
  # @param [Hash] opts the optional parameters
385
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
386
- def update_amount_limit_account_using_put_with_http_info(account, request_dto, subscription, opts = {})
608
+ # @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
609
+ def update_amount_limit_account_using_put_with_http_info(authorization, account, request_dto, subscription, opts = {})
387
610
  if @api_client.config.debugging
388
611
  @api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.update_amount_limit_account_using_put ...'
389
612
  end
613
+ # verify the required parameter 'authorization' is set
614
+ if @api_client.config.client_side_validation && authorization.nil?
615
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.update_amount_limit_account_using_put"
616
+ end
390
617
  # verify the required parameter 'account' is set
391
618
  if @api_client.config.client_side_validation && account.nil?
392
619
  fail ArgumentError, "Missing the required parameter 'account' when calling CuentasDeBeneficiariosSPEIApi.update_amount_limit_account_using_put"
@@ -431,19 +658,21 @@ module Wire4Client
431
658
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
432
659
  # HTTP header 'Content-Type'
433
660
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
661
+ header_params[:'Authorization'] = authorization
434
662
 
435
663
  # form parameters
436
664
  form_params = {}
437
665
 
438
666
  # http body (model)
439
667
  post_body = @api_client.object_to_http_body(request_dto)
440
- auth_names = ['wire4_aut_app_user_spei']
668
+ auth_names = []
441
669
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
442
670
  :header_params => header_params,
443
671
  :query_params => query_params,
444
672
  :form_params => form_params,
445
673
  :body => post_body,
446
- :auth_names => auth_names)
674
+ :auth_names => auth_names,
675
+ :return_type => 'TokenRequiredResponse')
447
676
  if @api_client.config.debugging
448
677
  @api_client.config.logger.debug "API called: CuentasDeBeneficiariosSPEIApi#update_amount_limit_account_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
449
678
  end