wire4_client 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +50 -7
- data/docs/Account.md +3 -3
- data/docs/AccountDetail.md +13 -0
- data/docs/AccountReassigned.md +21 -0
- data/docs/AccountResponse.md +4 -3
- data/docs/AddressCompany.md +17 -0
- data/docs/AmountRequest.md +2 -0
- data/docs/AuthorizationTransactionGroup.md +9 -0
- data/docs/AuthorizedBeneficiariesResponse.md +10 -0
- data/docs/AuthorizedUsers.md +13 -0
- data/docs/CertificateRequest.md +11 -0
- data/docs/CodiCodeQrResponseDTO.md +17 -0
- data/docs/CodiCodeRequestDTO.md +14 -0
- data/docs/CodiOperationResponseDTO.md +14 -0
- data/docs/CodiOperationsFiltersRequestDTO.md +15 -0
- data/docs/CompanyRegistered.md +13 -0
- data/docs/CompanyRequested.md +11 -0
- data/docs/Compay.md +11 -0
- data/docs/ContractDetailRequest.md +11 -0
- data/docs/ContractDetailResponse.md +9 -0
- data/docs/ContractsDetailsApi.md +167 -0
- data/docs/CuentasDeBeneficiariosSPEIApi.md +69 -4
- data/docs/CuentasDeBeneficiariosSPIDApi.md +11 -1
- data/docs/EmpresasCoDiApi.md +107 -0
- data/docs/MessageAccountBeneficiary.md +2 -2
- data/docs/MessageCEP.md +9 -9
- data/docs/MessageCodiAction.md +19 -0
- data/docs/MessagePayment.md +3 -1
- data/docs/MessagePaymentStatePending.md +23 -0
- data/docs/MessageRequestChanged.md +2 -2
- data/docs/MessageSalesPoint.md +10 -0
- data/docs/MessageSubscription.md +6 -6
- data/docs/MessageUserAuthorized.md +13 -0
- data/docs/MessageWebHook.md +2 -2
- data/docs/OperacionesCoDiApi.md +68 -0
- data/docs/Operations.md +17 -0
- data/docs/PagerResponseDto.md +13 -0
- data/docs/Payment.md +3 -1
- data/docs/PaymentRequestCodiResponseDTO.md +18 -0
- data/docs/PeticionesDePagoPorCoDiApi.md +116 -0
- data/docs/PreMonexAuthorization.md +11 -0
- data/docs/PuntosDeVentaCoDiApi.md +113 -0
- data/docs/SalesPoint.md +10 -0
- data/docs/SalesPointFound.md +14 -0
- data/docs/SalesPointRequest.md +11 -0
- data/docs/SalesPointRespose.md +11 -0
- data/docs/SpidBeneficiaryResponse.md +2 -0
- data/docs/SuscripcionesApi.md +14 -14
- data/docs/TransactionOutgoing.md +2 -1
- data/docs/TransferenciasSPEIApi.md +60 -2
- data/docs/UrlsRedirect.md +9 -0
- data/docs/UserCompany.md +16 -0
- data/docs/Webhook.md +13 -0
- data/lib/wire4_client.rb +36 -0
- data/lib/wire4_client/api/contracts_details_api.rb +230 -0
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +100 -5
- data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +15 -0
- data/lib/wire4_client/api/empresas_co_di_api.rb +137 -0
- data/lib/wire4_client/api/operaciones_co_di_api.rb +92 -0
- data/lib/wire4_client/api/peticiones_de_pago_por_co_di_api.rb +178 -0
- data/lib/wire4_client/api/puntos_de_venta_co_di_api.rb +151 -0
- data/lib/wire4_client/api/suscripciones_api.rb +14 -14
- data/lib/wire4_client/api/transferencias_spei_api.rb +82 -0
- data/lib/wire4_client/models/account.rb +3 -3
- data/lib/wire4_client/models/account_detail.rb +239 -0
- data/lib/wire4_client/models/account_reassigned.rb +375 -0
- data/lib/wire4_client/models/account_response.rb +14 -4
- data/lib/wire4_client/models/address_company.rb +275 -0
- data/lib/wire4_client/models/amount_request.rb +90 -4
- data/lib/wire4_client/models/authorization_transaction_group.rb +207 -0
- data/lib/wire4_client/models/authorized_beneficiaries_response.rb +206 -0
- data/lib/wire4_client/models/authorized_users.rb +235 -0
- data/lib/wire4_client/models/certificate_request.rb +248 -0
- data/lib/wire4_client/models/codi_code_qr_response_dto.rb +320 -0
- data/lib/wire4_client/models/codi_code_request_dto.rb +402 -0
- data/lib/wire4_client/models/codi_operation_response_dto.rb +245 -0
- data/lib/wire4_client/models/codi_operations_filters_request_dto.rb +336 -0
- data/lib/wire4_client/models/company_registered.rb +235 -0
- data/lib/wire4_client/models/company_requested.rb +215 -0
- data/lib/wire4_client/models/compay.rb +215 -0
- data/lib/wire4_client/models/contract_detail_request.rb +247 -0
- data/lib/wire4_client/models/contract_detail_response.rb +194 -0
- data/lib/wire4_client/models/message_account_beneficiary.rb +2 -2
- data/lib/wire4_client/models/message_cep.rb +10 -10
- data/lib/wire4_client/models/message_codi_action.rb +295 -0
- data/lib/wire4_client/models/message_deposit_received.rb +1 -1
- data/lib/wire4_client/models/message_payment.rb +23 -2
- data/lib/wire4_client/models/message_payment_state_pending.rb +335 -0
- data/lib/wire4_client/models/message_request_changed.rb +3 -3
- data/lib/wire4_client/models/message_sales_point.rb +205 -0
- data/lib/wire4_client/models/message_subscription.rb +7 -7
- data/lib/wire4_client/models/message_user_authorized.rb +235 -0
- data/lib/wire4_client/models/message_web_hook.rb +2 -2
- data/lib/wire4_client/models/operations.rb +321 -0
- data/lib/wire4_client/models/pager_response_dto.rb +236 -0
- data/lib/wire4_client/models/payment.rb +22 -2
- data/lib/wire4_client/models/payment_request_codi_response_dto.rb +287 -0
- data/lib/wire4_client/models/pre_monex_authorization.rb +291 -0
- data/lib/wire4_client/models/sales_point.rb +205 -0
- data/lib/wire4_client/models/sales_point_found.rb +279 -0
- data/lib/wire4_client/models/sales_point_request.rb +254 -0
- data/lib/wire4_client/models/sales_point_respose.rb +215 -0
- data/lib/wire4_client/models/spid_beneficiary_response.rb +24 -4
- data/lib/wire4_client/models/transaction_outgoing.rb +12 -2
- data/lib/wire4_client/models/urls_redirect.rb +205 -0
- data/lib/wire4_client/models/user_company.rb +269 -0
- data/lib/wire4_client/models/webhook.rb +271 -0
- data/lib/wire4_client/version.rb +1 -1
- data/spec/api/contracts_details_api_spec.rb +76 -0
- data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +20 -1
- data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +5 -0
- data/spec/api/empresas_co_di_api_spec.rb +60 -0
- data/spec/api/operaciones_co_di_api_spec.rb +52 -0
- data/spec/api/peticiones_de_pago_por_co_di_api_spec.rb +63 -0
- data/spec/api/puntos_de_venta_co_di_api_spec.rb +62 -0
- data/spec/api/suscripciones_api_spec.rb +7 -7
- data/spec/api/transferencias_spei_api_spec.rb +15 -0
- data/spec/models/account_detail_spec.rb +71 -0
- data/spec/models/account_reassigned_spec.rb +119 -0
- data/spec/models/account_response_spec.rb +6 -0
- data/spec/models/address_company_spec.rb +95 -0
- data/spec/models/amount_request_spec.rb +12 -0
- data/spec/models/authorization_transaction_group_spec.rb +47 -0
- data/spec/models/authorized_beneficiaries_response_spec.rb +53 -0
- data/spec/models/authorized_users_spec.rb +71 -0
- data/spec/models/certificate_request_spec.rb +59 -0
- data/spec/models/codi_code_qr_response_dto_spec.rb +103 -0
- data/spec/models/codi_code_request_dto_spec.rb +81 -0
- data/spec/models/codi_operation_response_dto_spec.rb +77 -0
- data/spec/models/codi_operations_filters_request_dto_spec.rb +87 -0
- data/spec/models/company_registered_spec.rb +71 -0
- data/spec/models/company_requested_spec.rb +59 -0
- data/spec/models/compay_spec.rb +59 -0
- data/spec/models/contract_detail_request_spec.rb +59 -0
- data/spec/models/contract_detail_response_spec.rb +47 -0
- data/spec/models/message_codi_action_spec.rb +107 -0
- data/spec/models/message_payment_spec.rb +12 -0
- data/spec/models/message_payment_state_pending_spec.rb +131 -0
- data/spec/models/message_sales_point_spec.rb +53 -0
- data/spec/models/message_user_authorized_spec.rb +71 -0
- data/spec/models/operations_spec.rb +103 -0
- data/spec/models/pager_response_dto_spec.rb +71 -0
- data/spec/models/payment_request_codi_response_dto_spec.rb +101 -0
- data/spec/models/payment_spec.rb +12 -0
- data/spec/models/pre_monex_authorization_spec.rb +59 -0
- data/spec/models/sales_point_found_spec.rb +81 -0
- data/spec/models/sales_point_request_spec.rb +59 -0
- data/spec/models/sales_point_respose_spec.rb +59 -0
- data/spec/models/sales_point_spec.rb +53 -0
- data/spec/models/spid_beneficiary_response_spec.rb +12 -0
- data/spec/models/transaction_outgoing_spec.rb +6 -0
- data/spec/models/urls_redirect_spec.rb +47 -0
- data/spec/models/user_company_spec.rb +89 -0
- data/spec/models/webhook_spec.rb +75 -0
- metadata +146 -3
- data/Gemfile.lock +0 -69
|
@@ -0,0 +1,151 @@
|
|
|
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 PuntosDeVentaCoDiApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Registra un punto de venta asociado a una empresa
|
|
23
|
+
# Registra un punto de venta desde donde se emitaran los cobros CODI®, el punto de venta se debe asociar a un cuenta cableregistrada previamente ante Banxico para realizar cobros con CODI®
|
|
24
|
+
# @param authorization Header para token
|
|
25
|
+
# @param company_id El identificador de la empresa
|
|
26
|
+
# @param sales_point_info Información del punto de venta CODI®
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [SalesPointRespose]
|
|
29
|
+
def create_sales_point(authorization, company_id, sales_point_info, opts = {})
|
|
30
|
+
data, _status_code, _headers = create_sales_point_with_http_info(authorization, company_id, sales_point_info, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Registra un punto de venta asociado a una empresa
|
|
35
|
+
# Registra un punto de venta desde donde se emitaran los cobros CODI®, el punto de venta se debe asociar a un cuenta cableregistrada previamente ante Banxico para realizar cobros con CODI®
|
|
36
|
+
# @param authorization Header para token
|
|
37
|
+
# @param company_id El identificador de la empresa
|
|
38
|
+
# @param sales_point_info Información del punto de venta CODI®
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Array<(SalesPointRespose, Fixnum, Hash)>] SalesPointRespose data, response status code and response headers
|
|
41
|
+
def create_sales_point_with_http_info(authorization, company_id, sales_point_info, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: PuntosDeVentaCoDiApi.create_sales_point ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'authorization' is set
|
|
46
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling PuntosDeVentaCoDiApi.create_sales_point"
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'company_id' is set
|
|
50
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling PuntosDeVentaCoDiApi.create_sales_point"
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'sales_point_info' is set
|
|
54
|
+
if @api_client.config.client_side_validation && sales_point_info.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'sales_point_info' when calling PuntosDeVentaCoDiApi.create_sales_point"
|
|
56
|
+
end
|
|
57
|
+
# resource path
|
|
58
|
+
local_var_path = '/codi/companies/salespoint'
|
|
59
|
+
|
|
60
|
+
# query parameters
|
|
61
|
+
query_params = {}
|
|
62
|
+
query_params[:'companyId'] = company_id
|
|
63
|
+
|
|
64
|
+
# header parameters
|
|
65
|
+
header_params = {}
|
|
66
|
+
# HTTP header 'Accept' (if needed)
|
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
68
|
+
# HTTP header 'Content-Type'
|
|
69
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
70
|
+
header_params[:'Authorization'] = authorization
|
|
71
|
+
|
|
72
|
+
# form parameters
|
|
73
|
+
form_params = {}
|
|
74
|
+
|
|
75
|
+
# http body (model)
|
|
76
|
+
post_body = @api_client.object_to_http_body(sales_point_info)
|
|
77
|
+
auth_names = []
|
|
78
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
79
|
+
:header_params => header_params,
|
|
80
|
+
:query_params => query_params,
|
|
81
|
+
:form_params => form_params,
|
|
82
|
+
:body => post_body,
|
|
83
|
+
:auth_names => auth_names,
|
|
84
|
+
:return_type => 'SalesPointRespose')
|
|
85
|
+
if @api_client.config.debugging
|
|
86
|
+
@api_client.config.logger.debug "API called: PuntosDeVentaCoDiApi#create_sales_point\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
87
|
+
end
|
|
88
|
+
return data, status_code, headers
|
|
89
|
+
end
|
|
90
|
+
# Obtiene los puntos de venta asociados a una empresa
|
|
91
|
+
# Obtiene los puntos de venta asociados a una empresa en las cuales se hacen operaciones CODI®
|
|
92
|
+
# @param authorization Header para token
|
|
93
|
+
# @param company_id El identificador de la empresa
|
|
94
|
+
# @param [Hash] opts the optional parameters
|
|
95
|
+
# @return [Array<SalesPointFound>]
|
|
96
|
+
def obtain_sale_points(authorization, company_id, opts = {})
|
|
97
|
+
data, _status_code, _headers = obtain_sale_points_with_http_info(authorization, company_id, opts)
|
|
98
|
+
data
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Obtiene los puntos de venta asociados a una empresa
|
|
102
|
+
# Obtiene los puntos de venta asociados a una empresa en las cuales se hacen operaciones CODI®
|
|
103
|
+
# @param authorization Header para token
|
|
104
|
+
# @param company_id El identificador de la empresa
|
|
105
|
+
# @param [Hash] opts the optional parameters
|
|
106
|
+
# @return [Array<(Array<SalesPointFound>, Fixnum, Hash)>] Array<SalesPointFound> data, response status code and response headers
|
|
107
|
+
def obtain_sale_points_with_http_info(authorization, company_id, opts = {})
|
|
108
|
+
if @api_client.config.debugging
|
|
109
|
+
@api_client.config.logger.debug 'Calling API: PuntosDeVentaCoDiApi.obtain_sale_points ...'
|
|
110
|
+
end
|
|
111
|
+
# verify the required parameter 'authorization' is set
|
|
112
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling PuntosDeVentaCoDiApi.obtain_sale_points"
|
|
114
|
+
end
|
|
115
|
+
# verify the required parameter 'company_id' is set
|
|
116
|
+
if @api_client.config.client_side_validation && company_id.nil?
|
|
117
|
+
fail ArgumentError, "Missing the required parameter 'company_id' when calling PuntosDeVentaCoDiApi.obtain_sale_points"
|
|
118
|
+
end
|
|
119
|
+
# resource path
|
|
120
|
+
local_var_path = '/codi/companies/salespoint'
|
|
121
|
+
|
|
122
|
+
# query parameters
|
|
123
|
+
query_params = {}
|
|
124
|
+
query_params[:'companyId'] = company_id
|
|
125
|
+
|
|
126
|
+
# header parameters
|
|
127
|
+
header_params = {}
|
|
128
|
+
# HTTP header 'Accept' (if needed)
|
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
130
|
+
header_params[:'Authorization'] = authorization
|
|
131
|
+
|
|
132
|
+
# form parameters
|
|
133
|
+
form_params = {}
|
|
134
|
+
|
|
135
|
+
# http body (model)
|
|
136
|
+
post_body = nil
|
|
137
|
+
auth_names = []
|
|
138
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
139
|
+
:header_params => header_params,
|
|
140
|
+
:query_params => query_params,
|
|
141
|
+
:form_params => form_params,
|
|
142
|
+
:body => post_body,
|
|
143
|
+
:auth_names => auth_names,
|
|
144
|
+
:return_type => 'Array<SalesPointFound>')
|
|
145
|
+
if @api_client.config.debugging
|
|
146
|
+
@api_client.config.logger.debug "API called: PuntosDeVentaCoDiApi#obtain_sale_points\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
147
|
+
end
|
|
148
|
+
return data, status_code, headers
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
@@ -19,10 +19,10 @@ module Wire4Client
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
#
|
|
23
|
-
#
|
|
22
|
+
# Registra una pre-suscripción
|
|
23
|
+
# Registra una pre-suscripción para operar un contrato a través de un aplicación socio de la plataforma, proporcionando una URL donde el cliente Monex debe autorizar el acceso a los datos de su cuenta a el socio.<br/>Una vez que el cuentahabiente autorice el acceso, se envía un mensaje webhook con el evento 'ENROLLMENT.CREATED', el cuál contiene los datos de acceso a esta API.
|
|
24
24
|
# @param authorization Header para token
|
|
25
|
-
# @param pre_enrollment_data Información para
|
|
25
|
+
# @param pre_enrollment_data Información para la pre-suscripción
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
27
|
# @return [PreEnrollmentResponse]
|
|
28
28
|
def pre_enrollment_monex_user_using_post(authorization, pre_enrollment_data, opts = {})
|
|
@@ -30,10 +30,10 @@ module Wire4Client
|
|
|
30
30
|
data
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
#
|
|
34
|
-
#
|
|
33
|
+
# Registra una pre-suscripción
|
|
34
|
+
# Registra una pre-suscripción para operar un contrato a través de un aplicación socio de la plataforma, proporcionando una URL donde el cliente Monex debe autorizar el acceso a los datos de su cuenta a el socio.<br/>Una vez que el cuentahabiente autorice el acceso, se envía un mensaje webhook con el evento 'ENROLLMENT.CREATED', el cuál contiene los datos de acceso a esta API.
|
|
35
35
|
# @param authorization Header para token
|
|
36
|
-
# @param pre_enrollment_data Información para
|
|
36
|
+
# @param pre_enrollment_data Información para la pre-suscripción
|
|
37
37
|
# @param [Hash] opts the optional parameters
|
|
38
38
|
# @return [Array<(PreEnrollmentResponse, Fixnum, Hash)>] PreEnrollmentResponse data, response status code and response headers
|
|
39
39
|
def pre_enrollment_monex_user_using_post_with_http_info(authorization, pre_enrollment_data, opts = {})
|
|
@@ -80,8 +80,8 @@ module Wire4Client
|
|
|
80
80
|
end
|
|
81
81
|
return data, status_code, headers
|
|
82
82
|
end
|
|
83
|
-
#
|
|
84
|
-
# Elimina una suscripción, una
|
|
83
|
+
# Elimina una suscripción por el identificador de la suscripción
|
|
84
|
+
# Elimina una suscripción, una vez eliminada ya no se podrán realizar operacions en el API utilizando esta suscripción
|
|
85
85
|
# @param authorization Header para token
|
|
86
86
|
# @param subscription El identificador de la suscripción a esta API
|
|
87
87
|
# @param [Hash] opts the optional parameters
|
|
@@ -91,8 +91,8 @@ module Wire4Client
|
|
|
91
91
|
nil
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
-
#
|
|
95
|
-
# Elimina una suscripción, una
|
|
94
|
+
# Elimina una suscripción por el identificador de la suscripción
|
|
95
|
+
# Elimina una suscripción, una vez eliminada ya no se podrán realizar operacions en el API utilizando esta suscripción
|
|
96
96
|
# @param authorization Header para token
|
|
97
97
|
# @param subscription El identificador de la suscripción a esta API
|
|
98
98
|
# @param [Hash] opts the optional parameters
|
|
@@ -150,8 +150,8 @@ module Wire4Client
|
|
|
150
150
|
end
|
|
151
151
|
return data, status_code, headers
|
|
152
152
|
end
|
|
153
|
-
#
|
|
154
|
-
# Se elimina una pre-suscripción, sólo se elimina en caso de que cliente
|
|
153
|
+
# Elimina una pre-suscripción
|
|
154
|
+
# Se elimina una pre-suscripción, sólo se elimina en caso de que el cliente Monex no haya concedido su autorización de acceso (token), es decir que la pre-suscripcion este pendiente.
|
|
155
155
|
# @param authorization Header para token
|
|
156
156
|
# @param subscription El identificador de la suscripción a esta API
|
|
157
157
|
# @param [Hash] opts the optional parameters
|
|
@@ -161,8 +161,8 @@ module Wire4Client
|
|
|
161
161
|
nil
|
|
162
162
|
end
|
|
163
163
|
|
|
164
|
-
#
|
|
165
|
-
# Se elimina una pre-suscripción, sólo se elimina en caso de que cliente
|
|
164
|
+
# Elimina una pre-suscripción
|
|
165
|
+
# Se elimina una pre-suscripción, sólo se elimina en caso de que el cliente Monex no haya concedido su autorización de acceso (token), es decir que la pre-suscripcion este pendiente.
|
|
166
166
|
# @param authorization Header para token
|
|
167
167
|
# @param subscription El identificador de la suscripción a esta API
|
|
168
168
|
# @param [Hash] opts the optional parameters
|
|
@@ -19,12 +19,92 @@ module Wire4Client
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Agrupa un conjunto de transacciones bajo un mismo request_id para autorizar
|
|
23
|
+
# Agrupa transacciones SPEI/SPID en un transaction_id, generando la URL para su autorización. Las transacciones deben estar en estatus PENDING y pertenecer a un mmismo contrato
|
|
24
|
+
# @param authorization Header para token
|
|
25
|
+
# @param authorization_transactions_group_request_dto authorizationTransactionsGroupRequestDTO
|
|
26
|
+
# @param subscription Identificador de la suscripcion
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [TokenRequiredResponse]
|
|
29
|
+
def create_authorization_transactions_group(authorization, authorization_transactions_group_request_dto, subscription, opts = {})
|
|
30
|
+
data, _status_code, _headers = create_authorization_transactions_group_with_http_info(authorization, authorization_transactions_group_request_dto, subscription, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Agrupa un conjunto de transacciones bajo un mismo request_id para autorizar
|
|
35
|
+
# Agrupa transacciones SPEI/SPID en un transaction_id, generando la URL para su autorización. Las transacciones deben estar en estatus PENDING y pertenecer a un mmismo contrato
|
|
36
|
+
# @param authorization Header para token
|
|
37
|
+
# @param authorization_transactions_group_request_dto authorizationTransactionsGroupRequestDTO
|
|
38
|
+
# @param subscription Identificador de la suscripcion
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
|
|
41
|
+
def create_authorization_transactions_group_with_http_info(authorization, authorization_transactions_group_request_dto, subscription, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: TransferenciasSPEIApi.create_authorization_transactions_group ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'authorization' is set
|
|
46
|
+
if @api_client.config.client_side_validation && authorization.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'authorization' when calling TransferenciasSPEIApi.create_authorization_transactions_group"
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'authorization_transactions_group_request_dto' is set
|
|
50
|
+
if @api_client.config.client_side_validation && authorization_transactions_group_request_dto.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'authorization_transactions_group_request_dto' when calling TransferenciasSPEIApi.create_authorization_transactions_group"
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'subscription' is set
|
|
54
|
+
if @api_client.config.client_side_validation && subscription.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'subscription' when calling TransferenciasSPEIApi.create_authorization_transactions_group"
|
|
56
|
+
end
|
|
57
|
+
if @api_client.config.client_side_validation && subscription.to_s.length > 36
|
|
58
|
+
fail ArgumentError, 'invalid value for "subscription" when calling TransferenciasSPEIApi.create_authorization_transactions_group, the character length must be smaller than or equal to 36.'
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
if @api_client.config.client_side_validation && subscription.to_s.length < 36
|
|
62
|
+
fail ArgumentError, 'invalid value for "subscription" when calling TransferenciasSPEIApi.create_authorization_transactions_group, the character length must be great than or equal to 36.'
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
if @api_client.config.client_side_validation && subscription !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
|
|
66
|
+
fail ArgumentError, "invalid value for 'subscription' when calling TransferenciasSPEIApi.create_authorization_transactions_group, must conform to the pattern /[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/."
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# resource path
|
|
70
|
+
local_var_path = '/subscriptions/{subscription}/transactions/group'.sub('{' + 'subscription' + '}', subscription.to_s)
|
|
71
|
+
|
|
72
|
+
# query parameters
|
|
73
|
+
query_params = {}
|
|
74
|
+
|
|
75
|
+
# header parameters
|
|
76
|
+
header_params = {}
|
|
77
|
+
# HTTP header 'Accept' (if needed)
|
|
78
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
|
79
|
+
# HTTP header 'Content-Type'
|
|
80
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
81
|
+
header_params[:'Authorization'] = authorization
|
|
82
|
+
|
|
83
|
+
# form parameters
|
|
84
|
+
form_params = {}
|
|
85
|
+
|
|
86
|
+
# http body (model)
|
|
87
|
+
post_body = @api_client.object_to_http_body(authorization_transactions_group_request_dto)
|
|
88
|
+
auth_names = []
|
|
89
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
90
|
+
:header_params => header_params,
|
|
91
|
+
:query_params => query_params,
|
|
92
|
+
:form_params => form_params,
|
|
93
|
+
:body => post_body,
|
|
94
|
+
:auth_names => auth_names,
|
|
95
|
+
:return_type => 'TokenRequiredResponse')
|
|
96
|
+
if @api_client.config.debugging
|
|
97
|
+
@api_client.config.logger.debug "API called: TransferenciasSPEIApi#create_authorization_transactions_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
98
|
+
end
|
|
99
|
+
return data, status_code, headers
|
|
100
|
+
end
|
|
22
101
|
# Eliminación de transferencias SPEI® pendientes
|
|
23
102
|
# Elimina un conjunto de transferencias a realizar en la cuenta del cliente Monex relacionada a la suscripción, las transferencias no deben haber sido confirmadas por el cliente.
|
|
24
103
|
# @param authorization Header para token
|
|
25
104
|
# @param request_id Identificador de las transferencias a eliminar
|
|
26
105
|
# @param subscription El identificador de la suscripción a esta API
|
|
27
106
|
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @option opts [String] :order_id Listado de identificadores dentro del request_id para eliminar
|
|
28
108
|
# @return [nil]
|
|
29
109
|
def drop_transactions_pending_using_delete(authorization, request_id, subscription, opts = {})
|
|
30
110
|
drop_transactions_pending_using_delete_with_http_info(authorization, request_id, subscription, opts)
|
|
@@ -37,6 +117,7 @@ module Wire4Client
|
|
|
37
117
|
# @param request_id Identificador de las transferencias a eliminar
|
|
38
118
|
# @param subscription El identificador de la suscripción a esta API
|
|
39
119
|
# @param [Hash] opts the optional parameters
|
|
120
|
+
# @option opts [String] :order_id Listado de identificadores dentro del request_id para eliminar
|
|
40
121
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
41
122
|
def drop_transactions_pending_using_delete_with_http_info(authorization, request_id, subscription, opts = {})
|
|
42
123
|
if @api_client.config.debugging
|
|
@@ -83,6 +164,7 @@ module Wire4Client
|
|
|
83
164
|
|
|
84
165
|
# query parameters
|
|
85
166
|
query_params = {}
|
|
167
|
+
query_params[:'order_id'] = opts[:'order_id'] if !opts[:'order_id'].nil?
|
|
86
168
|
|
|
87
169
|
# header parameters
|
|
88
170
|
header_params = {}
|
|
@@ -30,7 +30,7 @@ module Wire4Client
|
|
|
30
30
|
# Objeto que contiene el nombre de la institución, es mutuamente exclusivo con el objeto Person
|
|
31
31
|
attr_accessor :institution
|
|
32
32
|
|
|
33
|
-
# Tipo de relación con el propietario de la cuenta, para registrar una cuenta este valor se debe obtener del recurso relationships
|
|
33
|
+
# Tipo de relación con el propietario de la cuenta, para registrar una cuenta este valor se debe obtener del recurso relationships. <br> Nota: Si en la respuesta de Monex esta propiedad es nula, tampoco estará presente en esta respuesta.
|
|
34
34
|
attr_accessor :kind_of_relationship
|
|
35
35
|
|
|
36
36
|
# Referencia numérica a utilizar cuando se realice una transferencia y no se especifique una referencia
|
|
@@ -42,10 +42,10 @@ module Wire4Client
|
|
|
42
42
|
# Objeto que contiene los datos de la persona propietaria de la cuenta, si se incluye este atributo, el atributo institution no debe estar presente
|
|
43
43
|
attr_accessor :person
|
|
44
44
|
|
|
45
|
-
# Relación con el propietario de la cuenta, para registrar una cuenta este valor se debe obtener del recurso relationships
|
|
45
|
+
# Relación con el propietario de la cuenta, para registrar una cuenta este valor se debe obtener del recurso relationships. <br> Nota: Si en la respuesta de Monex esta propiedad es nula, tampoco estará presente en esta respuesta.
|
|
46
46
|
attr_accessor :relationship
|
|
47
47
|
|
|
48
|
-
# Registro federal de contribuyentes de la persona o institución propietaria de la cuenta
|
|
48
|
+
# Registro federal de contribuyentes de la persona o institución propietaria de la cuenta. <br> Nota: Si en la respuesta de Monex esta propiedad es nula, tampoco estará presente en esta respuesta.
|
|
49
49
|
attr_accessor :rfc
|
|
50
50
|
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Wire4RestAPI
|
|
3
|
+
|
|
4
|
+
#Referencia de la API de Wire4
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.10
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module Wire4Client
|
|
16
|
+
# La información de la compañía que corresponde al contrato
|
|
17
|
+
class AccountDetail
|
|
18
|
+
# La dirección del negocio
|
|
19
|
+
attr_accessor :address
|
|
20
|
+
|
|
21
|
+
# El nombre del negocio
|
|
22
|
+
attr_accessor :business_name
|
|
23
|
+
|
|
24
|
+
# La fecha de constitución del negocio
|
|
25
|
+
attr_accessor :constitution_date
|
|
26
|
+
|
|
27
|
+
# La lista de correos del negocio
|
|
28
|
+
attr_accessor :emails
|
|
29
|
+
|
|
30
|
+
# La lista de los representantes legales negocio
|
|
31
|
+
attr_accessor :legal_representatives
|
|
32
|
+
|
|
33
|
+
# El RFC del negocio
|
|
34
|
+
attr_accessor :rfc
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'address' => :'address',
|
|
40
|
+
:'business_name' => :'business_name',
|
|
41
|
+
:'constitution_date' => :'constitution_date',
|
|
42
|
+
:'emails' => :'emails',
|
|
43
|
+
:'legal_representatives' => :'legal_representatives',
|
|
44
|
+
:'rfc' => :'rfc'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Attribute type mapping.
|
|
49
|
+
def self.swagger_types
|
|
50
|
+
{
|
|
51
|
+
:'address' => :'AddressCompany',
|
|
52
|
+
:'business_name' => :'String',
|
|
53
|
+
:'constitution_date' => :'String',
|
|
54
|
+
:'emails' => :'Array<String>',
|
|
55
|
+
:'legal_representatives' => :'Array<String>',
|
|
56
|
+
:'rfc' => :'String'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
|
+
def initialize(attributes = {})
|
|
63
|
+
return unless attributes.is_a?(Hash)
|
|
64
|
+
|
|
65
|
+
# convert string to symbol for hash key
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
67
|
+
|
|
68
|
+
if attributes.has_key?(:'address')
|
|
69
|
+
self.address = attributes[:'address']
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
if attributes.has_key?(:'business_name')
|
|
73
|
+
self.business_name = attributes[:'business_name']
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.has_key?(:'constitution_date')
|
|
77
|
+
self.constitution_date = attributes[:'constitution_date']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.has_key?(:'emails')
|
|
81
|
+
if (value = attributes[:'emails']).is_a?(Array)
|
|
82
|
+
self.emails = value
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.has_key?(:'legal_representatives')
|
|
87
|
+
if (value = attributes[:'legal_representatives']).is_a?(Array)
|
|
88
|
+
self.legal_representatives = value
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.has_key?(:'rfc')
|
|
93
|
+
self.rfc = attributes[:'rfc']
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
98
|
+
# @return Array for valid properties with the reasons
|
|
99
|
+
def list_invalid_properties
|
|
100
|
+
invalid_properties = Array.new
|
|
101
|
+
invalid_properties
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Check to see if the all the properties in the model are valid
|
|
105
|
+
# @return true if the model is valid
|
|
106
|
+
def valid?
|
|
107
|
+
true
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Checks equality by comparing each attribute.
|
|
111
|
+
# @param [Object] Object to be compared
|
|
112
|
+
def ==(o)
|
|
113
|
+
return true if self.equal?(o)
|
|
114
|
+
self.class == o.class &&
|
|
115
|
+
address == o.address &&
|
|
116
|
+
business_name == o.business_name &&
|
|
117
|
+
constitution_date == o.constitution_date &&
|
|
118
|
+
emails == o.emails &&
|
|
119
|
+
legal_representatives == o.legal_representatives &&
|
|
120
|
+
rfc == o.rfc
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# @see the `==` method
|
|
124
|
+
# @param [Object] Object to be compared
|
|
125
|
+
def eql?(o)
|
|
126
|
+
self == o
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Calculates hash code according to all attributes.
|
|
130
|
+
# @return [Fixnum] Hash code
|
|
131
|
+
def hash
|
|
132
|
+
[address, business_name, constitution_date, emails, legal_representatives, rfc].hash
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Builds the object from hash
|
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
|
+
# @return [Object] Returns the model itself
|
|
138
|
+
def build_from_hash(attributes)
|
|
139
|
+
return nil unless attributes.is_a?(Hash)
|
|
140
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
141
|
+
if type =~ /\AArray<(.*)>/i
|
|
142
|
+
# check to ensure the input is an array given that the the attribute
|
|
143
|
+
# is documented as an array but the input is not
|
|
144
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
145
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
146
|
+
end
|
|
147
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
148
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
149
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
self
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Deserializes the data based on type
|
|
156
|
+
# @param string type Data type
|
|
157
|
+
# @param string value Value to be deserialized
|
|
158
|
+
# @return [Object] Deserialized data
|
|
159
|
+
def _deserialize(type, value)
|
|
160
|
+
case type.to_sym
|
|
161
|
+
when :DateTime
|
|
162
|
+
DateTime.parse(value)
|
|
163
|
+
when :Date
|
|
164
|
+
Date.parse(value)
|
|
165
|
+
when :String
|
|
166
|
+
value.to_s
|
|
167
|
+
when :Integer
|
|
168
|
+
value.to_i
|
|
169
|
+
when :Float
|
|
170
|
+
value.to_f
|
|
171
|
+
when :BOOLEAN
|
|
172
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
173
|
+
true
|
|
174
|
+
else
|
|
175
|
+
false
|
|
176
|
+
end
|
|
177
|
+
when :Object
|
|
178
|
+
# generic object (usually a Hash), return directly
|
|
179
|
+
value
|
|
180
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
181
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
182
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
183
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
184
|
+
k_type = Regexp.last_match[:k_type]
|
|
185
|
+
v_type = Regexp.last_match[:v_type]
|
|
186
|
+
{}.tap do |hash|
|
|
187
|
+
value.each do |k, v|
|
|
188
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
else # model
|
|
192
|
+
temp_model = Wire4Client.const_get(type).new
|
|
193
|
+
temp_model.build_from_hash(value)
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Returns the string representation of the object
|
|
198
|
+
# @return [String] String presentation of the object
|
|
199
|
+
def to_s
|
|
200
|
+
to_hash.to_s
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
204
|
+
# @return [Hash] Returns the object in the form of hash
|
|
205
|
+
def to_body
|
|
206
|
+
to_hash
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Returns the object in the form of hash
|
|
210
|
+
# @return [Hash] Returns the object in the form of hash
|
|
211
|
+
def to_hash
|
|
212
|
+
hash = {}
|
|
213
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
214
|
+
value = self.send(attr)
|
|
215
|
+
next if value.nil?
|
|
216
|
+
hash[param] = _to_hash(value)
|
|
217
|
+
end
|
|
218
|
+
hash
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Outputs non-array value in the form of hash
|
|
222
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
223
|
+
# @param [Object] value Any valid value
|
|
224
|
+
# @return [Hash] Returns the value in the form of hash
|
|
225
|
+
def _to_hash(value)
|
|
226
|
+
if value.is_a?(Array)
|
|
227
|
+
value.compact.map { |v| _to_hash(v) }
|
|
228
|
+
elsif value.is_a?(Hash)
|
|
229
|
+
{}.tap do |hash|
|
|
230
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
231
|
+
end
|
|
232
|
+
elsif value.respond_to? :to_hash
|
|
233
|
+
value.to_hash
|
|
234
|
+
else
|
|
235
|
+
value
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
end
|