ige_isb_api 1.2.8 → 1.2.9
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 +4 -4
- data/Gemfile.lock +4 -4
- data/lib/ige_isb_api/constants.rb +1 -1
- data/lib/ige_isb_api/request.rb +14 -0
- data/lib/ige_isb_api/user_api.rb +16 -0
- data/lib/ige_isb_api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 222005729e7c4a55dede6cdab4916977b58fa632
|
4
|
+
data.tar.gz: d31712e8032840cde206ed869034aca712584fc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
16
|
-
nokogiri (1.6.
|
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.
|
27
|
+
rspec-mocks (2.99.3)
|
28
28
|
|
29
29
|
PLATFORMS
|
30
30
|
ruby
|
data/lib/ige_isb_api/request.rb
CHANGED
@@ -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
|
},
|
data/lib/ige_isb_api/user_api.rb
CHANGED
@@ -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)
|
data/lib/ige_isb_api/version.rb
CHANGED
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.
|
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:
|
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.
|
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
|