wire4_client 1.1.2 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +27 -0
- data/docs/AccountReassigned.md +1 -1
- data/docs/AccountResponse.md +1 -0
- data/docs/BeneficiaryDTO.md +10 -0
- data/docs/CargosRecurrentesApi.md +110 -0
- data/docs/CepResponse.md +1 -0
- data/docs/CepSearchBanxico.md +1 -0
- data/docs/CertificateRequest.md +1 -1
- data/docs/CodiCodeQrResponseDTO.md +1 -0
- data/docs/CodiCodeRequestDTO.md +6 -3
- data/docs/ConfirmRecurringCharge.md +9 -0
- data/docs/CuentasDeBeneficiariosSPEIApi.md +4 -0
- data/docs/CuentasDeBeneficiariosSPIDApi.md +4 -0
- data/docs/Customer.md +9 -0
- data/docs/Deposit.md +1 -0
- data/docs/Depositant.md +1 -0
- data/docs/DepositantCountResponse.md +8 -0
- data/docs/DepositantesApi.md +164 -1
- data/docs/FailedChargesDataDTO.md +13 -0
- data/docs/MessageDepositReceived.md +3 -0
- data/docs/PaymentRequestReportDTO.md +17 -0
- data/docs/PaymentRequestReq.md +18 -0
- data/docs/PaymentRequestResponse.md +10 -0
- data/docs/PaymentsSpeiAndSpidOrderId.md +9 -0
- data/docs/PaymentsSpeiAndSpidRequestId.md +12 -0
- data/docs/Person.md +1 -1
- data/docs/Product.md +11 -0
- data/docs/RecurringChargeRequest.md +14 -0
- data/docs/ReporteDeSolicitudesDePagosApi.md +107 -0
- data/docs/SolicitudDePagosApi.md +59 -0
- data/docs/SpidBeneficiaryResponse.md +1 -0
- data/docs/SuccessChargesDataDTO.md +12 -0
- data/docs/SuccessDataDTO.md +9 -0
- data/docs/TransactionSpeiSpid.md +15 -0
- data/docs/TransactionsRegister.md +11 -0
- data/docs/TransferenciasSPEIApi.md +163 -0
- data/lib/wire4_client/api/cargos_recurrentes_api.rb +143 -0
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +6 -0
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +6 -0
- data/lib/wire4_client/api/depositantes_api.rb +207 -2
- data/lib/wire4_client/api/reporte_de_solicitudes_de_pagos_api.rb +134 -0
- data/lib/wire4_client/api/solicitud_de_pagos_api.rb +84 -0
- data/lib/wire4_client/api/transferencias_spei_api.rb +234 -4
- data/lib/wire4_client/models/account_reassigned.rb +11 -11
- data/lib/wire4_client/models/account_response.rb +11 -1
- data/lib/wire4_client/models/amount_request.rb +10 -10
- data/lib/wire4_client/models/beneficiary_dto.rb +201 -0
- data/lib/wire4_client/models/cep_response.rb +45 -1
- data/lib/wire4_client/models/cep_search_banxico.rb +48 -4
- data/lib/wire4_client/models/certificate_request.rb +6 -15
- data/lib/wire4_client/models/codi_code_qr_response_dto.rb +15 -5
- data/lib/wire4_client/models/codi_code_request_dto.rb +94 -20
- data/lib/wire4_client/models/codi_operations_filters_request_dto.rb +2 -2
- data/lib/wire4_client/models/confirm_recurring_charge.rb +194 -0
- data/lib/wire4_client/models/customer.rb +205 -0
- data/lib/wire4_client/models/deposit.rb +48 -4
- data/lib/wire4_client/models/depositant.rb +14 -4
- data/lib/wire4_client/models/depositant_count_response.rb +185 -0
- data/lib/wire4_client/models/failed_charges_data_dto.rb +228 -0
- data/lib/wire4_client/models/message_deposit_received.rb +31 -1
- data/lib/wire4_client/models/operations.rb +4 -4
- data/lib/wire4_client/models/payment_codi.rb +2 -2
- data/lib/wire4_client/models/payment_request_report_dto.rb +300 -0
- data/lib/wire4_client/models/payment_request_req.rb +401 -0
- data/lib/wire4_client/models/payment_request_response.rb +204 -0
- data/lib/wire4_client/models/payments_spei_and_spid_order_id.rb +199 -0
- data/lib/wire4_client/models/payments_spei_and_spid_request_id.rb +229 -0
- data/lib/wire4_client/models/person.rb +0 -5
- data/lib/wire4_client/models/product.rb +288 -0
- data/lib/wire4_client/models/recurring_charge_request.rb +278 -0
- data/lib/wire4_client/models/sales_point_request.rb +5 -5
- data/lib/wire4_client/models/spid_beneficiary_response.rb +11 -1
- data/lib/wire4_client/models/success_charges_data_dto.rb +219 -0
- data/lib/wire4_client/models/success_data_dto.rb +226 -0
- data/lib/wire4_client/models/transaction_outgoing.rb +5 -5
- data/lib/wire4_client/models/transaction_spei_spid.rb +390 -0
- data/lib/wire4_client/models/transactions_register.rb +229 -0
- data/lib/wire4_client/version.rb +1 -1
- data/lib/wire4_client.rb +19 -0
- data/spec/api/cargos_recurrentes_api_spec.rb +61 -0
- data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +2 -0
- data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +2 -0
- data/spec/api/depositantes_api_spec.rb +42 -1
- data/spec/api/reporte_de_solicitudes_de_pagos_api_spec.rb +59 -0
- data/spec/api/solicitud_de_pagos_api_spec.rb +48 -0
- data/spec/api/transferencias_spei_api_spec.rb +42 -0
- data/spec/models/account_reassigned_spec.rb +3 -3
- data/spec/models/account_response_spec.rb +6 -0
- data/spec/models/beneficiary_dto_spec.rb +53 -0
- data/spec/models/cep_response_spec.rb +10 -0
- data/spec/models/cep_search_banxico_spec.rb +10 -0
- data/spec/models/codi_code_qr_response_dto_spec.rb +8 -2
- data/spec/models/codi_code_request_dto_spec.rb +23 -1
- data/spec/models/codi_operations_filters_request_dto_spec.rb +1 -1
- data/spec/models/confirm_recurring_charge_spec.rb +47 -0
- data/spec/models/customer_spec.rb +47 -0
- data/spec/models/deposit_spec.rb +10 -0
- data/spec/models/depositant_count_response_spec.rb +41 -0
- data/spec/models/depositant_spec.rb +6 -0
- data/spec/models/failed_charges_data_dto_spec.rb +71 -0
- data/spec/models/message_deposit_received_spec.rb +18 -0
- data/spec/models/operations_spec.rb +2 -2
- data/spec/models/payment_codi_spec.rb +1 -1
- data/spec/models/payment_request_report_dto_spec.rb +99 -0
- data/spec/models/payment_request_req_spec.rb +109 -0
- data/spec/models/payment_request_response_spec.rb +53 -0
- data/spec/models/payments_spei_and_spid_order_id_spec.rb +47 -0
- data/spec/models/payments_spei_and_spid_request_id_spec.rb +65 -0
- data/spec/models/product_spec.rb +63 -0
- data/spec/models/recurring_charge_request_spec.rb +77 -0
- data/spec/models/spid_beneficiary_response_spec.rb +6 -0
- data/spec/models/success_charges_data_dto_spec.rb +65 -0
- data/spec/models/success_data_dto_spec.rb +51 -0
- data/spec/models/transaction_spei_spid_spec.rb +83 -0
- data/spec/models/transactions_register_spec.rb +59 -0
- data/wire4_client-1.1.3.gem +0 -0
- data/wire4_client.gemspec +7 -7
- metadata +108 -55
data/lib/wire4_client.rb
CHANGED
@@ -32,6 +32,7 @@ require 'wire4_client/models/balance'
|
|
32
32
|
require 'wire4_client/models/balance_list_response'
|
33
33
|
require 'wire4_client/models/beneficiaries_query_register_status'
|
34
34
|
require 'wire4_client/models/beneficiaries_response'
|
35
|
+
require 'wire4_client/models/beneficiary_dto'
|
35
36
|
require 'wire4_client/models/beneficiary_institution'
|
36
37
|
require 'wire4_client/models/billing'
|
37
38
|
require 'wire4_client/models/billing_transaction'
|
@@ -46,17 +47,21 @@ require 'wire4_client/models/company_registered'
|
|
46
47
|
require 'wire4_client/models/company_requested'
|
47
48
|
require 'wire4_client/models/compay'
|
48
49
|
require 'wire4_client/models/configurations_limits'
|
50
|
+
require 'wire4_client/models/confirm_recurring_charge'
|
49
51
|
require 'wire4_client/models/contact_request'
|
50
52
|
require 'wire4_client/models/contract_detail_request'
|
51
53
|
require 'wire4_client/models/contract_detail_response'
|
54
|
+
require 'wire4_client/models/customer'
|
52
55
|
require 'wire4_client/models/deposit'
|
53
56
|
require 'wire4_client/models/deposit_authorization_request'
|
54
57
|
require 'wire4_client/models/depositant'
|
58
|
+
require 'wire4_client/models/depositant_count_response'
|
55
59
|
require 'wire4_client/models/depositants_register'
|
56
60
|
require 'wire4_client/models/depositants_response'
|
57
61
|
require 'wire4_client/models/deposits_authorization_response'
|
58
62
|
require 'wire4_client/models/detailed_error_response'
|
59
63
|
require 'wire4_client/models/error_response'
|
64
|
+
require 'wire4_client/models/failed_charges_data_dto'
|
60
65
|
require 'wire4_client/models/get_depositants'
|
61
66
|
require 'wire4_client/models/institution'
|
62
67
|
require 'wire4_client/models/institutions_list'
|
@@ -80,11 +85,18 @@ require 'wire4_client/models/pager_response_dto'
|
|
80
85
|
require 'wire4_client/models/payment'
|
81
86
|
require 'wire4_client/models/payment_codi'
|
82
87
|
require 'wire4_client/models/payment_request_codi_response_dto'
|
88
|
+
require 'wire4_client/models/payment_request_report_dto'
|
89
|
+
require 'wire4_client/models/payment_request_req'
|
90
|
+
require 'wire4_client/models/payment_request_response'
|
83
91
|
require 'wire4_client/models/payments_request_id'
|
92
|
+
require 'wire4_client/models/payments_spei_and_spid_order_id'
|
93
|
+
require 'wire4_client/models/payments_spei_and_spid_request_id'
|
84
94
|
require 'wire4_client/models/person'
|
85
95
|
require 'wire4_client/models/pre_enrollment_data'
|
86
96
|
require 'wire4_client/models/pre_enrollment_response'
|
87
97
|
require 'wire4_client/models/pre_monex_authorization'
|
98
|
+
require 'wire4_client/models/product'
|
99
|
+
require 'wire4_client/models/recurring_charge_request'
|
88
100
|
require 'wire4_client/models/relationship'
|
89
101
|
require 'wire4_client/models/relationships_response'
|
90
102
|
require 'wire4_client/models/sales_point'
|
@@ -97,11 +109,15 @@ require 'wire4_client/models/spid_beneficiary_response'
|
|
97
109
|
require 'wire4_client/models/spid_classification_dto'
|
98
110
|
require 'wire4_client/models/spid_classifications_response_dto'
|
99
111
|
require 'wire4_client/models/subscription_change_status_request'
|
112
|
+
require 'wire4_client/models/success_charges_data_dto'
|
113
|
+
require 'wire4_client/models/success_data_dto'
|
100
114
|
require 'wire4_client/models/token_required_response'
|
101
115
|
require 'wire4_client/models/transaction_error_code'
|
102
116
|
require 'wire4_client/models/transaction_outgoing'
|
103
117
|
require 'wire4_client/models/transaction_outgoing_spid'
|
118
|
+
require 'wire4_client/models/transaction_spei_spid'
|
104
119
|
require 'wire4_client/models/transactions_outgoing_register'
|
120
|
+
require 'wire4_client/models/transactions_register'
|
105
121
|
require 'wire4_client/models/update_configurations_request_dto'
|
106
122
|
require 'wire4_client/models/urls_redirect'
|
107
123
|
require 'wire4_client/models/use_service_banking'
|
@@ -115,6 +131,7 @@ require 'wire4_client/models/webhooks_list'
|
|
115
131
|
|
116
132
|
# APIs
|
117
133
|
require 'wire4_client/api/autorizacin_de_depsitos_api'
|
134
|
+
require 'wire4_client/api/cargos_recurrentes_api'
|
118
135
|
require 'wire4_client/api/comprobante_electrnico_de_pago_cep_api'
|
119
136
|
require 'wire4_client/api/contacto_api'
|
120
137
|
require 'wire4_client/api/contracts_details_api'
|
@@ -128,7 +145,9 @@ require 'wire4_client/api/lmites_de_montos_api'
|
|
128
145
|
require 'wire4_client/api/operaciones_co_di_api'
|
129
146
|
require 'wire4_client/api/peticiones_de_pago_por_co_di_api'
|
130
147
|
require 'wire4_client/api/puntos_de_venta_co_di_api'
|
148
|
+
require 'wire4_client/api/reporte_de_solicitudes_de_pagos_api'
|
131
149
|
require 'wire4_client/api/saldo_api'
|
150
|
+
require 'wire4_client/api/solicitud_de_pagos_api'
|
132
151
|
require 'wire4_client/api/suscripciones_api'
|
133
152
|
require 'wire4_client/api/transferencias_spei_api'
|
134
153
|
require 'wire4_client/api/transferencias_spid_api'
|
@@ -0,0 +1,61 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Wire4Client::CargosRecurrentesApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CargosRecurrentesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = Wire4Client::CargosRecurrentesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CargosRecurrentesApi' do
|
30
|
+
it 'should create an instance of CargosRecurrentesApi' do
|
31
|
+
expect(@instance).to be_instance_of(Wire4Client::CargosRecurrentesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for delete_recurring_charge_using_delete
|
36
|
+
# Cancelación/desubscripción de cargos recurrentes
|
37
|
+
# Se solicita la desuscripción de un cargo recurrente activo. En el request llevará el orderId que identifica el cargo recurrente a eliminar/dar de baja se deshabilitará tanto de openpay como del sistem wire4.<br> Nota: Debe considerar que para hacer uso de esta funcionalidad debe contar con un scope especial
|
38
|
+
# @param authorization Header para token
|
39
|
+
# @param order_id orderId
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [ConfirmRecurringCharge]
|
42
|
+
describe 'delete_recurring_charge_using_delete test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for register_recurring_charge_using_post
|
49
|
+
# Registro de cargos recurrentes
|
50
|
+
# Se registra una solicitud para generar un plan de cargos recurrentes. En la respuesta se proporcionará una dirección URL que lo llevará al sitio donde se le solicitará ingresar los datos de tarjeta a la que se aplicarán los cargos de acuerdo al plan seleccionado.<br> Nota: Debe considerar que para hacer uso de esta funcionalidad debe contar con un scope especial
|
51
|
+
# @param authorization Header para token
|
52
|
+
# @param request_recurring_charge Información de la solicitud para aplicar cargos recurrentes
|
53
|
+
# @param [Hash] opts the optional parameters
|
54
|
+
# @return [ConfirmRecurringCharge]
|
55
|
+
describe 'register_recurring_charge_using_post test' do
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
@@ -98,7 +98,9 @@ describe 'CuentasDeBeneficiariosSPEIApi' do
|
|
98
98
|
# @option opts [String] :beneficiary_name Es el nombre del beneficiario.
|
99
99
|
# @option opts [String] :end_date Es la fecha de inicio del perido a filtrar en formato dd-mm-yyyy.
|
100
100
|
# @option opts [String] :init_date Es la fºecha de inicio del perido a filtrar en formato dd-mm-yyyy.
|
101
|
+
# @option opts [String] :page Es el número de página.
|
101
102
|
# @option opts [String] :rfc Es el Registro Federal de Controbuyentes (RFC) del beneficiario.
|
103
|
+
# @option opts [String] :size Es el tamaño de página.
|
102
104
|
# @option opts [String] :status Es el estado (estatus) de la cuenta. Los valores pueden ser <b>PENDING</b> y <b>REGISTERED</b>.
|
103
105
|
# @return [BeneficiariesResponse]
|
104
106
|
describe 'get_beneficiaries_for_account_using_get test' do
|
@@ -43,7 +43,9 @@ describe 'CuentasDeBeneficiariosSPIDApi' do
|
|
43
43
|
# @option opts [String] :beneficiary_name Es el nombre del beneficiario.
|
44
44
|
# @option opts [String] :end_date Es la fecha de inicio del periodo a filtrar en formato dd-mm-yyyy.
|
45
45
|
# @option opts [String] :init_date Es la fecha de inicio del periodo a filtrar en formato dd-mm-yyyy.
|
46
|
+
# @option opts [String] :page Es el número de página.
|
46
47
|
# @option opts [String] :rfc Es el Registro Federal de Contribuyentes (RFC) del beneficiario.
|
48
|
+
# @option opts [String] :size Es el tamaño de página.
|
47
49
|
# @option opts [String] :status Es el estado (estatus) de la cuenta, Los valores pueden ser <b>PENDING</b> y <b>REGISTERED</b>.
|
48
50
|
# @return [SpidBeneficiariesResponse]
|
49
51
|
describe 'get_spid_beneficiaries_for_account test' do
|
@@ -32,6 +32,19 @@ describe 'DepositantesApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for get_depositants_totals_using_get
|
36
|
+
# Número de depositantes por suscripción
|
37
|
+
# Obtiene la cantidad el total de depositantes asociados al contrato relacionado a la suscripción.
|
38
|
+
# @param authorization Header para token
|
39
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [DepositantCountResponse]
|
42
|
+
describe 'get_depositants_totals_using_get test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
35
48
|
# unit tests for get_depositants_using_get
|
36
49
|
# Consulta de cuentas de depositantes
|
37
50
|
# Obtiene una lista de depositantes asociados al contrato relacionado a la suscripción.
|
@@ -47,7 +60,7 @@ describe 'DepositantesApi' do
|
|
47
60
|
|
48
61
|
# unit tests for register_depositants_using_post
|
49
62
|
# Registra un nuevo depositante
|
50
|
-
# Registra un nuevo depositante en el contrato asociado a la suscripción.
|
63
|
+
# Registra un nuevo depositante en el contrato asociado a la suscripción. Si intenta registrar un depositante que previamente se había registrado, se devolverá la cuenta clabe asociada al Álias que está intentando registrar. Queda bajo responsabilidad del cliente verificar que los álias sean únicos en sus sistemas.
|
51
64
|
# @param authorization Header para token
|
52
65
|
# @param register Depositant info
|
53
66
|
# @param subscription Es el identificador de la suscripción a esta API.
|
@@ -59,4 +72,32 @@ describe 'DepositantesApi' do
|
|
59
72
|
end
|
60
73
|
end
|
61
74
|
|
75
|
+
# unit tests for update_status_depositants_no_suscrption_using_patch
|
76
|
+
# Solicitud para actualizar el estado de un depositante sin utilizar la suscripción
|
77
|
+
# @param authorization Header para token
|
78
|
+
# @param account Es la cuenta que va a ser actualizada.
|
79
|
+
# @param action Es la cuenta que va a ser actualizada.
|
80
|
+
# @param [Hash] opts the optional parameters
|
81
|
+
# @option opts [String] :empty_value Empty value
|
82
|
+
# @return [Depositant]
|
83
|
+
describe 'update_status_depositants_no_suscrption_using_patch test' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# unit tests for update_status_depositants_using_patch
|
90
|
+
# Solicitud para actualizar el estado de un depossitante
|
91
|
+
# @param authorization Header para token
|
92
|
+
# @param account Es la cuenta que va a ser actualizada.
|
93
|
+
# @param action Es la cuenta que va a ser actualizada.
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @option opts [String] :empty_value Empty value
|
96
|
+
# @return [Depositant]
|
97
|
+
describe 'update_status_depositants_using_patch test' do
|
98
|
+
it 'should work' do
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
62
103
|
end
|
@@ -0,0 +1,59 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Wire4Client::ReporteDeSolicitudesDePagosApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ReporteDeSolicitudesDePagosApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = Wire4Client::ReporteDeSolicitudesDePagosApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ReporteDeSolicitudesDePagosApi' do
|
30
|
+
it 'should create an instance of ReporteDeSolicitudesDePagosApi' do
|
31
|
+
expect(@instance).to be_instance_of(Wire4Client::ReporteDeSolicitudesDePagosApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for payment_request_id_report_by_order_id_using_get
|
36
|
+
# Consulta de solicitudes de pago por numero de orden.
|
37
|
+
# @param authorization Header para token
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :order_id Es el identificador de la orden a buscar.
|
40
|
+
# @return [PaymentRequestReportDTO]
|
41
|
+
describe 'payment_request_id_report_by_order_id_using_get test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for payment_request_id_report_using_get
|
48
|
+
# Consulta de solicitudes de pago por identificador de petición
|
49
|
+
# @param authorization Header para token
|
50
|
+
# @param request_id Identificador de la petición a buscar.
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [PaymentRequestReportDTO]
|
53
|
+
describe 'payment_request_id_report_using_get test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
@@ -0,0 +1,48 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Wire4Client::SolicitudDePagosApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'SolicitudDePagosApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = Wire4Client::SolicitudDePagosApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of SolicitudDePagosApi' do
|
30
|
+
it 'should create an instance of SolicitudDePagosApi' do
|
31
|
+
expect(@instance).to be_instance_of(Wire4Client::SolicitudDePagosApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for register_payment_request_using_post
|
36
|
+
# Registro de solicitud de pagos
|
37
|
+
# Se registra una solicitud de pagos. En la respuesta se proporcionará una dirección URL que lo llevará al sitio donde se le solicitará ingresar los datos de tarjeta a la que se aplicarán los cargos.
|
38
|
+
# @param authorization Header para token
|
39
|
+
# @param payment_request_req_dto Información de la solicitud de pagos
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [PaymentRequestResponse]
|
42
|
+
describe 'register_payment_request_using_post test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
@@ -90,6 +90,34 @@ describe 'TransferenciasSPEIApi' do
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
93
|
+
# unit tests for out_comming_spei_spid_order_id_transaction_report_using_get
|
94
|
+
# Consulta de transferencias realizadas por order_id
|
95
|
+
# Consulta las transferencias que regresa este recuso son únicamente las transferencias recibidas en el día en el que se realiza la consulta o las transferencias identificadas con el <strong>order_id</strong> proporcionado, para este tipo de consultas no importa el día en el que se realizó la transferencia. <br> Es importante que conozca que la respuesta puede dar como resultado un objeto con una lista spei o una lista spid con el/los elementos ya que un identificador order_id solo puede pertenecer a una transacción sea spei o spid.
|
96
|
+
# @param authorization Header para token
|
97
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [String] :order_id Es el identificador de la orden a buscar.
|
100
|
+
# @return [PaymentsSpeiAndSpidOrderId]
|
101
|
+
describe 'out_comming_spei_spid_order_id_transaction_report_using_get test' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# unit tests for out_comming_spei_spid_request_id_transactions_report_using_get
|
108
|
+
# Consulta de transferencias de salida por identificador de petición
|
109
|
+
# 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 cuál se debe especificar como parte del path de este endpoint.
|
110
|
+
# @param authorization Header para token
|
111
|
+
# @param request_id Identificador de la petición a buscar.
|
112
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
113
|
+
# @param [Hash] opts the optional parameters
|
114
|
+
# @return [PaymentsSpeiAndSpidRequestId]
|
115
|
+
describe 'out_comming_spei_spid_request_id_transactions_report_using_get test' do
|
116
|
+
it 'should work' do
|
117
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
93
121
|
# unit tests for outgoing_spei_transactions_report_using_get
|
94
122
|
# Consulta de transferencias realizadas
|
95
123
|
# Consulta las transferencias realizadas en la cuenta del cliente Monex relacionada a la suscripción, las transferencias que regresa este recuso son únicamente las transferencias recibidas en el día en el que se realiza la consulta.<br>Se pueden realizar consultas por <strong>order_id</strong> al realizar este tipo de consultas no importa el día en el que se realizó la transferencia
|
@@ -118,4 +146,18 @@ describe 'TransferenciasSPEIApi' do
|
|
118
146
|
end
|
119
147
|
end
|
120
148
|
|
149
|
+
# unit tests for register_spei_spid_outgoing_transactions_using_post
|
150
|
+
# Registro de transferencias SPEI y SPID
|
151
|
+
# Se registra un conjunto de transferencias (una o más) tanto SPEI como SPID en una sola petición en la cuenta del cliente Monex relacionada a la suscripción. En la respuesta se proporcionará una dirección URL que lo llevará al centro de autorización para que las transferencias sean confirmadas (autorizadas) por el cliente para que se efectúen, para ello debe ingresar la llave electrónica (Token).<br> Nota: Debe considerar que el concepto de cada una de las transacciones solo debe contener caracteres alfanuméricos por lo que en caso de que se reciban caracteres como ñ o acentos serán sustituidos por n o en su caso por la letra sin acento. Los caracteres no alfanuméricos como pueden ser caracteres especiales serán eliminados.
|
152
|
+
# @param authorization Header para token
|
153
|
+
# @param subscription Es el identificador de la suscripción a esta API.
|
154
|
+
# @param transactions Información de las transferencias SPEI y SPID de salida
|
155
|
+
# @param [Hash] opts the optional parameters
|
156
|
+
# @return [TokenRequiredResponse]
|
157
|
+
describe 'register_spei_spid_outgoing_transactions_using_post test' do
|
158
|
+
it 'should work' do
|
159
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
121
163
|
end
|
@@ -38,19 +38,19 @@ describe 'AccountReassigned' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "authorization_date"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "bank"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "beneficiary_account"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -38,6 +38,12 @@ describe 'AccountResponse' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
describe 'test attribute "authorization_date"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
41
47
|
describe 'test attribute "bank"' do
|
42
48
|
it 'should work' do
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -0,0 +1,53 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Wire4Client::BeneficiaryDTO
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'BeneficiaryDTO' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Wire4Client::BeneficiaryDTO.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of BeneficiaryDTO' do
|
31
|
+
it 'should create an instance of BeneficiaryDTO' do
|
32
|
+
expect(@instance).to be_instance_of(Wire4Client::BeneficiaryDTO)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "account"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "account_type"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "name"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -152,6 +152,16 @@ describe 'CepResponse' do
|
|
152
152
|
end
|
153
153
|
end
|
154
154
|
|
155
|
+
describe 'test attribute "type"' do
|
156
|
+
it 'should work' do
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
158
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["SPEI", "SPID"])
|
159
|
+
# validator.allowable_values.each do |value|
|
160
|
+
# expect { @instance.type = value }.not_to raise_error
|
161
|
+
# end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
155
165
|
describe 'test attribute "url_zip"' do
|
156
166
|
it 'should work' do
|
157
167
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -80,4 +80,14 @@ describe 'CepSearchBanxico' do
|
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
+
describe 'test attribute "type"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["SPEI", "SPID"])
|
87
|
+
# validator.allowable_values.each do |value|
|
88
|
+
# expect { @instance.type = value }.not_to raise_error
|
89
|
+
# end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
83
93
|
end
|
@@ -80,10 +80,16 @@ describe 'CodiCodeQrResponseDTO' do
|
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
+
describe 'test attribute "reference"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
83
89
|
describe 'test attribute "status"' do
|
84
90
|
it 'should work' do
|
85
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["RECEIVED", "COMPLETED", "CANCELLED"])
|
92
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ACCEPTED", "RECEIVED", "COMPLETED", "CANCELLED", "POSTPONED", "REJECTED", "REVERSED", "PENDING"])
|
87
93
|
# validator.allowable_values.each do |value|
|
88
94
|
# expect { @instance.status = value }.not_to raise_error
|
89
95
|
# end
|
@@ -93,7 +99,7 @@ describe 'CodiCodeQrResponseDTO' do
|
|
93
99
|
describe 'test attribute "type"' do
|
94
100
|
it 'should work' do
|
95
101
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PUSH_NOTIFICATION", "QR_CODE"])
|
102
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PUSH_NOTIFICATION", "QR_CODE", "UNKNOWN"])
|
97
103
|
# validator.allowable_values.each do |value|
|
98
104
|
# expect { @instance.type = value }.not_to raise_error
|
99
105
|
# end
|
@@ -38,6 +38,12 @@ describe 'CodiCodeRequestDTO' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
describe 'test attribute "beneficiary2"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
41
47
|
describe 'test attribute "concept"' do
|
42
48
|
it 'should work' do
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -62,16 +68,32 @@ describe 'CodiCodeRequestDTO' do
|
|
62
68
|
end
|
63
69
|
end
|
64
70
|
|
71
|
+
describe 'test attribute "payment_type"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ONE_OCCASION", "RECURRENT", "RECURRENT_NO_RECURRENT", "UNKNOWN"])
|
75
|
+
# validator.allowable_values.each do |value|
|
76
|
+
# expect { @instance.payment_type = value }.not_to raise_error
|
77
|
+
# end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
65
81
|
describe 'test attribute "phone_number"' do
|
66
82
|
it 'should work' do
|
67
83
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
84
|
end
|
69
85
|
end
|
70
86
|
|
87
|
+
describe 'test attribute "reference"' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
71
93
|
describe 'test attribute "type"' do
|
72
94
|
it 'should work' do
|
73
95
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PUSH_NOTIFICATION", "QR_CODE"])
|
96
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PUSH_NOTIFICATION", "QR_CODE", "UNKNOWN"])
|
75
97
|
# validator.allowable_values.each do |value|
|
76
98
|
# expect { @instance.type = value }.not_to raise_error
|
77
99
|
# end
|
@@ -77,7 +77,7 @@ describe 'CodiOperationsFiltersRequestDTO' do
|
|
77
77
|
describe 'test attribute "status"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["RECEIVED", "COMPLETED", "CANCELLED"])
|
80
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ACCEPTED", "RECEIVED", "COMPLETED", "CANCELLED", "POSTPONED", "REJECTED", "REVERSED", "PENDING"])
|
81
81
|
# validator.allowable_values.each do |value|
|
82
82
|
# expect { @instance.status = value }.not_to raise_error
|
83
83
|
# end
|
@@ -0,0 +1,47 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Wire4Client::ConfirmRecurringCharge
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'ConfirmRecurringCharge' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Wire4Client::ConfirmRecurringCharge.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ConfirmRecurringCharge' do
|
31
|
+
it 'should create an instance of ConfirmRecurringCharge' do
|
32
|
+
expect(@instance).to be_instance_of(Wire4Client::ConfirmRecurringCharge)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "order_id"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "url"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|