ige_isb_api 1.2.3 → 1.2.4

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: 0f74d3de1a8bc253f729b9820e02206410938052
4
- data.tar.gz: cf0fa284951f2b851bf6b2e2288735daa305337e
3
+ metadata.gz: 66b6249ab9a51b7d56fcd4d50a6a97edd3e22f0a
4
+ data.tar.gz: ef90767979373660f08a94d32322385c5868346c
5
5
  SHA512:
6
- metadata.gz: 2ba61dcd2aa2e2817d29d3e76aaeb3d37861b24652e51ec08ebf55c954adce51605e862839fe2de8458fae774ff377dbc30a9812a562bc1358d88af2134fd7a7
7
- data.tar.gz: 3254ddf548aaf15beebd37955d181980d16bde7422c7e476b9f3b1d2fb8f10a7368edce34b382efb15a2037ec7336f4f6fbbea8fc10c8ba15b87fc30c88ddb58
6
+ metadata.gz: 0c39c9464aff32fd085784b68c775f572b510036697ca0bf83c94c736eeebda350b09daa0b8b3a1ccb17f45fafa1d2d486b39b64b2345b986a3ad0990707c632
7
+ data.tar.gz: 23714825a1d52d939cc943f12a91cdfffe360f819f56b0b3bb0239d41653f30eced69f8e5fe6b963e3eda6ab0e2d696c280299cdb7a97f2d397967f852358269
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ige_isb_api (1.2.2)
4
+ ige_isb_api (1.2.4)
5
5
  nokogiri (~> 1.6)
6
6
  rfc-822 (~> 0.4)
7
7
 
@@ -10,9 +10,9 @@ GEM
10
10
  specs:
11
11
  diff-lcs (1.2.5)
12
12
  dotenv (0.10.0)
13
- mini_portile (0.5.2)
14
- nokogiri (1.6.1)
15
- mini_portile (~> 0.5.0)
13
+ mini_portile (0.6.0)
14
+ nokogiri (1.6.3.1)
15
+ mini_portile (= 0.6.0)
16
16
  rake (10.1.1)
17
17
  rfc-822 (0.4.0)
18
18
  rspec (2.14.1)
data/README.md CHANGED
@@ -2,7 +2,7 @@ IGE's Wrapper for ISB APIs
2
2
  ==========================
3
3
 
4
4
  Ruby Wrapper for ISB's `User API Version 2.3`, as well as the documents
5
- `Integrating ISB HTML5 Games_v1.3` and `Integrating ISB Flash Games_v1.4` (available from ISB), and ISB Bonus API version 1.5.
5
+ `Integrating ISB HTML5 Games_v1.3` and `Integrating ISB Flash Games_v1.4` (available from ISB), and ISB Bonus API version 1.8.
6
6
 
7
7
  ## Usage
8
8
 
@@ -63,52 +63,69 @@ module IGE_ISB_API
63
63
  },
64
64
  'accept_bonus' => {
65
65
  'login' => {required: true, type: 'username'},
66
- 'id' => {required: true, type: 'int'}
66
+ 'id' => {required: true, type: 'int'},
67
+ 'nonce' => {required: false, type: 'string'}
67
68
  },
68
69
  'decline_bonus' => {
69
70
  'login' => {required: true, type: 'username'},
70
- 'id' => {required: true, type: 'int'}
71
+ 'id' => {required: true, type: 'int'},
72
+ 'nonce' => {required: false, type: 'string'}
71
73
  },
72
74
  'get_remaining_playthrough' => {
73
75
  'login' => {required: true, type: 'username'}
74
76
  },
75
77
  'remove_bonus_and_winnings_on_withdraw' => {
76
- 'login' => {required: true, type: 'username'}
78
+ 'login' => {required: true, type: 'username'},
79
+ 'nonce' => {required: false, type: 'string'}
77
80
  },
78
81
  'issue_bonus' => {
79
82
  'login' => {required: true, type: 'username'},
80
83
  'id_template' => {required: false, type: 'int'},
81
84
  'promo' => {required: false, type: 'string'},
82
- 'location' => {required: false, type: 'string', values: ['cert', 'certd']}
85
+ 'location' => {required: false, type: 'string', values: ['cert', 'certd']},
86
+ 'nonce' => {required: false, type: 'string'}
83
87
  },
84
88
  'cancel_bonus' => {
85
89
  'login' => {required: true, type: 'username'},
86
90
  'id_template' => {required: false, type: 'int'},
87
- 'comment' => {required: false, type: 'string'}
91
+ 'comment' => {required: false, type: 'string'},
92
+ 'nonce' => {required: false, type: 'string'}
88
93
  },
