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.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +27 -0
  4. data/docs/AccountReassigned.md +1 -1
  5. data/docs/AccountResponse.md +1 -0
  6. data/docs/BeneficiaryDTO.md +10 -0
  7. data/docs/CargosRecurrentesApi.md +110 -0
  8. data/docs/CepResponse.md +1 -0
  9. data/docs/CepSearchBanxico.md +1 -0
  10. data/docs/CertificateRequest.md +1 -1
  11. data/docs/CodiCodeQrResponseDTO.md +1 -0
  12. data/docs/CodiCodeRequestDTO.md +6 -3
  13. data/docs/ConfirmRecurringCharge.md +9 -0
  14. data/docs/CuentasDeBeneficiariosSPEIApi.md +4 -0
  15. data/docs/CuentasDeBeneficiariosSPIDApi.md +4 -0
  16. data/docs/Customer.md +9 -0
  17. data/docs/Deposit.md +1 -0
  18. data/docs/Depositant.md +1 -0
  19. data/docs/DepositantCountResponse.md +8 -0
  20. data/docs/DepositantesApi.md +164 -1
  21. data/docs/FailedChargesDataDTO.md +13 -0
  22. data/docs/MessageDepositReceived.md +3 -0
  23. data/docs/PaymentRequestReportDTO.md +17 -0
  24. data/docs/PaymentRequestReq.md +18 -0
  25. data/docs/PaymentRequestResponse.md +10 -0
  26. data/docs/PaymentsSpeiAndSpidOrderId.md +9 -0
  27. data/docs/PaymentsSpeiAndSpidRequestId.md +12 -0
  28. data/docs/Person.md +1 -1
  29. data/docs/Product.md +11 -0
  30. data/docs/RecurringChargeRequest.md +14 -0
  31. data/docs/ReporteDeSolicitudesDePagosApi.md +107 -0
  32. data/docs/SolicitudDePagosApi.md +59 -0
  33. data/docs/SpidBeneficiaryResponse.md +1 -0
  34. data/docs/SuccessChargesDataDTO.md +12 -0
  35. data/docs/SuccessDataDTO.md +9 -0
  36. data/docs/TransactionSpeiSpid.md +15 -0
  37. data/docs/TransactionsRegister.md +11 -0
  38. data/docs/TransferenciasSPEIApi.md +163 -0
  39. data/lib/wire4_client/api/cargos_recurrentes_api.rb +143 -0
  40. data/lib/wire4_client/api/cuentas_de_beneficiarios_spei_api.rb +6 -0
  41. data/lib/wire4_client/api/cuentas_de_beneficiarios_spid_api.rb +6 -0
  42. data/lib/wire4_client/api/depositantes_api.rb +207 -2
  43. data/lib/wire4_client/api/reporte_de_solicitudes_de_pagos_api.rb +134 -0
  44. data/lib/wire4_client/api/solicitud_de_pagos_api.rb +84 -0
  45. data/lib/wire4_client/api/transferencias_spei_api.rb +234 -4
  46. data/lib/wire4_client/models/account_reassigned.rb +11 -11
  47. data/lib/wire4_client/models/account_response.rb +11 -1
  48. data/lib/wire4_client/models/amount_request.rb +10 -10
  49. data/lib/wire4_client/models/beneficiary_dto.rb +201 -0
  50. data/lib/wire4_client/models/cep_response.rb +45 -1
  51. data/lib/wire4_client/models/cep_search_banxico.rb +48 -4
  52. data/lib/wire4_client/models/certificate_request.rb +6 -15
  53. data/lib/wire4_client/models/codi_code_qr_response_dto.rb +15 -5
  54. data/lib/wire4_client/models/codi_code_request_dto.rb +94 -20
  55. data/lib/wire4_client/models/codi_operations_filters_request_dto.rb +2 -2
  56. data/lib/wire4_client/models/confirm_recurring_charge.rb +194 -0
  57. data/lib/wire4_client/models/customer.rb +205 -0
  58. data/lib/wire4_client/models/deposit.rb +48 -4
  59. data/lib/wire4_client/models/depositant.rb +14 -4
  60. data/lib/wire4_client/models/depositant_count_response.rb +185 -0
  61. data/lib/wire4_client/models/failed_charges_data_dto.rb +228 -0
  62. data/lib/wire4_client/models/message_deposit_received.rb +31 -1
  63. data/lib/wire4_client/models/operations.rb +4 -4
  64. data/lib/wire4_client/models/payment_codi.rb +2 -2
  65. data/lib/wire4_client/models/payment_request_report_dto.rb +300 -0
  66. data/lib/wire4_client/models/payment_request_req.rb +401 -0
  67. data/lib/wire4_client/models/payment_request_response.rb +204 -0
  68. data/lib/wire4_client/models/payments_spei_and_spid_order_id.rb +199 -0
  69. data/lib/wire4_client/models/payments_spei_and_spid_request_id.rb +229 -0
  70. data/lib/wire4_client/models/person.rb +0 -5
  71. data/lib/wire4_client/models/product.rb +288 -0
  72. data/lib/wire4_client/models/recurring_charge_request.rb +278 -0
  73. data/lib/wire4_client/models/sales_point_request.rb +5 -5
  74. data/lib/wire4_client/models/spid_beneficiary_response.rb +11 -1
  75. data/lib/wire4_client/models/success_charges_data_dto.rb +219 -0
  76. data/lib/wire4_client/models/success_data_dto.rb +226 -0
  77. data/lib/wire4_client/models/transaction_outgoing.rb +5 -5
  78. data/lib/wire4_client/models/transaction_spei_spid.rb +390 -0
  79. data/lib/wire4_client/models/transactions_register.rb +229 -0
  80. data/lib/wire4_client/version.rb +1 -1
  81. data/lib/wire4_client.rb +19 -0
  82. data/spec/api/cargos_recurrentes_api_spec.rb +61 -0
  83. data/spec/api/cuentas_de_beneficiarios_spei_api_spec.rb +2 -0
  84. data/spec/api/cuentas_de_beneficiarios_spid_api_spec.rb +2 -0
  85. data/spec/api/depositantes_api_spec.rb +42 -1
  86. data/spec/api/reporte_de_solicitudes_de_pagos_api_spec.rb +59 -0
  87. data/spec/api/solicitud_de_pagos_api_spec.rb +48 -0
  88. data/spec/api/transferencias_spei_api_spec.rb +42 -0
  89. data/spec/models/account_reassigned_spec.rb +3 -3
  90. data/spec/models/account_response_spec.rb +6 -0
  91. data/spec/models/beneficiary_dto_spec.rb +53 -0
  92. data/spec/models/cep_response_spec.rb +10 -0
  93. data/spec/models/cep_search_banxico_spec.rb +10 -0
  94. data/spec/models/codi_code_qr_response_dto_spec.rb +8 -2
  95. data/spec/models/codi_code_request_dto_spec.rb +23 -1
  96. data/spec/models/codi_operations_filters_request_dto_spec.rb +1 -1
  97. data/spec/models/confirm_recurring_charge_spec.rb +47 -0
  98. data/spec/models/customer_spec.rb +47 -0
  99. data/spec/models/deposit_spec.rb +10 -0
  100. data/spec/models/depositant_count_response_spec.rb +41 -0
  101. data/spec/models/depositant_spec.rb +6 -0
  102. data/spec/models/failed_charges_data_dto_spec.rb +71 -0
  103. data/spec/models/message_deposit_received_spec.rb +18 -0
  104. data/spec/models/operations_spec.rb +2 -2
  105. data/spec/models/payment_codi_spec.rb +1 -1
  106. data/spec/models/payment_request_report_dto_spec.rb +99 -0
  107. data/spec/models/payment_request_req_spec.rb +109 -0
  108. data/spec/models/payment_request_response_spec.rb +53 -0
  109. data/spec/models/payments_spei_and_spid_order_id_spec.rb +47 -0
  110. data/spec/models/payments_spei_and_spid_request_id_spec.rb +65 -0
  111. data/spec/models/product_spec.rb +63 -0
  112. data/spec/models/recurring_charge_request_spec.rb +77 -0
  113. data/spec/models/spid_beneficiary_response_spec.rb +6 -0
  114. data/spec/models/success_charges_data_dto_spec.rb +65 -0
  115. data/spec/models/success_data_dto_spec.rb +51 -0
  116. data/spec/models/transaction_spei_spid_spec.rb +83 -0
  117. data/spec/models/transactions_register_spec.rb +59 -0
  118. data/wire4_client-1.1.3.gem +0 -0
  119. data/wire4_client.gemspec +7 -7
  120. metadata +108 -55
