wire4_client 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +50 -7
  3. data/docs/Account.md +3 -3
  4. data/docs/AccountDetail.md +13 -0
  5. data/docs/AccountReassigned.md +21 -0
  6. data/docs/AccountResponse.md +4 -3
  7. data/docs/AddressCompany.md +17 -0
  8. data/docs/AmountRequest.md +2 -0
  9. data/docs/AuthorizationTransactionGroup.md +9 -0
  10. data/docs/AuthorizedBeneficiariesResponse.md +10 -0
  11. data/docs/AuthorizedUsers.md +13 -0
  12. data/docs/CertificateRequest.md +11 -0
  13. data/docs/CodiCodeQrResponseDTO.md +17 -0
  14. data/docs/CodiCodeRequestDTO.md +14 -0
  15. data/docs/CodiOperationResponseDTO.md +14 -0
  16. data/docs/CodiOperationsFiltersRequestDTO.md +15 -0
  17. data/docs/CompanyRegistered.md +13 -0
  18. data/docs/CompanyRequested.md +11 -0
  19. data/docs/Compay.md +11 -0
  20. data/docs/ContractDetailRequest.md +11 -0
  21. data/docs/ContractDetailResponse.md +9 -0
  22. data/docs/ContractsDetailsApi.md +167 -0
  23. data/docs/CuentasDeBeneficiariosSPEIApi.md +69 -4
  24. data/docs/CuentasDeBeneficiariosSPIDApi.md +11 -1
  25. data/docs/EmpresasCoDiApi.md +107 -0
  26. data/docs/MessageAccountBeneficiary.md +2 -2
  27. data/docs/MessageCEP.md +9 -9
  28. data/docs/MessageCodiAction.md +19 -0
  29. data/docs/MessagePayment.md +3 -1
  30. data/docs/MessagePaymentStatePending.md +23 -0
  31. data/docs/MessageRequestChanged.md +2 -2
  32. data/docs/MessageSalesPoint.md +10 -0
  33. data/docs/MessageSubscription.md +6 -6
  34. data/docs/MessageUserAuthorized.md +13 -0
  35. data/docs/MessageWebHook.md +2 -2
  36. data/docs/OperacionesCoDiApi.md +68 -0
  37. data/docs/Operations.md +17 -0
  38. data/docs/PagerResponseDto.md +13 -0
  39. data/docs/Payment.md +3 -1
  40. data/docs/PaymentRequestCodiResponseDTO.md +18 -0
  41. data/docs/PeticionesDePagoPorCoDiApi.md +116 -0
  42. data/docs/PreMonexAuthorization.md +11 -0
  43. data/docs/PuntosDeVentaCoDiApi.md +113 -0
  44. data/docs/SalesPoint.md +10 -0
  45. data/docs/SalesPointFound.md +14 -0
  46. data/docs/SalesPointRequest.md +11 -0
  47. data/docs/SalesPointRespose.md +11 -0
  48. data/docs/SpidBeneficiaryResponse.md +2 -0
  49. data/docs/SuscripcionesApi.md +14 -14
  50. data/docs/TransactionOutgoing.md +2 -1
  51. data/docs/TransferenciasSPEIApi.md +60 -2
  52. data/docs/UrlsRedirect.md +9 -0
  53. data/docs/UserCompany.md +16 -0
  54. data/docs/Webhook.md +13 -0
  55. data/lib/wire4_client.rb +36 -0
  56. data/lib/wire4_client/api/contracts_details_api.rb +230 -0
  57. data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +100 -5
  58. data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +15 -0
  59. data/lib/wire4_client/api/empresas_co_di_api.rb +137 -0
  60. data/lib/wire4_client/api/operaciones_co_di_api.rb +92 -0
  61. data/lib/wire4_client/api/peticiones_de_pago_por_co_di_api.rb +178 -0
  62. data/lib/wire4_client/api/puntos_de_venta_co_di_api.rb +151 -0
  63. data/lib/wire4_client/api/suscripciones_api.rb +14 -14
  64. data/lib/wire4_client/api/transferencias_spei_api.rb +82 -0
  65. data/lib/wire4_client/models/account.rb +3 -3
  66. data/lib/wire4_client/models/account_detail.rb +239 -0
  67. data/lib/wire4_client/models/account_reassigned.rb +375 -0
  68. data/lib/wire4_client/models/account_response.rb +14 -4
  69. data/lib/wire4_client/models/address_company.rb +275 -0
  70. data/lib/wire4_client/models/amount_request.rb +90 -4
  71. data/lib/wire4_client/models/authorization_transaction_group.rb +207 -0
  72. data/lib/wire4_client/models/authorized_beneficiaries_response.rb +206 -0
  73. data/lib/wire4_client/models/authorized_users.rb +235 -0
  74. data/lib/wire4_client/models/certificate_request.rb +248 -0
  75. data/lib/wire4_client/models/codi_code_qr_response_dto.rb +320 -0
  76. data/lib/wire4_client/models/codi_code_request_dto.rb +402 -0
  77. data/lib/wire4_client/models/codi_operation_response_dto.rb +245 -0
  78. data/lib/wire4_client/models/codi_operations_filters_request_dto.rb +336 -0
  79. data/lib/wire4_client/models/company_registered.rb +235 -0
  80. data/lib/wire4_client/models/company_requested.rb +215 -0
  81. data/lib/wire4_client/models/compay.rb +215 -0
  82. data/lib/wire4_client/models/contract_detail_request.rb +247 -0
  83. data/lib/wire4_client/models/contract_detail_response.rb +194 -0
  84. data/lib/wire4_client/models/message_account_beneficiary.rb +2 -2
  85. data/lib/wire4_client/models/message_cep.rb +10 -10
  86. data/lib/wire4_client/models/message_codi_action.rb +295 -0
  87. data/lib/wire4_client/models/message_deposit_received.rb +1 -1
  88. data/lib/wire4_client/models/message_payment.rb +23 -2
  89. data/lib/wire4_client/models/message_payment_state_pending.rb +335 -0
  90. data/lib/wire4_client/models/message_request_changed.rb +3 -3
  91. data/lib/wire4_client/models/message_sales_point.rb +205 -0
  92. data/lib/wire4_client/models/message_subscription.rb +7 -7
  93. data/lib/wire4_client/models/message_user_authorized.rb +235 -0
  94. data/lib/wire4_client/models/message_web_hook.rb +2 -2
  95. data/lib/wire4_client/models/operations.rb +321 -0
  96. data/lib/wire4_client/models/pager_response_dto.rb +236 -0
  97. data/lib/wire4_client/models/payment.rb +22 -2
  98. data/lib/wire4_client/models/payment_request_codi_response_dto.rb +287 -0
  99. data/lib/wire4_client/models/pre_monex_authorization.rb +291 -0
  100. data/lib/wire4_client/models/sales_point.rb +205 -0
  101. data/lib/wire4_client/models/sales_point_found.rb +279 -0
  102. data/lib/wire4_client/models/sales_point_request.rb +254 -0
  103. data/lib/wire4_client/models/sales_point_respose.rb +215 -0
  104. data/lib/wire4_client/models/spid_beneficiary_response.rb +24 -4
  105. data/lib/wire4_client/models/transaction_outgoing.rb +12 -2
  106. data/lib/wire4_client/models/urls_redirect.rb +205 -0
  107. data/lib/wire4_client/models/user_company.rb +269 -0
  108. data/lib/wire4_client/models/webhook.rb +271 -0
  109. data/lib/wire4_client/version.rb +1 -1
  110. data/spec/api/contracts_details_api_spec.rb +76 -0
  111. data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +20 -1
  112. data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +5 -0
  113. data/spec/api/empresas_co_di_api_spec.rb +60 -0
  114. data/spec/api/operaciones_co_di_api_spec.rb +52 -0
  115. data/spec/api/peticiones_de_pago_por_co_di_api_spec.rb +63 -0
  116. data/spec/api/puntos_de_venta_co_di_api_spec.rb +62 -0
  117. data/spec/api/suscripciones_api_spec.rb +7 -7
  118. data/spec/api/transferencias_spei_api_spec.rb +15 -0
  119. data/spec/models/account_detail_spec.rb +71 -0
  120. data/spec/models/account_reassigned_spec.rb +119 -0
  121. data/spec/models/account_response_spec.rb +6 -0
  122. data/spec/models/address_company_spec.rb +95 -0
  123. data/spec/models/amount_request_spec.rb +12 -0
  124. data/spec/models/authorization_transaction_group_spec.rb +47 -0
  125. data/spec/models/authorized_beneficiaries_response_spec.rb +53 -0
  126. data/spec/models/authorized_users_spec.rb +71 -0
  127. data/spec/models/certificate_request_spec.rb +59 -0
  128. data/spec/models/codi_code_qr_response_dto_spec.rb +103 -0
  129. data/spec/models/codi_code_request_dto_spec.rb +81 -0
  130. data/spec/models/codi_operation_response_dto_spec.rb +77 -0
  131. data/spec/models/codi_operations_filters_request_dto_spec.rb +87 -0
  132. data/spec/models/company_registered_spec.rb +71 -0
  133. data/spec/models/company_requested_spec.rb +59 -0
  134. data/spec/models/compay_spec.rb +59 -0
  135. data/spec/models/contract_detail_request_spec.rb +59 -0
  136. data/spec/models/contract_detail_response_spec.rb +47 -0
  137. data/spec/models/message_codi_action_spec.rb +107 -0
  138. data/spec/models/message_payment_spec.rb +12 -0
  139. data/spec/models/message_payment_state_pending_spec.rb +131 -0
  140. data/spec/models/message_sales_point_spec.rb +53 -0
  141. data/spec/models/message_user_authorized_spec.rb +71 -0
  142. data/spec/models/operations_spec.rb +103 -0
  143. data/spec/models/pager_response_dto_spec.rb +71 -0
  144. data/spec/models/payment_request_codi_response_dto_spec.rb +101 -0
  145. data/spec/models/payment_spec.rb +12 -0
  146. data/spec/models/pre_monex_authorization_spec.rb +59 -0
  147. data/spec/models/sales_point_found_spec.rb +81 -0
  148. data/spec/models/sales_point_request_spec.rb +59 -0
  149. data/spec/models/sales_point_respose_spec.rb +59 -0
  150. data/spec/models/sales_point_spec.rb +53 -0
  151. data/spec/models/spid_beneficiary_response_spec.rb +12 -0
  152. data/spec/models/transaction_outgoing_spec.rb +6 -0
  153. data/spec/models/urls_redirect_spec.rb +47 -0
  154. data/spec/models/user_company_spec.rb +89 -0
  155. data/spec/models/webhook_spec.rb +75 -0
  156. metadata +146 -3
  157. data/Gemfile.lock +0 -69