89
94
  'reset_bonus' => {
90
- 'login' => {required: true, type: 'username'}
95
+ 'login' => {required: true, type: 'username'},
96
+ 'nonce' => {required: false, type: 'string'}
91
97
  },
92
98
  'update_active_balance_current_value' => {
93
99
  'login' => {required: true, type: 'username'},
94
- 'deposit' => {required: true, type: 'currency'}
100
+ 'deposit' => {required: true, type: 'currency'},
101
+ 'nonce' => {required: false, type: 'string'}
95
102
  },
96
103
  'assign_certificate_to_player' => {
97
104
  'email' => {required: true, type: 'email', length: 50},
98
- 'certificate_name' => {required: true, type: 'string'}
105
+ 'certificate_name' => {required: true, type: 'string'},
106
+ 'nonce' => {required: false, type: 'string'}
99
107
  },
100
108
  'bonus_vip_points' => {
101
109
  'login' => {required: true, type: 'username'},
102
110
  'amount' => {required: true, type: 'currency'},
103
111
  'reason' => {required: false, type: 'string'},
104
- 'name' => {required: true, type: 'string'}
112
+ 'name' => {required: true, type: 'string'},
113
+ 'nonce' => {required: false, type: 'string'}
105
114
  },
106
115
  'generate_certificate' => {
107
- 'template_certificate_id' => {required: true, type: 'int'}
116
+ 'template_certificate_id' => {required: true, type: 'int'},
117
+ 'nonce' => {required: false, type: 'string'}
118
+ },
119
+ 'generate_bulk_certificate' => {
120
+ 'template_certificate_id' => {required: true, type: 'int'},
121
+ 'count' => {required: true, type: 'int'},
122
+ 'nonce' => {required: false, type: 'string'}
108
123
  },
109
124
  'generate_player_assigned_certificate' => {
110
125
  'login' => {required: true, type: 'username'},
111
- 'template_certificate_id' => {required: true, type: 'int'}
126
+ 'template_certificate_id' => {required: true, type: 'int'},
127
+ 'certificate_value' => {required: false, type: 'float'},
128
+ 'nonce' => {required: false, type: 'string'}
112
129
  },
113
130
  'get_template_id_by_name' => {
114
131
  'name' => {required: true, type: 'string'}
@@ -122,10 +139,6 @@ module IGE_ISB_API
122
139
  'login' => {required: true, type: 'username'},
123
140
  'casino_prefix' => {required: false, type: 'string'}
124
141
  },
125
- 'is_transaction_used' => {
126
- 'login' => {required: true, type: 'username'},
127
- 'transaction' => {required: true, type: 'string'}
128
- },
129
142
  'get_player_assigned_certificates' => {
130
143
  'login' => {required: true, type: 'username'},
131
144
  'promotion_code' => {required: false, type: 'string'},
@@ -135,14 +148,45 @@ module IGE_ISB_API
135
148
  },
136
149
  'delete_player_assigned_certificate' => {
137
150
  'login' => {required: true, type: 'username'},
138
- 'promotion_code' => {required: true, type: 'string'}
151
+ 'promotion_code' => {required: true, type: 'string'},
152
+ 'nonce' => {required: false, type: 'string'}
139
153
  },
140
154
  'delete_generated_certificate' => {
141
- 'promotion_code' => {required: true, type: 'string'}
155
+ 'promotion_code' => {required: true, type: 'string'},
156
+ 'nonce' => {required: false, type: 'string'}
142
157
  },
143
158
  'certificate_exists' => {
144
159
  'promotion_code' => {required: true, type: 'string'}
145
- }
160
+ },
161
+ 'allow_withdrawal' => {
162
+ 'login' => {required: true, type: 'username'}
163
+ },
164
+ 'is_transaction_used' => {
165
+ 'login' => {required: true, type: 'username'},
166
+ 'transaction' => {required: true, type: 'string'}
167
+ },
168
+ 'get_max_withdrawal' => {
169
+ 'login' => {required: true, type: 'username'}
170
+ },
171
+ 'issue_remote_bonus' => {
172
+ 'login' => {required: true, type: 'username'},
173
+ 'id_template' => {required: true, type: 'int'},
174
+ 'amount' => {required: false, type: 'currency'},
175
+ 'nonce' => {required: false, type: 'string'}
176
+ },
177
+ 'issue_batch_remote_bonus' => {
178
+ 'data' => {required: true, type: 'array'},
179
+ 'nonce' => {required: false, type: 'string'}
180
+ },
181
+ 'get_templates_info' => {
182
+ 'type' => {required: true, type: 'string', values: ['manual', 'automatic', 'remote']},
183
+ 'status' => {required: true, type: 'string', values: ['active', 'inactive', 'deleted']},
184
+ 'trigger' => {required: true, type: 'string', values: ['sign up', 'deposit', 'promotion code']}
185
+ },
186
+ 'redeem_threshold' => {
187
+ 'login' => {required: true, type: 'username'},
188
+ 'nonce' => {required: false, type: 'string'}
189
+ },
146
190
  }
