khipu-api-client 2.0.2 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a25c03af8f03c0b71855165dc5db00c253d4982
4
- data.tar.gz: eac6a1af342b5a329ff7c97aef9e5e59f3eb03ce
3
+ metadata.gz: 921ecdf7f73df0184edab322a2f6a92f9c8f2728
4
+ data.tar.gz: c789b369dbc547d31bcf3940316271d5c54efe51
5
5
  SHA512:
6
- metadata.gz: c28494755397cc950ae6012dd82bfacca4330b5e5008162ad55770750cf0fd7686cc1c6250bc92a9228341042f6fb20b533b35b486d05c8df62809cf64e810cb
7
- data.tar.gz: dbe7b583323b424d5ac1ae602461837bfafa5ed6a964b8c88967fd20b8ea15049b7aaaed9f5ebfe4cc2f3b70c2e8afc876872a0d334ee48109c4dcbfafcdb098
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)
@@ -95,6 +95,10 @@ module Khipu
95
95
 
96
96
  attr_accessor :receiver_id
97
97
 
98
+ attr_accessor :platform
99
+
100
+ attr_accessor :platform_version
101
+
98
102
  class << self
99
103
  def method_missing(method_name, *args, &block)
100
104
  config = Configuration.instance
@@ -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
- self.banks = attributes[:'banks']
31
+ if (value = attributes[:'banks']).is_a?(Array)
32
+ self.banks = value
33
+ end
32
34
  end
33
35
 
34
36
  end
@@ -1,3 +1,3 @@
1
1
  module Khipu
2
- VERSION = "2.0.2"
2
+ VERSION = "2.1.0"
3
3
  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.2
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-06 00:00:00.000000000 Z
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus