wire4_client 0.0.1.pre.SNAPSHOT
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/README.md +188 -0
- data/Rakefile +8 -0
- data/docs/Account.md +18 -0
- data/docs/AccountRequest.md +10 -0
- data/docs/AccountResponse.md +18 -0
- data/docs/AccountSpid.md +19 -0
- data/docs/AmountRequest.md +10 -0
- data/docs/Balance.md +10 -0
- data/docs/BalanceListResponse.md +8 -0
- data/docs/BeneficiariesResponse.md +8 -0
- data/docs/BeneficiaryInstitution.md +8 -0
- data/docs/Billing.md +16 -0
- data/docs/BillingTransaction.md +15 -0
- data/docs/CepResponse.md +28 -0
- data/docs/CepSearchBanxico.md +15 -0
- data/docs/ComprobanteElectrnicoDePagoCEPApi.md +61 -0
- data/docs/ContactRequest.md +12 -0
- data/docs/ContactoApi.md +60 -0
- data/docs/CuentasDeBeneficiariosSPEIApi.md +342 -0
- data/docs/CuentasDeBeneficiariosSPIDApi.md +62 -0
- data/docs/Deposit.md +27 -0
- data/docs/Depositant.md +12 -0
- data/docs/DepositantesApi.md +117 -0
- data/docs/DepositantsRegister.md +11 -0
- data/docs/DepositantsResponse.md +8 -0
- data/docs/ErrorResponse.md +9 -0
- data/docs/FacturasApi.md +115 -0
- data/docs/GetDepositants.md +8 -0
- data/docs/InstitucionesApi.md +53 -0
- data/docs/Institution.md +11 -0
- data/docs/InstitutionsList.md +8 -0
- data/docs/MessageAccountBeneficiary.md +10 -0
- data/docs/MessageCEP.md +28 -0
- data/docs/MessageDepositReceived.md +27 -0
- data/docs/MessageInstitution.md +11 -0
- data/docs/MessagePayment.md +25 -0
- data/docs/MessageSubscription.md +12 -0
- data/docs/MessageWebHook.md +16 -0
- data/docs/Payment.md +24 -0
- data/docs/Person.md +10 -0
- data/docs/PreEnrollmentData.md +9 -0
- data/docs/PreEnrollmentResponse.md +9 -0
- data/docs/Relationship.md +9 -0
- data/docs/RelationshipsResponse.md +8 -0
- data/docs/SaldoApi.md +61 -0
- data/docs/SpidClassificationDTO.md +9 -0
- data/docs/SpidClassificationsResponseDTO.md +8 -0
- data/docs/SuscripcionesApi.md +165 -0
- data/docs/Timestamp.md +17 -0
- data/docs/TokenRequiredResponse.md +9 -0
- data/docs/TransactionOutgoing.md +14 -0
- data/docs/TransactionOutgoingSpid.md +17 -0
- data/docs/TransactionsOutgoingRegister.md +10 -0
- data/docs/TransferenciasSPEIApi.md +229 -0
- data/docs/TransferenciasSPIDApi.md +117 -0
- data/docs/WebhookRequest.md +10 -0
- data/docs/WebhookResponse.md +13 -0
- data/docs/WebhooksApi.md +161 -0
- data/docs/WebhooksList.md +8 -0
- data/git_push.sh +55 -0
- data/lib/wire4_client.rb +96 -0
- data/lib/wire4_client/api/comprobante_electrnico_de_pago_cep_api.rb +77 -0
- data/lib/wire4_client/api/contacto_api.rb +76 -0
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +453 -0
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +93 -0
- data/lib/wire4_client/api/depositantes_api.rb +159 -0
- data/lib/wire4_client/api/facturas_api.rb +124 -0
- data/lib/wire4_client/api/instituciones_api.rb +67 -0
- data/lib/wire4_client/api/saldo_api.rb +87 -0
- data/lib/wire4_client/api/suscripciones_api.rb +203 -0
- data/lib/wire4_client/api/transferencias_spei_api.rb +307 -0
- data/lib/wire4_client/api/transferencias_spid_api.rb +155 -0
- data/lib/wire4_client/api/webhooks_api.rb +175 -0
- data/lib/wire4_client/api_client.rb +389 -0
- data/lib/wire4_client/api_error.rb +38 -0
- data/lib/wire4_client/configuration.rb +223 -0
- data/lib/wire4_client/models/account.rb +345 -0
- data/lib/wire4_client/models/account_request.rb +217 -0
- data/lib/wire4_client/models/account_response.rb +345 -0
- data/lib/wire4_client/models/account_spid.rb +388 -0
- data/lib/wire4_client/models/amount_request.rb +258 -0
- data/lib/wire4_client/models/balance.rb +205 -0
- data/lib/wire4_client/models/balance_list_response.rb +187 -0
- data/lib/wire4_client/models/beneficiaries_response.rb +186 -0
- data/lib/wire4_client/models/beneficiary_institution.rb +185 -0
- data/lib/wire4_client/models/billing.rb +300 -0
- data/lib/wire4_client/models/billing_transaction.rb +289 -0
- data/lib/wire4_client/models/cep_response.rb +384 -0
- data/lib/wire4_client/models/cep_search_banxico.rb +373 -0
- data/lib/wire4_client/models/contact_request.rb +272 -0
- data/lib/wire4_client/models/deposit.rb +374 -0
- data/lib/wire4_client/models/depositant.rb +227 -0
- data/lib/wire4_client/models/depositants_register.rb +315 -0
- data/lib/wire4_client/models/depositants_response.rb +184 -0
- data/lib/wire4_client/models/error_response.rb +192 -0
- data/lib/wire4_client/models/get_depositants.rb +192 -0
- data/lib/wire4_client/models/institution.rb +215 -0
- data/lib/wire4_client/models/institutions_list.rb +186 -0
- data/lib/wire4_client/models/message_account_beneficiary.rb +205 -0
- data/lib/wire4_client/models/message_cep.rb +385 -0
- data/lib/wire4_client/models/message_deposit_received.rb +375 -0
- data/lib/wire4_client/models/message_institution.rb +215 -0
- data/lib/wire4_client/models/message_payment.rb +354 -0
- data/lib/wire4_client/models/message_subscription.rb +225 -0
- data/lib/wire4_client/models/message_web_hook.rb +265 -0
- data/lib/wire4_client/models/payment.rb +344 -0
- data/lib/wire4_client/models/person.rb +220 -0
- data/lib/wire4_client/models/pre_enrollment_data.rb +260 -0
- data/lib/wire4_client/models/pre_enrollment_response.rb +194 -0
- data/lib/wire4_client/models/relationship.rb +194 -0
- data/lib/wire4_client/models/relationships_response.rb +186 -0
- data/lib/wire4_client/models/spid_classification_dto.rb +195 -0
- data/lib/wire4_client/models/spid_classifications_response_dto.rb +186 -0
- data/lib/wire4_client/models/timestamp.rb +264 -0
- data/lib/wire4_client/models/token_required_response.rb +195 -0
- data/lib/wire4_client/models/transaction_outgoing.rb +380 -0
- data/lib/wire4_client/models/transaction_outgoing_spid.rb +425 -0
- data/lib/wire4_client/models/transactions_outgoing_register.rb +222 -0
- data/lib/wire4_client/models/webhook_request.rb +222 -0
- data/lib/wire4_client/models/webhook_response.rb +271 -0
- data/lib/wire4_client/models/webhooks_list.rb +186 -0
- data/lib/wire4_client/version.rb +15 -0
- data/spec/api/comprobante_electrnico_de_pago_cep_api_spec.rb +47 -0
- data/spec/api/contacto_api_spec.rb +47 -0
- data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +113 -0
- data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +47 -0
- data/spec/api/depositantes_api_spec.rb +60 -0
- data/spec/api/facturas_api_spec.rb +59 -0
- data/spec/api/instituciones_api_spec.rb +45 -0
- data/spec/api/saldo_api_spec.rb +47 -0
- data/spec/api/suscripciones_api_spec.rb +71 -0
- data/spec/api/transferencias_spei_api_spec.rb +86 -0
- data/spec/api/transferencias_spid_api_spec.rb +60 -0
- data/spec/api/webhooks_api_spec.rb +70 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_request_spec.rb +53 -0
- data/spec/models/account_response_spec.rb +101 -0
- data/spec/models/account_spec.rb +101 -0
- data/spec/models/account_spid_spec.rb +107 -0
- data/spec/models/amount_request_spec.rb +53 -0
- data/spec/models/balance_list_response_spec.rb +41 -0
- data/spec/models/balance_spec.rb +53 -0
- data/spec/models/beneficiaries_response_spec.rb +41 -0
- data/spec/models/beneficiary_institution_spec.rb +41 -0
- data/spec/models/billing_spec.rb +93 -0
- data/spec/models/billing_transaction_spec.rb +87 -0
- data/spec/models/cep_response_spec.rb +161 -0
- data/spec/models/cep_search_banxico_spec.rb +83 -0
- data/spec/models/contact_request_spec.rb +65 -0
- data/spec/models/deposit_spec.rb +155 -0
- data/spec/models/depositant_spec.rb +65 -0
- data/spec/models/depositants_register_spec.rb +59 -0
- data/spec/models/depositants_response_spec.rb +41 -0
- data/spec/models/error_response_spec.rb +47 -0
- data/spec/models/get_depositants_spec.rb +41 -0
- data/spec/models/institution_spec.rb +59 -0
- data/spec/models/institutions_list_spec.rb +41 -0
- data/spec/models/message_account_beneficiary_spec.rb +53 -0
- data/spec/models/message_cep_spec.rb +161 -0
- data/spec/models/message_deposit_received_spec.rb +155 -0
- data/spec/models/message_institution_spec.rb +59 -0
- data/spec/models/message_payment_spec.rb +143 -0
- data/spec/models/message_subscription_spec.rb +65 -0
- data/spec/models/message_web_hook_spec.rb +89 -0
- data/spec/models/payment_spec.rb +137 -0
- data/spec/models/person_spec.rb +53 -0
- data/spec/models/pre_enrollment_data_spec.rb +47 -0
- data/spec/models/pre_enrollment_response_spec.rb +47 -0
- data/spec/models/relationship_spec.rb +47 -0
- data/spec/models/relationships_response_spec.rb +41 -0
- data/spec/models/spid_classification_dto_spec.rb +47 -0
- data/spec/models/spid_classifications_response_dto_spec.rb +41 -0
- data/spec/models/timestamp_spec.rb +95 -0
- data/spec/models/token_required_response_spec.rb +47 -0
- data/spec/models/transaction_outgoing_spec.rb +77 -0
- data/spec/models/transaction_outgoing_spid_spec.rb +95 -0
- data/spec/models/transactions_outgoing_register_spec.rb +53 -0
- data/spec/models/webhook_request_spec.rb +53 -0
- data/spec/models/webhook_response_spec.rb +75 -0
- data/spec/models/webhooks_list_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- data/wire4_client.gemspec +45 -0
- metadata +468 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
# Wire4Client::CepSearchBanxico
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**amount** | **Float** | Monto de la transferencia |
|
7
|
+
**beneficiary_account** | **String** | Cuenta de beneficiario |
|
8
|
+
**beneficiary_bank_key** | **String** | Clave del banco beneficiario, se puede obtener este valor del listado de institucines '/institutions'. Si este valor no esta presente se obtiene de la cuenta del beneficiario, si la cuenta de beneficiario es un número celular este campo es requerido | [optional]
|
9
|
+
**clave_rastreo** | **String** | Clave de rastreo de la transferencia |
|
10
|
+
**operation_date** | **String** | Fecha de operación de la transferencia, formato: dd-MM-yyyy |
|
11
|
+
**reference** | **String** | Referencia numérica de la transferencia | [optional]
|
12
|
+
**sender_account** | **String** | Cuenta ordenante, es requerida cuando se no se envía la clave del banco ordenante | [optional]
|
13
|
+
**sender_bank_key** | **String** | Clave del banco ordenante, se puede obtener este valor del listado de institucines '/institutions'. Es requerida cuando no se envía la cuenta ordenante | [optional]
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# Wire4Client::ComprobanteElectrnicoDePagoCEPApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://sandbox-api.wire4.mx/wire4/1.0.0*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**obtain_transaction_cep_using_post**](ComprobanteElectrnicoDePagoCEPApi.md#obtain_transaction_cep_using_post) | **POST** /ceps | Consulta de CEP
|
8
|
+
|
9
|
+
|
10
|
+
# **obtain_transaction_cep_using_post**
|
11
|
+
> CepResponse obtain_transaction_cep_using_post(cep_data)
|
12
|
+
|
13
|
+
Consulta de CEP
|
14
|
+
|
15
|
+
Consulta el CEP de un pago realizado a través del SPEI, si es que este se encuentra disponible en BANXICO.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'wire4_client'
|
21
|
+
# setup authorization
|
22
|
+
Wire4Client.configure do |config|
|
23
|
+
# Configure OAuth2 access token for authorization: wire4_aut_app
|
24
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = Wire4Client::ComprobanteElectrnicoDePagoCEPApi.new
|
28
|
+
|
29
|
+
cep_data = Wire4Client::CepSearchBanxico.new # CepSearchBanxico | Información para buscar un CEP
|
30
|
+
|
31
|
+
|
32
|
+
begin
|
33
|
+
#Consulta de CEP
|
34
|
+
result = api_instance.obtain_transaction_cep_using_post(cep_data)
|
35
|
+
p result
|
36
|
+
rescue Wire4Client::ApiError => e
|
37
|
+
puts "Exception when calling ComprobanteElectrnicoDePagoCEPApi->obtain_transaction_cep_using_post: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
### Parameters
|
42
|
+
|
43
|
+
Name | Type | Description | Notes
|
44
|
+
------------- | ------------- | ------------- | -------------
|
45
|
+
**cep_data** | [**CepSearchBanxico**](CepSearchBanxico.md)| Información para buscar un CEP |
|
46
|
+
|
47
|
+
### Return type
|
48
|
+
|
49
|
+
[**CepResponse**](CepResponse.md)
|
50
|
+
|
51
|
+
### Authorization
|
52
|
+
|
53
|
+
[wire4_aut_app](../README.md#wire4_aut_app)
|
54
|
+
|
55
|
+
### HTTP request headers
|
56
|
+
|
57
|
+
- **Content-Type**: application/json
|
58
|
+
- **Accept**: application/json
|
59
|
+
|
60
|
+
|
61
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Wire4Client::ContactRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**address** | **String** | Dirección del contacto | [optional]
|
7
|
+
**company** | **String** | Nombre de la empresa | [optional]
|
8
|
+
**contact_person** | **String** | Nombre de la persona quién será contactada | [optional]
|
9
|
+
**email** | **String** | Email de la persona |
|
10
|
+
**phone_number** | **String** | Número de teléfono de la persona |
|
11
|
+
|
12
|
+
|
data/docs/ContactoApi.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# Wire4Client::ContactoApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://sandbox-api.wire4.mx/wire4/1.0.0*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**send_contact_using_post**](ContactoApi.md#send_contact_using_post) | **POST** /contact | Solicitud de contacto
|
8
|
+
|
9
|
+
|
10
|
+
# **send_contact_using_post**
|
11
|
+
> send_contact_using_post(request_dto)
|
12
|
+
|
13
|
+
Solicitud de contacto
|
14
|
+
|
15
|
+
Notifica a un asesor Monex para que se ponga en contacto con un posible cliente.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'wire4_client'
|
21
|
+
# setup authorization
|
22
|
+
Wire4Client.configure do |config|
|
23
|
+
# Configure OAuth2 access token for authorization: wire4_aut_app
|
24
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = Wire4Client::ContactoApi.new
|
28
|
+
|
29
|
+
request_dto = Wire4Client::ContactRequest.new # ContactRequest | Información del contacto
|
30
|
+
|
31
|
+
|
32
|
+
begin
|
33
|
+
#Solicitud de contacto
|
34
|
+
api_instance.send_contact_using_post(request_dto)
|
35
|
+
rescue Wire4Client::ApiError => e
|
36
|
+
puts "Exception when calling ContactoApi->send_contact_using_post: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
|
42
|
+
Name | Type | Description | Notes
|
43
|
+
------------- | ------------- | ------------- | -------------
|
44
|
+
**request_dto** | [**ContactRequest**](ContactRequest.md)| Información del contacto |
|
45
|
+
|
46
|
+
### Return type
|
47
|
+
|
48
|
+
nil (empty response body)
|
49
|
+
|
50
|
+
### Authorization
|
51
|
+
|
52
|
+
[wire4_aut_app](../README.md#wire4_aut_app)
|
53
|
+
|
54
|
+
### HTTP request headers
|
55
|
+
|
56
|
+
- **Content-Type**: application/json
|
57
|
+
- **Accept**: application/json
|
58
|
+
|
59
|
+
|
60
|
+
|
@@ -0,0 +1,342 @@
|
|
1
|
+
# Wire4Client::CuentasDeBeneficiariosSPEIApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://sandbox-api.wire4.mx/wire4/1.0.0*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**delete_account_using_delete**](CuentasDeBeneficiariosSPEIApi.md#delete_account_using_delete) | **DELETE** /subscriptions/{subscription}/beneficiaries/spei/{account} | Elimina la cuenta del beneficiario
|
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_for_account_using_get**](CuentasDeBeneficiariosSPEIApi.md#get_beneficiaries_for_account_using_get) | **GET** /subscriptions/{subscription}/beneficiaries/spei | Consulta los beneficiarios registrados
|
10
|
+
[**pre_register_accounts_using_post**](CuentasDeBeneficiariosSPEIApi.md#pre_register_accounts_using_post) | **POST** /subscriptions/{subscription}/beneficiaries/spei | Pre-registro de cuentas de beneficiarios.
|
11
|
+
[**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
|
12
|
+
[**update_amount_limit_account_using_put**](CuentasDeBeneficiariosSPEIApi.md#update_amount_limit_account_using_put) | **PUT** /subscriptions/{subscription}/beneficiaries/spei/{account} | Actualiza el monto límite
|
13
|
+
|
14
|
+
|
15
|
+
# **delete_account_using_delete**
|
16
|
+
> delete_account_using_delete(account, subscription)
|
17
|
+
|
18
|
+
Elimina la cuenta del beneficiario
|
19
|
+
|
20
|
+
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.
|
21
|
+
|
22
|
+
### Example
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'wire4_client'
|
26
|
+
# setup authorization
|
27
|
+
Wire4Client.configure do |config|
|
28
|
+
# Configure OAuth2 access token for authorization: wire4_aut_app_user_spei
|
29
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = Wire4Client::CuentasDeBeneficiariosSPEIApi.new
|
33
|
+
|
34
|
+
account = 'account_example' # String | La cuenta del beneciario que será eliminada
|
35
|
+
|
36
|
+
subscription = 'subscription_example' # String | El identificador de la suscripción a esta API
|
37
|
+
|
38
|
+
|
39
|
+
begin
|
40
|
+
#Elimina la cuenta del beneficiario
|
41
|
+
api_instance.delete_account_using_delete(account, subscription)
|
42
|
+
rescue Wire4Client::ApiError => e
|
43
|
+
puts "Exception when calling CuentasDeBeneficiariosSPEIApi->delete_account_using_delete: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**account** | **String**| La cuenta del beneciario que será eliminada |
|
52
|
+
**subscription** | **String**| El identificador de la suscripción a esta API |
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
nil (empty response body)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[wire4_aut_app_user_spei](../README.md#wire4_aut_app_user_spei)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: Not defined
|
65
|
+
- **Accept**: application/json
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# **get_available_relationships_monex_using_get**
|
70
|
+
> RelationshipsResponse get_available_relationships_monex_using_get(subscription)
|
71
|
+
|
72
|
+
Consulta de relaciones
|
73
|
+
|
74
|
+
Obtiene las posibles relaciones existentes para registrar beneficiarios en Monex. Se debe invocar este recurso antes de pre-registrar una cuenta de beneficiario.
|
75
|
+
|
76
|
+
### Example
|
77
|
+
```ruby
|
78
|
+
# load the gem
|
79
|
+
require 'wire4_client'
|
80
|
+
# setup authorization
|
81
|
+
Wire4Client.configure do |config|
|
82
|
+
# Configure OAuth2 access token for authorization: wire4_aut_app_user_spei
|
83
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
84
|
+
end
|
85
|
+
|
86
|
+
api_instance = Wire4Client::CuentasDeBeneficiariosSPEIApi.new
|
87
|
+
|
88
|
+
subscription = 'subscription_example' # String | Identificador de la suscripción a esta API
|
89
|
+
|
90
|
+
|
91
|
+
begin
|
92
|
+
#Consulta de relaciones
|
93
|
+
result = api_instance.get_available_relationships_monex_using_get(subscription)
|
94
|
+
p result
|
95
|
+
rescue Wire4Client::ApiError => e
|
96
|
+
puts "Exception when calling CuentasDeBeneficiariosSPEIApi->get_available_relationships_monex_using_get: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
Name | Type | Description | Notes
|
103
|
+
------------- | ------------- | ------------- | -------------
|
104
|
+
**subscription** | **String**| Identificador de la suscripción a esta API |
|
105
|
+
|
106
|
+
### Return type
|
107
|
+
|
108
|
+
[**RelationshipsResponse**](RelationshipsResponse.md)
|
109
|
+
|
110
|
+
### Authorization
|
111
|
+
|
112
|
+
[wire4_aut_app_user_spei](../README.md#wire4_aut_app_user_spei)
|
113
|
+
|
114
|
+
### HTTP request headers
|
115
|
+
|
116
|
+
- **Content-Type**: Not defined
|
117
|
+
- **Accept**: application/json
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
# **get_beneficiaries_for_account_using_get**
|
122
|
+
> BeneficiariesResponse get_beneficiaries_for_account_using_get(subscription, opts)
|
123
|
+
|
124
|
+
Consulta los beneficiarios registrados
|
125
|
+
|
126
|
+
Obtiene los beneficiarios registrados al contrato relacionado con la suscripción, Los beneficiarios son los que actualmente se encuentran registrados en banca Monex.
|
127
|
+
|
128
|
+
### Example
|
129
|
+
```ruby
|
130
|
+
# load the gem
|
131
|
+
require 'wire4_client'
|
132
|
+
# setup authorization
|
133
|
+
Wire4Client.configure do |config|
|
134
|
+
# Configure OAuth2 access token for authorization: wire4_aut_app_user_spei
|
135
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
136
|
+
end
|
137
|
+
|
138
|
+
api_instance = Wire4Client::CuentasDeBeneficiariosSPEIApi.new
|
139
|
+
|
140
|
+
subscription = 'subscription_example' # String | El identificador de la suscripción a esta API
|
141
|
+
|
142
|
+
opts = {
|
143
|
+
rfc: 'rfc_example' # String | RFC del beneficiario
|
144
|
+
}
|
145
|
+
|
146
|
+
begin
|
147
|
+
#Consulta los beneficiarios registrados
|
148
|
+
result = api_instance.get_beneficiaries_for_account_using_get(subscription, opts)
|
149
|
+
p result
|
150
|
+
rescue Wire4Client::ApiError => e
|
151
|
+
puts "Exception when calling CuentasDeBeneficiariosSPEIApi->get_beneficiaries_for_account_using_get: #{e}"
|
152
|
+
end
|
153
|
+
```
|
154
|
+
|
155
|
+
### Parameters
|
156
|
+
|
157
|
+
Name | Type | Description | Notes
|
158
|
+
------------- | ------------- | ------------- | -------------
|
159
|
+
**subscription** | **String**| El identificador de la suscripción a esta API |
|
160
|
+
**rfc** | **String**| RFC del beneficiario | [optional]
|
161
|
+
|
162
|
+
### Return type
|
163
|
+
|
164
|
+
[**BeneficiariesResponse**](BeneficiariesResponse.md)
|
165
|
+
|
166
|
+
### Authorization
|
167
|
+
|
168
|
+
[wire4_aut_app_user_spei](../README.md#wire4_aut_app_user_spei)
|
169
|
+
|
170
|
+
### HTTP request headers
|
171
|
+
|
172
|
+
- **Content-Type**: Not defined
|
173
|
+
- **Accept**: application/json
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
# **pre_register_accounts_using_post**
|
178
|
+
> TokenRequiredResponse pre_register_accounts_using_post(request_dto, subscription)
|
179
|
+
|
180
|
+
Pre-registro de cuentas de beneficiarios.
|
181
|
+
|
182
|
+
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.
|
183
|
+
|
184
|
+
### Example
|
185
|
+
```ruby
|
186
|
+
# load the gem
|
187
|
+
require 'wire4_client'
|
188
|
+
# setup authorization
|
189
|
+
Wire4Client.configure do |config|
|
190
|
+
# Configure OAuth2 access token for authorization: wire4_aut_app_user_spei
|
191
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
192
|
+
end
|
193
|
+
|
194
|
+
api_instance = Wire4Client::CuentasDeBeneficiariosSPEIApi.new
|
195
|
+
|
196
|
+
request_dto = Wire4Client::AccountRequest.new # AccountRequest | Información de la cuenta del beneficiario
|
197
|
+
|
198
|
+
subscription = 'subscription_example' # String | El identificador de la suscripción a esta API
|
199
|
+
|
200
|
+
|
201
|
+
begin
|
202
|
+
#Pre-registro de cuentas de beneficiarios.
|
203
|
+
result = api_instance.pre_register_accounts_using_post(request_dto, subscription)
|
204
|
+
p result
|
205
|
+
rescue Wire4Client::ApiError => e
|
206
|
+
puts "Exception when calling CuentasDeBeneficiariosSPEIApi->pre_register_accounts_using_post: #{e}"
|
207
|
+
end
|
208
|
+
```
|
209
|
+
|
210
|
+
### Parameters
|
211
|
+
|
212
|
+
Name | Type | Description | Notes
|
213
|
+
------------- | ------------- | ------------- | -------------
|
214
|
+
**request_dto** | [**AccountRequest**](AccountRequest.md)| Información de la cuenta del beneficiario |
|
215
|
+
**subscription** | **String**| El identificador de la suscripción a esta API |
|
216
|
+
|
217
|
+
### Return type
|
218
|
+
|
219
|
+
[**TokenRequiredResponse**](TokenRequiredResponse.md)
|
220
|
+
|
221
|
+
### Authorization
|
222
|
+
|
223
|
+
[wire4_aut_app_user_spei](../README.md#wire4_aut_app_user_spei)
|
224
|
+
|
225
|
+
### HTTP request headers
|
226
|
+
|
227
|
+
- **Content-Type**: application/json
|
228
|
+
- **Accept**: application/json
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
# **remove_beneficiaries_pending_using_delete**
|
233
|
+
> remove_beneficiaries_pending_using_delete(request_id, subscription)
|
234
|
+
|
235
|
+
Eliminación de beneficiarios SPEI® sin confirmar
|
236
|
+
|
237
|
+
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.
|
238
|
+
|
239
|
+
### Example
|
240
|
+
```ruby
|
241
|
+
# load the gem
|
242
|
+
require 'wire4_client'
|
243
|
+
# setup authorization
|
244
|
+
Wire4Client.configure do |config|
|
245
|
+
# Configure OAuth2 access token for authorization: wire4_aut_app_user_spei
|
246
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
247
|
+
end
|
248
|
+
|
249
|
+
api_instance = Wire4Client::CuentasDeBeneficiariosSPEIApi.new
|
250
|
+
|
251
|
+
request_id = 'request_id_example' # String | Identificador de los beneficiarios a eliminar
|
252
|
+
|
253
|
+
subscription = 'subscription_example' # String | El identificador de la suscripción a esta API
|
254
|
+
|
255
|
+
|
256
|
+
begin
|
257
|
+
#Eliminación de beneficiarios SPEI® sin confirmar
|
258
|
+
api_instance.remove_beneficiaries_pending_using_delete(request_id, subscription)
|
259
|
+
rescue Wire4Client::ApiError => e
|
260
|
+
puts "Exception when calling CuentasDeBeneficiariosSPEIApi->remove_beneficiaries_pending_using_delete: #{e}"
|
261
|
+
end
|
262
|
+
```
|
263
|
+
|
264
|
+
### Parameters
|
265
|
+
|
266
|
+
Name | Type | Description | Notes
|
267
|
+
------------- | ------------- | ------------- | -------------
|
268
|
+
**request_id** | **String**| Identificador de los beneficiarios a eliminar |
|
269
|
+
**subscription** | **String**| El identificador de la suscripción a esta API |
|
270
|
+
|
271
|
+
### Return type
|
272
|
+
|
273
|
+
nil (empty response body)
|
274
|
+
|
275
|
+
### Authorization
|
276
|
+
|
277
|
+
[wire4_aut_app_user_spei](../README.md#wire4_aut_app_user_spei)
|
278
|
+
|
279
|
+
### HTTP request headers
|
280
|
+
|
281
|
+
- **Content-Type**: Not defined
|
282
|
+
- **Accept**: application/json
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
# **update_amount_limit_account_using_put**
|
287
|
+
> update_amount_limit_account_using_put(account, request_dto, subscription)
|
288
|
+
|
289
|
+
Actualiza el monto límite
|
290
|
+
|
291
|
+
Actualiza el monto límite a la cuenta de beneficiario proporcionada relacionada al contrato perteneciente a la subscripción.
|
292
|
+
|
293
|
+
### Example
|
294
|
+
```ruby
|
295
|
+
# load the gem
|
296
|
+
require 'wire4_client'
|
297
|
+
# setup authorization
|
298
|
+
Wire4Client.configure do |config|
|
299
|
+
# Configure OAuth2 access token for authorization: wire4_aut_app_user_spei
|
300
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
301
|
+
end
|
302
|
+
|
303
|
+
api_instance = Wire4Client::CuentasDeBeneficiariosSPEIApi.new
|
304
|
+
|
305
|
+
account = 'account_example' # String | Cuenta a actualizar
|
306
|
+
|
307
|
+
request_dto = Wire4Client::AmountRequest.new # AmountRequest | Información de la cuenta y el monto límite a actualizar
|
308
|
+
|
309
|
+
subscription = 'subscription_example' # String | El identificador de la suscripción a esta API
|
310
|
+
|
311
|
+
|
312
|
+
begin
|
313
|
+
#Actualiza el monto límite
|
314
|
+
api_instance.update_amount_limit_account_using_put(account, request_dto, subscription)
|
315
|
+
rescue Wire4Client::ApiError => e
|
316
|
+
puts "Exception when calling CuentasDeBeneficiariosSPEIApi->update_amount_limit_account_using_put: #{e}"
|
317
|
+
end
|
318
|
+
```
|
319
|
+
|
320
|
+
### Parameters
|
321
|
+
|
322
|
+
Name | Type | Description | Notes
|
323
|
+
------------- | ------------- | ------------- | -------------
|
324
|
+
**account** | **String**| Cuenta a actualizar |
|
325
|
+
**request_dto** | [**AmountRequest**](AmountRequest.md)| Información de la cuenta y el monto límite a actualizar |
|
326
|
+
**subscription** | **String**| El identificador de la suscripción a esta API |
|
327
|
+
|
328
|
+
### Return type
|
329
|
+
|
330
|
+
nil (empty response body)
|
331
|
+
|
332
|
+
### Authorization
|
333
|
+
|
334
|
+
[wire4_aut_app_user_spei](../README.md#wire4_aut_app_user_spei)
|
335
|
+
|
336
|
+
### HTTP request headers
|
337
|
+
|
338
|
+
- **Content-Type**: application/json
|
339
|
+
- **Accept**: application/json
|
340
|
+
|
341
|
+
|
342
|
+
|