@@ -352,7 +352,9 @@ module Wire4Client
352
352
  # @option opts [String] :beneficiary_name Es el nombre del beneficiario.
353
353
  # @option opts [String] :end_date Es la fecha de inicio del perido a filtrar en formato dd-mm-yyyy.
354
354
  # @option opts [String] :init_date Es la fºecha de inicio del perido a filtrar en formato dd-mm-yyyy.
355
+ # @option opts [String] :page Es el número de página. (default to 0)
355
356
  # @option opts [String] :rfc Es el Registro Federal de Controbuyentes (RFC) del beneficiario.
357
+ # @option opts [String] :size Es el tamaño de página. (default to 20)
356
358
  # @option opts [String] :status Es el estado (estatus) de la cuenta. Los valores pueden ser <b>PENDING</b> y <b>REGISTERED</b>.
357
359
  # @return [BeneficiariesResponse]
358
360
  def get_beneficiaries_for_account_using_get(authorization, subscription, opts = {})
@@ -370,7 +372,9 @@ module Wire4Client
370
372
  # @option opts [String] :beneficiary_name Es el nombre del beneficiario.
371
373
  # @option opts [String] :end_date Es la fecha de inicio del perido a filtrar en formato dd-mm-yyyy.
372
374
  # @option opts [String] :init_date Es la fºecha de inicio del perido a filtrar en formato dd-mm-yyyy.