@@ -4,7 +4,8 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **amount** | **Float** | Monto de la transferencia |
7
- **beneficiary_account** | **String** | Cuenta del beneficiario, podría ser un numero celular, TDD o Cuenta CLABE interbancaria |
7
+ **beneficiary_account** | **String** | Cuenta del beneficiario, podría ser un número celular, TDD o Cuenta CLABE interbancaria |
8
+ **beneficiary_bank_key** | **String** | La clave del banco beneficiario, proprocionada por BANXICO, este campo solo es obligatario cuando la cuenta beneficiaria es un número celular (*). | [optional]
8
9
  **concept** | **String** | Concepto de la transferencia |
9
10
  **currency_code** | **String** | Código de moneda en la que opera la cuenta |
10
11
  **email** | **Array<String>** | Lista de email del beneficiario,es opcional | [optional]
@@ -4,6 +4,7 @@ All URIs are relative to *https://sandbox-api.wire4.mx/wire4/1.0.0*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**create_authorization_transactions_group**](TransferenciasSPEIApi.md#create_authorization_transactions_group) | **POST** /subscriptions/{subscription}/transactions/group | Agrupa un conjunto de transacciones bajo un mismo request_id para autorizar
7
8
  [**drop_transactions_pending_using_delete**](TransferenciasSPEIApi.md#drop_transactions_pending_using_delete) | **DELETE** /subscriptions/{subscription}/transactions/outcoming/spei/request/{requestId} | Eliminación de transferencias SPEI® pendientes
8
9
  [**incoming_spei_transactions_report_using_get**](TransferenciasSPEIApi.md#incoming_spei_transactions_report_using_get) | **GET** /subscriptions/{subscription}/transactions/incoming/spei | Consulta de transferencias recibidas
9
10
  [**out_comming_spei_request_id_transactions_report_using_get**](TransferenciasSPEIApi.md#out_comming_spei_request_id_transactions_report_using_get) | **GET** /subscriptions/{subscription}/transactions/outcoming/spei/{requestId} | Consulta de transferencias de salida por identificador de petición
@@ -11,8 +12,61 @@ Method | HTTP request | Description
11
12
  [**register_outgoing_spei_transaction_using_post**](TransferenciasSPEIApi.md#register_outgoing_spei_transaction_using_post) | **POST** /subscriptions/{subscription}/transactions/outcoming/spei | Registro de transferencias
12
13
 
13
14
 
15
+ # **create_authorization_transactions_group**
16
+ > TokenRequiredResponse create_authorization_transactions_group(authorization, authorization_transactions_group_request_dto, subscription)
17
+
18
+ Agrupa un conjunto de transacciones bajo un mismo request_id para autorizar
19
+
20
+ Agrupa transacciones SPEI/SPID en un transaction_id, generando la URL para su autorización. Las transacciones deben estar en estatus PENDING y pertenecer a un mmismo contrato
21
+
22
+ ### Example
23
+ ```ruby
24
+ # load the gem
25
+ require 'wire4_client'
26
+
27
+ api_instance = Wire4Client::TransferenciasSPEIApi.new
28
+
29
+ authorization = 'authorization_example' # String | Header para token
30
+
31
+ authorization_transactions_group_request_dto = Wire4Client::AuthorizationTransactionGroup.new # AuthorizationTransactionGroup | authorizationTransactionsGroupRequestDTO
32
+
33
+ subscription = 'subscription_example' # String | Identificador de la suscripcion
34
+
35
+
36
+ begin
37
+ #Agrupa un conjunto de transacciones bajo un mismo request_id para autorizar
38
+ result = api_instance.create_authorization_transactions_group(authorization, authorization_transactions_group_request_dto, subscription)
39
+ p result
40
+ rescue Wire4Client::ApiError => e
41
+ puts "Exception when calling TransferenciasSPEIApi->create_authorization_transactions_group: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ Name | Type | Description | Notes
48
+ ------------- | ------------- | ------------- | -------------
49
+ **authorization** | **String**| Header para token |
50
+ **authorization_transactions_group_request_dto** | [**AuthorizationTransactionGroup**](AuthorizationTransactionGroup.md)| authorizationTransactionsGroupRequestDTO |
51
+ **subscription** | **String**| Identificador de la suscripcion |
52
+
53
+ ### Return type
54
+
55
+ [**TokenRequiredResponse**](TokenRequiredResponse.md)
56
+
57
+ ### Authorization
58
+
59
+ No authorization required
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json
64
+ - **Accept**: */*
65
+
66
+
67
+
14
68
  # **drop_transactions_pending_using_delete**
15
- > drop_transactions_pending_using_delete(authorization, request_id, subscription)
69
+ > drop_transactions_pending_using_delete(authorization, request_id, subscription, opts)
16
70
 
17
71
  Eliminación de transferencias SPEI® pendientes
18
72
 
@@ -31,10 +85,13 @@ request_id = 'request_id_example' # String | Identificador de las transferencias
31
85
 
32
86
  subscription = 'subscription_example' # String | El identificador de la suscripción a esta API
33
87
 
88
+ opts = {
89
+ order_id: 'order_id_example' # String | Listado de identificadores dentro del request_id para eliminar
90
+ }
34
91
 
35
92
  begin
36
93
  #Eliminación de transferencias SPEI® pendientes
37
- api_instance.drop_transactions_pending_using_delete(authorization, request_id, subscription)
94
+ api_instance.drop_transactions_pending_using_delete(authorization, request_id, subscription, opts)
38
95
  rescue Wire4Client::ApiError => e
39
96
  puts "Exception when calling TransferenciasSPEIApi->drop_transactions_pending_using_delete: #{e}"
40
97
  end
@@ -47,6 +104,7 @@ Name | Type | Description | Notes
47
104
  **authorization** | **String**| Header para token |
48
105
  **request_id** | **String**| Identificador de las transferencias a eliminar |
49
106
  **subscription** | **String**| El identificador de la suscripción a esta API |
107
+ **order_id** | **String**| Listado de identificadores dentro del request_id para eliminar | [optional]
50
108
 
51
109
  ### Return type
52
110
 
@@ -0,0 +1,9 @@
1
+ # Wire4Client::UrlsRedirect
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **cancel_return_url** | **String** | Url a la que se redirigira en caso de que el cliente cancele el registro |
7
+ **return_url** | **String** | Url a la que se redireccionara en caso exitoso |
8
+
9
+
@@ -0,0 +1,16 @@
1
+ # Wire4Client::UserCompany
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **emails** | **Array<String>** | Una lista de los correos del usuario | [optional]
7
+ **legal_representative** | **BOOLEAN** | Indica sí es representate legal | [optional]
8
+ **masked_name** | **String** | El nombre del usuario enmascarado | [optional]
9
+ **masked_user_name** | **String** | El nombre del usuario de acceso enmascarado | [optional]
10
+ **name** | **String** | El nombre del usuario | [optional]
11
+ **phone_numbers** | **Array<String>** | Una lista de los teléfonos del usuario | [optional]
12
+ **surname_father** | **String** | El apellido paterno del usuario | [optional]
13
+ **surname_mother** | **String** | El apellido materno del usuario | [optional]
14
+ **user_name** | **String** | El nombre del usuario de acceso | [optional]
15
+
16
+
@@ -0,0 +1,13 @@
1
+ # Wire4Client::Webhook
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **events** | **Array<String>** | Tipo de evento manejado por el webhook, para mas referencia sobre los tipos de eventos soportados, revise la siguiente liga: https://developers.wire4.mx/#section/Eventos. | [optional]
7
+ **name** | **String** | Nombre del webhook. | [optional]
8
+ **secret** | **String** | Llave con la cual se debe de identificar que el webhook fue enviado por Wire4, para mayor información revisar la guía de notificaciones (https://wire4.mx/#/guides/notificaciones), en la sección de \"Comprobación de firmas de Webhook\". | [optional]
9
+ **status** | **String** | Estatus en el que se encuentra el webhook. | [optional]
10
+ **url** | **String** | URL a la cual Wire4 enviará las notificaciones cuando un evento ocurra. | [optional]
11
+ **wh_id** | **String** | Identificador del webhook. | [optional]
12
+
13
+
@@ -18,10 +18,16 @@ require 'wire4_client/configuration'
18
18
 
19
19
  # Models
20
20
  require 'wire4_client/models/account'
21
+ require 'wire4_client/models/account_detail'
22
+ require 'wire4_client/models/account_reassigned'
21
23
  require 'wire4_client/models/account_request'
22
24
  require 'wire4_client/models/account_response'
23
25
  require 'wire4_client/models/account_spid'
26
+ require 'wire4_client/models/address_company'
24
27
  require 'wire4_client/models/amount_request'
28
+ require 'wire4_client/models/authorization_transaction_group'
29
+ require 'wire4_client/models/authorized_beneficiaries_response'
30
+ require 'wire4_client/models/authorized_users'
25
31
  require 'wire4_client/models/balance'
26
32
  require 'wire4_client/models/balance_list_response'
27
33
  require 'wire4_client/models/beneficiaries_query_register_status'
@@ -31,7 +37,17 @@ require 'wire4_client/models/billing'
31
37
  require 'wire4_client/models/billing_transaction'
32
38
  require 'wire4_client/models/cep_response'
33
39
  require 'wire4_client/models/cep_search_banxico'
40
+ require 'wire4_client/models/certificate_request'
41
+ require 'wire4_client/models/codi_code_qr_response_dto'
42
+ require 'wire4_client/models/codi_code_request_dto'
43
+ require 'wire4_client/models/codi_operation_response_dto'
44
+ require 'wire4_client/models/codi_operations_filters_request_dto'
45
+ require 'wire4_client/models/company_registered'
46
+ require 'wire4_client/models/company_requested'
47
+ require 'wire4_client/models/compay'
34
48
  require 'wire4_client/models/contact_request'
49
+ require 'wire4_client/models/contract_detail_request'
50
+ require 'wire4_client/models/contract_detail_response'
35
51
  require 'wire4_client/models/deposit'
36
52
  require 'wire4_client/models/depositant'
37
53
  require 'wire4_client/models/depositants_register'
@@ -42,19 +58,31 @@ require 'wire4_client/models/institution'
42
58
  require 'wire4_client/models/institutions_list'
43
59
  require 'wire4_client/models/message_account_beneficiary'
44
60
  require 'wire4_client/models/message_cep'
61
+ require 'wire4_client/models/message_codi_action'
45
62
  require 'wire4_client/models/message_deposit_received'
46
63
  require 'wire4_client/models/message_institution'
47
64
  require 'wire4_client/models/message_payment'
65
+ require 'wire4_client/models/message_payment_state_pending'
48
66
  require 'wire4_client/models/message_request_changed'
67
+ require 'wire4_client/models/message_sales_point'
49
68
  require 'wire4_client/models/message_subscription'
69
+ require 'wire4_client/models/message_user_authorized'
50
70
  require 'wire4_client/models/message_web_hook'
71
+ require 'wire4_client/models/operations'
72
+ require 'wire4_client/models/pager_response_dto'
51
73
  require 'wire4_client/models/payment'
74
+ require 'wire4_client/models/payment_request_codi_response_dto'
52
75
  require 'wire4_client/models/payments_request_id'
53
76
  require 'wire4_client/models/person'
54
77
  require 'wire4_client/models/pre_enrollment_data'
55
78
  require 'wire4_client/models/pre_enrollment_response'
79
+ require 'wire4_client/models/pre_monex_authorization'
56
80
  require 'wire4_client/models/relationship'
57
81
  require 'wire4_client/models/relationships_response'
82
+ require 'wire4_client/models/sales_point'
83
+ require 'wire4_client/models/sales_point_found'
84
+ require 'wire4_client/models/sales_point_request'
85
+ require 'wire4_client/models/sales_point_respose'
58
86
  require 'wire4_client/models/spid_beneficiaries_response'
59
87
  require 'wire4_client/models/spid_beneficiary_response'
60
88
  require 'wire4_client/models/spid_classification_dto'
@@ -64,6 +92,9 @@ require 'wire4_client/models/token_required_response'
64
92
  require 'wire4_client/models/transaction_outgoing'
65
93
  require 'wire4_client/models/transaction_outgoing_spid'
66
94
  require 'wire4_client/models/transactions_outgoing_register'
95
+ require 'wire4_client/models/urls_redirect'
96
+ require 'wire4_client/models/user_company'
97
+ require 'wire4_client/models/webhook'
67
98
  require 'wire4_client/models/webhook_request'
68
99
  require 'wire4_client/models/webhook_response'
69
100
  require 'wire4_client/models/webhooks_list'
@@ -71,11 +102,16 @@ require 'wire4_client/models/webhooks_list'
71
102
  # APIs
72
103
  require 'wire4_client/api/comprobante_electrnico_de_pago_cep_api'
73
104
  require 'wire4_client/api/contacto_api'
105
+ require 'wire4_client/api/contracts_details_api'
74
106
  require 'wire4_client/api/cuentas_de_beneficiarios_spei_api'
75
107
  require 'wire4_client/api/cuentas_de_beneficiarios_spid_api'
76
108
  require 'wire4_client/api/depositantes_api'
109
+ require 'wire4_client/api/empresas_co_di_api'
77
110
  require 'wire4_client/api/facturas_api'
78
111
  require 'wire4_client/api/instituciones_api'
112
+ require 'wire4_client/api/operaciones_co_di_api'
113
+ require 'wire4_client/api/peticiones_de_pago_por_co_di_api'
114
+ require 'wire4_client/api/puntos_de_venta_co_di_api'
79
115
  require 'wire4_client/api/saldo_api'
80
116
  require 'wire4_client/api/suscripciones_api'
81
117
  require 'wire4_client/api/transferencias_spei_api'
@@ -0,0 +1,230 @@
1
+ =begin
2
+ #Wire4RestAPI
3
+
4
+ #Referencia de la API de Wire4
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 detalles de la empresa del contrato
162
+ # Detalles de la compañía relacionada con el contrato de Monex.
163
+ # @param authorization Header para token
164
+ # @param x_access_key La llave de acceso de la aplicación
165
+ # @param contract_detail_request Información para obtener los detalles de la companía
166
+ # @param [Hash] opts the optional parameters
167
+ # @return [ContractDetailResponse]
168
+ def obtain_contract_details(authorization, x_access_key, contract_detail_request, opts = {})
169
+ data, _status_code, _headers = obtain_contract_details_with_http_info(authorization, x_access_key, contract_detail_request, opts)
170
+ data
171
+ end
172
+
173
+ # Obtiene los detalles de la empresa del contrato
174
+ # Detalles de la compañía relacionada con el contrato de Monex.
175
+ # @param authorization Header para token
176
+ # @param x_access_key La llave de acceso de la aplicación
177
+ # @param contract_detail_request Información para obtener los detalles de la companía
178
+ # @param [Hash] opts the optional parameters
179
+ # @return [Array<(ContractDetailResponse, Fixnum, Hash)>] ContractDetailResponse data, response status code and response headers
180
+ def obtain_contract_details_with_http_info(authorization, x_access_key, contract_detail_request, opts = {})
181
+ if @api_client.config.debugging
182
+ @api_client.config.logger.debug 'Calling API: ContractsDetailsApi.obtain_contract_details ...'
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_contract_details"
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_contract_details"
191
+ end
192
+ # verify the required parameter 'contract_detail_request' is set
193
+ if @api_client.config.client_side_validation && contract_detail_request.nil?
194
+ fail ArgumentError, "Missing the required parameter 'contract_detail_request' when calling ContractsDetailsApi.obtain_contract_details"
195
+ end
196
+ # resource path
197
+ local_var_path = '/onboarding/accounts/details'
198
+
199
+ # query parameters
200
+ query_params = {}
201
+
202
+ # header parameters
203
+ header_params = {}
204
+ # HTTP header 'Accept' (if needed)
205
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
206
+ # HTTP header 'Content-Type'
207
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
208
+ header_params[:'Authorization'] = authorization
209
+ header_params[:'X-ACCESS-KEY'] = x_access_key
210
+
211
+ # form parameters
212
+ form_params = {}
213
+
214
+ # http body (model)
215
+ post_body = @api_client.object_to_http_body(contract_detail_request)
216
+ auth_names = []
217
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
218
+ :header_params => header_params,
219
+ :query_params => query_params,
220
+ :form_params => form_params,
221
+ :body => post_body,
222
+ :auth_names => auth_names,
223
+ :return_type => 'ContractDetailResponse')
224
+ if @api_client.config.debugging
225
+ @api_client.config.logger.debug "API called: ContractsDetailsApi#obtain_contract_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
226
+ end
227
+ return data, status_code, headers
228
+ end
229
+ end
230
+ end