wire4_client 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +50 -7
  3. data/docs/Account.md +3 -3
  4. data/docs/AccountDetail.md +13 -0
  5. data/docs/AccountReassigned.md +21 -0
  6. data/docs/AccountResponse.md +4 -3
  7. data/docs/AddressCompany.md +17 -0
  8. data/docs/AmountRequest.md +2 -0
  9. data/docs/AuthorizationTransactionGroup.md +9 -0
  10. data/docs/AuthorizedBeneficiariesResponse.md +10 -0
  11. data/docs/AuthorizedUsers.md +13 -0
  12. data/docs/CertificateRequest.md +11 -0
  13. data/docs/CodiCodeQrResponseDTO.md +17 -0
  14. data/docs/CodiCodeRequestDTO.md +14 -0
  15. data/docs/CodiOperationResponseDTO.md +14 -0
  16. data/docs/CodiOperationsFiltersRequestDTO.md +15 -0
  17. data/docs/CompanyRegistered.md +13 -0
  18. data/docs/CompanyRequested.md +11 -0
  19. data/docs/Compay.md +11 -0
  20. data/docs/ContractDetailRequest.md +11 -0
  21. data/docs/ContractDetailResponse.md +9 -0
  22. data/docs/ContractsDetailsApi.md +167 -0
  23. data/docs/CuentasDeBeneficiariosSPEIApi.md +69 -4
  24. data/docs/CuentasDeBeneficiariosSPIDApi.md +11 -1
  25. data/docs/EmpresasCoDiApi.md +107 -0
  26. data/docs/MessageAccountBeneficiary.md +2 -2
  27. data/docs/MessageCEP.md +9 -9
  28. data/docs/MessageCodiAction.md +19 -0
  29. data/docs/MessagePayment.md +3 -1
  30. data/docs/MessagePaymentStatePending.md +23 -0
  31. data/docs/MessageRequestChanged.md +2 -2
  32. data/docs/MessageSalesPoint.md +10 -0
  33. data/docs/MessageSubscription.md +6 -6
  34. data/docs/MessageUserAuthorized.md +13 -0
  35. data/docs/MessageWebHook.md +2 -2
  36. data/docs/OperacionesCoDiApi.md +68 -0
  37. data/docs/Operations.md +17 -0
  38. data/docs/PagerResponseDto.md +13 -0
  39. data/docs/Payment.md +3 -1
  40. data/docs/PaymentRequestCodiResponseDTO.md +18 -0
  41. data/docs/PeticionesDePagoPorCoDiApi.md +116 -0
  42. data/docs/PreMonexAuthorization.md +11 -0
  43. data/docs/PuntosDeVentaCoDiApi.md +113 -0
  44. data/docs/SalesPoint.md +10 -0
  45. data/docs/SalesPointFound.md +14 -0
  46. data/docs/SalesPointRequest.md +11 -0
  47. data/docs/SalesPointRespose.md +11 -0
  48. data/docs/SpidBeneficiaryResponse.md +2 -0
  49. data/docs/SuscripcionesApi.md +14 -14
  50. data/docs/TransactionOutgoing.md +2 -1
  51. data/docs/TransferenciasSPEIApi.md +60 -2
  52. data/docs/UrlsRedirect.md +9 -0
  53. data/docs/UserCompany.md +16 -0
  54. data/docs/Webhook.md +13 -0
  55. data/lib/wire4_client.rb +36 -0
  56. data/lib/wire4_client/api/contracts_details_api.rb +230 -0
  57. data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +100 -5
  58. data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +15 -0
  59. data/lib/wire4_client/api/empresas_co_di_api.rb +137 -0
  60. data/lib/wire4_client/api/operaciones_co_di_api.rb +92 -0
  61. data/lib/wire4_client/api/peticiones_de_pago_por_co_di_api.rb +178 -0
  62. data/lib/wire4_client/api/puntos_de_venta_co_di_api.rb +151 -0
  63. data/lib/wire4_client/api/suscripciones_api.rb +14 -14
  64. data/lib/wire4_client/api/transferencias_spei_api.rb +82 -0
  65. data/lib/wire4_client/models/account.rb +3 -3
  66. data/lib/wire4_client/models/account_detail.rb +239 -0
  67. data/lib/wire4_client/models/account_reassigned.rb +375 -0
  68. data/lib/wire4_client/models/account_response.rb +14 -4
  69. data/lib/wire4_client/models/address_company.rb +275 -0
  70. data/lib/wire4_client/models/amount_request.rb +90 -4
  71. data/lib/wire4_client/models/authorization_transaction_group.rb +207 -0
  72. data/lib/wire4_client/models/authorized_beneficiaries_response.rb +206 -0
  73. data/lib/wire4_client/models/authorized_users.rb +235 -0
  74. data/lib/wire4_client/models/certificate_request.rb +248 -0
  75. data/lib/wire4_client/models/codi_code_qr_response_dto.rb +320 -0
  76. data/lib/wire4_client/models/codi_code_request_dto.rb +402 -0
  77. data/lib/wire4_client/models/codi_operation_response_dto.rb +245 -0
  78. data/lib/wire4_client/models/codi_operations_filters_request_dto.rb +336 -0
  79. data/lib/wire4_client/models/company_registered.rb +235 -0
  80. data/lib/wire4_client/models/company_requested.rb +215 -0
  81. data/lib/wire4_client/models/compay.rb +215 -0
  82. data/lib/wire4_client/models/contract_detail_request.rb +247 -0
  83. data/lib/wire4_client/models/contract_detail_response.rb +194 -0
  84. data/lib/wire4_client/models/message_account_beneficiary.rb +2 -2
  85. data/lib/wire4_client/models/message_cep.rb +10 -10
  86. data/lib/wire4_client/models/message_codi_action.rb +295 -0
  87. data/lib/wire4_client/models/message_deposit_received.rb +1 -1
  88. data/lib/wire4_client/models/message_payment.rb +23 -2
  89. data/lib/wire4_client/models/message_payment_state_pending.rb +335 -0
  90. data/lib/wire4_client/models/message_request_changed.rb +3 -3
  91. data/lib/wire4_client/models/message_sales_point.rb +205 -0
  92. data/lib/wire4_client/models/message_subscription.rb +7 -7
  93. data/lib/wire4_client/models/message_user_authorized.rb +235 -0
  94. data/lib/wire4_client/models/message_web_hook.rb +2 -2
  95. data/lib/wire4_client/models/operations.rb +321 -0
  96. data/lib/wire4_client/models/pager_response_dto.rb +236 -0
  97. data/lib/wire4_client/models/payment.rb +22 -2
  98. data/lib/wire4_client/models/payment_request_codi_response_dto.rb +287 -0
  99. data/lib/wire4_client/models/pre_monex_authorization.rb +291 -0
  100. data/lib/wire4_client/models/sales_point.rb +205 -0
  101. data/lib/wire4_client/models/sales_point_found.rb +279 -0
  102. data/lib/wire4_client/models/sales_point_request.rb +254 -0
  103. data/lib/wire4_client/models/sales_point_respose.rb +215 -0
  104. data/lib/wire4_client/models/spid_beneficiary_response.rb +24 -4
  105. data/lib/wire4_client/models/transaction_outgoing.rb +12 -2
  106. data/lib/wire4_client/models/urls_redirect.rb +205 -0
  107. data/lib/wire4_client/models/user_company.rb +269 -0
  108. data/lib/wire4_client/models/webhook.rb +271 -0
  109. data/lib/wire4_client/version.rb +1 -1
  110. data/spec/api/contracts_details_api_spec.rb +76 -0
  111. data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +20 -1
  112. data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +5 -0
  113. data/spec/api/empresas_co_di_api_spec.rb +60 -0
  114. data/spec/api/operaciones_co_di_api_spec.rb +52 -0
  115. data/spec/api/peticiones_de_pago_por_co_di_api_spec.rb +63 -0
  116. data/spec/api/puntos_de_venta_co_di_api_spec.rb +62 -0
  117. data/spec/api/suscripciones_api_spec.rb +7 -7
  118. data/spec/api/transferencias_spei_api_spec.rb +15 -0
  119. data/spec/models/account_detail_spec.rb +71 -0
  120. data/spec/models/account_reassigned_spec.rb +119 -0
  121. data/spec/models/account_response_spec.rb +6 -0
  122. data/spec/models/address_company_spec.rb +95 -0
  123. data/spec/models/amount_request_spec.rb +12 -0
  124. data/spec/models/authorization_transaction_group_spec.rb +47 -0
  125. data/spec/models/authorized_beneficiaries_response_spec.rb +53 -0
  126. data/spec/models/authorized_users_spec.rb +71 -0
  127. data/spec/models/certificate_request_spec.rb +59 -0
  128. data/spec/models/codi_code_qr_response_dto_spec.rb +103 -0
  129. data/spec/models/codi_code_request_dto_spec.rb +81 -0
  130. data/spec/models/codi_operation_response_dto_spec.rb +77 -0
  131. data/spec/models/codi_operations_filters_request_dto_spec.rb +87 -0
  132. data/spec/models/company_registered_spec.rb +71 -0
  133. data/spec/models/company_requested_spec.rb +59 -0
  134. data/spec/models/compay_spec.rb +59 -0
  135. data/spec/models/contract_detail_request_spec.rb +59 -0
  136. data/spec/models/contract_detail_response_spec.rb +47 -0
  137. data/spec/models/message_codi_action_spec.rb +107 -0
  138. data/spec/models/message_payment_spec.rb +12 -0
  139. data/spec/models/message_payment_state_pending_spec.rb +131 -0
  140. data/spec/models/message_sales_point_spec.rb +53 -0
  141. data/spec/models/message_user_authorized_spec.rb +71 -0
  142. data/spec/models/operations_spec.rb +103 -0
  143. data/spec/models/pager_response_dto_spec.rb +71 -0
  144. data/spec/models/payment_request_codi_response_dto_spec.rb +101 -0
  145. data/spec/models/payment_spec.rb +12 -0
  146. data/spec/models/pre_monex_authorization_spec.rb +59 -0
  147. data/spec/models/sales_point_found_spec.rb +81 -0
  148. data/spec/models/sales_point_request_spec.rb +59 -0
  149. data/spec/models/sales_point_respose_spec.rb +59 -0
  150. data/spec/models/sales_point_spec.rb +53 -0
  151. data/spec/models/spid_beneficiary_response_spec.rb +12 -0
  152. data/spec/models/transaction_outgoing_spec.rb +6 -0
  153. data/spec/models/urls_redirect_spec.rb +47 -0
  154. data/spec/models/user_company_spec.rb +89 -0
  155. data/spec/models/webhook_spec.rb +75 -0
  156. metadata +146 -3
  157. data/Gemfile.lock +0 -69
