khipu-api-client 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 921ecdf7f73df0184edab322a2f6a92f9c8f2728
|
4
|
+
data.tar.gz: c789b369dbc547d31bcf3940316271d5c54efe51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 216e2b50d3011b2514cdc172e39bf9f28928ffb72ada0c04ae14497dc2f03931fcb1c681efc486ce1c6c3c6c36fe183e0ed1ab249b1ad48e46603f1494bc0c4d
|
7
|
+
data.tar.gz: be0aaee7971a357391de50117f4cd4e656d04a569ba9eaa8136e60097c6f29a2889be56887055995932d7d860bb30f3288fdb4775ab787bf25b3258fe02fc50d
|
@@ -24,7 +24,7 @@ module Khipu
|
|
24
24
|
def initialize(host = nil)
|
25
25
|
@host = host || Configuration.base_url
|
26
26
|
@format = 'json'
|
27
|
-
@user_agent = "khipu-api-ruby-client/#{VERSION}"
|
27
|
+
@user_agent = "khipu-api-ruby-client/#{VERSION}" + "|" + Configuration.platform + "/" + Configuration.platform_version
|
28
28
|
@default_headers = {
|
29
29
|
'Content-Type' => "application/#{@format.downcase}",
|
30
30
|
'User-Agent' => @user_agent
|
@@ -250,6 +250,7 @@ module Khipu
|
|
250
250
|
@default_headers['User-Agent'] = @user_agent
|
251
251
|
end
|
252
252
|
|
253
|
+
|
253
254
|
# Return Accept header based on an array of accepts provided.
|
254
255
|
# @param [Array] accepts array for Accept
|
255
256
|
# @return [String] the Accept header (e.g. application/json)
|
@@ -1,11 +1,14 @@
|
|
1
1
|
module Khipu
|
2
2
|
#
|
3
3
|
class BankItem < BaseObject
|
4
|
-
attr_accessor :name, :message, :min_amount, :type, :parent
|
4
|
+
attr_accessor :bank_id, :name, :message, :min_amount, :type, :parent
|
5
5
|
# attribute mapping from ruby-style variable name to JSON key
|
6
6
|
def self.attribute_map
|
7
7
|
{
|
8
8
|
|
9
|
+
#
|
10
|
+
:'bank_id' => :'bank_id',
|
11
|
+
|
9
12
|
#
|
10
13
|
:'name' => :'name',
|
11
14
|
|
@@ -27,6 +30,7 @@ module Khipu
|
|
27
30
|
# attribute type
|
28
31
|
def self.swagger_types
|
29
32
|
{
|
33
|
+
:'bank_id' => :'String',
|
30
34
|
:'name' => :'String',
|
31
35
|
:'message' => :'String',
|
32
36
|
:'min_amount' => :'Float',
|
@@ -43,6 +47,10 @@ module Khipu
|
|
43
47
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
44
48
|
|
45
49
|
|
50
|
+
if attributes[:'bank_id']
|
51
|
+
self.bank_id = attributes[:'bank_id']
|
52
|
+
end
|
53
|
+
|
46
54
|
if attributes[:'name']
|
47
55
|
self.name = attributes[:'name']
|
48
56
|
end
|
@@ -15,7 +15,7 @@ module Khipu
|
|
15
15
|
# attribute type
|
16
16
|
def self.swagger_types
|
17
17
|
{
|
18
|
-
:'banks' => :'BankItem'
|
18
|
+
:'banks' => :'Array<BankItem>'
|
19
19
|
|
20
20
|
}
|
21
21
|
end
|
@@ -28,7 +28,9 @@ module Khipu
|
|
28
28
|
|
29
29
|
|
30
30
|
if attributes[:'banks']
|
31
|
-
|
31
|
+
if (value = attributes[:'banks']).is_a?(Array)
|
32
|
+
self.banks = value
|
33
|
+
end
|
32
34
|
end
|
33
35
|
|
34
36
|
end
|
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.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- khipu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|