375
+ # @option opts [String] :page Es el número de página.
373
376
  # @option opts [String] :rfc Es el Registro Federal de Controbuyentes (RFC) del beneficiario.
377
+ # @option opts [String] :size Es el tamaño de página.
374
378
  # @option opts [String] :status Es el estado (estatus) de la cuenta. Los valores pueden ser <b>PENDING</b> y <b>REGISTERED</b>.
375
379
  # @return [Array<(BeneficiariesResponse, Fixnum, Hash)>] BeneficiariesResponse data, response status code and response headers
376
380
  def get_beneficiaries_for_account_using_get_with_http_info(authorization, subscription, opts = {})
@@ -407,7 +411,9 @@ module Wire4Client
407
411
  query_params[:'beneficiary_name'] = opts[:'beneficiary_name'] if !opts[:'beneficiary_name'].nil?
408
412
  query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
409
413
  query_params[:'init_date'] = opts[:'init_date'] if !opts[:'init_date'].nil?
414
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
410
415
  query_params[:'rfc'] = opts[:'rfc'] if !opts[:'rfc'].nil?
416
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
411
417
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
412
418
 
413
419
  # header parameters
@@ -29,7 +29,9 @@ module Wire4Client
29
29
  # @option opts [String] :beneficiary_name Es el nombre del beneficiario.
30
30
  # @option opts [String] :end_date Es la fecha de inicio del periodo a filtrar en formato dd-mm-yyyy.
31
31
  # @option opts [String] :init_date Es la fecha de inicio del periodo a filtrar en formato dd-mm-yyyy.
32
+ # @option opts [String] :page Es el número de página. (default to 0)
32
33
  # @option opts [String] :rfc Es el Registro Federal de Contribuyentes (RFC) del beneficiario.