@@ -19,6 +19,85 @@ module Wire4Client
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Recibe la solicitud para agrupar las cuentas SPEI/SPID de beneficiarios en estado pendiente que deben ser autorizadas
23
+ # Solicta autorizar las cuentas de beneficiarios en estado pendiente agrupandolas en un set de cuentas que pueden incluir tanto cuentas de SPI como de SPID, debe indicar las urls de redireccion en caso de error y en caso de exito<br/>
24
+ # @param authorization Header para token
25
+ # @param subscription El identificador de la suscripción a esta API
26
+ # @param urls_redirect_dto Información de la cuenta del beneficiario
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [AuthorizedBeneficiariesResponse]
29
+ def authorize_accounts_pending_put(authorization, subscription, urls_redirect_dto, opts = {})
30
+ data, _status_code, _headers = authorize_accounts_pending_put_with_http_info(authorization, subscription, urls_redirect_dto, opts)
31
+ data
32
+ end
33
+
34
+ # Recibe la solicitud para agrupar las cuentas SPEI/SPID de beneficiarios en estado pendiente que deben ser autorizadas
35
+ # Solicta autorizar las cuentas de beneficiarios en estado pendiente agrupandolas en un set de cuentas que pueden incluir tanto cuentas de SPI como de SPID, debe indicar las urls de redireccion en caso de error y en caso de exito&lt;br/&gt;
36
+ # @param authorization Header para token
37
+ # @param subscription El identificador de la suscripción a esta API
38
+ # @param urls_redirect_dto Información de la cuenta del beneficiario
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Array<(AuthorizedBeneficiariesResponse, Fixnum, Hash)>] AuthorizedBeneficiariesResponse data, response status code and response headers
41
+ def authorize_accounts_pending_put_with_http_info(authorization, subscription, urls_redirect_dto, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put ...'
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 CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put"
48
+ end
49
+ # verify the required parameter 'subscription' is set
50
+ if @api_client.config.client_side_validation && subscription.nil?
51
+ fail ArgumentError, "Missing the required parameter 'subscription' when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put"
52
+ end
53
+ if @api_client.config.client_side_validation && subscription.to_s.length > 36
54
+ fail ArgumentError, 'invalid value for "subscription" when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put, the character length must be smaller than or equal to 36.'
55
+ end
56
+
57
+ if @api_client.config.client_side_validation && subscription.to_s.length < 36
58
+ fail ArgumentError, 'invalid value for "subscription" when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put, the character length must be great than or equal to 36.'
59
+ end
60
+
61
+ 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}$/)
62
+ fail ArgumentError, "invalid value for 'subscription' when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put, 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}$/."
63
+ end
64
+
65
+ # verify the required parameter 'urls_redirect_dto' is set
66
+ if @api_client.config.client_side_validation && urls_redirect_dto.nil?
67
+ fail ArgumentError, "Missing the required parameter 'urls_redirect_dto' when calling CuentasDeBeneficiariosSPEIApi.authorize_accounts_pending_put"
68
+ end
69
+ # resource path
70
+ local_var_path = '/subscriptions/{subscription}/beneficiaries/pending'.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(['application/json'])
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(urls_redirect_dto)
88
+ auth_names = []
89
+ data, status_code, headers = @api_client.call_api(:PUT, 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 => 'AuthorizedBeneficiariesResponse')
96
+ if @api_client.config.debugging
97
+ @api_client.config.logger.debug "API called: CuentasDeBeneficiariosSPEIApi#authorize_accounts_pending_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ end
99
+ return data, status_code, headers
100
+ end
22
101
  # Elimina la cuenta del beneficiario
