ige_isb_api 1.2.8 → 1.2.9

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: 2c5ebfec61f11280e80813048e108e988acd53b7
4
- data.tar.gz: 8c11aaa6794d150208bc6129578986c2b2175917
3
+ metadata.gz: 222005729e7c4a55dede6cdab4916977b58fa632
4
+ data.tar.gz: d31712e8032840cde206ed869034aca712584fc3
5
5
  SHA512:
6
- metadata.gz: f9cded44c2529ba648d47d7b7820d31b3464c65a190f344f0ac0c1e4f75fb9ac21ce99eee091b742420b8d9d8723ed2931f4e0ac53f79d64ef1f44adc0b73e9e
7
- data.tar.gz: 8ef15c6bb3081fb68106a62f2fa44d87e6c3e968f7524fd38c73ecb33ff7bc3a093eadef142270022060ce5d18f7db57d0fadf627f6a9269905769a18ef38bf6
6
+ metadata.gz: 375c9093b050e13f79b625fceca3d7cb058f1dea250304115fa0c3634152556ca1f40cbc370208ae544ed102c7845a23912aa65a3f0aa09ce7905cb4b3b5e1e8
7
+ data.tar.gz: f69329ce8f0a245d55bb296af8b8db243825b85421a74b537268c68f6e31d81f1e7aba4fed446fbecfd05fb7c09dfff225df30dba6e4d4034701ee451dae8e6c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ige_isb_api (1.2.8)
4
+ ige_isb_api (1.2.9)
5
5
  nokogiri (~> 1.6)
6
6
  rfc-822 (~> 0.4)
7
7
 
@@ -12,8 +12,8 @@ GEM
12
12
  dotenv (0.11.1)
13
13
  dotenv-deployment (~> 0.0.2)
14
14
  dotenv-deployment (0.0.2)
15
- mini_portile (0.6.1)
16
- nokogiri (1.6.5)
15
+ mini_portile (0.6.2)
16
+ nokogiri (1.6.6.2)
17
17
  mini_portile (~> 0.6.0)
18
18
  rake (10.4.2)
19
19
  rfc-822 (0.4.0)
@@ -24,7 +24,7 @@ GEM
24
24
  rspec-core (2.99.2)
25
25
  rspec-expectations (2.99.2)
26
26
  diff-lcs (>= 1.1.3, < 2.0)
27
- rspec-mocks (2.99.2)
27
+ rspec-mocks (2.99.3)
28
28
 
29
29
  PLATFORMS
30
30
  ruby
@@ -6,7 +6,7 @@ module IGE_ISB_API
6
6
 
7
7
  DEBUGGING = (ENV['ISB_DEBUGGING'] == 'true')
8
8
 
9
- USER_API_VERSION = '2.3'
9
+ USER_API_VERSION = '2.7'
10
10
  BONUS_API_VERSION = '1.8'
11
11
  SEAMLESS_API_VERSION = '2.2.1'
12
12
 
@@ -82,6 +82,20 @@ module IGE_ISB_API
82
82
  'pass' => {
83
83
  'newpassword' => {:required => true, :type => 'string', :length => 32}
84
84
  },
85
+ 'player_update' => {
86
+ 'email' => {:required => false, :type => 'email', :length => 140},
87
+ 'name' => {:required => false, :type => 'name', :length => 140},
88
+ 'firstname' => {:required => false, :type => 'name', :length => 140},
89
+ 'zip' => {:required => false, :type => 'string', :length => 10},
90
+ 'city' => {:required => false, :type => 'string', :length => 140},
91
+ 'phone' => {:required => false, :type => 'phone', :length => 32},
92
+ 'dob' => {:required => false, :type => 'datestring', :length => 10},
93
+ 'country' => {:required => false, :type => 'country'},
94
+ 'ip' => {:required => false, :type => 'ip4', :length => 32},
95
+ 'status' => {:required => false, :type => 'int', values: [0, 1, 2]},
96
+ 'carte' => {:required => true, :type => 'string', :length => 32}, # required
97
+ 'gender' => {:required => false, :type => 'int', values: [0, 1]}
98
+ },
85
99
  'get_vip_points' => {
86
100
  # nothing special
87
101
  },
@@ -295,6 +295,22 @@ module IGE_ISB_API
295
295
  return response
296
296
  end
297
297
 
298
+ # Each command has a label which is used by the casino to tag a group of interactions with ISB
299
+ # Additionally each transaction must include a unique transaction ID.
300
+ # the following options *must* be passed in.
301
+ def player_update(label = '', txid = 0, opts = {})
302
+ validate_params!(label, txid)
303
+ raise ArgumentError, "Missing options." if opts.empty?
304
+ params = { idrequest: label,
305
+ username: options[:username],
306
+ password: options[:password],
307
+ txid: txid}.merge(opts).merge({ command: 'player_update'})
308
+ request = IGE_ISB_API.request(params)
309
+ resp = request.send
310
+ response = JSON.parse(resp.body)
311
+ return response
312
+ end
313
+
298
314
  # Each command has a label which is used by the casino to tag a group of interactions with ISB
299
315
  # Additionally each transaction must include a unique transaction ID.
300
316
  def get_vip_points(label = '', txid = 0)
@@ -2,5 +2,5 @@
2
2
  #coding: utf-8
3
3
 
4
4
  module IGE_ISB_API
5
- VERSION = "1.2.8"
5
+ VERSION = "1.2.9"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ige_isb_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Sag
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-12-09 00:00:00.000000000 Z
14
+ date: 2015-03-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nokogiri
@@ -97,7 +97,7 @@ dependencies:
97
97
  - - "~>"
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0.10'
100
- description: Implements all of the features of the ISB USER API version 2.3, and BONUS
100
+ description: Implements all of the features of the ISB USER API version 2.7, and BONUS
101
101
  API version 1.8.
102
102
  email:
103
103
  - davesag@gmail.com