34
+ # @option opts [String] :size Es el tamaño de página. (default to 20)
33
35
  # @option opts [String] :status Es el estado (estatus) de la cuenta, Los valores pueden ser &lt;b&gt;PENDING&lt;/b&gt; y &lt;b&gt;REGISTERED&lt;/b&gt;.
34
36
  # @return [SpidBeneficiariesResponse]
35
37
  def get_spid_beneficiaries_for_account(authorization, subscription, opts = {})
@@ -47,7 +49,9 @@ module Wire4Client
47
49
  # @option opts [String] :beneficiary_name Es el nombre del beneficiario.
48
50
  # @option opts [String] :end_date Es la fecha de inicio del periodo a filtrar en formato dd-mm-yyyy.
49
51
  # @option opts [String] :init_date Es la fecha de inicio del periodo a filtrar en formato dd-mm-yyyy.
52
+ # @option opts [String] :page Es el número de página.
50
53
  # @option opts [String] :rfc Es el Registro Federal de Contribuyentes (RFC) del beneficiario.
54
+ # @option opts [String] :size Es el tamaño de página.
51
55
  # @option opts [String] :status Es el estado (estatus) de la cuenta, Los valores pueden ser &lt;b&gt;PENDING&lt;/b&gt; y &lt;b&gt;REGISTERED&lt;/b&gt;.
52
56
  # @return [Array<(SpidBeneficiariesResponse, Fixnum, Hash)>] SpidBeneficiariesResponse data, response status code and response headers
53
57
  def get_spid_beneficiaries_for_account_with_http_info(authorization, subscription, opts = {})
@@ -84,7 +88,9 @@ module Wire4Client
84
88
  query_params[:'beneficiary_name'] = opts[:'beneficiary_name'] if !opts[:'beneficiary_name'].nil?
85
89
  query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
86
90
  query_params[:'init_date'] = opts[:'init_date'] if !opts[:'init_date'].nil?
91
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
87
92
  query_params[:'rfc'] = opts[:'rfc'] if !opts[:'rfc'].nil?
93
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
88
94
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
89
95
 
90
96
  # header parameters
@@ -19,6 +19,77 @@ module Wire4Client
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Número de depositantes por suscripción
23
+ # Obtiene la cantidad el total de depositantes asociados al contrato relacionado a la suscripción.
24
+ # @param authorization Header para token
25
+ # @param subscription Es el identificador de la suscripción a esta API.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [DepositantCountResponse]
28
+ def get_depositants_totals_using_get(authorization, subscription, opts = {})
29
+ data, _status_code, _headers = get_depositants_totals_using_get_with_http_info(authorization, subscription, opts)
30
+ data
31
+ end
32
+
33
+ # Número de depositantes por suscripción
34
+ # Obtiene la cantidad el total de depositantes asociados al contrato relacionado a la suscripción.
35
+ # @param authorization Header para token
36
+ # @param subscription Es el identificador de la suscripción a esta API.
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(DepositantCountResponse, Fixnum, Hash)>] DepositantCountResponse data, response status code and response headers
39
+ def get_depositants_totals_using_get_with_http_info(authorization, subscription, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: DepositantesApi.get_depositants_totals_using_get ...'
42
+ end
43
+ # verify the required parameter 'authorization' is set
44
+ if @api_client.config.client_side_validation && authorization.nil?
45
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DepositantesApi.get_depositants_totals_using_get"
46
+ end
47
+ # verify the required parameter 'subscription' is set
48
+ if @api_client.config.client_side_validation && subscription.nil?
49
+ fail ArgumentError, "Missing the required parameter 'subscription' when calling DepositantesApi.get_depositants_totals_using_get"
50
+ end
51
+ if @api_client.config.client_side_validation && subscription.to_s.length > 36
52
+ fail ArgumentError, 'invalid value for "subscription" when calling DepositantesApi.get_depositants_totals_using_get, the character length must be smaller than or equal to 36.'
53
+ end
54
+
55
+ if @api_client.config.client_side_validation && subscription.to_s.length < 36
56
+ fail ArgumentError, 'invalid value for "subscription" when calling DepositantesApi.get_depositants_totals_using_get, the character length must be great than or equal to 36.'
57
+ end
58
+
59
+ 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}$/)
60
+ fail ArgumentError, "invalid value for 'subscription' when calling DepositantesApi.get_depositants_totals_using_get, 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}$/."
61
+ end
62
+
63
+ # resource path
64
+ local_var_path = '/subscriptions/{subscription}/depositants/count'.sub('{' + 'subscription' + '}', subscription.to_s)
65
+
66
+ # query parameters
67
+ query_params = {}
68
+
69
+ # header parameters
70
+ header_params = {}
71
+ # HTTP header 'Accept' (if needed)
72
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
73
+ header_params[:'Authorization'] = authorization
74
+
75
+ # form parameters
76
+ form_params = {}
77
+
78
+ # http body (model)
79
+ post_body = nil
80
+ auth_names = []
81
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
82
+ :header_params => header_params,
83
+ :query_params => query_params,
84
+ :form_params => form_params,
85
+ :body => post_body,
86
+ :auth_names => auth_names,
87
+ :return_type => 'DepositantCountResponse')
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug "API called: DepositantesApi#get_depositants_totals_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
+ end
91
+ return data, status_code, headers
92
+ end
22
93
  # Consulta de cuentas de depositantes