23
102
  # Borra la cuenta de beneficiario proporcionada relacionada al contrato perteneciente a la subscripción. La cuenta a borrar debe ser una cuenta que opere con SPEI.
24
103
  # @param authorization Header para token
@@ -269,7 +348,12 @@ module Wire4Client
269
348
  # @param subscription El identificador de la suscripción a esta API
270
349
  # @param [Hash] opts the optional parameters
271
350
  # @option opts [String] :account Cuenta del beneficiario, puede ser Clabe, TDD o Celular
351
+ # @option opts [String] :beneficiary_bank Clave del banco beneficiario
352
+ # @option opts [String] :beneficiary_name Nombre del beneficiario
353
+ # @option opts [String] :end_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
354
+ # @option opts [String] :init_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
272
355
  # @option opts [String] :rfc RFC del beneficiario
356
+ # @option opts [String] :status Estatus de la cuenta
273
357
  # @return [BeneficiariesResponse]
274
358
  def get_beneficiaries_for_account_using_get(authorization, subscription, opts = {})
275
359
  data, _status_code, _headers = get_beneficiaries_for_account_using_get_with_http_info(authorization, subscription, opts)
@@ -282,7 +366,12 @@ module Wire4Client
282
366
  # @param subscription El identificador de la suscripción a esta API
