wire4_client 1.0.0 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +7 -4
- data/docs/AccountResponse.md +1 -0
- data/docs/BeneficiariesQueryRegisterStatus.md +13 -0
- data/docs/CuentasDeBeneficiariosSPEIApi.md +54 -0
- data/docs/Deposit.md +1 -0
- data/docs/MessageDepositReceived.md +1 -0
- data/docs/MessageRequestChanged.md +9 -0
- data/docs/TransferenciasSPEIApi.md +1 -1
- data/lib/wire4_client.rb +2 -0
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +89 -0
- data/lib/wire4_client/api/transferencias_spei_api.rb +2 -2
- data/lib/wire4_client/models/account_response.rb +14 -4
- data/lib/wire4_client/models/beneficiaries_query_register_status.rb +270 -0
- data/lib/wire4_client/models/deposit.rb +11 -1
- data/lib/wire4_client/models/message_deposit_received.rb +11 -1
- data/lib/wire4_client/models/message_request_changed.rb +229 -0
- data/lib/wire4_client/version.rb +1 -1
- data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +14 -0
- data/spec/api/transferencias_spei_api_spec.rb +1 -1
- data/spec/models/account_response_spec.rb +6 -0
- data/spec/models/beneficiaries_query_register_status_spec.rb +75 -0
- data/spec/models/deposit_spec.rb +6 -0
- data/spec/models/message_deposit_received_spec.rb +6 -0
- data/spec/models/message_request_changed_spec.rb +51 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f63ca3e0f326232acb6c8f7524fdad94c3eec3b1f3559197f4b1c9674a8f007f
|
4
|
+
data.tar.gz: 26f20de7dc9861198cdd0e33183b8826511f80bdec6da4f8809fba8c16c66164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d7346405eaaf70458e2a16ea4405151fce185a3d005f280301d0e88758d790e6730e8f621ac8c32d47c18719d7de284a36383660de0b8164738771df040fc53
|
7
|
+
data.tar.gz: bf355287e498a1e6276498de86f1248f86a789ed9f55a093d4d98fa56c101477b32ba576f2a521d2c7fdf9a745da8d048934133e64dc37cd6721d2df63e19eca
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
wire4_client (1.0.
|
4
|
+
wire4_client (1.0.3)
|
5
5
|
json (~> 2.1, >= 2.1.0)
|
6
6
|
typhoeus (~> 1.0, >= 1.0.1)
|
7
7
|
|
@@ -22,7 +22,7 @@ GEM
|
|
22
22
|
diff-lcs (1.3)
|
23
23
|
ethon (0.12.0)
|
24
24
|
ffi (>= 1.3.0)
|
25
|
-
ffi (1.
|
25
|
+
ffi (1.12.1)
|
26
26
|
hashdiff (1.0.0)
|
27
27
|
json (2.3.0)
|
28
28
|
public_suffix (4.0.1)
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Referencia de la API de Wire4
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 1.0.0
|
10
|
-
- Package version: 1.0.
|
10
|
+
- Package version: 1.0.3
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build wire4_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./wire4_client-1.0.
|
26
|
+
gem install ./wire4_client-1.0.3.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./wire4_client-1.0.
|
28
|
+
(for development, run `gem install --dev ./wire4_client-1.0.3.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'wire4_client', '~> 1.0.
|
34
|
+
gem 'wire4_client', '~> 1.0.3'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -81,6 +81,7 @@ Class | Method | HTTP request | Description
|
|
81
81
|
*Wire4Client::ContactoApi* | [**send_contact_using_post**](docs/ContactoApi.md#send_contact_using_post) | **POST** /contact | Solicitud de contacto
|
82
82
|
*Wire4Client::CuentasDeBeneficiariosSPEIApi* | [**delete_account_using_delete**](docs/CuentasDeBeneficiariosSPEIApi.md#delete_account_using_delete) | **DELETE** /subscriptions/{subscription}/beneficiaries/spei/{account} | Elimina la cuenta del beneficiario
|
83
83
|
*Wire4Client::CuentasDeBeneficiariosSPEIApi* | [**get_available_relationships_monex_using_get**](docs/CuentasDeBeneficiariosSPEIApi.md#get_available_relationships_monex_using_get) | **GET** /subscriptions/{subscription}/beneficiaries/relationships | Consulta de relaciones
|
84
|
+
*Wire4Client::CuentasDeBeneficiariosSPEIApi* | [**get_beneficiaries_by_request_id**](docs/CuentasDeBeneficiariosSPEIApi.md#get_beneficiaries_by_request_id) | **GET** /subscriptions/{subscription}/beneficiaries/spei/{requestId} | Consulta los beneficiarios por el identificador de la petición de registro
|
84
85
|
*Wire4Client::CuentasDeBeneficiariosSPEIApi* | [**get_beneficiaries_for_account_using_get**](docs/CuentasDeBeneficiariosSPEIApi.md#get_beneficiaries_for_account_using_get) | **GET** /subscriptions/{subscription}/beneficiaries/spei | Consulta los beneficiarios registrados
|
85
86
|
*Wire4Client::CuentasDeBeneficiariosSPEIApi* | [**pre_register_accounts_using_post**](docs/CuentasDeBeneficiariosSPEIApi.md#pre_register_accounts_using_post) | **POST** /subscriptions/{subscription}/beneficiaries/spei | Pre-registro de cuentas de beneficiarios.
|
86
87
|
*Wire4Client::CuentasDeBeneficiariosSPEIApi* | [**remove_beneficiaries_pending_using_delete**](docs/CuentasDeBeneficiariosSPEIApi.md#remove_beneficiaries_pending_using_delete) | **DELETE** /subscriptions/{subscription}/beneficiaries/spei/request/{requestId} | Eliminación de beneficiarios SPEI® sin confirmar
|
@@ -117,6 +118,7 @@ Class | Method | HTTP request | Description
|
|
117
118
|
- [Wire4Client::AmountRequest](docs/AmountRequest.md)
|
118
119
|
- [Wire4Client::Balance](docs/Balance.md)
|
119
120
|
- [Wire4Client::BalanceListResponse](docs/BalanceListResponse.md)
|
121
|
+
- [Wire4Client::BeneficiariesQueryRegisterStatus](docs/BeneficiariesQueryRegisterStatus.md)
|
120
122
|
- [Wire4Client::BeneficiariesResponse](docs/BeneficiariesResponse.md)
|
121
123
|
- [Wire4Client::BeneficiaryInstitution](docs/BeneficiaryInstitution.md)
|
122
124
|
- [Wire4Client::Billing](docs/Billing.md)
|
@@ -137,6 +139,7 @@ Class | Method | HTTP request | Description
|
|
137
139
|
- [Wire4Client::MessageDepositReceived](docs/MessageDepositReceived.md)
|
138
140
|
- [Wire4Client::MessageInstitution](docs/MessageInstitution.md)
|
139
141
|
- [Wire4Client::MessagePayment](docs/MessagePayment.md)
|
142
|
+
- [Wire4Client::MessageRequestChanged](docs/MessageRequestChanged.md)
|
140
143
|
- [Wire4Client::MessageSubscription](docs/MessageSubscription.md)
|
141
144
|
- [Wire4Client::MessageWebHook](docs/MessageWebHook.md)
|
142
145
|
- [Wire4Client::Payment](docs/Payment.md)
|
data/docs/AccountResponse.md
CHANGED
@@ -14,5 +14,6 @@ Name | Type | Description | Notes
|
|
14
14
|
**person** | [**Person**](Person.md) | Objeto que contiene los datos de la persona propietaria de la cuenta, si se incluye este atributo, el atributo institution no debe estar presente | [optional]
|
15
15
|
**relationship** | **String** | Relación con el propietario de la cuenta, para registrar una cuenta este valor se debe obtener del recurso relationships |
|
16
16
|
**rfc** | **String** | Registro federal de contribuyentes de la persona o institución propietaria de la cuenta |
|
17
|
+
**status** | **String** | El estado (status) en el que se encuentra el registro del beneficiario | [optional]
|
17
18
|
|
18
19
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# Wire4Client::BeneficiariesQueryRegisterStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**authorization_date** | **DateTime** | Fecha en que el usuario propietario del token autorizo el registro de beneficiarios | [optional]
|
7
|
+
**beneficiaries** | [**Array<AccountResponse>**](AccountResponse.md) | Lista de beneficiarios obtenidos | [optional]
|
8
|
+
**request_date** | **DateTime** | Fecha en que se realizó la petición de registro de beneficiarios | [optional]
|
9
|
+
**request_id** | **String** | Identificador de la petición del registro de beneficiarios | [optional]
|
10
|
+
**status_request** | **String** | Indica sí la petición ya fue autorizada usando el token del usuario | [optional]
|
11
|
+
**total_beneficiaries** | **Integer** | Total de beneficiarios enviados en la petición | [optional]
|
12
|
+
|
13
|
+
|
@@ -6,6 +6,7 @@ Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
7
7
|
[**delete_account_using_delete**](CuentasDeBeneficiariosSPEIApi.md#delete_account_using_delete) | **DELETE** /subscriptions/{subscription}/beneficiaries/spei/{account} | Elimina la cuenta del beneficiario
|
8
8
|
[**get_available_relationships_monex_using_get**](CuentasDeBeneficiariosSPEIApi.md#get_available_relationships_monex_using_get) | **GET** /subscriptions/{subscription}/beneficiaries/relationships | Consulta de relaciones
|
9
|
+
[**get_beneficiaries_by_request_id**](CuentasDeBeneficiariosSPEIApi.md#get_beneficiaries_by_request_id) | **GET** /subscriptions/{subscription}/beneficiaries/spei/{requestId} | Consulta los beneficiarios por el identificador de la petición de registro
|
9
10
|
[**get_beneficiaries_for_account_using_get**](CuentasDeBeneficiariosSPEIApi.md#get_beneficiaries_for_account_using_get) | **GET** /subscriptions/{subscription}/beneficiaries/spei | Consulta los beneficiarios registrados
|
10
11
|
[**pre_register_accounts_using_post**](CuentasDeBeneficiariosSPEIApi.md#pre_register_accounts_using_post) | **POST** /subscriptions/{subscription}/beneficiaries/spei | Pre-registro de cuentas de beneficiarios.
|
11
12
|
[**remove_beneficiaries_pending_using_delete**](CuentasDeBeneficiariosSPEIApi.md#remove_beneficiaries_pending_using_delete) | **DELETE** /subscriptions/{subscription}/beneficiaries/spei/request/{requestId} | Eliminación de beneficiarios SPEI® sin confirmar
|
@@ -114,6 +115,59 @@ No authorization required
|
|
114
115
|
|
115
116
|
|
116
117
|
|
118
|
+
# **get_beneficiaries_by_request_id**
|
119
|
+
> BeneficiariesResponse get_beneficiaries_by_request_id(authorization, request_id, subscription)
|
120
|
+
|
121
|
+
Consulta los beneficiarios por el identificador de la petición de registro
|
122
|
+
|
123
|
+
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.
|
124
|
+
|
125
|
+
### Example
|
126
|
+
```ruby
|
127
|
+
# load the gem
|
128
|
+
require 'wire4_client'
|
129
|
+
|
130
|
+
api_instance = Wire4Client::CuentasDeBeneficiariosSPEIApi.new
|
131
|
+
|
132
|
+
authorization = 'authorization_example' # String | Header para token
|
133
|
+
|
134
|
+
request_id = 'request_id_example' # String | El identificador de la petición del registro de beneficiarios a esta API
|
135
|
+
|
136
|
+
subscription = 'subscription_example' # String | El identificador de la suscripción a esta API
|
137
|
+
|
138
|
+
|
139
|
+
begin
|
140
|
+
#Consulta los beneficiarios por el identificador de la petición de registro
|
141
|
+
result = api_instance.get_beneficiaries_by_request_id(authorization, request_id, subscription)
|
142
|
+
p result
|
143
|
+
rescue Wire4Client::ApiError => e
|
144
|
+
puts "Exception when calling CuentasDeBeneficiariosSPEIApi->get_beneficiaries_by_request_id: #{e}"
|
145
|
+
end
|
146
|
+
```
|
147
|
+
|
148
|
+
### Parameters
|
149
|
+
|
150
|
+
Name | Type | Description | Notes
|
151
|
+
------------- | ------------- | ------------- | -------------
|
152
|
+
**authorization** | **String**| Header para token |
|
153
|
+
**request_id** | **String**| El identificador de la petición del registro de beneficiarios a esta API |
|
154
|
+
**subscription** | **String**| El identificador de la suscripción a esta API |
|
155
|
+
|
156
|
+
### Return type
|
157
|
+
|
158
|
+
[**BeneficiariesResponse**](BeneficiariesResponse.md)
|
159
|
+
|
160
|
+
### Authorization
|
161
|
+
|
162
|
+
No authorization required
|
163
|
+
|
164
|
+
### HTTP request headers
|
165
|
+
|
166
|
+
- **Content-Type**: Not defined
|
167
|
+
- **Accept**: application/json
|
168
|
+
|
169
|
+
|
170
|
+
|
117
171
|
# **get_beneficiaries_for_account_using_get**
|
118
172
|
> BeneficiariesResponse get_beneficiaries_for_account_using_get(authorization, subscription, opts)
|
119
173
|
|
data/docs/Deposit.md
CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**beneficiary_account** | **String** | La cuenta del beneficiario | [optional]
|
8
8
|
**beneficiary_name** | **String** | El nombre del beneficiario | [optional]
|
9
9
|
**beneficiary_rfc** | **String** | El RFC del beneficiario | [optional]
|
10
|
+
**cep** | [**MessageCEP**](MessageCEP.md) | CEP emitido por Banxico de la transferencia, sólo en caso de que este disponible en banxico, posteriomente podrá usar la consulta de CEP del API | [optional]
|
10
11
|
**clave_rastreo** | **String** | La clave de rastreo de la transferencia | [optional]
|
11
12
|
**confirm_date** | **DateTime** | Fecha de confirmación del deposito | [optional]
|
12
13
|
**currency_code** | **String** | Código de moneda de la transferencia | [optional]
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**beneficiary_account** | **String** | Cuenta del beneficiario | [optional]
|
8
8
|
**beneficiary_name** | **String** | Nombre del beneficiario | [optional]
|
9
9
|
**beneficiary_rfc** | **String** | RFC del beneficiario | [optional]
|
10
|
+
**cep** | [**MessageCEP**](MessageCEP.md) | Informacion del CEP | [optional]
|
10
11
|
**clave_rastreo** | **String** | Clave de rastreo de la transferencia | [optional]
|
11
12
|
**confirm_date** | **DateTime** | Fecha de confirmación de la transferencia | [optional]
|
12
13
|
**currency_code** | **String** | Código de moneda de la transferencia, puede ser MXP, USD | [optional]
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Wire4Client::MessageRequestChanged
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**request_id** | **String** | Identificador de la petición realizada a está API | [optional]
|
7
|
+
**status** | **String** | El cambio a informar en la procesamiento de la petición | [optional]
|
8
|
+
|
9
|
+
|
@@ -118,7 +118,7 @@ No authorization required
|
|
118
118
|
|
119
119
|
Consulta de transferencias de salida por identificador de petición
|
120
120
|
|
121
|
-
Consulta las transferencias de salida registradas en una petición, las transferencias que regresa este recuso son únicamente las transferencias
|
121
|
+
Consulta las transferencias de salida registradas en una petición, las transferencias que regresa este recuso son únicamente las transferencias de salida agrupadas al identificador de la petición que se generó al hacer el registro de las transacciones el cual se debe especificar como parte del path de este endpoint.
|
122
122
|
|
123
123
|
### Example
|
124
124
|
```ruby
|
data/lib/wire4_client.rb
CHANGED
@@ -24,6 +24,7 @@ require 'wire4_client/models/account_spid'
|
|
24
24
|
require 'wire4_client/models/amount_request'
|
25
25
|
require 'wire4_client/models/balance'
|
26
26
|
require 'wire4_client/models/balance_list_response'
|
27
|
+
require 'wire4_client/models/beneficiaries_query_register_status'
|
27
28
|
require 'wire4_client/models/beneficiaries_response'
|
28
29
|
require 'wire4_client/models/beneficiary_institution'
|
29
30
|
require 'wire4_client/models/billing'
|
@@ -44,6 +45,7 @@ require 'wire4_client/models/message_cep'
|
|
44
45
|
require 'wire4_client/models/message_deposit_received'
|
45
46
|
require 'wire4_client/models/message_institution'
|
46
47
|
require 'wire4_client/models/message_payment'
|
48
|
+
require 'wire4_client/models/message_request_changed'
|
47
49
|
require 'wire4_client/models/message_subscription'
|
48
50
|
require 'wire4_client/models/message_web_hook'
|
49
51
|
require 'wire4_client/models/payment'
|
@@ -174,6 +174,95 @@ module Wire4Client
|
|
174
174
|
end
|
175
175
|
return data, status_code, headers
|
176
176
|
end
|
177
|
+
# Consulta los beneficiarios por el identificador de la petición de registro
|
178
|
+
# 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.
|
179
|
+
# @param authorization Header para token
|
180
|
+
# @param request_id El identificador de la petición del registro de beneficiarios a esta API
|
181
|
+
# @param subscription El identificador de la suscripción a esta API
|
182
|
+
# @param [Hash] opts the optional parameters
|
183
|
+
# @return [BeneficiariesResponse]
|
184
|
+
def get_beneficiaries_by_request_id(authorization, request_id, subscription, opts = {})
|
185
|
+
data, _status_code, _headers = get_beneficiaries_by_request_id_with_http_info(authorization, request_id, subscription, opts)
|
186
|
+
data
|
187
|
+
end
|
188
|
+
|
189
|
+
# Consulta los beneficiarios por el identificador de la petición de registro
|
190
|
+
# 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.
|
191
|
+
# @param authorization Header para token
|
192
|
+
# @param request_id El identificador de la petición del registro de beneficiarios a esta API
|
193
|
+
# @param subscription El identificador de la suscripción a esta API
|
194
|
+
# @param [Hash] opts the optional parameters
|
195
|
+
# @return [Array<(BeneficiariesResponse, Fixnum, Hash)>] BeneficiariesResponse data, response status code and response headers
|
196
|
+
def get_beneficiaries_by_request_id_with_http_info(authorization, request_id, subscription, opts = {})
|
197
|
+
if @api_client.config.debugging
|
198
|
+
@api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id ...'
|
199
|
+
end
|
200
|
+
# verify the required parameter 'authorization' is set
|
201
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
202
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id"
|
203
|
+
end
|
204
|
+
# verify the required parameter 'request_id' is set
|
205
|
+
if @api_client.config.client_side_validation && request_id.nil?
|
206
|
+
fail ArgumentError, "Missing the required parameter 'request_id' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id"
|
207
|
+
end
|
208
|
+
if @api_client.config.client_side_validation && request_id.to_s.length > 36
|
209
|
+
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.'
|
210
|
+
end
|
211
|
+
|
212
|
+
if @api_client.config.client_side_validation && request_id.to_s.length < 36
|
213
|
+
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.'
|
214
|
+
end
|
215
|
+
|
216
|
+
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}$/)
|
217
|
+
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}$/."
|
218
|
+
end
|
219
|
+
|
220
|
+
# verify the required parameter 'subscription' is set
|
221
|
+
if @api_client.config.client_side_validation && subscription.nil?
|
222
|
+
fail ArgumentError, "Missing the required parameter 'subscription' when calling CuentasDeBeneficiariosSPEIApi.get_beneficiaries_by_request_id"
|
223
|
+
end
|
224
|
+
if @api_client.config.client_side_validation && subscription.to_s.length > 36
|
225
|
+
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.'
|
226
|
+
end
|
227
|
+
|
228
|
+
if @api_client.config.client_side_validation && subscription.to_s.length < 36
|
229
|
+
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.'
|
230
|
+
end
|
231
|
+
|
232
|
+
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}$/)
|
233
|
+
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}$/."
|
234
|
+
end
|
235
|
+
|
236
|
+
# resource path
|
237
|
+
local_var_path = '/subscriptions/{subscription}/beneficiaries/spei/{requestId}'.sub('{' + 'requestId' + '}', request_id.to_s).sub('{' + 'subscription' + '}', subscription.to_s)
|
238
|
+
|
239
|
+
# query parameters
|
240
|
+
query_params = {}
|
241
|
+
|
242
|
+
# header parameters
|
243
|
+
header_params = {}
|
244
|
+
# HTTP header 'Accept' (if needed)
|
245
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
246
|
+
header_params[:'Authorization'] = authorization
|
247
|
+
|
248
|
+
# form parameters
|
249
|
+
form_params = {}
|
250
|
+
|
251
|
+
# http body (model)
|
252
|
+
post_body = nil
|
253
|
+
auth_names = []
|
254
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
255
|
+
:header_params => header_params,
|
256
|
+
:query_params => query_params,
|
257
|
+
:form_params => form_params,
|
258
|
+
:body => post_body,
|
259
|
+
:auth_names => auth_names,
|
260
|
+
:return_type => 'BeneficiariesResponse')
|
261
|
+
if @api_client.config.debugging
|
262
|
+
@api_client.config.logger.debug "API called: CuentasDeBeneficiariosSPEIApi#get_beneficiaries_by_request_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
263
|
+
end
|
264
|
+
return data, status_code, headers
|
265
|
+
end
|
177
266
|
# Consulta los beneficiarios registrados
|
178
267
|
# Obtiene los beneficiarios registrados al contrato relacionado con la suscripción, Los beneficiarios son los que actualmente se encuentran registrados en banca Monex.
|
179
268
|
# @param authorization Header para token
|
@@ -179,7 +179,7 @@ module Wire4Client
|
|
179
179
|
return data, status_code, headers
|
180
180
|
end
|
181
181
|
# Consulta de transferencias de salida por identificador de petición
|
182
|
-
# Consulta las transferencias de salida registradas en una petición, las transferencias que regresa este recuso son únicamente las transferencias
|
182
|
+
# Consulta las transferencias de salida registradas en una petición, las transferencias que regresa este recuso son únicamente las transferencias de salida agrupadas al identificador de la petición que se generó al hacer el registro de las transacciones el cual se debe especificar como parte del path de este endpoint.
|
183
183
|
# @param authorization Header para token
|
184
184
|
# @param request_id Identificador de la petición a buscar
|
185
185
|
# @param subscription El identificador de la suscripción a esta API
|
@@ -191,7 +191,7 @@ module Wire4Client
|
|
191
191
|
end
|
192
192
|
|
193
193
|
# Consulta de transferencias de salida por identificador de petición
|
194
|
-
# Consulta las transferencias de salida registradas en una petición, las transferencias que regresa este recuso son únicamente las transferencias
|
194
|
+
# Consulta las transferencias de salida registradas en una petición, las transferencias que regresa este recuso son únicamente las transferencias de salida agrupadas al identificador de la petición que se generó al hacer el registro de las transacciones el cual se debe especificar como parte del path de este endpoint.
|
195
195
|
# @param authorization Header para token
|
196
196
|
# @param request_id Identificador de la petición a buscar
|
197
197
|
# @param subscription El identificador de la suscripción a esta API
|
@@ -48,6 +48,9 @@ module Wire4Client
|
|
48
48
|
# Registro federal de contribuyentes de la persona o institución propietaria de la cuenta
|
49
49
|
attr_accessor :rfc
|
50
50
|
|
51
|
+
# El estado (status) en el que se encuentra el registro del beneficiario
|
52
|
+
attr_accessor :status
|
53
|
+
|
51
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
55
|
def self.attribute_map
|
53
56
|
{
|
@@ -61,7 +64,8 @@ module Wire4Client
|
|
61
64
|
:'payment_concept_spei' => :'payment_concept_spei',
|
62
65
|
:'person' => :'person',
|
63
66
|
:'relationship' => :'relationship',
|
64
|
-
:'rfc' => :'rfc'
|
67
|
+
:'rfc' => :'rfc',
|
68
|
+
:'status' => :'status'
|
65
69
|
}
|
66
70
|
end
|
67
71
|
|
@@ -78,7 +82,8 @@ module Wire4Client
|
|
78
82
|
:'payment_concept_spei' => :'String',
|
79
83
|
:'person' => :'Person',
|
80
84
|
:'relationship' => :'String',
|
81
|
-
:'rfc' => :'String'
|
85
|
+
:'rfc' => :'String',
|
86
|
+
:'status' => :'String'
|
82
87
|
}
|
83
88
|
end
|
84
89
|
|
@@ -135,6 +140,10 @@ module Wire4Client
|
|
135
140
|
if attributes.has_key?(:'rfc')
|
136
141
|
self.rfc = attributes[:'rfc']
|
137
142
|
end
|
143
|
+
|
144
|
+
if attributes.has_key?(:'status')
|
145
|
+
self.status = attributes[:'status']
|
146
|
+
end
|
138
147
|
end
|
139
148
|
|
140
149
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -223,7 +232,8 @@ module Wire4Client
|
|
223
232
|
payment_concept_spei == o.payment_concept_spei &&
|
224
233
|
person == o.person &&
|
225
234
|
relationship == o.relationship &&
|
226
|
-
rfc == o.rfc
|
235
|
+
rfc == o.rfc &&
|
236
|
+
status == o.status
|
227
237
|
end
|
228
238
|
|
229
239
|
# @see the `==` method
|
@@ -235,7 +245,7 @@ module Wire4Client
|
|
235
245
|
# Calculates hash code according to all attributes.
|
236
246
|
# @return [Fixnum] Hash code
|
237
247
|
def hash
|
238
|
-
[amount_limit, bank, beneficiary_account, email, institution, kind_of_relationship, numeric_reference_spei, payment_concept_spei, person, relationship, rfc].hash
|
248
|
+
[amount_limit, bank, beneficiary_account, email, institution, kind_of_relationship, numeric_reference_spei, payment_concept_spei, person, relationship, rfc, status].hash
|
239
249
|
end
|
240
250
|
|
241
251
|
# Builds the object from hash
|
@@ -0,0 +1,270 @@
|
|
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 'date'
|
14
|
+
|
15
|
+
module Wire4Client
|
16
|
+
class BeneficiariesQueryRegisterStatus
|
17
|
+
# Fecha en que el usuario propietario del token autorizo el registro de beneficiarios
|
18
|
+
attr_accessor :authorization_date
|
19
|
+
|
20
|
+
# Lista de beneficiarios obtenidos
|
21
|
+
attr_accessor :beneficiaries
|
22
|
+
|
23
|
+
# Fecha en que se realizó la petición de registro de beneficiarios
|
24
|
+
attr_accessor :request_date
|
25
|
+
|
26
|
+
# Identificador de la petición del registro de beneficiarios
|
27
|
+
attr_accessor :request_id
|
28
|
+
|
29
|
+
# Indica sí la petición ya fue autorizada usando el token del usuario
|
30
|
+
attr_accessor :status_request
|
31
|
+
|
32
|
+
# Total de beneficiarios enviados en la petición
|
33
|
+
attr_accessor :total_beneficiaries
|
34
|
+
|
35
|
+
class EnumAttributeValidator
|
36
|
+
attr_reader :datatype
|
37
|
+
attr_reader :allowable_values
|
38
|
+
|
39
|
+
def initialize(datatype, allowable_values)
|
40
|
+
@allowable_values = allowable_values.map do |value|
|
41
|
+
case datatype.to_s
|
42
|
+
when /Integer/i
|
43
|
+
value.to_i
|
44
|
+
when /Float/i
|
45
|
+
value.to_f
|
46
|
+
else
|
47
|
+
value
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def valid?(value)
|
53
|
+
!value || allowable_values.include?(value)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
58
|
+
def self.attribute_map
|
59
|
+
{
|
60
|
+
:'authorization_date' => :'authorization_date',
|
61
|
+
:'beneficiaries' => :'beneficiaries',
|
62
|
+
:'request_date' => :'request_date',
|
63
|
+
:'request_id' => :'request_id',
|
64
|
+
:'status_request' => :'status_request',
|
65
|
+
:'total_beneficiaries' => :'total_beneficiaries'
|
66
|
+
}
|
67
|
+
end
|
68
|
+
|
69
|
+
# Attribute type mapping.
|
70
|
+
def self.swagger_types
|
71
|
+
{
|
72
|
+
:'authorization_date' => :'DateTime',
|
73
|
+
:'beneficiaries' => :'Array<AccountResponse>',
|
74
|
+
:'request_date' => :'DateTime',
|
75
|
+
:'request_id' => :'String',
|
76
|
+
:'status_request' => :'String',
|
77
|
+
:'total_beneficiaries' => :'Integer'
|
78
|
+
}
|
79
|
+
end
|
80
|
+
|
81
|
+
# Initializes the object
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
83
|
+
def initialize(attributes = {})
|
84
|
+
return unless attributes.is_a?(Hash)
|
85
|
+
|
86
|
+
# convert string to symbol for hash key
|
87
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
88
|
+
|
89
|
+
if attributes.has_key?(:'authorization_date')
|
90
|
+
self.authorization_date = attributes[:'authorization_date']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.has_key?(:'beneficiaries')
|
94
|
+
if (value = attributes[:'beneficiaries']).is_a?(Array)
|
95
|
+
self.beneficiaries = value
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.has_key?(:'request_date')
|
100
|
+
self.request_date = attributes[:'request_date']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.has_key?(:'request_id')
|
104
|
+
self.request_id = attributes[:'request_id']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.has_key?(:'status_request')
|
108
|
+
self.status_request = attributes[:'status_request']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.has_key?(:'total_beneficiaries')
|
112
|
+
self.total_beneficiaries = attributes[:'total_beneficiaries']
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
117
|
+
# @return Array for valid properties with the reasons
|
118
|
+
def list_invalid_properties
|
119
|
+
invalid_properties = Array.new
|
120
|
+
invalid_properties
|
121
|
+
end
|
122
|
+
|
123
|
+
# Check to see if the all the properties in the model are valid
|
124
|
+
# @return true if the model is valid
|
125
|
+
def valid?
|
126
|
+
status_request_validator = EnumAttributeValidator.new('String', ['PENDING', 'AUTHORIZED'])
|
127
|
+
return false unless status_request_validator.valid?(@status_request)
|
128
|
+
true
|
129
|
+
end
|
130
|
+
|
131
|
+
# Custom attribute writer method checking allowed values (enum).
|
132
|
+
# @param [Object] status_request Object to be assigned
|
133
|
+
def status_request=(status_request)
|
134
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'AUTHORIZED'])
|
135
|
+
unless validator.valid?(status_request)
|
136
|
+
fail ArgumentError, 'invalid value for "status_request", must be one of #{validator.allowable_values}.'
|
137
|
+
end
|
138
|
+
@status_request = status_request
|
139
|
+
end
|
140
|
+
|
141
|
+
# Checks equality by comparing each attribute.
|
142
|
+
# @param [Object] Object to be compared
|
143
|
+
def ==(o)
|
144
|
+
return true if self.equal?(o)
|
145
|
+
self.class == o.class &&
|
146
|
+
authorization_date == o.authorization_date &&
|
147
|
+
beneficiaries == o.beneficiaries &&
|
148
|
+
request_date == o.request_date &&
|
149
|
+
request_id == o.request_id &&
|
150
|
+
status_request == o.status_request &&
|
151
|
+
total_beneficiaries == o.total_beneficiaries
|
152
|
+
end
|
153
|
+
|
154
|
+
# @see the `==` method
|
155
|
+
# @param [Object] Object to be compared
|
156
|
+
def eql?(o)
|
157
|
+
self == o
|
158
|
+
end
|
159
|
+
|
160
|
+
# Calculates hash code according to all attributes.
|
161
|
+
# @return [Fixnum] Hash code
|
162
|
+
def hash
|
163
|
+
[authorization_date, beneficiaries, request_date, request_id, status_request, total_beneficiaries].hash
|
164
|
+
end
|
165
|
+
|
166
|
+
# Builds the object from hash
|
167
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
168
|
+
# @return [Object] Returns the model itself
|
169
|
+
def build_from_hash(attributes)
|
170
|
+
return nil unless attributes.is_a?(Hash)
|
171
|
+
self.class.swagger_types.each_pair do |key, type|
|
172
|
+
if type =~ /\AArray<(.*)>/i
|
173
|
+
# check to ensure the input is an array given that the the attribute
|
174
|
+
# is documented as an array but the input is not
|
175
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
176
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
177
|
+
end
|
178
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
179
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
180
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
181
|
+
end
|
182
|
+
|
183
|
+
self
|
184
|
+
end
|
185
|
+
|
186
|
+
# Deserializes the data based on type
|
187
|
+
# @param string type Data type
|
188
|
+
# @param string value Value to be deserialized
|
189
|
+
# @return [Object] Deserialized data
|
190
|
+
def _deserialize(type, value)
|
191
|
+
case type.to_sym
|
192
|
+
when :DateTime
|
193
|
+
DateTime.parse(value)
|
194
|
+
when :Date
|
195
|
+
Date.parse(value)
|
196
|
+
when :String
|
197
|
+
value.to_s
|
198
|
+
when :Integer
|
199
|
+
value.to_i
|
200
|
+
when :Float
|
201
|
+
value.to_f
|
202
|
+
when :BOOLEAN
|
203
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
204
|
+
true
|
205
|
+
else
|
206
|
+
false
|
207
|
+
end
|
208
|
+
when :Object
|
209
|
+
# generic object (usually a Hash), return directly
|
210
|
+
value
|
211
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
212
|
+
inner_type = Regexp.last_match[:inner_type]
|
213
|
+
value.map { |v| _deserialize(inner_type, v) }
|
214
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
215
|
+
k_type = Regexp.last_match[:k_type]
|
216
|
+
v_type = Regexp.last_match[:v_type]
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each do |k, v|
|
219
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
220
|
+
end
|
221
|
+
end
|
222
|
+
else # model
|
223
|
+
temp_model = Wire4Client.const_get(type).new
|
224
|
+
temp_model.build_from_hash(value)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
# Returns the string representation of the object
|
229
|
+
# @return [String] String presentation of the object
|
230
|
+
def to_s
|
231
|
+
to_hash.to_s
|
232
|
+
end
|
233
|
+
|
234
|
+
# to_body is an alias to to_hash (backward compatibility)
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
236
|
+
def to_body
|
237
|
+
to_hash
|
238
|
+
end
|
239
|
+
|
240
|
+
# Returns the object in the form of hash
|
241
|
+
# @return [Hash] Returns the object in the form of hash
|
242
|
+
def to_hash
|
243
|
+
hash = {}
|
244
|
+
self.class.attribute_map.each_pair do |attr, param|
|
245
|
+
value = self.send(attr)
|
246
|
+
next if value.nil?
|
247
|
+
hash[param] = _to_hash(value)
|
248
|
+
end
|
249
|
+
hash
|
250
|
+
end
|
251
|
+
|
252
|
+
# Outputs non-array value in the form of hash
|
253
|
+
# For object, use to_hash. Otherwise, just return the value
|
254
|
+
# @param [Object] value Any valid value
|
255
|
+
# @return [Hash] Returns the value in the form of hash
|
256
|
+
def _to_hash(value)
|
257
|
+
if value.is_a?(Array)
|
258
|
+
value.compact.map { |v| _to_hash(v) }
|
259
|
+
elsif value.is_a?(Hash)
|
260
|
+
{}.tap do |hash|
|
261
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
262
|
+
end
|
263
|
+
elsif value.respond_to? :to_hash
|
264
|
+
value.to_hash
|
265
|
+
else
|
266
|
+
value
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|