23
94
  # Obtiene una lista de depositantes asociados al contrato relacionado a la suscripción.
24
95
  # @param authorization Header para token
@@ -91,7 +162,7 @@ module Wire4Client
91
162
  return data, status_code, headers
92
163
  end
93
164
  # Registra un nuevo depositante
94
- # Registra un nuevo depositante en el contrato asociado a la suscripción.
165
+ # 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.
95
166
  # @param authorization Header para token
96
167
  # @param register Depositant info
97
168
  # @param subscription Es el identificador de la suscripción a esta API.
@@ -103,7 +174,7 @@ module Wire4Client
103
174
  end
104
175
 
105
176
  # Registra un nuevo depositante
106
- # Registra un nuevo depositante en el contrato asociado a la suscripción.
177
+ # 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.
107
178
  # @param authorization Header para token
108
179
  # @param register Depositant info
109
180
  # @param subscription Es el identificador de la suscripción a esta API.
@@ -169,5 +240,139 @@ module Wire4Client
169
240
  end
170
241
  return data, status_code, headers
171
242
  end
243
+ # Solicitud para actualizar el estado de un depositante sin utilizar la suscripción
244
+ # @param authorization Header para token
245
+ # @param account Es la cuenta que va a ser actualizada.
246
+ # @param action Es la cuenta que va a ser actualizada.
247
+ # @param [Hash] opts the optional parameters
248
+ # @option opts [String] :empty_value Empty value
249
+ # @return [Depositant]
250
+ def update_status_depositants_no_suscrption_using_patch(authorization, account, action, opts = {})
251
+ data, _status_code, _headers = update_status_depositants_no_suscrption_using_patch_with_http_info(authorization, account, action, opts)
252
+ data
253
+ end
254
+
255
+ # Solicitud para actualizar el estado de un depositante sin utilizar la suscripción
256
+ # @param authorization Header para token
257
+ # @param account Es la cuenta que va a ser actualizada.
258
+ # @param action Es la cuenta que va a ser actualizada.
259
+ # @param [Hash] opts the optional parameters
260
+ # @option opts [String] :empty_value Empty value
261
+ # @return [Array<(Depositant, Fixnum, Hash)>] Depositant data, response status code and response headers
262
+ def update_status_depositants_no_suscrption_using_patch_with_http_info(authorization, account, action, opts = {})
263
+ if @api_client.config.debugging
264
+ @api_client.config.logger.debug 'Calling API: DepositantesApi.update_status_depositants_no_suscrption_using_patch ...'
265
+ end
266
+ # verify the required parameter 'authorization' is set
267
+ if @api_client.config.client_side_validation && authorization.nil?
268
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DepositantesApi.update_status_depositants_no_suscrption_using_patch"
269
+ end
270
+ # verify the required parameter 'account' is set
271
+ if @api_client.config.client_side_validation && account.nil?
272
+ fail ArgumentError, "Missing the required parameter 'account' when calling DepositantesApi.update_status_depositants_no_suscrption_using_patch"
273
+ end
274
+ # verify the required parameter 'action' is set
275
+ if @api_client.config.client_side_validation && action.nil?
276
+ fail ArgumentError, "Missing the required parameter 'action' when calling DepositantesApi.update_status_depositants_no_suscrption_using_patch"
277
+ end
278
+ # resource path
279
+ local_var_path = '/depositants/{account}/{action}'.sub('{' + 'account' + '}', account.to_s).sub('{' + 'action' + '}', action.to_s)
280
+
281
+ # query parameters
282
+ query_params = {}
283
+
284
+ # header parameters
285
+ header_params = {}
286
+ # HTTP header 'Accept' (if needed)
287
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
288
+ # HTTP header 'Content-Type'
289
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
290
+ header_params[:'Authorization'] = authorization
291
+
292
+ # form parameters
293
+ form_params = {}
294
+
295
+ # http body (model)
296
+ post_body = @api_client.object_to_http_body(opts[:'empty_value'])
297
+ auth_names = []
298
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
299
+ :header_params => header_params,
300
+ :query_params => query_params,
301
+ :form_params => form_params,
302
+ :body => post_body,
303
+ :auth_names => auth_names,
304
+ :return_type => 'Depositant')
305
+ if @api_client.config.debugging
306
+ @api_client.config.logger.debug "API called: DepositantesApi#update_status_depositants_no_suscrption_using_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
307
+ end
308
+ return data, status_code, headers
309
+ end
310
+ # Solicitud para actualizar el estado de un depossitante
311
+ # @param authorization Header para token
312
+ # @param account Es la cuenta que va a ser actualizada.
313
+ # @param action Es la cuenta que va a ser actualizada.
314
+ # @param [Hash] opts the optional parameters
315
+ # @option opts [String] :empty_value Empty value
316
+ # @return [Depositant]
317
+ def update_status_depositants_using_patch(authorization, account, action, opts = {})
318
+ data, _status_code, _headers = update_status_depositants_using_patch_with_http_info(authorization, account, action, opts)
319
+ data
320
+ end
321
+
322
+ # Solicitud para actualizar el estado de un depossitante
323
+ # @param authorization Header para token
324
+ # @param account Es la cuenta que va a ser actualizada.
325
+ # @param action Es la cuenta que va a ser actualizada.
326
+ # @param [Hash] opts the optional parameters
327
+ # @option opts [String] :empty_value Empty value
328
+ # @return [Array<(Depositant, Fixnum, Hash)>] Depositant data, response status code and response headers
329
+ def update_status_depositants_using_patch_with_http_info(authorization, account, action, opts = {})
330
+ if @api_client.config.debugging
331
+ @api_client.config.logger.debug 'Calling API: DepositantesApi.update_status_depositants_using_patch ...'
332
+ end
333
+ # verify the required parameter 'authorization' is set
334
+ if @api_client.config.client_side_validation && authorization.nil?
335
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling DepositantesApi.update_status_depositants_using_patch"
336
+ end
337
+ # verify the required parameter 'account' is set
338
+ if @api_client.config.client_side_validation && account.nil?
339
+ fail ArgumentError, "Missing the required parameter 'account' when calling DepositantesApi.update_status_depositants_using_patch"
340
+ end
341
+ # verify the required parameter 'action' is set
342
+ if @api_client.config.client_side_validation && action.nil?
343
+ fail ArgumentError, "Missing the required parameter 'action' when calling DepositantesApi.update_status_depositants_using_patch"
344
+ end
345
+ # resource path
346
+ local_var_path = '/subscriptions/{subscription}/depositants/{account}/{action}'.sub('{' + 'account' + '}', account.to_s).sub('{' + 'action' + '}', action.to_s)
347
+
348
+ # query parameters
349
+ query_params = {}
350
+
351
+ # header parameters
352
+ header_params = {}
353
+ # HTTP header 'Accept' (if needed)
354
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
355
+ # HTTP header 'Content-Type'
356
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
357
+ header_params[:'Authorization'] = authorization
358
+
359
+ # form parameters
360
+ form_params = {}
361
+
362
+ # http body (model)
363
+ post_body = @api_client.object_to_http_body(opts[:'empty_value'])
364
+ auth_names = []
365
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
366
+ :header_params => header_params,
367
+ :query_params => query_params,
368
+ :form_params => form_params,
369
+ :body => post_body,
370
+ :auth_names => auth_names,
371
+ :return_type => 'Depositant')
372
+ if @api_client.config.debugging
373
+ @api_client.config.logger.debug "API called: DepositantesApi#update_status_depositants_using_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
374
+ end
375
+ return data, status_code, headers
376
+ end
172
377
  end