283
367
  # @param [Hash] opts the optional parameters
284
368
  # @option opts [String] :account Cuenta del beneficiario, puede ser Clabe, TDD o Celular
369
+ # @option opts [String] :beneficiary_bank Clave del banco beneficiario
370
+ # @option opts [String] :beneficiary_name Nombre del beneficiario
371
+ # @option opts [String] :end_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
372
+ # @option opts [String] :init_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
285
373
  # @option opts [String] :rfc RFC del beneficiario
374
+ # @option opts [String] :status Estatus de la cuenta
286
375
  # @return [Array<(BeneficiariesResponse, Fixnum, Hash)>] BeneficiariesResponse data, response status code and response headers
287
376
  def get_beneficiaries_for_account_using_get_with_http_info(authorization, subscription, opts = {})
288
377
  if @api_client.config.debugging
@@ -314,7 +403,12 @@ module Wire4Client
314
403
  # query parameters
315
404
  query_params = {}
316
405
  query_params[:'account'] = opts[:'account'] if !opts[:'account'].nil?
406
+ query_params[:'beneficiary_bank'] = opts[:'beneficiary_bank'] if !opts[:'beneficiary_bank'].nil?
407
+ query_params[:'beneficiary_name'] = opts[:'beneficiary_name'] if !opts[:'beneficiary_name'].nil?
408
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
409
+ query_params[:'init_date'] = opts[:'init_date'] if !opts[:'init_date'].nil?
317
410
  query_params[:'rfc'] = opts[:'rfc'] if !opts[:'rfc'].nil?
411
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
318
412
 
319
413
  # header parameters
320
414
  header_params = {}
@@ -498,10 +592,10 @@ module Wire4Client
498
592
  # @param request_dto Información de la cuenta y el monto límite a actualizar
499
593
  # @param subscription El identificador de la suscripción a esta API
500
594
  # @param [Hash] opts the optional parameters
501
- # @return [nil]
595
+ # @return [TokenRequiredResponse]
502
596
  def update_amount_limit_account_using_put(authorization, account, request_dto, subscription, opts = {})
503
- update_amount_limit_account_using_put_with_http_info(authorization, account, request_dto, subscription, opts)
504
- nil
597
+ data, _status_code, _headers = update_amount_limit_account_using_put_with_http_info(authorization, account, request_dto, subscription, opts)
598
+ data
505
599
  end
506
600
 
507
601
  # Actualiza el monto límite
@@ -511,7 +605,7 @@ module Wire4Client
511
605
  # @param request_dto Información de la cuenta y el monto límite a actualizar
512
606
  # @param subscription El identificador de la suscripción a esta API
513
607
  # @param [Hash] opts the optional parameters
514
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
608
+ # @return [Array<(TokenRequiredResponse, Fixnum, Hash)>] TokenRequiredResponse data, response status code and response headers
515
609
  def update_amount_limit_account_using_put_with_http_info(authorization, account, request_dto, subscription, opts = {})
516
610
  if @api_client.config.debugging
517
611
  @api_client.config.logger.debug 'Calling API: CuentasDeBeneficiariosSPEIApi.update_amount_limit_account_using_put ...'
@@ -577,7 +671,8 @@ module Wire4Client
577
671
  :query_params => query_params,
