khipu-api-client 2.7.2 → 2.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/khipu-api-client-2.7.2.gem +0 -0
- data/lib/khipu-api-client/api/payment_methods_api.rb +66 -0
- data/lib/khipu-api-client/api/payments_api.rb +57 -0
- data/lib/khipu-api-client/api/receivers_api.rb +12 -0
- data/lib/khipu-api-client/api_client.rb +5 -3
- data/lib/khipu-api-client/models/base_object.rb +3 -2
- data/lib/khipu-api-client/models/payment_method_item.rb +53 -0
- data/lib/khipu-api-client/models/payment_methods_response.rb +39 -0
- data/lib/khipu-api-client/models/payments_create_response.rb +25 -1
- data/lib/khipu-api-client/models/payments_response.rb +26 -2
- data/lib/khipu-api-client/version.rb +1 -1
- data/lib/khipu-api-client.rb +4 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 126dd99f32f90830048e5302ad6c1bb7733005c3abdcf57cc79f92fd7e489497
|
4
|
+
data.tar.gz: 95b515013e214599effae8a10cd30ccadc4f2b0fb9302498786cea998fb14d32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7703bea9114c5a794d8b4593b5a832d53088e7d595854c7b284c448eafc3db7fda330d798124018bf09fcaa8d2b0c1ecf8c2dedf93f7dd811be1867813e21e9
|
7
|
+
data.tar.gz: 75ae1e82c1544f3a57108b56c7f95dd4b001715f239d2a1872ed391c278c33345fcc4c000ab171072703901ddb82470f09e41f316431e4ffb1ce631fd546a71e
|
Binary file
|
@@ -0,0 +1,66 @@
|
|
1
|
+
require "uri"
|
2
|
+
|
3
|
+
module Khipu
|
4
|
+
class PaymentMethodsApi
|
5
|
+
attr_accessor :api_client
|
6
|
+
|
7
|
+
def initialize(api_client = nil)
|
8
|
+
@api_client = api_client || Configuration.api_client
|
9
|
+
end
|
10
|
+
|
11
|
+
# Obtener listado de medios de pago disponible para una cuenta de cobrador
|
12
|
+
# Obtiene el listado de medios de pago que pueden usarse para pagar a esta cuenta de cobro.
|
13
|
+
# @param id Identificador del merchant
|
14
|
+
# @param [Hash] opts the optional parameters
|
15
|
+
# @return [PaymentMethodsResponse]
|
16
|
+
def merchants_id_payment_methods_get(id, opts = {})
|
17
|
+
if Configuration.debugging
|
18
|
+
Configuration.logger.debug "Calling API: PaymentMethodsApi#merchants_id_payment_methods_get ..."
|
19
|
+
end
|
20
|
+
|
21
|
+
# verify the required parameter 'id' is set
|
22
|
+
fail "Missing the required parameter 'id' when calling merchants_id_payment_methods_get" if id.nil?
|
23
|
+
|
24
|
+
# resource path
|
25
|
+
path = "/merchants/{id}/paymentMethods".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
26
|
+
|
27
|
+
# query parameters
|
28
|
+
query_params = {}
|
29
|
+
|
30
|
+
# header parameters
|
31
|
+
header_params = {}
|
32
|
+
|
33
|
+
# HTTP header 'Accept' (if needed)
|
34
|
+
_header_accept = ['application/json']
|
35
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
36
|
+
|
37
|
+
# HTTP header 'Content-Type'
|
38
|
+
_header_content_type = ['application/x-www-form-urlencoded']
|
39
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
40
|
+
|
41
|
+
# form parameters
|
42
|
+
form_params = {}
|
43
|
+
|
44
|
+
# http body (model)
|
45
|
+
post_body = nil
|
46
|
+
|
47
|
+
|
48
|
+
auth_names = ['khipu']
|
49
|
+
result = @api_client.call_api(:GET, path,
|
50
|
+
:header_params => header_params,
|
51
|
+
:query_params => query_params,
|
52
|
+
:form_params => form_params,
|
53
|
+
:body => post_body,
|
54
|
+
:auth_names => auth_names,
|
55
|
+
:return_type => 'PaymentMethodsResponse')
|
56
|
+
if Configuration.debugging
|
57
|
+
Configuration.logger.debug "API called: PaymentMethodsApi#merchants_id_payment_methods_get. Result: #{result.inspect}"
|
58
|
+
end
|
59
|
+
return result
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
@@ -84,6 +84,9 @@ module Khipu
|
|
84
84
|
# @option opts [String] :responsible_user_email Correo electrónico del responsable de este cobro, debe corresponder a un usuario khipu con permisos para cobrar usando esta cuenta de cobro
|
85
85
|
# @option opts [String] :fixed_payer_personal_identifier Identificador personal. Si se especifica, solo podrá ser pagado usando ese identificador
|
86
86
|
# @option opts [Float] :integrator_fee Comisión para el integrador. Sólo es válido si la cuenta de cobro tiene una cuenta de integrador asociada
|
87
|
+
# @option opts [BOOLEAN] :collect_account_uuid Para cuentas de cobro con más cuenta propia. Permite elegir la cuenta donde debe ocurrir la transferencia.
|
88
|
+
# @option opts [String] :confirm_timeout_date Fecha de rendición del cobro. Es también la fecha final para poder reembolsar el cobro. Formato ISO-8601. Ej: 2017-03-01T13:00:00Z
|
89
|
+
# @option opts [String] :mandatory_payment_method Si se especifica, el cobro sólo se podrá pagar utilizando ese medio de pago. El valor para el campo de obtiene consultando el endpoint 'Consulta medios de pago disponibles'.
|
87
90
|
# @return [PaymentsCreateResponse]
|
88
91
|
def payments_post(subject, currency, amount, opts = {})
|
89
92
|
if Configuration.debugging
|
@@ -139,6 +142,9 @@ module Khipu
|
|
139
142
|
form_params["responsible_user_email"] = opts[:'responsible_user_email'] if opts[:'responsible_user_email']
|
140
143
|
form_params["fixed_payer_personal_identifier"] = opts[:'fixed_payer_personal_identifier'] if opts[:'fixed_payer_personal_identifier']
|
141
144
|
form_params["integrator_fee"] = opts[:'integrator_fee'] if opts[:'integrator_fee']
|
145
|
+
form_params["collect_account_uuid"] = opts[:'collect_account_uuid'] if opts[:'collect_account_uuid']
|
146
|
+
form_params["confirm_timeout_date"] = opts[:'confirm_timeout_date'] if opts[:'confirm_timeout_date']
|
147
|
+
form_params["mandatory_payment_method"] = opts[:'mandatory_payment_method'] if opts[:'mandatory_payment_method']
|
142
148
|
|
143
149
|
# http body (model)
|
144
150
|
post_body = nil
|
@@ -260,6 +266,57 @@ module Khipu
|
|
260
266
|
return result
|
261
267
|
end
|
262
268
|
|
269
|
+
# Confirmar el pago.
|
270
|
+
# Al confirmar el pago, este será rendido al día siguiente.
|
271
|
+
# @param id Identificador del pago
|
272
|
+
# @param [Hash] opts the optional parameters
|
273
|
+
# @return [SuccessResponse]
|
274
|
+
def payments_id_confirm_post(id, opts = {})
|
275
|
+
if Configuration.debugging
|
276
|
+
Configuration.logger.debug "Calling API: PaymentsApi#payments_id_confirm_post ..."
|
277
|
+
end
|
278
|
+
|
279
|
+
# verify the required parameter 'id' is set
|
280
|
+
fail "Missing the required parameter 'id' when calling payments_id_confirm_post" if id.nil?
|
281
|
+
|
282
|
+
# resource path
|
283
|
+
path = "/payments/{id}/confirm".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
284
|
+
|
285
|
+
# query parameters
|
286
|
+
query_params = {}
|
287
|
+
|
288
|
+
# header parameters
|
289
|
+
header_params = {}
|
290
|
+
|
291
|
+
# HTTP header 'Accept' (if needed)
|
292
|
+
_header_accept = ['application/json']
|
293
|
+
_header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result
|
294
|
+
|
295
|
+
# HTTP header 'Content-Type'
|
296
|
+
_header_content_type = ['application/x-www-form-urlencoded']
|
297
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type)
|
298
|
+
|
299
|
+
# form parameters
|
300
|
+
form_params = {}
|
301
|
+
|
302
|
+
# http body (model)
|
303
|
+
post_body = nil
|
304
|
+
|
305
|
+
|
306
|
+
auth_names = ['khipu']
|
307
|
+
result = @api_client.call_api(:POST, path,
|
308
|
+
:header_params => header_params,
|
309
|
+
:query_params => query_params,
|
310
|
+
:form_params => form_params,
|
311
|
+
:body => post_body,
|
312
|
+
:auth_names => auth_names,
|
313
|
+
:return_type => 'SuccessResponse')
|
314
|
+
if Configuration.debugging
|
315
|
+
Configuration.logger.debug "API called: PaymentsApi#payments_id_confirm_post. Result: #{result.inspect}"
|
316
|
+
end
|
317
|
+
return result
|
318
|
+
end
|
319
|
+
|
263
320
|
# Reembolsar total o parcialmente un pago
|
264
321
|
# Reembolsa total o parcialmente el monto de un pago. Esta operación solo se puede realizar en los comercios que recauden en cuenta khipu y antes de la rendición de los fondos correspondientes.
|
265
322
|
# @param id Identificador del pago
|
@@ -26,6 +26,12 @@ module Khipu
|
|
26
26
|
# @param contact_email Correo electrónico del contacto del cobrador.
|
27
27
|
# @param contact_phone Teléfono del contacto del cobrador.
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
|
+
# @option opts [String] :bank_account_bank_id Identificador del banco.
|
30
|
+
# @option opts [String] :bank_account_identifier Identificador personal del dueño de la cuenta de banco.
|
31
|
+
# @option opts [String] :bank_account_name Nombre de la cuenta de banco.
|
32
|
+
# @option opts [String] :bank_account_number Número de la cuenta en el banco.
|
33
|
+
# @option opts [String] :notify_url URL por omisión para el webservice donde se notificará el pago.
|
34
|
+
# @option opts [String] :rendition_url URL para el webservice donde se notificará la rendición.
|
29
35
|
# @return [ReceiversCreateResponse]
|
30
36
|
def receivers_post(admin_first_name, admin_last_name, admin_email, country_code, business_identifier, business_category, business_name, business_phone, business_address_line_1, business_address_line_2, business_address_line_3, contact_full_name, contact_job_title, contact_email, contact_phone, opts = {})
|
31
37
|
if Configuration.debugging
|
@@ -111,6 +117,12 @@ module Khipu
|
|
111
117
|
form_params["contact_job_title"] = contact_job_title
|
112
118
|
form_params["contact_email"] = contact_email
|
113
119
|
form_params["contact_phone"] = contact_phone
|
120
|
+
form_params["bank_account_bank_id"] = opts[:'bank_account_bank_id'] if opts[:'bank_account_bank_id']
|
121
|
+
form_params["bank_account_identifier"] = opts[:'bank_account_identifier'] if opts[:'bank_account_identifier']
|
122
|
+
form_params["bank_account_name"] = opts[:'bank_account_name'] if opts[:'bank_account_name']
|
123
|
+
form_params["bank_account_number"] = opts[:'bank_account_number'] if opts[:'bank_account_number']
|
124
|
+
form_params["notify_url"] = opts[:'notify_url'] if opts[:'notify_url']
|
125
|
+
form_params["rendition_url"] = opts[:'rendition_url'] if opts[:'rendition_url']
|
114
126
|
|
115
127
|
# http body (model)
|
116
128
|
post_body = nil
|
@@ -65,7 +65,7 @@ module Khipu
|
|
65
65
|
form_params = opts[:form_params] || {}
|
66
66
|
|
67
67
|
|
68
|
-
update_params_for_auth! @host, path, http_method, header_params, query_params, form_params, opts[:auth_names]
|
68
|
+
update_params_for_auth! @host, path, http_method, header_params, query_params, form_params, opts[:auth_names], opts[:body]
|
69
69
|
|
70
70
|
|
71
71
|
req_opts = {
|
@@ -209,7 +209,7 @@ module Khipu
|
|
209
209
|
end
|
210
210
|
|
211
211
|
# Update hearder and query params based on authentication settings.
|
212
|
-
def update_params_for_auth!(host, path, http_method, header_params, query_params, form_params, auth_names)
|
212
|
+
def update_params_for_auth!(host, path, http_method, header_params, query_params, form_params, auth_names, body)
|
213
213
|
Array(auth_names).each do |auth_name|
|
214
214
|
if auth_name == "khipu"
|
215
215
|
params = query_params.merge(form_params)
|
@@ -224,7 +224,9 @@ module Khipu
|
|
224
224
|
encoded.keys.sort.each do |key|
|
225
225
|
to_sign += "&#{key}=" + encoded[key]
|
226
226
|
end
|
227
|
-
|
227
|
+
if !body.nil? && header_params['Content-Type']=='application/json'
|
228
|
+
to_sign += "&" + body
|
229
|
+
end
|
228
230
|
if Configuration.debugging
|
229
231
|
Configuration.logger.debug "encoded params: #{encoded}"
|
230
232
|
Configuration.logger.debug "string to sign: #{to_sign}"
|
@@ -60,7 +60,8 @@ module Khipu
|
|
60
60
|
# return the object in the form of hash
|
61
61
|
def to_hash
|
62
62
|
hash = {}
|
63
|
-
self.class.attribute_map.
|
63
|
+
attributes = self.class.attribute_map.sort_by {|key,value| key}
|
64
|
+
attributes.each { |attr, param|
|
64
65
|
value = self.send(attr)
|
65
66
|
next if value.nil?
|
66
67
|
if value.is_a?(Array)
|
@@ -68,7 +69,7 @@ module Khipu
|
|
68
69
|
else
|
69
70
|
hash[param] = _to_hash(value)
|
70
71
|
end
|
71
|
-
|
72
|
+
}
|
72
73
|
hash
|
73
74
|
end
|
74
75
|
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module Khipu
|
2
|
+
#
|
3
|
+
class PaymentMethodItem < BaseObject
|
4
|
+
attr_accessor :id, :name, :logo_url
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
# Identificador del medio de pago
|
10
|
+
:'id' => :'id',
|
11
|
+
|
12
|
+
# Nombre del medio de pago
|
13
|
+
:'name' => :'name',
|
14
|
+
|
15
|
+
# URL del logo sugerido para mostrar
|
16
|
+
:'logo_url' => :'logo_url'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'id' => :'String',
|
25
|
+
:'name' => :'String',
|
26
|
+
:'logo_url' => :'String'
|
27
|
+
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
36
|
+
|
37
|
+
|
38
|
+
if attributes[:'id']
|
39
|
+
self.id = attributes[:'id']
|
40
|
+
end
|
41
|
+
|
42
|
+
if attributes[:'name']
|
43
|
+
self.name = attributes[:'name']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'logo_url']
|
47
|
+
self.logo_url = attributes[:'logo_url']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module Khipu
|
2
|
+
#
|
3
|
+
class PaymentMethodsResponse < BaseObject
|
4
|
+
attr_accessor :payment_methods
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'payment_methods' => :'paymentMethods'
|
11
|
+
|
12
|
+
}
|
13
|
+
end
|
14
|
+
|
15
|
+
# attribute type
|
16
|
+
def self.swagger_types
|
17
|
+
{
|
18
|
+
:'payment_methods' => :'Array<PaymentMethodItem>'
|
19
|
+
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
def initialize(attributes = {})
|
24
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
25
|
+
|
26
|
+
# convert string to symbol for hash key
|
27
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
28
|
+
|
29
|
+
|
30
|
+
if attributes[:'paymentMethods']
|
31
|
+
if (value = attributes[:'paymentMethods']).is_a?(Array)
|
32
|
+
self.payment_methods = value
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Khipu
|
2
2
|
#
|
3
3
|
class PaymentsCreateResponse < BaseObject
|
4
|
-
attr_accessor :payment_id, :payment_url, :simplified_transfer_url, :transfer_url, :app_url, :ready_for_terminal
|
4
|
+
attr_accessor :payment_id, :payment_url, :simplified_transfer_url, :transfer_url, :webpay_url, :hites_url, :payme_url, :app_url, :ready_for_terminal
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -18,6 +18,15 @@ module Khipu
|
|
18
18
|
# URL de pago normal
|
19
19
|
:'transfer_url' => :'transfer_url',
|
20
20
|
|
21
|
+
# URL de pago usando Webpay
|
22
|
+
:'webpay_url' => :'webpay_url',
|
23
|
+
|
24
|
+
# URL de pago usando Hites
|
25
|
+
:'hites_url' => :'hites_url',
|
26
|
+
|
27
|
+
# URL de pago usando Hites
|
28
|
+
:'payme_url' => :'payme_url',
|
29
|
+
|
21
30
|
# URL para invocar el pago desde un dispositivo móvil usando la APP de khipu
|
22
31
|
:'app_url' => :'app_url',
|
23
32
|
|
@@ -34,6 +43,9 @@ module Khipu
|
|
34
43
|
:'payment_url' => :'String',
|
35
44
|
:'simplified_transfer_url' => :'String',
|
36
45
|
:'transfer_url' => :'String',
|
46
|
+
:'webpay_url' => :'String',
|
47
|
+
:'hites_url' => :'String',
|
48
|
+
:'payme_url' => :'String',
|
37
49
|
:'app_url' => :'String',
|
38
50
|
:'ready_for_terminal' => :'BOOLEAN'
|
39
51
|
|
@@ -63,6 +75,18 @@ module Khipu
|
|
63
75
|
self.transfer_url = attributes[:'transfer_url']
|
64
76
|
end
|
65
77
|
|
78
|
+
if attributes[:'webpay_url']
|
79
|
+
self.webpay_url = attributes[:'webpay_url']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes[:'hites_url']
|
83
|
+
self.hites_url = attributes[:'hites_url']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes[:'payme_url']
|
87
|
+
self.payme_url = attributes[:'payme_url']
|
88
|
+
end
|
89
|
+
|
66
90
|
if attributes[:'app_url']
|
67
91
|
self.app_url = attributes[:'app_url']
|
68
92
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Khipu
|
2
2
|
#
|
3
3
|
class PaymentsResponse < BaseObject
|
4
|
-
attr_accessor :payment_id, :payment_url, :simplified_transfer_url, :transfer_url, :app_url, :ready_for_terminal, :notification_token, :receiver_id, :conciliation_date, :subject, :amount, :currency, :status, :status_detail, :body, :picture_url, :receipt_url, :return_url, :cancel_url, :notify_url, :notify_api_version, :expires_date, :attachment_urls, :bank, :bank_id, :payer_name, :payer_email, :personal_identifier, :bank_account_number, :out_of_date_conciliation, :transaction_id, :custom, :responsible_user_email, :send_reminders, :send_email, :payment_method
|
4
|
+
attr_accessor :payment_id, :payment_url, :simplified_transfer_url, :transfer_url, :webpay_url, :hites_url, :payme_url, :app_url, :ready_for_terminal, :notification_token, :receiver_id, :conciliation_date, :subject, :amount, :currency, :status, :status_detail, :body, :picture_url, :receipt_url, :return_url, :cancel_url, :notify_url, :notify_api_version, :expires_date, :attachment_urls, :bank, :bank_id, :payer_name, :payer_email, :personal_identifier, :bank_account_number, :out_of_date_conciliation, :transaction_id, :custom, :responsible_user_email, :send_reminders, :send_email, :payment_method
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
@@ -18,6 +18,15 @@ module Khipu
|
|
18
18
|
# URL de pago normal
|
19
19
|
:'transfer_url' => :'transfer_url',
|
20
20
|
|
21
|
+
# URL de pago con Webpay
|
22
|
+
:'webpay_url' => :'webpay_url',
|
23
|
+
|
24
|
+
# URL de pago con Hites
|
25
|
+
:'hites_url' => :'hites_url',
|
26
|
+
|
27
|
+
# URL de pago con Hites
|
28
|
+
:'payme_url' => :'payme_url',
|
29
|
+
|
21
30
|
# URL para invocar el pago desde un dispositivo móvil usando la APP de khipu
|
22
31
|
:'app_url' => :'app_url',
|
23
32
|
|
@@ -36,7 +45,7 @@ module Khipu
|
|
36
45
|
# Motivo del pago
|
37
46
|
:'subject' => :'subject',
|
38
47
|
|
39
|
-
#
|
48
|
+
# Monto del pago, sin separador de miles y usando '.' como separador de decimales.
|
40
49
|
:'amount' => :'amount',
|
41
50
|
|
42
51
|
# El código de moneda en formato ISO-4217
|
@@ -124,6 +133,9 @@ module Khipu
|
|
124
133
|
:'payment_url' => :'String',
|
125
134
|
:'simplified_transfer_url' => :'String',
|
126
135
|
:'transfer_url' => :'String',
|
136
|
+
:'webpay_url' => :'String',
|
137
|
+
:'hites_url' => :'String',
|
138
|
+
:'payme_url' => :'String',
|
127
139
|
:'app_url' => :'String',
|
128
140
|
:'ready_for_terminal' => :'BOOLEAN',
|
129
141
|
:'notification_token' => :'String',
|
@@ -183,6 +195,18 @@ module Khipu
|
|
183
195
|
self.transfer_url = attributes[:'transfer_url']
|
184
196
|
end
|
185
197
|
|
198
|
+
if attributes[:'webpay_url']
|
199
|
+
self.webpay_url = attributes[:'webpay_url']
|
200
|
+
end
|
201
|
+
|
202
|
+
if attributes[:'hites_url']
|
203
|
+
self.hites_url = attributes[:'hites_url']
|
204
|
+
end
|
205
|
+
|
206
|
+
if attributes[:'payme_url']
|
207
|
+
self.payme_url = attributes[:'payme_url']
|
208
|
+
end
|
209
|
+
|
186
210
|
if attributes[:'app_url']
|
187
211
|
self.app_url = attributes[:'app_url']
|
188
212
|
end
|
data/lib/khipu-api-client.rb
CHANGED
@@ -11,6 +11,8 @@ require 'khipu-api-client/models/payments_create_response'
|
|
11
11
|
require 'khipu-api-client/models/receivers_create_response'
|
12
12
|
require 'khipu-api-client/models/banks_response'
|
13
13
|
require 'khipu-api-client/models/bank_item'
|
14
|
+
require 'khipu-api-client/models/payment_methods_response'
|
15
|
+
require 'khipu-api-client/models/payment_method_item'
|
14
16
|
require 'khipu-api-client/models/success_response'
|
15
17
|
require 'khipu-api-client/models/authorization_error'
|
16
18
|
require 'khipu-api-client/models/service_error'
|
@@ -18,9 +20,10 @@ require 'khipu-api-client/models/validation_error'
|
|
18
20
|
require 'khipu-api-client/models/error_item'
|
19
21
|
|
20
22
|
# APIs
|
23
|
+
require 'khipu-api-client/api/receivers_api'
|
21
24
|
require 'khipu-api-client/api/banks_api'
|
22
25
|
require 'khipu-api-client/api/payments_api'
|
23
|
-
require 'khipu-api-client/api/
|
26
|
+
require 'khipu-api-client/api/payment_methods_api'
|
24
27
|
|
25
28
|
module Khipu
|
26
29
|
class << self
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: khipu-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- khipu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -203,9 +203,11 @@ files:
|
|
203
203
|
- khipu-api-client-2.5.1.gem
|
204
204
|
- khipu-api-client-2.7.0.gem
|
205
205
|
- khipu-api-client-2.7.1.gem
|
206
|
+
- khipu-api-client-2.7.2.gem
|
206
207
|
- khipu-api-client.gemspec
|
207
208
|
- lib/khipu-api-client.rb
|
208
209
|
- lib/khipu-api-client/api/banks_api.rb
|
210
|
+
- lib/khipu-api-client/api/payment_methods_api.rb
|
209
211
|
- lib/khipu-api-client/api/payments_api.rb
|
210
212
|
- lib/khipu-api-client/api/receivers_api.rb
|
211
213
|
- lib/khipu-api-client/api_client.rb
|
@@ -216,6 +218,8 @@ files:
|
|
216
218
|
- lib/khipu-api-client/models/banks_response.rb
|
217
219
|
- lib/khipu-api-client/models/base_object.rb
|
218
220
|
- lib/khipu-api-client/models/error_item.rb
|
221
|
+
- lib/khipu-api-client/models/payment_method_item.rb
|
222
|
+
- lib/khipu-api-client/models/payment_methods_response.rb
|
219
223
|
- lib/khipu-api-client/models/payments_create_response.rb
|
220
224
|
- lib/khipu-api-client/models/payments_response.rb
|
221
225
|
- lib/khipu-api-client/models/receivers_create_response.rb
|
@@ -243,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
247
|
version: '0'
|
244
248
|
requirements: []
|
245
249
|
rubyforge_project:
|
246
|
-
rubygems_version: 2.6
|
250
|
+
rubygems_version: 2.7.6
|
247
251
|
signing_key:
|
248
252
|
specification_version: 4
|
249
253
|
summary: A ruby wrapper for the khipu APIs
|