kaznachey_payments 0.9.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile +9 -0
- data/LICENSE.txt +22 -0
- data/README.md +50 -0
- data/Rakefile +2 -0
- data/doc/HttpHelper.html +221 -0
- data/doc/KaznacheyConfigurations.html +132 -0
- data/doc/KaznacheyPayments.html +117 -0
- data/doc/KaznacheyPaymentsApi.html +294 -0
- data/doc/Md5Helper.html +189 -0
- data/doc/PaySystem.html +430 -0
- data/doc/PaymentDetails.html +900 -0
- data/doc/Product.html +480 -0
- data/doc/ReqCommonObject.html +274 -0
- data/doc/ReqCreatePayment.html +534 -0
- data/doc/ReqGetMerchantInfo.html +202 -0
- data/doc/RespCommonObject.html +274 -0
- data/doc/RespCreatePayment.html +303 -0
- data/doc/RespMerchantInfo.html +387 -0
- data/doc/RespPaymentStatus.html +689 -0
- data/doc/_index.html +212 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +110 -0
- data/doc/file_list.html +60 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +126 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +333 -0
- data/doc/top-level-namespace.html +114 -0
- data/lib/ApiObjects/Requests/payment_details.rb +34 -0
- data/lib/ApiObjects/Requests/product.rb +16 -0
- data/lib/ApiObjects/Requests/req_common_object.rb +6 -0
- data/lib/ApiObjects/Requests/req_create_payment.rb +42 -0
- data/lib/ApiObjects/Requests/req_get_merchant_info.rb +11 -0
- data/lib/ApiObjects/Responses/pay_system.rb +19 -0
- data/lib/ApiObjects/Responses/resp_common_object.rb +6 -0
- data/lib/ApiObjects/Responses/resp_create_payment.rb +15 -0
- data/lib/ApiObjects/Responses/resp_merchant_info.rb +26 -0
- data/lib/ApiObjects/Responses/resp_payment_status.rb +43 -0
- data/lib/ApiObjects/kaznachey_configurations.rb +9 -0
- data/lib/Helpers/http_helper.rb +26 -0
- data/lib/Helpers/md5_helper.rb +7 -0
- data/lib/kaznachey_payments/version.rb +3 -0
- data/lib/kaznachey_payments_api.rb +32 -0
- data/test/test_get_merchant_info.rb +55 -0
- metadata +95 -0
@@ -0,0 +1,274 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: ReqCommonObject
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!ReqCommonObject.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index (R)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">ReqCommonObject</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: ReqCommonObject
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">ReqCommonObject</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/ApiObjects/Requests/req_common_object.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
<div id="subclasses">
|
103
|
+
<h2>Direct Known Subclasses</h2>
|
104
|
+
<p class="children"><span class='object_link'><a href="ReqCreatePayment.html" title="ReqCreatePayment (class)">ReqCreatePayment</a></span>, <span class='object_link'><a href="ReqGetMerchantInfo.html" title="ReqGetMerchantInfo (class)">ReqGetMerchantInfo</a></span></p>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
111
|
+
<ul class="summary">
|
112
|
+
|
113
|
+
<li class="public ">
|
114
|
+
<span class="summary_signature">
|
115
|
+
|
116
|
+
<a href="#MerchantGuid-instance_method" title="#MerchantGuid (instance method)">- (Object) <strong>MerchantGuid</strong> </a>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
</span>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<span class="summary_desc"><div class='inline'>
|
134
|
+
<p>Returns the value of attribute MerchantGuid.</p>
|
135
|
+
</div></span>
|
136
|
+
|
137
|
+
</li>
|
138
|
+
|
139
|
+
|
140
|
+
<li class="public ">
|
141
|
+
<span class="summary_signature">
|
142
|
+
|
143
|
+
<a href="#Signature-instance_method" title="#Signature (instance method)">- (Object) <strong>Signature</strong> </a>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
</span>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<span class="summary_desc"><div class='inline'>
|
161
|
+
<p>Generated in each request by GenerateSign method.</p>
|
162
|
+
</div></span>
|
163
|
+
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
167
|
+
</ul>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
<div id="instance_attr_details" class="attr_details">
|
174
|
+
<h2>Instance Attribute Details</h2>
|
175
|
+
|
176
|
+
|
177
|
+
<span id="MerchantGuid=-instance_method"></span>
|
178
|
+
<div class="method_details first">
|
179
|
+
<h3 class="signature first" id="MerchantGuid-instance_method">
|
180
|
+
|
181
|
+
- (<tt>Object</tt>) <strong>MerchantGuid</strong>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</h3><div class="docstring">
|
188
|
+
<div class="discussion">
|
189
|
+
|
190
|
+
<p>Returns the value of attribute MerchantGuid</p>
|
191
|
+
|
192
|
+
|
193
|
+
</div>
|
194
|
+
</div>
|
195
|
+
<div class="tags">
|
196
|
+
|
197
|
+
|
198
|
+
</div><table class="source_code">
|
199
|
+
<tr>
|
200
|
+
<td>
|
201
|
+
<pre class="lines">
|
202
|
+
|
203
|
+
|
204
|
+
5
|
205
|
+
6
|
206
|
+
7</pre>
|
207
|
+
</td>
|
208
|
+
<td>
|
209
|
+
<pre class="code"><span class="info file"># File 'lib/ApiObjects/Requests/req_common_object.rb', line 5</span>
|
210
|
+
|
211
|
+
<span class='kw'>def</span> <span class='const'>MerchantGuid</span>
|
212
|
+
<span class='ivar'>@MerchantGuid</span>
|
213
|
+
<span class='kw'>end</span></pre>
|
214
|
+
</td>
|
215
|
+
</tr>
|
216
|
+
</table>
|
217
|
+
</div>
|
218
|
+
|
219
|
+
|
220
|
+
<span id="Signature=-instance_method"></span>
|
221
|
+
<div class="method_details ">
|
222
|
+
<h3 class="signature " id="Signature-instance_method">
|
223
|
+
|
224
|
+
- (<tt>Object</tt>) <strong>Signature</strong>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
</h3><div class="docstring">
|
231
|
+
<div class="discussion">
|
232
|
+
|
233
|
+
<p>Generated in each request by GenerateSign method</p>
|
234
|
+
|
235
|
+
|
236
|
+
</div>
|
237
|
+
</div>
|
238
|
+
<div class="tags">
|
239
|
+
|
240
|
+
|
241
|
+
</div><table class="source_code">
|
242
|
+
<tr>
|
243
|
+
<td>
|
244
|
+
<pre class="lines">
|
245
|
+
|
246
|
+
|
247
|
+
3
|
248
|
+
4
|
249
|
+
5</pre>
|
250
|
+
</td>
|
251
|
+
<td>
|
252
|
+
<pre class="code"><span class="info file"># File 'lib/ApiObjects/Requests/req_common_object.rb', line 3</span>
|
253
|
+
|
254
|
+
<span class='kw'>def</span> <span class='const'>Signature</span>
|
255
|
+
<span class='ivar'>@Signature</span>
|
256
|
+
<span class='kw'>end</span></pre>
|
257
|
+
</td>
|
258
|
+
</tr>
|
259
|
+
</table>
|
260
|
+
</div>
|
261
|
+
|
262
|
+
</div>
|
263
|
+
|
264
|
+
|
265
|
+
</div>
|
266
|
+
|
267
|
+
<div id="footer">
|
268
|
+
Generated on Wed Dec 3 14:19:56 2014 by
|
269
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
270
|
+
0.8.7.6 (ruby-1.9.3).
|
271
|
+
</div>
|
272
|
+
|
273
|
+
</body>
|
274
|
+
</html>
|
@@ -0,0 +1,534 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: ReqCreatePayment
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!ReqCreatePayment.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index (R)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">ReqCreatePayment</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: ReqCreatePayment
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="ReqCommonObject.html" title="ReqCommonObject (class)">ReqCommonObject</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="ReqCommonObject.html" title="ReqCommonObject (class)">ReqCommonObject</a></span></li>
|
82
|
+
|
83
|
+
<li class="next">ReqCreatePayment</li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
87
|
+
|
88
|
+
</dd>
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
99
|
+
<dd class="r2 last">lib/ApiObjects/Requests/req_create_payment.rb</dd>
|
100
|
+
|
101
|
+
</dl>
|
102
|
+
<div class="clear"></div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
109
|
+
<ul class="summary">
|
110
|
+
|
111
|
+
<li class="public ">
|
112
|
+
<span class="summary_signature">
|
113
|
+
|
114
|
+
<a href="#MerchantGuid-instance_method" title="#MerchantGuid (instance method)">- (Object) <strong>MerchantGuid</strong> </a>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
</span>
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<span class="summary_desc"><div class='inline'>
|
132
|
+
<p>Returns the value of attribute MerchantGuid.</p>
|
133
|
+
</div></span>
|
134
|
+
|
135
|
+
</li>
|
136
|
+
|
137
|
+
|
138
|
+
<li class="public ">
|
139
|
+
<span class="summary_signature">
|
140
|
+
|
141
|
+
<a href="#PaymentDetails-instance_method" title="#PaymentDetails (instance method)">- (Object) <strong>PaymentDetails</strong> </a>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
</span>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
<span class="summary_desc"><div class='inline'>
|
159
|
+
<p>Buyer info.</p>
|
160
|
+
</div></span>
|
161
|
+
|
162
|
+
</li>
|
163
|
+
|
164
|
+
|
165
|
+
<li class="public ">
|
166
|
+
<span class="summary_signature">
|
167
|
+
|
168
|
+
<a href="#Products-instance_method" title="#Products (instance method)">- (Object) <strong>Products</strong> </a>
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
</span>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<span class="summary_desc"><div class='inline'>
|
186
|
+
<p>Products in order.</p>
|
187
|
+
</div></span>
|
188
|
+
|
189
|
+
</li>
|
190
|
+
|
191
|
+
|
192
|
+
<li class="public ">
|
193
|
+
<span class="summary_signature">
|
194
|
+
|
195
|
+
<a href="#SelectedPaySystemId-instance_method" title="#SelectedPaySystemId (instance method)">- (Object) <strong>SelectedPaySystemId</strong> </a>
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
</span>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
<span class="summary_desc"><div class='inline'>
|
213
|
+
<p>Chosen by buyer payment system.</p>
|
214
|
+
</div></span>
|
215
|
+
|
216
|
+
</li>
|
217
|
+
|
218
|
+
|
219
|
+
</ul>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="ReqCommonObject.html" title="ReqCommonObject (class)">ReqCommonObject</a></span></h3>
|
226
|
+
<p class="inherited"><span class='object_link'><a href="ReqCommonObject.html#Signature-instance_method" title="ReqCommonObject#Signature (method)">#Signature</a></span></p>
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
<h2>
|
231
|
+
Instance Method Summary
|
232
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
233
|
+
</h2>
|
234
|
+
|
235
|
+
<ul class="summary">
|
236
|
+
|
237
|
+
<li class="public ">
|
238
|
+
<span class="summary_signature">
|
239
|
+
|
240
|
+
<a href="#GenerateSign-instance_method" title="#GenerateSign (instance method)">- (Object) <strong>GenerateSign</strong> </a>
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
</span>
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
255
|
+
|
256
|
+
</li>
|
257
|
+
|
258
|
+
|
259
|
+
</ul>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
<div id="instance_attr_details" class="attr_details">
|
270
|
+
<h2>Instance Attribute Details</h2>
|
271
|
+
|
272
|
+
|
273
|
+
<span id="MerchantGuid=-instance_method"></span>
|
274
|
+
<div class="method_details first">
|
275
|
+
<h3 class="signature first" id="MerchantGuid-instance_method">
|
276
|
+
|
277
|
+
- (<tt>Object</tt>) <strong>MerchantGuid</strong>
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
</h3><div class="docstring">
|
284
|
+
<div class="discussion">
|
285
|
+
|
286
|
+
<p>Returns the value of attribute MerchantGuid</p>
|
287
|
+
|
288
|
+
|
289
|
+
</div>
|
290
|
+
</div>
|
291
|
+
<div class="tags">
|
292
|
+
|
293
|
+
|
294
|
+
</div><table class="source_code">
|
295
|
+
<tr>
|
296
|
+
<td>
|
297
|
+
<pre class="lines">
|
298
|
+
|
299
|
+
|
300
|
+
16
|
301
|
+
17
|
302
|
+
18</pre>
|
303
|
+
</td>
|
304
|
+
<td>
|
305
|
+
<pre class="code"><span class="info file"># File 'lib/ApiObjects/Requests/req_create_payment.rb', line 16</span>
|
306
|
+
|
307
|
+
<span class='kw'>def</span> <span class='const'>MerchantGuid</span>
|
308
|
+
<span class='ivar'>@MerchantGuid</span>
|
309
|
+
<span class='kw'>end</span></pre>
|
310
|
+
</td>
|
311
|
+
</tr>
|
312
|
+
</table>
|
313
|
+
</div>
|
314
|
+
|
315
|
+
|
316
|
+
<span id="PaymentDetails=-instance_method"></span>
|
317
|
+
<div class="method_details ">
|
318
|
+
<h3 class="signature " id="PaymentDetails-instance_method">
|
319
|
+
|
320
|
+
- (<tt>Object</tt>) <strong>PaymentDetails</strong>
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
</h3><div class="docstring">
|
327
|
+
<div class="discussion">
|
328
|
+
|
329
|
+
<p>Buyer info</p>
|
330
|
+
|
331
|
+
|
332
|
+
</div>
|
333
|
+
</div>
|
334
|
+
<div class="tags">
|
335
|
+
|
336
|
+
|
337
|
+
</div><table class="source_code">
|
338
|
+
<tr>
|
339
|
+
<td>
|
340
|
+
<pre class="lines">
|
341
|
+
|
342
|
+
|
343
|
+
11
|
344
|
+
12
|
345
|
+
13</pre>
|
346
|
+
</td>
|
347
|
+
<td>
|
348
|
+
<pre class="code"><span class="info file"># File 'lib/ApiObjects/Requests/req_create_payment.rb', line 11</span>
|
349
|
+
|
350
|
+
<span class='kw'>def</span> <span class='const'>PaymentDetails</span>
|
351
|
+
<span class='ivar'>@PaymentDetails</span>
|
352
|
+
<span class='kw'>end</span></pre>
|
353
|
+
</td>
|
354
|
+
</tr>
|
355
|
+
</table>
|
356
|
+
</div>
|
357
|
+
|
358
|
+
|
359
|
+
<span id="Products=-instance_method"></span>
|
360
|
+
<div class="method_details ">
|
361
|
+
<h3 class="signature " id="Products-instance_method">
|
362
|
+
|
363
|
+
- (<tt>Object</tt>) <strong>Products</strong>
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
</h3><div class="docstring">
|
370
|
+
<div class="discussion">
|
371
|
+
|
372
|
+
<p>Products in order</p>
|
373
|
+
|
374
|
+
|
375
|
+
</div>
|
376
|
+
</div>
|
377
|
+
<div class="tags">
|
378
|
+
|
379
|
+
|
380
|
+
</div><table class="source_code">
|
381
|
+
<tr>
|
382
|
+
<td>
|
383
|
+
<pre class="lines">
|
384
|
+
|
385
|
+
|
386
|
+
14
|
387
|
+
15
|
388
|
+
16</pre>
|
389
|
+
</td>
|
390
|
+
<td>
|
391
|
+
<pre class="code"><span class="info file"># File 'lib/ApiObjects/Requests/req_create_payment.rb', line 14</span>
|
392
|
+
|
393
|
+
<span class='kw'>def</span> <span class='const'>Products</span>
|
394
|
+
<span class='ivar'>@Products</span>
|
395
|
+
<span class='kw'>end</span></pre>
|
396
|
+
</td>
|
397
|
+
</tr>
|
398
|
+
</table>
|
399
|
+
</div>
|
400
|
+
|
401
|
+
|
402
|
+
<span id="SelectedPaySystemId=-instance_method"></span>
|
403
|
+
<div class="method_details ">
|
404
|
+
<h3 class="signature " id="SelectedPaySystemId-instance_method">
|
405
|
+
|
406
|
+
- (<tt>Object</tt>) <strong>SelectedPaySystemId</strong>
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
</h3><div class="docstring">
|
413
|
+
<div class="discussion">
|
414
|
+
|
415
|
+
<p>Chosen by buyer payment system</p>
|
416
|
+
|
417
|
+
|
418
|
+
</div>
|
419
|
+
</div>
|
420
|
+
<div class="tags">
|
421
|
+
|
422
|
+
|
423
|
+
</div><table class="source_code">
|
424
|
+
<tr>
|
425
|
+
<td>
|
426
|
+
<pre class="lines">
|
427
|
+
|
428
|
+
|
429
|
+
8
|
430
|
+
9
|
431
|
+
10</pre>
|
432
|
+
</td>
|
433
|
+
<td>
|
434
|
+
<pre class="code"><span class="info file"># File 'lib/ApiObjects/Requests/req_create_payment.rb', line 8</span>
|
435
|
+
|
436
|
+
<span class='kw'>def</span> <span class='const'>SelectedPaySystemId</span>
|
437
|
+
<span class='ivar'>@SelectedPaySystemId</span>
|
438
|
+
<span class='kw'>end</span></pre>
|
439
|
+
</td>
|
440
|
+
</tr>
|
441
|
+
</table>
|
442
|
+
</div>
|
443
|
+
|
444
|
+
</div>
|
445
|
+
|
446
|
+
|
447
|
+
<div id="instance_method_details" class="method_details_list">
|
448
|
+
<h2>Instance Method Details</h2>
|
449
|
+
|
450
|
+
|
451
|
+
<div class="method_details first">
|
452
|
+
<h3 class="signature first" id="GenerateSign-instance_method">
|
453
|
+
|
454
|
+
- (<tt>Object</tt>) <strong>GenerateSign</strong>
|
455
|
+
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
</h3><table class="source_code">
|
461
|
+
<tr>
|
462
|
+
<td>
|
463
|
+
<pre class="lines">
|
464
|
+
|
465
|
+
|
466
|
+
18
|
467
|
+
19
|
468
|
+
20
|
469
|
+
21
|
470
|
+
22
|
471
|
+
23
|
472
|
+
24
|
473
|
+
25
|
474
|
+
26
|
475
|
+
27
|
476
|
+
28
|
477
|
+
29
|
478
|
+
30
|
479
|
+
31
|
480
|
+
32
|
481
|
+
33
|
482
|
+
34
|
483
|
+
35
|
484
|
+
36
|
485
|
+
37
|
486
|
+
38
|
487
|
+
39
|
488
|
+
40
|
489
|
+
41</pre>
|
490
|
+
</td>
|
491
|
+
<td>
|
492
|
+
<pre class="code"><span class="info file"># File 'lib/ApiObjects/Requests/req_create_payment.rb', line 18</span>
|
493
|
+
|
494
|
+
<span class='kw'>def</span> <span class='const'>GenerateSign</span>
|
495
|
+
<span class='id identifier rubyid_sum'>sum</span> <span class='op'>=</span> <span class='int'>0</span>
|
496
|
+
<span class='id identifier rubyid_count'>count</span> <span class='op'>=</span> <span class='int'>0</span>
|
497
|
+
<span class='kw'>if</span> <span class='ivar'>@Products</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
498
|
+
<span class='ivar'>@Products</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_product'>product</span><span class='op'>|</span>
|
499
|
+
<span class='id identifier rubyid_sum'>sum</span> <span class='op'>+=</span> <span class='id identifier rubyid_product'>product</span><span class='period'>.</span><span class='const'>ProductPrice</span> <span class='op'>*</span> <span class='id identifier rubyid_product'>product</span><span class='period'>.</span><span class='const'>ProductItemsNum</span>
|
500
|
+
<span class='id identifier rubyid_count'>count</span> <span class='op'>+=</span> <span class='id identifier rubyid_product'>product</span><span class='period'>.</span><span class='const'>ProductItemsNum</span>
|
501
|
+
|
502
|
+
<span class='id identifier rubyid_product'>product</span><span class='period'>.</span><span class='const'>ProductPrice</span> <span class='op'>=</span> <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>%.2f</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_product'>product</span><span class='period'>.</span><span class='const'>ProductPrice</span><span class='rparen'>)</span>
|
503
|
+
<span class='id identifier rubyid_product'>product</span><span class='period'>.</span><span class='const'>ProductItemsNum</span> <span class='op'>=</span> <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>%.2f</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_product'>product</span><span class='period'>.</span><span class='const'>ProductItemsNum</span><span class='rparen'>)</span>
|
504
|
+
<span class='kw'>end</span>
|
505
|
+
<span class='kw'>end</span>
|
506
|
+
|
507
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>=</span> <span class='ivar'>@MerchantGuid</span><span class='period'>.</span><span class='id identifier rubyid_upcase'>upcase</span>
|
508
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>+=</span> <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>%.2f</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_sum'>sum</span><span class='rparen'>)</span>
|
509
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>+=</span> <span class='id identifier rubyid_format'>format</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>%.2f</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_count'>count</span><span class='rparen'>)</span>
|
510
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>+=</span> <span class='ivar'>@PaymentDetails</span><span class='period'>.</span><span class='const'>MerchantInternalUserId</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0</span><span class='tstring_end'>'</span></span>
|
511
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>+=</span> <span class='ivar'>@PaymentDetails</span><span class='period'>.</span><span class='const'>MerchantInternalPaymentId</span> <span class='op'>||=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0</span><span class='tstring_end'>'</span></span>
|
512
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>+=</span> <span class='ivar'>@SelectedPaySystemId</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
513
|
+
<span class='id identifier rubyid_str'>str</span> <span class='op'>+=</span> <span class='const'>KaznacheyConfigurations</span><span class='period'>.</span><span class='const'>MerchantSecretKey</span><span class='period'>.</span><span class='id identifier rubyid_upcase'>upcase</span>
|
514
|
+
<span class='ivar'>@Signature</span> <span class='op'>=</span> <span class='const'>Md5Helper</span><span class='period'>.</span><span class='const'>GetMd5FromString</span><span class='lparen'>(</span>
|
515
|
+
<span class='id identifier rubyid_str'>str</span>
|
516
|
+
<span class='rparen'>)</span><span class='semicolon'>;</span>
|
517
|
+
<span class='kw'>end</span></pre>
|
518
|
+
</td>
|
519
|
+
</tr>
|
520
|
+
</table>
|
521
|
+
</div>
|
522
|
+
|
523
|
+
</div>
|
524
|
+
|
525
|
+
</div>
|
526
|
+
|
527
|
+
<div id="footer">
|
528
|
+
Generated on Wed Dec 3 14:19:56 2014 by
|
529
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
530
|
+
0.8.7.6 (ruby-1.9.3).
|
531
|
+
</div>
|
532
|
+
|
533
|
+
</body>
|
534
|
+
</html>
|