578
672
  :form_params => form_params,
579
673
  :body => post_body,
580
- :auth_names => auth_names)
674
+ :auth_names => auth_names,
675
+ :return_type => 'TokenRequiredResponse')
581
676
  if @api_client.config.debugging
582
677
  @api_client.config.logger.debug "API called: CuentasDeBeneficiariosSPEIApi#update_amount_limit_account_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
583
678
  end
@@ -25,7 +25,12 @@ module Wire4Client
25
25
  # @param subscription El identificador de la suscripción a esta API
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @option opts [String] :account Cuenta del beneficiario, puede ser Clabe, TDD o Celular
28
+ # @option opts [String] :beneficiary_bank Clave del banco beneficiario
29
+ # @option opts [String] :beneficiary_name Nombre del beneficiario
30
+ # @option opts [String] :end_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
31
+ # @option opts [String] :init_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
28
32
  # @option opts [String] :rfc RFC del beneficiario
33
+ # @option opts [String] :status Estatus de la cuenta
29
34
  # @return [SpidBeneficiariesResponse]
30
35
  def get_spid_beneficiaries_for_account(authorization, subscription, opts = {})
31
36
  data, _status_code, _headers = get_spid_beneficiaries_for_account_with_http_info(authorization, subscription, opts)
@@ -38,7 +43,12 @@ module Wire4Client
38
43
  # @param subscription El identificador de la suscripción a esta API
39
44
  # @param [Hash] opts the optional parameters
40
45
  # @option opts [String] :account Cuenta del beneficiario, puede ser Clabe, TDD o Celular
46
+ # @option opts [String] :beneficiary_bank Clave del banco beneficiario
47
+ # @option opts [String] :beneficiary_name Nombre del beneficiario
48
+ # @option opts [String] :end_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
49
+ # @option opts [String] :init_date Fecha de inicio del perido a filtrar en formato dd-mm-yyyy
41
50
  # @option opts [String] :rfc RFC del beneficiario
51
+ # @option opts [String] :status Estatus de la cuenta
42
52
  # @return [Array<(SpidBeneficiariesResponse, Fixnum, Hash)>] SpidBeneficiariesResponse data, response status code and response headers
43
53
  def get_spid_beneficiaries_for_account_with_http_info(authorization, subscription, opts = {})
44
54
  if @api_client.config.debugging
@@ -70,7 +80,12 @@ module Wire4Client
70
80
  # query parameters
71
81
  query_params = {}
72
82
  query_params[:'account'] = opts[:'account'] if !opts[:'account'].nil?
83
+ query_params[:'beneficiary_bank'] = opts[:'beneficiary_bank'] if !opts[:'beneficiary_bank'].nil?
84
+ query_params[:'beneficiary_name'] = opts[:'beneficiary_name'] if !opts[:'beneficiary_name'].nil?
85
+ query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
86
+ query_params[:'init_date'] = opts[:'init_date'] if !opts[:'init_date'].nil?
73
87
  query_params[:'rfc'] = opts[:'rfc'] if !opts[:'rfc'].nil?
88
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
74
89
 
75
90
  # header parameters
76
91
  header_params = {}