147
191
 
148
192
  def initialize(command, params = {})
@@ -232,7 +276,11 @@ module IGE_ISB_API
232
276
  def validate_no_extra_fields(against)
233
277
  allowed_fields = against.keys
234
278
  self.params.each do |key, value|
279
+ if !allowed_fields.include?(key)
280
+ puts "allowed_fields=#{allowed_fields}, key=#{key}"
235
281
  raise InternalException, "Field #{key} is not supported" if !allowed_fields.include?(key)
282
+ end
283
+
236
284
  end
237
285
  end
238
286
 
@@ -73,7 +73,11 @@ module IGE_ISB_API
73
73
  def generate_certificate(opts = {})
74
74
  return get_response_for __method__.to_s, opts
75
75
  end
76
-
76
+
77
+ def generate_bulk_certificate(opts = {})
78
+ return get_response_for __method__.to_s, opts
79
+ end
80
+
77
81
  def generate_player_assigned_certificate(opts = {})
78
82
  return get_response_for __method__.to_s, opts
79
83
  end
@@ -89,11 +93,7 @@ module IGE_ISB_API
89
93
  def sum_bonuses(opts = {})
90
94
  return get_response_for __method__.to_s, opts
91
95
  end
92
-
93
- def is_transaction_used(opts = {})
94
- return get_response_for __method__.to_s, opts
95
- end
96
-
96
+
97
97
  def get_player_assigned_certificates(opts = {})
98
98
  return get_response_for __method__.to_s, opts
99
99
  end
@@ -109,7 +109,35 @@ module IGE_ISB_API
109
109
  def certificate_exists(opts = {})
110
110
  return get_response_for __method__.to_s, opts
111
111
  end
112
-
112
+
113
+ def allow_withdrawal(opts = {})
114
+ return get_response_for __method__.to_s, opts
115
+ end
116
+
117
+ def is_transaction_used(opts = {})
118
+ return get_response_for __method__.to_s, opts
119
+ end
120
+
121
+ def get_max_withdrawal(opts = {})
122
+ return get_response_for __method__.to_s, opts
123
+ end
124
+
125
+ def issue_remote_bonus(opts = {})
126
+ return get_response_for __method__.to_s, opts
127
+ end
128
+
129
+ def issue_batch_remote_bonus(opts = {})
130
+ return get_response_for __method__.to_s, opts
131
+ end
132
+
133
+ def get_templates_info(opts = {})
134
+ return get_response_for __method__.to_s, opts
135
+ end
136
+
137
+ def redeem_threshold(opts = {})
138
+ return get_response_for __method__.to_s, opts
139
+ end
140
+
113
141
  protected
114
142
 
115
143
  def get_response_for(a_command, opts = {})
@@ -7,7 +7,7 @@ module IGE_ISB_API
7
7
  DEBUGGING = (ENV['ISB_DEBUGGING'] == 'true')
8
8
 
9
9
  USER_API_VERSION = '2.3'
10
- BONUS_API_VERSION = '1.5'
10
+ BONUS_API_VERSION = '1.8'
11
11
  SEAMLESS_API_VERSION = '2.2.1'
12
12
 
13
13
  LICENSEE_ID = ENV['ISB_LICENSEE_ID'].to_i # issued by ISB
@@ -2,5 +2,5 @@
2
2
  #coding: utf-8
3
3
 
4
4
  module IGE_ISB_API
5
- VERSION = "1.2.3"
5
+ VERSION = "1.2.4"
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.3
4
+ version: 1.2.4
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-04-04 00:00:00.000000000 Z
14
+ date: 2014-09-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nokogiri
@@ -98,7 +98,7 @@ dependencies:
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0.10'
100
100
  description: Implements all of the features of the ISB USER API version 2.3, and BONUS
101
- API version 1.5.
101
+ API version 1.8.
102
102
  email:
103
103
  - davesag@gmail.com
104
104
  - roger.huang@excite.com