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
data/docs/WebhooksApi.md
ADDED
@@ -0,0 +1,161 @@
|
|
1
|
+
# Wire4Client::WebhooksApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://sandbox-api.wire4.mx/wire4/1.0.0*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_webhook**](WebhooksApi.md#get_webhook) | **GET** /webhooks/{id} | Consulta de Webhook
|
8
|
+
[**get_webhooks**](WebhooksApi.md#get_webhooks) | **GET** /webhooks | Consulta de Webhooks
|
9
|
+
[**register_webhook**](WebhooksApi.md#register_webhook) | **POST** /webhooks | Alta de Webhook
|
10
|
+
|
11
|
+
|
12
|
+
# **get_webhook**
|
13
|
+
> WebhookResponse get_webhook(id)
|
14
|
+
|
15
|
+
Consulta de Webhook
|
16
|
+
|
17
|
+
Obtiene un webhook registrado en la plataforma mediante su identificador.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'wire4_client'
|
23
|
+
# setup authorization
|
24
|
+
Wire4Client.configure do |config|
|
25
|
+
# Configure OAuth2 access token for authorization: wire4_aut_app
|
26
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = Wire4Client::WebhooksApi.new
|
30
|
+
|
31
|
+
id = 'id_example' # String | Identificador del webhook
|
32
|
+
|
33
|
+
|
34
|
+
begin
|
35
|
+
#Consulta de Webhook
|
36
|
+
result = api_instance.get_webhook(id)
|
37
|
+
p result
|
38
|
+
rescue Wire4Client::ApiError => e
|
39
|
+
puts "Exception when calling WebhooksApi->get_webhook: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
### Parameters
|
44
|
+
|
45
|
+
Name | Type | Description | Notes
|
46
|
+
------------- | ------------- | ------------- | -------------
|
47
|
+
**id** | **String**| Identificador del webhook |
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
[**WebhookResponse**](WebhookResponse.md)
|
52
|
+
|
53
|
+
### Authorization
|
54
|
+
|
55
|
+
[wire4_aut_app](../README.md#wire4_aut_app)
|
56
|
+
|
57
|
+
### HTTP request headers
|
58
|
+
|
59
|
+
- **Content-Type**: Not defined
|
60
|
+
- **Accept**: application/json
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
# **get_webhooks**
|
65
|
+
> WebhooksList get_webhooks
|
66
|
+
|
67
|
+
Consulta de Webhooks
|
68
|
+
|
69
|
+
Obtiene los webhooks registrados en la plataforma que tengan estatus 'ACTIVE' e 'INACTIVE'.
|
70
|
+
|
71
|
+
### Example
|
72
|
+
```ruby
|
73
|
+
# load the gem
|
74
|
+
require 'wire4_client'
|
75
|
+
# setup authorization
|
76
|
+
Wire4Client.configure do |config|
|
77
|
+
# Configure OAuth2 access token for authorization: wire4_aut_app
|
78
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
79
|
+
end
|
80
|
+
|
81
|
+
api_instance = Wire4Client::WebhooksApi.new
|
82
|
+
|
83
|
+
begin
|
84
|
+
#Consulta de Webhooks
|
85
|
+
result = api_instance.get_webhooks
|
86
|
+
p result
|
87
|
+
rescue Wire4Client::ApiError => e
|
88
|
+
puts "Exception when calling WebhooksApi->get_webhooks: #{e}"
|
89
|
+
end
|
90
|
+
```
|
91
|
+
|
92
|
+
### Parameters
|
93
|
+
This endpoint does not need any parameter.
|
94
|
+
|
95
|
+
### Return type
|
96
|
+
|
97
|
+
[**WebhooksList**](WebhooksList.md)
|
98
|
+
|
99
|
+
### Authorization
|
100
|
+
|
101
|
+
[wire4_aut_app](../README.md#wire4_aut_app)
|
102
|
+
|
103
|
+
### HTTP request headers
|
104
|
+
|
105
|
+
- **Content-Type**: Not defined
|
106
|
+
- **Accept**: application/json
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
# **register_webhook**
|
111
|
+
> WebhookResponse register_webhook(webhook_request)
|
112
|
+
|
113
|
+
Alta de Webhook
|
114
|
+
|
115
|
+
Registra un webhook en la plataforma para su uso como notificador de eventos cuando estos ocurran.
|
116
|
+
|
117
|
+
### Example
|
118
|
+
```ruby
|
119
|
+
# load the gem
|
120
|
+
require 'wire4_client'
|
121
|
+
# setup authorization
|
122
|
+
Wire4Client.configure do |config|
|
123
|
+
# Configure OAuth2 access token for authorization: wire4_aut_app
|
124
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
125
|
+
end
|
126
|
+
|
127
|
+
api_instance = Wire4Client::WebhooksApi.new
|
128
|
+
|
129
|
+
webhook_request = Wire4Client::WebhookRequest.new # WebhookRequest | Información para registrar un Webhook
|
130
|
+
|
131
|
+
|
132
|
+
begin
|
133
|
+
#Alta de Webhook
|
134
|
+
result = api_instance.register_webhook(webhook_request)
|
135
|
+
p result
|
136
|
+
rescue Wire4Client::ApiError => e
|
137
|
+
puts "Exception when calling WebhooksApi->register_webhook: #{e}"
|
138
|
+
end
|
139
|
+
```
|
140
|
+
|
141
|
+
### Parameters
|
142
|
+
|
143
|
+
Name | Type | Description | Notes
|
144
|
+
------------- | ------------- | ------------- | -------------
|
145
|
+
**webhook_request** | [**WebhookRequest**](WebhookRequest.md)| Información para registrar un Webhook |
|
146
|
+
|
147
|
+
### Return type
|
148
|
+
|
149
|
+
[**WebhookResponse**](WebhookResponse.md)
|
150
|
+
|
151
|
+
### Authorization
|
152
|
+
|
153
|
+
[wire4_aut_app](../README.md#wire4_aut_app)
|
154
|
+
|
155
|
+
### HTTP request headers
|
156
|
+
|
157
|
+
- **Content-Type**: application/json
|
158
|
+
- **Accept**: application/json
|
159
|
+
|
160
|
+
|
161
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Wire4Client::WebhooksList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**webhooks** | [**Array<WebhookResponse>**](WebhookResponse.md) | Lista de webhooks que se encuentran en estado 'ACTIVE' e 'INACTIVE'. | [optional]
|
7
|
+
|
8
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
5
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
+
#
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
+
|
9
|
+
git_user_id=$1
|
10
|
+
git_repo_id=$2
|
11
|
+
release_note=$3
|
12
|
+
|
13
|
+
if [ "$git_user_id" = "" ]; then
|
14
|
+
git_user_id="GIT_USER_ID"
|
15
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
+
fi
|
17
|
+
|
18
|
+
if [ "$git_repo_id" = "" ]; then
|
19
|
+
git_repo_id="GIT_REPO_ID"
|
20
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
if [ "$release_note" = "" ]; then
|
24
|
+
release_note="Minor update"
|
25
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
+
fi
|
27
|
+
|
28
|
+
# Initialize the local directory as a Git repository
|
29
|
+
git init
|
30
|
+
|
31
|
+
# Adds the files in the local repository and stages them for commit.
|
32
|
+
git add .
|
33
|
+
|
34
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
+
git commit -m "$release_note"
|
36
|
+
|
37
|
+
# Sets the new remote
|
38
|
+
git_remote=`git remote`
|
39
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
+
|
41
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
+
else
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
+
fi
|
47
|
+
|
48
|
+
fi
|
49
|
+
|
50
|
+
git pull origin master
|
51
|
+
|
52
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
+
git push origin master 2>&1 | grep -v 'To https'
|
55
|
+
|
data/lib/wire4_client.rb
ADDED
@@ -0,0 +1,96 @@
|
|
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
|
+
# Common files
|
14
|
+
require 'wire4_client/api_client'
|
15
|
+
require 'wire4_client/api_error'
|
16
|
+
require 'wire4_client/version'
|
17
|
+
require 'wire4_client/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'wire4_client/models/account'
|
21
|
+
require 'wire4_client/models/account_request'
|
22
|
+
require 'wire4_client/models/account_response'
|
23
|
+
require 'wire4_client/models/account_spid'
|
24
|
+
require 'wire4_client/models/amount_request'
|
25
|
+
require 'wire4_client/models/balance'
|
26
|
+
require 'wire4_client/models/balance_list_response'
|
27
|
+
require 'wire4_client/models/beneficiaries_response'
|
28
|
+
require 'wire4_client/models/beneficiary_institution'
|
29
|
+
require 'wire4_client/models/billing'
|
30
|
+
require 'wire4_client/models/billing_transaction'
|
31
|
+
require 'wire4_client/models/cep_response'
|
32
|
+
require 'wire4_client/models/cep_search_banxico'
|
33
|
+
require 'wire4_client/models/contact_request'
|
34
|
+
require 'wire4_client/models/deposit'
|
35
|
+
require 'wire4_client/models/depositant'
|
36
|
+
require 'wire4_client/models/depositants_register'
|
37
|
+
require 'wire4_client/models/depositants_response'
|
38
|
+
require 'wire4_client/models/error_response'
|
39
|
+
require 'wire4_client/models/get_depositants'
|
40
|
+
require 'wire4_client/models/institution'
|
41
|
+
require 'wire4_client/models/institutions_list'
|
42
|
+
require 'wire4_client/models/message_account_beneficiary'
|
43
|
+
require 'wire4_client/models/message_cep'
|
44
|
+
require 'wire4_client/models/message_deposit_received'
|
45
|
+
require 'wire4_client/models/message_institution'
|
46
|
+
require 'wire4_client/models/message_payment'
|
47
|
+
require 'wire4_client/models/message_subscription'
|
48
|
+
require 'wire4_client/models/message_web_hook'
|
49
|
+
require 'wire4_client/models/payment'
|
50
|
+
require 'wire4_client/models/person'
|
51
|
+
require 'wire4_client/models/pre_enrollment_data'
|
52
|
+
require 'wire4_client/models/pre_enrollment_response'
|
53
|
+
require 'wire4_client/models/relationship'
|
54
|
+
require 'wire4_client/models/relationships_response'
|
55
|
+
require 'wire4_client/models/spid_classification_dto'
|
56
|
+
require 'wire4_client/models/spid_classifications_response_dto'
|
57
|
+
require 'wire4_client/models/timestamp'
|
58
|
+
require 'wire4_client/models/token_required_response'
|
59
|
+
require 'wire4_client/models/transaction_outgoing'
|
60
|
+
require 'wire4_client/models/transaction_outgoing_spid'
|
61
|
+
require 'wire4_client/models/transactions_outgoing_register'
|
62
|
+
require 'wire4_client/models/webhook_request'
|
63
|
+
require 'wire4_client/models/webhook_response'
|
64
|
+
require 'wire4_client/models/webhooks_list'
|
65
|
+
|
66
|
+
# APIs
|
67
|
+
require 'wire4_client/api/comprobante_electrnico_de_pago_cep_api'
|
68
|
+
require 'wire4_client/api/contacto_api'
|
69
|
+
require 'wire4_client/api/cuentas_de_beneficiarios_spei_api'
|
70
|
+
require 'wire4_client/api/cuentas_de_beneficiarios_spid_api'
|
71
|
+
require 'wire4_client/api/depositantes_api'
|
72
|
+
require 'wire4_client/api/facturas_api'
|
73
|
+
require 'wire4_client/api/instituciones_api'
|
74
|
+
require 'wire4_client/api/saldo_api'
|
75
|
+
require 'wire4_client/api/suscripciones_api'
|
76
|
+
require 'wire4_client/api/transferencias_spei_api'
|
77
|
+
require 'wire4_client/api/transferencias_spid_api'
|
78
|
+
require 'wire4_client/api/webhooks_api'
|
79
|
+
|
80
|
+
module Wire4Client
|
81
|
+
class << self
|
82
|
+
# Customize default settings for the SDK using block.
|
83
|
+
# Wire4Client.configure do |config|
|
84
|
+
# config.username = "xxx"
|
85
|
+
# config.password = "xxx"
|
86
|
+
# end
|
87
|
+
# If no block given, return the default Configuration object.
|
88
|
+
def configure
|
89
|
+
if block_given?
|
90
|
+
yield(Configuration.default)
|
91
|
+
else
|
92
|
+
Configuration.default
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,77 @@
|
|
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 ComprobanteElectrnicoDePagoCEPApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Consulta de CEP
|
23
|
+
# Consulta el CEP de un pago realizado a través del SPEI, si es que este se encuentra disponible en BANXICO.
|
24
|
+
# @param cep_data Información para buscar un CEP
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [CepResponse]
|
27
|
+
def obtain_transaction_cep_using_post(cep_data, opts = {})
|
28
|
+
data, _status_code, _headers = obtain_transaction_cep_using_post_with_http_info(cep_data, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Consulta de CEP
|
33
|
+
# Consulta el CEP de un pago realizado a través del SPEI, si es que este se encuentra disponible en BANXICO.
|
34
|
+
# @param cep_data Información para buscar un CEP
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(CepResponse, Fixnum, Hash)>] CepResponse data, response status code and response headers
|
37
|
+
def obtain_transaction_cep_using_post_with_http_info(cep_data, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ComprobanteElectrnicoDePagoCEPApi.obtain_transaction_cep_using_post ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'cep_data' is set
|
42
|
+
if @api_client.config.client_side_validation && cep_data.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'cep_data' when calling ComprobanteElectrnicoDePagoCEPApi.obtain_transaction_cep_using_post"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/ceps'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = @api_client.object_to_http_body(cep_data)
|
63
|
+
auth_names = ['wire4_aut_app']
|
64
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
65
|
+
:header_params => header_params,
|
66
|
+
:query_params => query_params,
|
67
|
+
:form_params => form_params,
|
68
|
+
:body => post_body,
|
69
|
+
:auth_names => auth_names,
|
70
|
+
:return_type => 'CepResponse')
|
71
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: ComprobanteElectrnicoDePagoCEPApi#obtain_transaction_cep_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
return data, status_code, headers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,76 @@
|
|
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 ContactoApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Solicitud de contacto
|
23
|
+
# Notifica a un asesor Monex para que se ponga en contacto con un posible cliente.
|
24
|
+
# @param request_dto Información del contacto
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [nil]
|
27
|
+
def send_contact_using_post(request_dto, opts = {})
|
28
|
+
send_contact_using_post_with_http_info(request_dto, opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Solicitud de contacto
|
33
|
+
# Notifica a un asesor Monex para que se ponga en contacto con un posible cliente.
|
34
|
+
# @param request_dto Información del contacto
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
37
|
+
def send_contact_using_post_with_http_info(request_dto, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContactoApi.send_contact_using_post ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'request_dto' is set
|
42
|
+
if @api_client.config.client_side_validation && request_dto.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'request_dto' when calling ContactoApi.send_contact_using_post"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/contact'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = @api_client.object_to_http_body(request_dto)
|
63
|
+
auth_names = ['wire4_aut_app']
|
64
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
65
|
+
:header_params => header_params,
|
66
|
+
:query_params => query_params,
|
67
|
+
:form_params => form_params,
|
68
|
+
:body => post_body,
|
69
|
+
:auth_names => auth_names)
|
70
|
+
if @api_client.config.debugging
|
71
|
+
@api_client.config.logger.debug "API called: ContactoApi#send_contact_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
72
|
+
end
|
73
|
+
return data, status_code, headers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|