@@ -0,0 +1,137 @@
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 EmpresasCoDiApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Consulta de empresas CODI
23
+ # Consulta de empresas CODI registradas para la aplicación.
24
+ # @param authorization Header para token
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [Array<CompanyRegistered>]
27
+ def obtain_companies(authorization, opts = {})
28
+ data, _status_code, _headers = obtain_companies_with_http_info(authorization, opts)
29
+ data
30
+ end
31
+
32
+ # Consulta de empresas CODI
33
+ # Consulta de empresas CODI registradas para la aplicación.
34
+ # @param authorization Header para token
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(Array<CompanyRegistered>, Fixnum, Hash)>] Array<CompanyRegistered> data, response status code and response headers
37
+ def obtain_companies_with_http_info(authorization, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: EmpresasCoDiApi.obtain_companies ...'
40
+ end
41
+ # verify the required parameter 'authorization' is set
42
+ if @api_client.config.client_side_validation && authorization.nil?
43
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling EmpresasCoDiApi.obtain_companies"
44
+ end
45
+ # resource path
46
+ local_var_path = '/codi/companies'
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
+ header_params[:'Authorization'] = authorization
56
+
57
+ # form parameters
58
+ form_params = {}
59
+
60
+ # http body (model)
61
+ post_body = nil
62
+ auth_names = []
63
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
64
+ :header_params => header_params,
65
+ :query_params => query_params,
66
+ :form_params => form_params,
67
+ :body => post_body,
68
+ :auth_names => auth_names,
69
+ :return_type => 'Array<CompanyRegistered>')
70
+ if @api_client.config.debugging
71
+ @api_client.config.logger.debug "API called: EmpresasCoDiApi#obtain_companies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
72
+ end
73
+ return data, status_code, headers
74
+ end
75
+ # Registro de empresas CODI
76
+ # Registra una empresa para hacer uso de operaciones CODI. Es requerido tener el certificado emitido por BANXICO® asi como el Nombre de la empresa, Nombre comercial y RFC de la empresa.<br/>
77
+ # @param authorization Header para token
78
+ # @param request_dto Información de la cuenta del beneficiario
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [CompanyRegistered]
81
+ def register_company_using_post(authorization, request_dto, opts = {})
82
+ data, _status_code, _headers = register_company_using_post_with_http_info(authorization, request_dto, opts)
83
+ data
84
+ end
85
+
86
+ # Registro de empresas CODI
87
+ # Registra una empresa para hacer uso de operaciones CODI. Es requerido tener el certificado emitido por BANXICO® asi como el Nombre de la empresa, Nombre comercial y RFC de la empresa.&lt;br/&gt;
88
+ # @param authorization Header para token
89
+ # @param request_dto Información de la cuenta del beneficiario
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [Array<(CompanyRegistered, Fixnum, Hash)>] CompanyRegistered data, response status code and response headers
92
+ def register_company_using_post_with_http_info(authorization, request_dto, opts = {})
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug 'Calling API: EmpresasCoDiApi.register_company_using_post ...'
95
+ end
96
+ # verify the required parameter 'authorization' is set
97
+ if @api_client.config.client_side_validation && authorization.nil?
98
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling EmpresasCoDiApi.register_company_using_post"
99
+ end
100
+ # verify the required parameter 'request_dto' is set
101
+ if @api_client.config.client_side_validation && request_dto.nil?
102
+ fail ArgumentError, "Missing the required parameter 'request_dto' when calling EmpresasCoDiApi.register_company_using_post"
103
+ end
104
+ # resource path
105
+ local_var_path = '/codi/companies'
106
+
107
+ # query parameters
108
+ query_params = {}
109
+
110
+ # header parameters
111
+ header_params = {}
112
+ # HTTP header 'Accept' (if needed)
113
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
114
+ # HTTP header 'Content-Type'
115
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
116
+ header_params[:'Authorization'] = authorization
117
+
118
+ # form parameters
119
+ form_params = {}
120
+
121
+ # http body (model)
122
+ post_body = @api_client.object_to_http_body(request_dto)
123
+ auth_names = []
124
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
125
+ :header_params => header_params,
126
+ :query_params => query_params,
127
+ :form_params => form_params,
128
+ :body => post_body,
129
+ :auth_names => auth_names,
130
+ :return_type => 'CompanyRegistered')
131
+ if @api_client.config.debugging
132
+ @api_client.config.logger.debug "API called: EmpresasCoDiApi#register_company_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
133
+ end
134
+ return data, status_code, headers
135
+ end
136
+ end
137
+ end
@@ -0,0 +1,92 @@
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 OperacionesCoDiApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Obtiene las operaciones generadas a partir de peticiones de pago CoDi® de forma paginada, pudiendo aplicar filtros
23
+ # Obtiene las operaciones generadas a partir de peticiones de pago CoDi® de forma paginada, pudiendo aplicar filtros
24
+ # @param authorization Header para token
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :company_id Identificador de empresa CoDi
27
+ # @option opts [String] :page Número de pago (default to 0)
28
+ # @option opts [CodiOperationsFiltersRequestDTO] :request_filters Filtros de busqueda
29
+ # @option opts [String] :sales_point_id Identificador del punto de venta
30
+ # @option opts [String] :size Tamaño de pagina (default to 20)
31
+ # @return [PagerResponseDto]
32
+ def consult_codi_operations(authorization, opts = {})
33
+ data, _status_code, _headers = consult_codi_operations_with_http_info(authorization, opts)
34
+ data
35
+ end
36
+
37
+ # Obtiene las operaciones generadas a partir de peticiones de pago CoDi® de forma paginada, pudiendo aplicar filtros
38
+ # Obtiene las operaciones generadas a partir de peticiones de pago CoDi® de forma paginada, pudiendo aplicar filtros
39
+ # @param authorization Header para token
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [String] :company_id Identificador de empresa CoDi
42
+ # @option opts [String] :page Número de pago
43
+ # @option opts [CodiOperationsFiltersRequestDTO] :request_filters Filtros de busqueda
44
+ # @option opts [String] :sales_point_id Identificador del punto de venta
45
+ # @option opts [String] :size Tamaño de pagina
46
+ # @return [Array<(PagerResponseDto, Fixnum, Hash)>] PagerResponseDto data, response status code and response headers
47
+ def consult_codi_operations_with_http_info(authorization, opts = {})
48
+ if @api_client.config.debugging
49
+ @api_client.config.logger.debug 'Calling API: OperacionesCoDiApi.consult_codi_operations ...'
50
+ end
51
+ # verify the required parameter 'authorization' is set
52
+ if @api_client.config.client_side_validation && authorization.nil?
53
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling OperacionesCoDiApi.consult_codi_operations"
54
+ end
55
+ # resource path
56
+ local_var_path = '/codi/charges'
57
+
58
+ # query parameters
59
+ query_params = {}
60
+ query_params[:'company_id'] = opts[:'company_id'] if !opts[:'company_id'].nil?
61
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
62
+ query_params[:'sales_point_id'] = opts[:'sales_point_id'] if !opts[:'sales_point_id'].nil?
63
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
64
+
65
+ # header parameters
66
+ header_params = {}
67
+ # HTTP header 'Accept' (if needed)
68
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
69
+ # HTTP header 'Content-Type'
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
71
+ header_params[:'Authorization'] = authorization
72
+
73
+ # form parameters
74
+ form_params = {}
75
+
76
+ # http body (model)
77
+ post_body = @api_client.object_to_http_body(opts[:'request_filters'])
78
+ auth_names = []
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => 'PagerResponseDto')
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: OperacionesCoDiApi#consult_codi_operations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,178 @@
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 PeticionesDePagoPorCoDiApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Obtiene la información de una petición de pago CODI® por orderId para un punto de venta
23
+ # Obtiene la información de una petición de pago CODI® por orderId para un punto de venta
24
+ # @param authorization Header para token
25
+ # @param order_id Identificador del pago CODI®
26
+ # @param sales_point_id Identificador del punto de venta
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [PaymentRequestCodiResponseDTO]
29
+ def consult_codi_request_by_order_id(authorization, order_id, sales_point_id, opts = {})
30
+ data, _status_code, _headers = consult_codi_request_by_order_id_with_http_info(authorization, order_id, sales_point_id, opts)
31
+ data
32
+ end
33
+
34
+ # Obtiene la información de una petición de pago CODI® por orderId para un punto de venta
35
+ # Obtiene la información de una petición de pago CODI® por orderId para un punto de venta
36
+ # @param authorization Header para token
37
+ # @param order_id Identificador del pago CODI®
38
+ # @param sales_point_id Identificador del punto de venta
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Array<(PaymentRequestCodiResponseDTO, Fixnum, Hash)>] PaymentRequestCodiResponseDTO data, response status code and response headers
41
+ def consult_codi_request_by_order_id_with_http_info(authorization, order_id, sales_point_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: PeticionesDePagoPorCoDiApi.consult_codi_request_by_order_id ...'
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 PeticionesDePagoPorCoDiApi.consult_codi_request_by_order_id"
48
+ end
49
+ # verify the required parameter 'order_id' is set
50
+ if @api_client.config.client_side_validation && order_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'order_id' when calling PeticionesDePagoPorCoDiApi.consult_codi_request_by_order_id"
52
+ end
53
+ # verify the required parameter 'sales_point_id' is set
54
+ if @api_client.config.client_side_validation && sales_point_id.nil?
55
+ fail ArgumentError, "Missing the required parameter 'sales_point_id' when calling PeticionesDePagoPorCoDiApi.consult_codi_request_by_order_id"
56
+ end
57
+ if @api_client.config.client_side_validation && sales_point_id.to_s.length > 36
58
+ fail ArgumentError, 'invalid value for "sales_point_id" when calling PeticionesDePagoPorCoDiApi.consult_codi_request_by_order_id, the character length must be smaller than or equal to 36.'
59
+ end
60
+
61
+ if @api_client.config.client_side_validation && sales_point_id.to_s.length < 36
62
+ fail ArgumentError, 'invalid value for "sales_point_id" when calling PeticionesDePagoPorCoDiApi.consult_codi_request_by_order_id, the character length must be great than or equal to 36.'
63
+ end
64
+
65
+ # resource path
66
+ local_var_path = '/codi/sales-point/charges'
67
+
68
+ # query parameters
69
+ query_params = {}
70
+ query_params[:'orderId'] = order_id
71
+ query_params[:'salesPointId'] = sales_point_id
72
+
73
+ # header parameters
74
+ header_params = {}
75
+ # HTTP header 'Accept' (if needed)
76
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
77
+ header_params[:'Authorization'] = authorization
78
+
79
+ # form parameters
80
+ form_params = {}
81
+
82
+ # http body (model)
83
+ post_body = nil
84
+ auth_names = []
85
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
86
+ :header_params => header_params,
87
+ :query_params => query_params,
88
+ :form_params => form_params,
89
+ :body => post_body,
90
+ :auth_names => auth_names,
91
+ :return_type => 'PaymentRequestCodiResponseDTO')
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug "API called: PeticionesDePagoPorCoDiApi#consult_codi_request_by_order_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
+ end
95
+ return data, status_code, headers
96
+ end
97
+ # Genera un código QR para un pago mediante CODI®
98
+ # Genera un código QR solicitado por un punto de venta para un pago mediante CODI®
99
+ # @param authorization Header para token
100
+ # @param codi_info Información del pago CODI®
101
+ # @param sales_point_id Identificador del punto de venta
102
+ # @param [Hash] opts the optional parameters
103
+ # @return [CodiCodeQrResponseDTO]
104
+ def generate_codi_code_qr(authorization, codi_info, sales_point_id, opts = {})
105
+ data, _status_code, _headers = generate_codi_code_qr_with_http_info(authorization, codi_info, sales_point_id, opts)
106
+ data
107
+ end
108
+
109
+ # Genera un código QR para un pago mediante CODI®
110
+ # Genera un código QR solicitado por un punto de venta para un pago mediante CODI®
111
+ # @param authorization Header para token
112
+ # @param codi_info Información del pago CODI®
113
+ # @param sales_point_id Identificador del punto de venta
114
+ # @param [Hash] opts the optional parameters
115
+ # @return [Array<(CodiCodeQrResponseDTO, Fixnum, Hash)>] CodiCodeQrResponseDTO data, response status code and response headers
116
+ def generate_codi_code_qr_with_http_info(authorization, codi_info, sales_point_id, opts = {})
117
+ if @api_client.config.debugging
118
+ @api_client.config.logger.debug 'Calling API: PeticionesDePagoPorCoDiApi.generate_codi_code_qr ...'
119
+ end
120
+ # verify the required parameter 'authorization' is set
121
+ if @api_client.config.client_side_validation && authorization.nil?
122
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling PeticionesDePagoPorCoDiApi.generate_codi_code_qr"
123
+ end
124
+ # verify the required parameter 'codi_info' is set
125
+ if @api_client.config.client_side_validation && codi_info.nil?
126
+ fail ArgumentError, "Missing the required parameter 'codi_info' when calling PeticionesDePagoPorCoDiApi.generate_codi_code_qr"
127
+ end
128
+ # verify the required parameter 'sales_point_id' is set
129
+ if @api_client.config.client_side_validation && sales_point_id.nil?
130
+ fail ArgumentError, "Missing the required parameter 'sales_point_id' when calling PeticionesDePagoPorCoDiApi.generate_codi_code_qr"
131
+ end
132
+ if @api_client.config.client_side_validation && sales_point_id.to_s.length > 36
133
+ fail ArgumentError, 'invalid value for "sales_point_id" when calling PeticionesDePagoPorCoDiApi.generate_codi_code_qr, the character length must be smaller than or equal to 36.'
134
+ end
135
+
136
+ if @api_client.config.client_side_validation && sales_point_id.to_s.length < 36
137
+ fail ArgumentError, 'invalid value for "sales_point_id" when calling PeticionesDePagoPorCoDiApi.generate_codi_code_qr, the character length must be great than or equal to 36.'
138
+ end
139
+
140
+ if @api_client.config.client_side_validation && sales_point_id !~ Regexp.new(/[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[34][A-Fa-f0-9]{3}-[89ab][A-Fa-f0-9]{3}-[A-Fa-f0-9]{12}$/)
141
+ fail ArgumentError, "invalid value for 'sales_point_id' when calling PeticionesDePagoPorCoDiApi.generate_codi_code_qr, 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}$/."
142
+ end
143
+
144
+ # resource path
145
+ local_var_path = '/codi/sales-point/charges'
146
+
147
+ # query parameters
148
+ query_params = {}
149
+ query_params[:'salesPointId'] = sales_point_id
150
+
151
+ # header parameters
152
+ header_params = {}
153
+ # HTTP header 'Accept' (if needed)
154
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
155
+ # HTTP header 'Content-Type'
156
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
157
+ header_params[:'Authorization'] = authorization
158
+
159
+ # form parameters
160
+ form_params = {}
161
+
162
+ # http body (model)
163
+ post_body = @api_client.object_to_http_body(codi_info)
164
+ auth_names = []
165
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
166
+ :header_params => header_params,
167
+ :query_params => query_params,
168
+ :form_params => form_params,
169
+ :body => post_body,
170
+ :auth_names => auth_names,
171
+ :return_type => 'CodiCodeQrResponseDTO')
172
+ if @api_client.config.debugging
173
+ @api_client.config.logger.debug "API called: PeticionesDePagoPorCoDiApi#generate_codi_code_qr\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
174
+ end
175
+ return data, status_code, headers
176
+ end
177
+ end
178
+ end