173
378
  end
@@ -0,0 +1,134 @@
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 ReporteDeSolicitudesDePagosApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Consulta de solicitudes de pago por numero de orden.
23
+ # @param authorization Header para token
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :order_id Es el identificador de la orden a buscar.
26
+ # @return [PaymentRequestReportDTO]
27
+ def payment_request_id_report_by_order_id_using_get(authorization, opts = {})
28
+ data, _status_code, _headers = payment_request_id_report_by_order_id_using_get_with_http_info(authorization, opts)
29
+ data
30
+ end
31
+
32
+ # Consulta de solicitudes de pago por numero de orden.
33
+ # @param authorization Header para token
34
+ # @param [Hash] opts the optional parameters
35
+ # @option opts [String] :order_id Es el identificador de la orden a buscar.
36
+ # @return [Array<(PaymentRequestReportDTO, Fixnum, Hash)>] PaymentRequestReportDTO data, response status code and response headers
37
+ def payment_request_id_report_by_order_id_using_get_with_http_info(authorization, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ReporteDeSolicitudesDePagosApi.payment_request_id_report_by_order_id_using_get ...'
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 ReporteDeSolicitudesDePagosApi.payment_request_id_report_by_order_id_using_get"
44
+ end
45
+ # resource path
46
+ local_var_path = '/payment-request'
47
+
48
+ # query parameters
49
+ query_params = {}
50
+ query_params[:'order_id'] = opts[:'order_id'] if !opts[:'order_id'].nil?
51
+
52
+ # header parameters
53
+ header_params = {}
54
+ # HTTP header 'Accept' (if needed)
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
56
+ header_params[:'Authorization'] = authorization
57
+
58
+ # form parameters
59
+ form_params = {}
60
+
61
+ # http body (model)
62
+ post_body = nil
63
+ auth_names = []
64
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
65
+ :header_params => header_params,
66
+ :query_params => query_params,
67
+ :form_params => form_params,
68
+ :body => post_body,
69
+ :auth_names => auth_names,
70
+ :return_type => 'PaymentRequestReportDTO')
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: ReporteDeSolicitudesDePagosApi#payment_request_id_report_by_order_id_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+ # Consulta de solicitudes de pago por identificador de petición
77
+ # @param authorization Header para token
78
+ # @param request_id Identificador de la petición a buscar.
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [PaymentRequestReportDTO]
81
+ def payment_request_id_report_using_get(authorization, request_id, opts = {})
82
+ data, _status_code, _headers = payment_request_id_report_using_get_with_http_info(authorization, request_id, opts)
83
+ data
84
+ end
85
+
86
+ # Consulta de solicitudes de pago por identificador de petición
87
+ # @param authorization Header para token
88
+ # @param request_id Identificador de la petición a buscar.
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [Array<(PaymentRequestReportDTO, Fixnum, Hash)>] PaymentRequestReportDTO data, response status code and response headers
91
+ def payment_request_id_report_using_get_with_http_info(authorization, request_id, opts = {})
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug 'Calling API: ReporteDeSolicitudesDePagosApi.payment_request_id_report_using_get ...'
94
+ end
95
+ # verify the required parameter 'authorization' is set
96
+ if @api_client.config.client_side_validation && authorization.nil?
97
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ReporteDeSolicitudesDePagosApi.payment_request_id_report_using_get"
98
+ end
99
+ # verify the required parameter 'request_id' is set
100
+ if @api_client.config.client_side_validation && request_id.nil?
101
+ fail ArgumentError, "Missing the required parameter 'request_id' when calling ReporteDeSolicitudesDePagosApi.payment_request_id_report_using_get"
102
+ end
103
+ # resource path
104
+ local_var_path = '/payment-request/{requestId}'.sub('{' + 'requestId' + '}', request_id.to_s)
105
+
106
+ # query parameters
107
+ query_params = {}
108
+
109
+ # header parameters
110
+ header_params = {}
111
+ # HTTP header 'Accept' (if needed)
112
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
113
+ header_params[:'Authorization'] = authorization
114
+
115
+ # form parameters
116
+ form_params = {}
117
+
118
+ # http body (model)
119
+ post_body = nil
120
+ auth_names = []
121
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
122
+ :header_params => header_params,
123
+ :query_params => query_params,
124
+ :form_params => form_params,
125
+ :body => post_body,
126
+ :auth_names => auth_names,
127
+ :return_type => 'PaymentRequestReportDTO')
128
+ if @api_client.config.debugging
129
+ @api_client.config.logger.debug "API called: ReporteDeSolicitudesDePagosApi#payment_request_id_report_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
130
+ end
131
+ return data, status_code, headers
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,84 @@
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 SolicitudDePagosApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Registro de solicitud de pagos
23
+ # 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.
24
+ # @param authorization Header para token
25
+ # @param payment_request_req_dto Información de la solicitud de pagos
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [PaymentRequestResponse]
28
+ def register_payment_request_using_post(authorization, payment_request_req_dto, opts = {})
29
+ data, _status_code, _headers = register_payment_request_using_post_with_http_info(authorization, payment_request_req_dto, opts)
30
+ data
31
+ end
32
+
33
+ # Registro de solicitud de pagos
34
+ # 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.
35
+ # @param authorization Header para token
36
+ # @param payment_request_req_dto Información de la solicitud de pagos
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(PaymentRequestResponse, Fixnum, Hash)>] PaymentRequestResponse data, response status code and response headers
39
+ def register_payment_request_using_post_with_http_info(authorization, payment_request_req_dto, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: SolicitudDePagosApi.register_payment_request_using_post ...'
42
+ end
43
+ # verify the required parameter 'authorization' is set
44
+ if @api_client.config.client_side_validation && authorization.nil?
45
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling SolicitudDePagosApi.register_payment_request_using_post"
46
+ end
47
+ # verify the required parameter 'payment_request_req_dto' is set
48
+ if @api_client.config.client_side_validation && payment_request_req_dto.nil?
49
+ fail ArgumentError, "Missing the required parameter 'payment_request_req_dto' when calling SolicitudDePagosApi.register_payment_request_using_post"
50
+ end
51
+ # resource path
52
+ local_var_path = '/payment-request'
53
+
54
+ # query parameters
55
+ query_params = {}
56
+
57
+ # header parameters
58
+ header_params = {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
+ # HTTP header 'Content-Type'
62
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
63
+ header_params[:'Authorization'] = authorization
64
+
65
+ # form parameters
66
+ form_params = {}
67
+
68
+ # http body (model)
69
+ post_body = @api_client.object_to_http_body(payment_request_req_dto)
70
+ auth_names = []
71
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
72
+ :header_params => header_params,
73
+ :query_params => query_params,
74
+ :form_params => form_params,
75
+ :body => post_body,
76
+ :auth_names => auth_names,
77
+ :return_type => 'PaymentRequestResponse')
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: SolicitudDePagosApi#register_payment_request_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+ end
84
+ end