magpie 0.8.6.1 → 0.8.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +99 -0
- data/doc/AlipayModel.html +2010 -0
- data/doc/ChinabankModel.html +1245 -0
- data/doc/Magpie.html +255 -0
- data/doc/Magpie/Alipay.html +254 -0
- data/doc/Magpie/Chinabank.html +252 -0
- data/doc/Magpie/Mothlog.html +252 -0
- data/doc/Magpie/Server.html +241 -0
- data/doc/Magpie/Server/Options.html +245 -0
- data/doc/Magpie/Utils.html +85 -0
- data/doc/_index.html +186 -0
- data/doc/class_list.html +36 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +53 -0
- data/doc/css/style.css +307 -0
- data/doc/file.COPYING.html +78 -0
- data/doc/file.README.html +162 -0
- data/doc/file_list.html +38 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +162 -0
- data/doc/js/app.js +202 -0
- data/doc/js/full_list.js +149 -0
- data/doc/js/jquery.js +154 -0
- data/doc/method_list.html +499 -0
- data/doc/top-level-namespace.html +90 -0
- data/lib/doc/_index.html +72 -0
- data/lib/doc/class_list.html +36 -0
- data/lib/doc/css/common.css +1 -0
- data/lib/doc/css/full_list.css +53 -0
- data/lib/doc/css/style.css +307 -0
- data/lib/doc/file_list.html +35 -0
- data/lib/doc/frames.html +13 -0
- data/lib/doc/index.html +72 -0
- data/lib/doc/js/app.js +202 -0
- data/lib/doc/js/full_list.js +149 -0
- data/lib/doc/js/jquery.js +154 -0
- data/lib/doc/method_list.html +35 -0
- data/lib/doc/top-level-namespace.html +78 -0
- data/lib/magpie.rb +1 -1
- data/lib/models/alipay.rb +1 -1
- data/magpie.gemspec +4 -4
- data/test/test_alipay.rb +1 -1
- metadata +44 -7
- data/README +0 -37
data/README.md
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
Magpie用于模拟支付平台的沙盒功能
|
2
|
+
=============================
|
3
|
+
|
4
|
+
**Git**: [http://github.com/baya/magpie](http://github.com/baya/magpie)
|
5
|
+
|
6
|
+
**Author**: Guimin Jiang
|
7
|
+
|
8
|
+
**Copyright**: 2010
|
9
|
+
|
10
|
+
**License**: MIT License
|
11
|
+
|
12
|
+
**Latest Version**: 0.8.6.2
|
13
|
+
|
14
|
+
**Release Date**: 2010-10-20
|
15
|
+
|
16
|
+
|
17
|
+
快搭
|
18
|
+
----
|
19
|
+
|
20
|
+
sudo gem install magpie
|
21
|
+
打开终端,输入:
|
22
|
+
$ mag magpie.yml
|
23
|
+
|
24
|
+
magpie.yml文件用来配置你的商号信息, 假设你在支付宝有个账号:123456, key是:aaabbb, 网银在线有个账号:789789, key是:cccddd, 那么你在magpie.yml中这样写,
|
25
|
+
|
26
|
+
alipay:
|
27
|
+
- ["123456", "aaabbb"]
|
28
|
+
|
29
|
+
chinabank:
|
30
|
+
- ["789789", "cccddd"]
|
31
|
+
|
32
|
+
**注意!** 如果你输入mag命令报错, 那可能是因为你的电脑缺少一些magpie需要的gem包, 试着使用下面的命令:
|
33
|
+
|
34
|
+
$ sudo gem install activemode
|
35
|
+
$ sudo gem install hpricot
|
36
|
+
|
37
|
+
mag命令默认会在本地9292端口启动http服务, 你可以用-p选项指定端口
|
38
|
+
|
39
|
+
mag -p 2010 magpie.yml
|
40
|
+
|
41
|
+
mag命令的更多选项可以通过`mag -h`查看
|
42
|
+
|
43
|
+
使用示例
|
44
|
+
-------
|
45
|
+
|
46
|
+
假设你正在实现支付宝支付的相关代码, 首先启动magpie服务
|
47
|
+
|
48
|
+
$ mag magpie.yml
|
49
|
+
|
50
|
+
然后在你开发的商户系统中将支付网关由支付宝的网关`https://www.alipay.com/cooperate/gateway.do`更改为magpie的网关`http://127.0.0.1:9292/alipay`
|
51
|
+
|
52
|
+
如果你请求的参数出现错误,你可以通过magpie的日志查看到详细的出错信息, 或者在浏览器上查看出错信息(以xml的格式显示)
|
53
|
+
|
54
|
+
如果你的支付请求成功magpie将会模拟支付宝的主动通知模式, 给你的商户系统发送通知, 你需要确保发送给magpie的`notify_url`
|
55
|
+
|
56
|
+
是可用的,magpie将通过这个`notify_url`将支付成功的通知发到你的商户系统中, 这样你就可以避免去支付宝的页面进行真实的支付.
|
57
|
+
|
58
|
+
对于网银在线, 将支付网关由网银在线的网关`https://pay3.chinabank.com.cn/PayGate`更改为magpie的网关`http://127.0.0.1:9292/chinabank`
|
59
|
+
|
60
|
+
|
61
|
+
支持的支付平台
|
62
|
+
--------------
|
63
|
+
|
64
|
+
- 支付宝(alipay)
|
65
|
+
- 网银在线(chinabank)
|
66
|
+
|
67
|
+
使用的项目
|
68
|
+
--------
|
69
|
+
* [饭票](http://piao.fantong.com)
|
70
|
+
* [饭团](http://tuan.fantong.com)
|
71
|
+
|
72
|
+
|
73
|
+
感谢
|
74
|
+
----
|
75
|
+
* potian [Rack编程](http://www.javaeye.com/topic/605707)的作者
|
76
|
+
* liuzihua
|
77
|
+
|
78
|
+
|
79
|
+
Changelog
|
80
|
+
---------
|
81
|
+
- **2010-10-20**: 0.8.6.1 release
|
82
|
+
- 支持网银在线
|
83
|
+
|
84
|
+
- **2010-10-20**: 0.8.6.1 release
|
85
|
+
- 改善README.md的可阅读性
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
Copyright
|
90
|
+
---------
|
91
|
+
|
92
|
+
MAGPIE © 2007-2010 by [Guimin Jiang](mailto:kayak.jiang@gmail.com).
|
93
|
+
MAGPIE is licensed under the MIT license except for some files which come
|
94
|
+
from the RDoc/Ruby distributions. Please see the {file:COPYING} documents for more information.
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
@@ -0,0 +1,2010 @@
|
|
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 name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>Class: AlipayModel</title>
|
7
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
+
|
10
|
+
<script type="text/javascript" charset="utf-8">
|
11
|
+
relpath = '';
|
12
|
+
if (relpath != '') relpath += '/';
|
13
|
+
</script>
|
14
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<script type="text/javascript" charset="utf-8">
|
20
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
+
</script>
|
22
|
+
|
23
|
+
<div id="header">
|
24
|
+
<div id="menu">
|
25
|
+
|
26
|
+
<a href="_index.html">Index (A)</a> »
|
27
|
+
|
28
|
+
|
29
|
+
<span class="title">AlipayModel</span>
|
30
|
+
|
31
|
+
|
32
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="search">
|
36
|
+
<a id="class_list_link" href="#">Class List</a>
|
37
|
+
<a id="method_list_link" href="#">Method List</a>
|
38
|
+
<a id ="file_list_link" href="#">File List</a>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div class="clear"></div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<iframe id="search_frame"></iframe>
|
45
|
+
|
46
|
+
<div id="content"><h1>Class: AlipayModel
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
</h1>
|
51
|
+
|
52
|
+
<dl class="box">
|
53
|
+
|
54
|
+
<dt class="r1">Inherits:</dt>
|
55
|
+
<dd class="r1">
|
56
|
+
<span class="inheritName">Object</span>
|
57
|
+
|
58
|
+
<ul class="fullTree">
|
59
|
+
<li>Object</li>
|
60
|
+
|
61
|
+
<li class="next">AlipayModel</li>
|
62
|
+
|
63
|
+
</ul>
|
64
|
+
<a href="#" class="inheritanceTree">show all</a>
|
65
|
+
|
66
|
+
</dd>
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<dt class="r2">Includes:</dt>
|
74
|
+
<dd class="r2">ActiveModel::Validations</dd>
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<dt class="r1 last">Defined in:</dt>
|
81
|
+
<dd class="r1 last">lib/models/alipay.rb</dd>
|
82
|
+
|
83
|
+
</dl>
|
84
|
+
<div class="clear"></div>
|
85
|
+
|
86
|
+
<h2>Overview</h2><div class="docstring">
|
87
|
+
<div class="discussion">
|
88
|
+
<p>-<em>- coding: utf-8 -</em>-</p>
|
89
|
+
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
<div class="tags">
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
98
|
+
<ul class="summary">
|
99
|
+
|
100
|
+
<li class="public ">
|
101
|
+
<span class="summary_signature">
|
102
|
+
|
103
|
+
<a href="#_input_charset-instance_method" title="#_input_charset (instance method)">- (Object) <strong>_input_charset</strong> </a>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
</span>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute _input_charset.</p></div></span>
|
120
|
+
|
121
|
+
</li>
|
122
|
+
|
123
|
+
|
124
|
+
<li class="public ">
|
125
|
+
<span class="summary_signature">
|
126
|
+
|
127
|
+
<a href="#body-instance_method" title="#body (instance method)">- (Object) <strong>body</strong> </a>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
</span>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute body.</p></div></span>
|
144
|
+
|
145
|
+
</li>
|
146
|
+
|
147
|
+
|
148
|
+
<li class="public ">
|
149
|
+
<span class="summary_signature">
|
150
|
+
|
151
|
+
<a href="#notify_url-instance_method" title="#notify_url (instance method)">- (Object) <strong>notify_url</strong> </a>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
</span>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute notify_url.</p></div></span>
|
168
|
+
|
169
|
+
</li>
|
170
|
+
|
171
|
+
|
172
|
+
<li class="public ">
|
173
|
+
<span class="summary_signature">
|
174
|
+
|
175
|
+
<a href="#out_trade_no-instance_method" title="#out_trade_no (instance method)">- (Object) <strong>out_trade_no</strong> </a>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
</span>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute out_trade_no.</p></div></span>
|
192
|
+
|
193
|
+
</li>
|
194
|
+
|
195
|
+
|
196
|
+
<li class="public ">
|
197
|
+
<span class="summary_signature">
|
198
|
+
|
199
|
+
<a href="#partner-instance_method" title="#partner (instance method)">- (Object) <strong>partner</strong> </a>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
</span>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute partner.</p></div></span>
|
216
|
+
|
217
|
+
</li>
|
218
|
+
|
219
|
+
|
220
|
+
<li class="public ">
|
221
|
+
<span class="summary_signature">
|
222
|
+
|
223
|
+
<a href="#payment_type-instance_method" title="#payment_type (instance method)">- (Object) <strong>payment_type</strong> </a>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
</span>
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute payment_type.</p></div></span>
|
240
|
+
|
241
|
+
</li>
|
242
|
+
|
243
|
+
|
244
|
+
<li class="public ">
|
245
|
+
<span class="summary_signature">
|
246
|
+
|
247
|
+
<a href="#price-instance_method" title="#price (instance method)">- (Object) <strong>price</strong> </a>
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
</span>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute price.</p></div></span>
|
264
|
+
|
265
|
+
</li>
|
266
|
+
|
267
|
+
|
268
|
+
<li class="public ">
|
269
|
+
<span class="summary_signature">
|
270
|
+
|
271
|
+
<a href="#quantity-instance_method" title="#quantity (instance method)">- (Object) <strong>quantity</strong> </a>
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
</span>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute quantity.</p></div></span>
|
288
|
+
|
289
|
+
</li>
|
290
|
+
|
291
|
+
|
292
|
+
<li class="public ">
|
293
|
+
<span class="summary_signature">
|
294
|
+
|
295
|
+
<a href="#return_url-instance_method" title="#return_url (instance method)">- (Object) <strong>return_url</strong> </a>
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
</span>
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute return_url.</p></div></span>
|
312
|
+
|
313
|
+
</li>
|
314
|
+
|
315
|
+
|
316
|
+
<li class="public ">
|
317
|
+
<span class="summary_signature">
|
318
|
+
|
319
|
+
<a href="#seller_email-instance_method" title="#seller_email (instance method)">- (Object) <strong>seller_email</strong> </a>
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
</span>
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute seller_email.</p></div></span>
|
336
|
+
|
337
|
+
</li>
|
338
|
+
|
339
|
+
|
340
|
+
<li class="public ">
|
341
|
+
<span class="summary_signature">
|
342
|
+
|
343
|
+
<a href="#seller_id-instance_method" title="#seller_id (instance method)">- (Object) <strong>seller_id</strong> </a>
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
</span>
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute seller_id.</p></div></span>
|
360
|
+
|
361
|
+
</li>
|
362
|
+
|
363
|
+
|
364
|
+
<li class="public ">
|
365
|
+
<span class="summary_signature">
|
366
|
+
|
367
|
+
<a href="#service-instance_method" title="#service (instance method)">- (Object) <strong>service</strong> </a>
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
</span>
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute service.</p></div></span>
|
384
|
+
|
385
|
+
</li>
|
386
|
+
|
387
|
+
|
388
|
+
<li class="public ">
|
389
|
+
<span class="summary_signature">
|
390
|
+
|
391
|
+
<a href="#show_url-instance_method" title="#show_url (instance method)">- (Object) <strong>show_url</strong> </a>
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
</span>
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute show_url.</p></div></span>
|
408
|
+
|
409
|
+
</li>
|
410
|
+
|
411
|
+
|
412
|
+
<li class="public ">
|
413
|
+
<span class="summary_signature">
|
414
|
+
|
415
|
+
<a href="#sign-instance_method" title="#sign (instance method)">- (Object) <strong>sign</strong> </a>
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
</span>
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute sign.</p></div></span>
|
432
|
+
|
433
|
+
</li>
|
434
|
+
|
435
|
+
|
436
|
+
<li class="public ">
|
437
|
+
<span class="summary_signature">
|
438
|
+
|
439
|
+
<a href="#sign_type-instance_method" title="#sign_type (instance method)">- (Object) <strong>sign_type</strong> </a>
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
</span>
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute sign_type.</p></div></span>
|
456
|
+
|
457
|
+
</li>
|
458
|
+
|
459
|
+
|
460
|
+
<li class="public ">
|
461
|
+
<span class="summary_signature">
|
462
|
+
|
463
|
+
<a href="#subject-instance_method" title="#subject (instance method)">- (Object) <strong>subject</strong> </a>
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
</span>
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute subject.</p></div></span>
|
480
|
+
|
481
|
+
</li>
|
482
|
+
|
483
|
+
|
484
|
+
<li class="public ">
|
485
|
+
<span class="summary_signature">
|
486
|
+
|
487
|
+
<a href="#total_fee-instance_method" title="#total_fee (instance method)">- (Object) <strong>total_fee</strong> </a>
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
</span>
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
<span class="summary_desc"><div class='inline'><p>Returns the value of attribute total_fee.</p></div></span>
|
504
|
+
|
505
|
+
</li>
|
506
|
+
|
507
|
+
|
508
|
+
</ul>
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
<h2>
|
513
|
+
Class Method Summary
|
514
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
515
|
+
</h2>
|
516
|
+
|
517
|
+
<ul class="summary">
|
518
|
+
|
519
|
+
<li class="public ">
|
520
|
+
<span class="summary_signature">
|
521
|
+
|
522
|
+
<a href="#accounts-class_method" title="accounts (class method)">+ (Object) <strong>accounts</strong> </a>
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
</span>
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
536
|
+
|
537
|
+
</li>
|
538
|
+
|
539
|
+
|
540
|
+
</ul>
|
541
|
+
|
542
|
+
<h2>
|
543
|
+
Instance Method Summary
|
544
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
545
|
+
</h2>
|
546
|
+
|
547
|
+
<ul class="summary">
|
548
|
+
|
549
|
+
<li class="public ">
|
550
|
+
<span class="summary_signature">
|
551
|
+
|
552
|
+
<a href="#account-instance_method" title="#account (instance method)">- (Object) <strong>account</strong> </a>
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
</span>
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
566
|
+
|
567
|
+
</li>
|
568
|
+
|
569
|
+
|
570
|
+
<li class="public ">
|
571
|
+
<span class="summary_signature">
|
572
|
+
|
573
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (AlipayModel) <strong>initialize</strong>(attributes = {}) </a>
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
</span>
|
578
|
+
|
579
|
+
<span class="note title constructor">constructor</span>
|
580
|
+
|
581
|
+
|
582
|
+
|
583
|
+
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
|
588
|
+
<span class="summary_desc"><div class='inline'><p>A new instance of AlipayModel.</p></div></span>
|
589
|
+
|
590
|
+
</li>
|
591
|
+
|
592
|
+
|
593
|
+
<li class="public ">
|
594
|
+
<span class="summary_signature">
|
595
|
+
|
596
|
+
<a href="#invalid_sign%3F-instance_method" title="#invalid_sign? (instance method)">- (Boolean) <strong>invalid_sign?</strong> </a>
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
</span>
|
601
|
+
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
610
|
+
|
611
|
+
</li>
|
612
|
+
|
613
|
+
|
614
|
+
<li class="public ">
|
615
|
+
<span class="summary_signature">
|
616
|
+
|
617
|
+
<a href="#key-instance_method" title="#key (instance method)">- (Object) <strong>key</strong> </a>
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
</span>
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
631
|
+
|
632
|
+
</li>
|
633
|
+
|
634
|
+
|
635
|
+
<li class="public ">
|
636
|
+
<span class="summary_signature">
|
637
|
+
|
638
|
+
<a href="#missing_partner%3F-instance_method" title="#missing_partner? (instance method)">- (Boolean) <strong>missing_partner?</strong> </a>
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
</span>
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
|
651
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
652
|
+
|
653
|
+
</li>
|
654
|
+
|
655
|
+
|
656
|
+
<li class="public ">
|
657
|
+
<span class="summary_signature">
|
658
|
+
|
659
|
+
<a href="#money_blank%3F-instance_method" title="#money_blank? (instance method)">- (Boolean) <strong>money_blank?</strong> </a>
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
</span>
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
673
|
+
|
674
|
+
</li>
|
675
|
+
|
676
|
+
|
677
|
+
<li class="public ">
|
678
|
+
<span class="summary_signature">
|
679
|
+
|
680
|
+
<a href="#notify-instance_method" title="#notify (instance method)">- (Object) <strong>notify</strong> </a>
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
</span>
|
685
|
+
|
686
|
+
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
|
693
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
694
|
+
|
695
|
+
</li>
|
696
|
+
|
697
|
+
|
698
|
+
<li class="public ">
|
699
|
+
<span class="summary_signature">
|
700
|
+
|
701
|
+
<a href="#price_missing_quantity%3F-instance_method" title="#price_missing_quantity? (instance method)">- (Boolean) <strong>price_missing_quantity?</strong> </a>
|
702
|
+
|
703
|
+
|
704
|
+
|
705
|
+
</span>
|
706
|
+
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
715
|
+
|
716
|
+
</li>
|
717
|
+
|
718
|
+
|
719
|
+
<li class="public ">
|
720
|
+
<span class="summary_signature">
|
721
|
+
|
722
|
+
<a href="#repeat_money%3F-instance_method" title="#repeat_money? (instance method)">- (Boolean) <strong>repeat_money?</strong> </a>
|
723
|
+
|
724
|
+
|
725
|
+
|
726
|
+
</span>
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
|
734
|
+
|
735
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
736
|
+
|
737
|
+
</li>
|
738
|
+
|
739
|
+
|
740
|
+
<li class="public ">
|
741
|
+
<span class="summary_signature">
|
742
|
+
|
743
|
+
<a href="#seller_blank%3F-instance_method" title="#seller_blank? (instance method)">- (Boolean) <strong>seller_blank?</strong> </a>
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
</span>
|
748
|
+
|
749
|
+
|
750
|
+
|
751
|
+
|
752
|
+
|
753
|
+
|
754
|
+
|
755
|
+
|
756
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
757
|
+
|
758
|
+
</li>
|
759
|
+
|
760
|
+
|
761
|
+
<li class="public ">
|
762
|
+
<span class="summary_signature">
|
763
|
+
|
764
|
+
<a href="#send_notify-instance_method" title="#send_notify (instance method)">- (Object) <strong>send_notify</strong> </a>
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
</span>
|
769
|
+
|
770
|
+
|
771
|
+
|
772
|
+
|
773
|
+
|
774
|
+
|
775
|
+
|
776
|
+
|
777
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
778
|
+
|
779
|
+
</li>
|
780
|
+
|
781
|
+
|
782
|
+
</ul>
|
783
|
+
|
784
|
+
|
785
|
+
|
786
|
+
<div id="constructor_details" class="method_details_list">
|
787
|
+
<h2>Constructor Details</h2>
|
788
|
+
|
789
|
+
<div class="method_details first">
|
790
|
+
<p class="signature first" id="initialize-instance_method">
|
791
|
+
|
792
|
+
- (<tt><span class='object_link'><a href="" title="AlipayModel (class)">AlipayModel</a></span></tt>) <strong>initialize</strong>(attributes = {})
|
793
|
+
|
794
|
+
|
795
|
+
|
796
|
+
</p><div class="docstring">
|
797
|
+
<div class="discussion">
|
798
|
+
<p>A new instance of AlipayModel</p>
|
799
|
+
|
800
|
+
</div>
|
801
|
+
</div>
|
802
|
+
<div class="tags">
|
803
|
+
|
804
|
+
</div><table class="source_code">
|
805
|
+
<tr>
|
806
|
+
<td>
|
807
|
+
<pre class="lines">
|
808
|
+
|
809
|
+
|
810
|
+
56
|
811
|
+
57
|
812
|
+
58
|
813
|
+
59
|
814
|
+
60
|
815
|
+
61</pre>
|
816
|
+
</td>
|
817
|
+
<td>
|
818
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 56</span>
|
819
|
+
|
820
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='attributes identifier id'>attributes</span> <span class='assign token'>=</span> <span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='rparen token'>)</span>
|
821
|
+
<span class='@attributes ivar id'>@attributes</span> <span class='assign token'>=</span> <span class='attributes identifier id'>attributes</span>
|
822
|
+
<span class='attributes identifier id'>attributes</span><span class='dot token'>.</span><span class='each identifier id'>each</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='name identifier id'>name</span><span class='comma token'>,</span> <span class='value identifier id'>value</span><span class='bitor op'>|</span>
|
823
|
+
<span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='dstring node'>"#{name}="</span><span class='comma token'>,</span> <span class='value identifier id'>value</span><span class='rparen token'>)</span> <span class='if if_mod kw'>if</span> <span class='respond_to? fid id'>respond_to?</span> <span class='name identifier id'>name</span>
|
824
|
+
<span class='end end kw'>end</span>
|
825
|
+
<span class='end end kw'>end</span>
|
826
|
+
</pre>
|
827
|
+
</td>
|
828
|
+
</tr>
|
829
|
+
</table>
|
830
|
+
</div>
|
831
|
+
|
832
|
+
</div>
|
833
|
+
|
834
|
+
<div id="instance_attr_details" class="attr_details">
|
835
|
+
<h2>Instance Attribute Details</h2>
|
836
|
+
|
837
|
+
|
838
|
+
<span id="_input_charset=-instance_method"></span>
|
839
|
+
<span id="_input_charset-instance_method"></span>
|
840
|
+
<div class="method_details first">
|
841
|
+
<p class="signature first" id="_input_charset-instance_method">
|
842
|
+
|
843
|
+
- (<tt>Object</tt>) <strong>_input_charset</strong>
|
844
|
+
|
845
|
+
|
846
|
+
|
847
|
+
</p><div class="docstring">
|
848
|
+
<div class="discussion">
|
849
|
+
<p>Returns the value of attribute _input_charset</p>
|
850
|
+
|
851
|
+
</div>
|
852
|
+
</div>
|
853
|
+
<div class="tags">
|
854
|
+
|
855
|
+
</div><table class="source_code">
|
856
|
+
<tr>
|
857
|
+
<td>
|
858
|
+
<pre class="lines">
|
859
|
+
|
860
|
+
|
861
|
+
5
|
862
|
+
6
|
863
|
+
7</pre>
|
864
|
+
</td>
|
865
|
+
<td>
|
866
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
867
|
+
|
868
|
+
<span class='def def kw'>def</span> <span class='_input_charset identifier id'>_input_charset</span>
|
869
|
+
<span class='@_input_charset ivar id'>@_input_charset</span>
|
870
|
+
<span class='end end kw'>end</span>
|
871
|
+
</pre>
|
872
|
+
</td>
|
873
|
+
</tr>
|
874
|
+
</table>
|
875
|
+
</div>
|
876
|
+
|
877
|
+
|
878
|
+
<span id="body=-instance_method"></span>
|
879
|
+
<span id="body-instance_method"></span>
|
880
|
+
<div class="method_details ">
|
881
|
+
<p class="signature " id="body-instance_method">
|
882
|
+
|
883
|
+
- (<tt>Object</tt>) <strong>body</strong>
|
884
|
+
|
885
|
+
|
886
|
+
|
887
|
+
</p><div class="docstring">
|
888
|
+
<div class="discussion">
|
889
|
+
<p>Returns the value of attribute body</p>
|
890
|
+
|
891
|
+
</div>
|
892
|
+
</div>
|
893
|
+
<div class="tags">
|
894
|
+
|
895
|
+
</div><table class="source_code">
|
896
|
+
<tr>
|
897
|
+
<td>
|
898
|
+
<pre class="lines">
|
899
|
+
|
900
|
+
|
901
|
+
5
|
902
|
+
6
|
903
|
+
7</pre>
|
904
|
+
</td>
|
905
|
+
<td>
|
906
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
907
|
+
|
908
|
+
<span class='def def kw'>def</span> <span class='body identifier id'>body</span>
|
909
|
+
<span class='@body ivar id'>@body</span>
|
910
|
+
<span class='end end kw'>end</span>
|
911
|
+
</pre>
|
912
|
+
</td>
|
913
|
+
</tr>
|
914
|
+
</table>
|
915
|
+
</div>
|
916
|
+
|
917
|
+
|
918
|
+
<span id="notify_url=-instance_method"></span>
|
919
|
+
<span id="notify_url-instance_method"></span>
|
920
|
+
<div class="method_details ">
|
921
|
+
<p class="signature " id="notify_url-instance_method">
|
922
|
+
|
923
|
+
- (<tt>Object</tt>) <strong>notify_url</strong>
|
924
|
+
|
925
|
+
|
926
|
+
|
927
|
+
</p><div class="docstring">
|
928
|
+
<div class="discussion">
|
929
|
+
<p>Returns the value of attribute notify_url</p>
|
930
|
+
|
931
|
+
</div>
|
932
|
+
</div>
|
933
|
+
<div class="tags">
|
934
|
+
|
935
|
+
</div><table class="source_code">
|
936
|
+
<tr>
|
937
|
+
<td>
|
938
|
+
<pre class="lines">
|
939
|
+
|
940
|
+
|
941
|
+
5
|
942
|
+
6
|
943
|
+
7</pre>
|
944
|
+
</td>
|
945
|
+
<td>
|
946
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
947
|
+
|
948
|
+
<span class='def def kw'>def</span> <span class='notify_url identifier id'>notify_url</span>
|
949
|
+
<span class='@notify_url ivar id'>@notify_url</span>
|
950
|
+
<span class='end end kw'>end</span>
|
951
|
+
</pre>
|
952
|
+
</td>
|
953
|
+
</tr>
|
954
|
+
</table>
|
955
|
+
</div>
|
956
|
+
|
957
|
+
|
958
|
+
<span id="out_trade_no=-instance_method"></span>
|
959
|
+
<span id="out_trade_no-instance_method"></span>
|
960
|
+
<div class="method_details ">
|
961
|
+
<p class="signature " id="out_trade_no-instance_method">
|
962
|
+
|
963
|
+
- (<tt>Object</tt>) <strong>out_trade_no</strong>
|
964
|
+
|
965
|
+
|
966
|
+
|
967
|
+
</p><div class="docstring">
|
968
|
+
<div class="discussion">
|
969
|
+
<p>Returns the value of attribute out_trade_no</p>
|
970
|
+
|
971
|
+
</div>
|
972
|
+
</div>
|
973
|
+
<div class="tags">
|
974
|
+
|
975
|
+
</div><table class="source_code">
|
976
|
+
<tr>
|
977
|
+
<td>
|
978
|
+
<pre class="lines">
|
979
|
+
|
980
|
+
|
981
|
+
5
|
982
|
+
6
|
983
|
+
7</pre>
|
984
|
+
</td>
|
985
|
+
<td>
|
986
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
987
|
+
|
988
|
+
<span class='def def kw'>def</span> <span class='out_trade_no identifier id'>out_trade_no</span>
|
989
|
+
<span class='@out_trade_no ivar id'>@out_trade_no</span>
|
990
|
+
<span class='end end kw'>end</span>
|
991
|
+
</pre>
|
992
|
+
</td>
|
993
|
+
</tr>
|
994
|
+
</table>
|
995
|
+
</div>
|
996
|
+
|
997
|
+
|
998
|
+
<span id="partner=-instance_method"></span>
|
999
|
+
<span id="partner-instance_method"></span>
|
1000
|
+
<div class="method_details ">
|
1001
|
+
<p class="signature " id="partner-instance_method">
|
1002
|
+
|
1003
|
+
- (<tt>Object</tt>) <strong>partner</strong>
|
1004
|
+
|
1005
|
+
|
1006
|
+
|
1007
|
+
</p><div class="docstring">
|
1008
|
+
<div class="discussion">
|
1009
|
+
<p>Returns the value of attribute partner</p>
|
1010
|
+
|
1011
|
+
</div>
|
1012
|
+
</div>
|
1013
|
+
<div class="tags">
|
1014
|
+
|
1015
|
+
</div><table class="source_code">
|
1016
|
+
<tr>
|
1017
|
+
<td>
|
1018
|
+
<pre class="lines">
|
1019
|
+
|
1020
|
+
|
1021
|
+
5
|
1022
|
+
6
|
1023
|
+
7</pre>
|
1024
|
+
</td>
|
1025
|
+
<td>
|
1026
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1027
|
+
|
1028
|
+
<span class='def def kw'>def</span> <span class='partner identifier id'>partner</span>
|
1029
|
+
<span class='@partner ivar id'>@partner</span>
|
1030
|
+
<span class='end end kw'>end</span>
|
1031
|
+
</pre>
|
1032
|
+
</td>
|
1033
|
+
</tr>
|
1034
|
+
</table>
|
1035
|
+
</div>
|
1036
|
+
|
1037
|
+
|
1038
|
+
<span id="payment_type=-instance_method"></span>
|
1039
|
+
<span id="payment_type-instance_method"></span>
|
1040
|
+
<div class="method_details ">
|
1041
|
+
<p class="signature " id="payment_type-instance_method">
|
1042
|
+
|
1043
|
+
- (<tt>Object</tt>) <strong>payment_type</strong>
|
1044
|
+
|
1045
|
+
|
1046
|
+
|
1047
|
+
</p><div class="docstring">
|
1048
|
+
<div class="discussion">
|
1049
|
+
<p>Returns the value of attribute payment_type</p>
|
1050
|
+
|
1051
|
+
</div>
|
1052
|
+
</div>
|
1053
|
+
<div class="tags">
|
1054
|
+
|
1055
|
+
</div><table class="source_code">
|
1056
|
+
<tr>
|
1057
|
+
<td>
|
1058
|
+
<pre class="lines">
|
1059
|
+
|
1060
|
+
|
1061
|
+
5
|
1062
|
+
6
|
1063
|
+
7</pre>
|
1064
|
+
</td>
|
1065
|
+
<td>
|
1066
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1067
|
+
|
1068
|
+
<span class='def def kw'>def</span> <span class='payment_type identifier id'>payment_type</span>
|
1069
|
+
<span class='@payment_type ivar id'>@payment_type</span>
|
1070
|
+
<span class='end end kw'>end</span>
|
1071
|
+
</pre>
|
1072
|
+
</td>
|
1073
|
+
</tr>
|
1074
|
+
</table>
|
1075
|
+
</div>
|
1076
|
+
|
1077
|
+
|
1078
|
+
<span id="price=-instance_method"></span>
|
1079
|
+
<span id="price-instance_method"></span>
|
1080
|
+
<div class="method_details ">
|
1081
|
+
<p class="signature " id="price-instance_method">
|
1082
|
+
|
1083
|
+
- (<tt>Object</tt>) <strong>price</strong>
|
1084
|
+
|
1085
|
+
|
1086
|
+
|
1087
|
+
</p><div class="docstring">
|
1088
|
+
<div class="discussion">
|
1089
|
+
<p>Returns the value of attribute price</p>
|
1090
|
+
|
1091
|
+
</div>
|
1092
|
+
</div>
|
1093
|
+
<div class="tags">
|
1094
|
+
|
1095
|
+
</div><table class="source_code">
|
1096
|
+
<tr>
|
1097
|
+
<td>
|
1098
|
+
<pre class="lines">
|
1099
|
+
|
1100
|
+
|
1101
|
+
5
|
1102
|
+
6
|
1103
|
+
7</pre>
|
1104
|
+
</td>
|
1105
|
+
<td>
|
1106
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1107
|
+
|
1108
|
+
<span class='def def kw'>def</span> <span class='price identifier id'>price</span>
|
1109
|
+
<span class='@price ivar id'>@price</span>
|
1110
|
+
<span class='end end kw'>end</span>
|
1111
|
+
</pre>
|
1112
|
+
</td>
|
1113
|
+
</tr>
|
1114
|
+
</table>
|
1115
|
+
</div>
|
1116
|
+
|
1117
|
+
|
1118
|
+
<span id="quantity=-instance_method"></span>
|
1119
|
+
<span id="quantity-instance_method"></span>
|
1120
|
+
<div class="method_details ">
|
1121
|
+
<p class="signature " id="quantity-instance_method">
|
1122
|
+
|
1123
|
+
- (<tt>Object</tt>) <strong>quantity</strong>
|
1124
|
+
|
1125
|
+
|
1126
|
+
|
1127
|
+
</p><div class="docstring">
|
1128
|
+
<div class="discussion">
|
1129
|
+
<p>Returns the value of attribute quantity</p>
|
1130
|
+
|
1131
|
+
</div>
|
1132
|
+
</div>
|
1133
|
+
<div class="tags">
|
1134
|
+
|
1135
|
+
</div><table class="source_code">
|
1136
|
+
<tr>
|
1137
|
+
<td>
|
1138
|
+
<pre class="lines">
|
1139
|
+
|
1140
|
+
|
1141
|
+
5
|
1142
|
+
6
|
1143
|
+
7</pre>
|
1144
|
+
</td>
|
1145
|
+
<td>
|
1146
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1147
|
+
|
1148
|
+
<span class='def def kw'>def</span> <span class='quantity identifier id'>quantity</span>
|
1149
|
+
<span class='@quantity ivar id'>@quantity</span>
|
1150
|
+
<span class='end end kw'>end</span>
|
1151
|
+
</pre>
|
1152
|
+
</td>
|
1153
|
+
</tr>
|
1154
|
+
</table>
|
1155
|
+
</div>
|
1156
|
+
|
1157
|
+
|
1158
|
+
<span id="return_url=-instance_method"></span>
|
1159
|
+
<span id="return_url-instance_method"></span>
|
1160
|
+
<div class="method_details ">
|
1161
|
+
<p class="signature " id="return_url-instance_method">
|
1162
|
+
|
1163
|
+
- (<tt>Object</tt>) <strong>return_url</strong>
|
1164
|
+
|
1165
|
+
|
1166
|
+
|
1167
|
+
</p><div class="docstring">
|
1168
|
+
<div class="discussion">
|
1169
|
+
<p>Returns the value of attribute return_url</p>
|
1170
|
+
|
1171
|
+
</div>
|
1172
|
+
</div>
|
1173
|
+
<div class="tags">
|
1174
|
+
|
1175
|
+
</div><table class="source_code">
|
1176
|
+
<tr>
|
1177
|
+
<td>
|
1178
|
+
<pre class="lines">
|
1179
|
+
|
1180
|
+
|
1181
|
+
5
|
1182
|
+
6
|
1183
|
+
7</pre>
|
1184
|
+
</td>
|
1185
|
+
<td>
|
1186
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1187
|
+
|
1188
|
+
<span class='def def kw'>def</span> <span class='return_url identifier id'>return_url</span>
|
1189
|
+
<span class='@return_url ivar id'>@return_url</span>
|
1190
|
+
<span class='end end kw'>end</span>
|
1191
|
+
</pre>
|
1192
|
+
</td>
|
1193
|
+
</tr>
|
1194
|
+
</table>
|
1195
|
+
</div>
|
1196
|
+
|
1197
|
+
|
1198
|
+
<span id="seller_email=-instance_method"></span>
|
1199
|
+
<span id="seller_email-instance_method"></span>
|
1200
|
+
<div class="method_details ">
|
1201
|
+
<p class="signature " id="seller_email-instance_method">
|
1202
|
+
|
1203
|
+
- (<tt>Object</tt>) <strong>seller_email</strong>
|
1204
|
+
|
1205
|
+
|
1206
|
+
|
1207
|
+
</p><div class="docstring">
|
1208
|
+
<div class="discussion">
|
1209
|
+
<p>Returns the value of attribute seller_email</p>
|
1210
|
+
|
1211
|
+
</div>
|
1212
|
+
</div>
|
1213
|
+
<div class="tags">
|
1214
|
+
|
1215
|
+
</div><table class="source_code">
|
1216
|
+
<tr>
|
1217
|
+
<td>
|
1218
|
+
<pre class="lines">
|
1219
|
+
|
1220
|
+
|
1221
|
+
5
|
1222
|
+
6
|
1223
|
+
7</pre>
|
1224
|
+
</td>
|
1225
|
+
<td>
|
1226
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1227
|
+
|
1228
|
+
<span class='def def kw'>def</span> <span class='seller_email identifier id'>seller_email</span>
|
1229
|
+
<span class='@seller_email ivar id'>@seller_email</span>
|
1230
|
+
<span class='end end kw'>end</span>
|
1231
|
+
</pre>
|
1232
|
+
</td>
|
1233
|
+
</tr>
|
1234
|
+
</table>
|
1235
|
+
</div>
|
1236
|
+
|
1237
|
+
|
1238
|
+
<span id="seller_id=-instance_method"></span>
|
1239
|
+
<span id="seller_id-instance_method"></span>
|
1240
|
+
<div class="method_details ">
|
1241
|
+
<p class="signature " id="seller_id-instance_method">
|
1242
|
+
|
1243
|
+
- (<tt>Object</tt>) <strong>seller_id</strong>
|
1244
|
+
|
1245
|
+
|
1246
|
+
|
1247
|
+
</p><div class="docstring">
|
1248
|
+
<div class="discussion">
|
1249
|
+
<p>Returns the value of attribute seller_id</p>
|
1250
|
+
|
1251
|
+
</div>
|
1252
|
+
</div>
|
1253
|
+
<div class="tags">
|
1254
|
+
|
1255
|
+
</div><table class="source_code">
|
1256
|
+
<tr>
|
1257
|
+
<td>
|
1258
|
+
<pre class="lines">
|
1259
|
+
|
1260
|
+
|
1261
|
+
5
|
1262
|
+
6
|
1263
|
+
7</pre>
|
1264
|
+
</td>
|
1265
|
+
<td>
|
1266
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1267
|
+
|
1268
|
+
<span class='def def kw'>def</span> <span class='seller_id identifier id'>seller_id</span>
|
1269
|
+
<span class='@seller_id ivar id'>@seller_id</span>
|
1270
|
+
<span class='end end kw'>end</span>
|
1271
|
+
</pre>
|
1272
|
+
</td>
|
1273
|
+
</tr>
|
1274
|
+
</table>
|
1275
|
+
</div>
|
1276
|
+
|
1277
|
+
|
1278
|
+
<span id="service=-instance_method"></span>
|
1279
|
+
<span id="service-instance_method"></span>
|
1280
|
+
<div class="method_details ">
|
1281
|
+
<p class="signature " id="service-instance_method">
|
1282
|
+
|
1283
|
+
- (<tt>Object</tt>) <strong>service</strong>
|
1284
|
+
|
1285
|
+
|
1286
|
+
|
1287
|
+
</p><div class="docstring">
|
1288
|
+
<div class="discussion">
|
1289
|
+
<p>Returns the value of attribute service</p>
|
1290
|
+
|
1291
|
+
</div>
|
1292
|
+
</div>
|
1293
|
+
<div class="tags">
|
1294
|
+
|
1295
|
+
</div><table class="source_code">
|
1296
|
+
<tr>
|
1297
|
+
<td>
|
1298
|
+
<pre class="lines">
|
1299
|
+
|
1300
|
+
|
1301
|
+
5
|
1302
|
+
6
|
1303
|
+
7</pre>
|
1304
|
+
</td>
|
1305
|
+
<td>
|
1306
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1307
|
+
|
1308
|
+
<span class='def def kw'>def</span> <span class='service identifier id'>service</span>
|
1309
|
+
<span class='@service ivar id'>@service</span>
|
1310
|
+
<span class='end end kw'>end</span>
|
1311
|
+
</pre>
|
1312
|
+
</td>
|
1313
|
+
</tr>
|
1314
|
+
</table>
|
1315
|
+
</div>
|
1316
|
+
|
1317
|
+
|
1318
|
+
<span id="show_url=-instance_method"></span>
|
1319
|
+
<span id="show_url-instance_method"></span>
|
1320
|
+
<div class="method_details ">
|
1321
|
+
<p class="signature " id="show_url-instance_method">
|
1322
|
+
|
1323
|
+
- (<tt>Object</tt>) <strong>show_url</strong>
|
1324
|
+
|
1325
|
+
|
1326
|
+
|
1327
|
+
</p><div class="docstring">
|
1328
|
+
<div class="discussion">
|
1329
|
+
<p>Returns the value of attribute show_url</p>
|
1330
|
+
|
1331
|
+
</div>
|
1332
|
+
</div>
|
1333
|
+
<div class="tags">
|
1334
|
+
|
1335
|
+
</div><table class="source_code">
|
1336
|
+
<tr>
|
1337
|
+
<td>
|
1338
|
+
<pre class="lines">
|
1339
|
+
|
1340
|
+
|
1341
|
+
5
|
1342
|
+
6
|
1343
|
+
7</pre>
|
1344
|
+
</td>
|
1345
|
+
<td>
|
1346
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1347
|
+
|
1348
|
+
<span class='def def kw'>def</span> <span class='show_url identifier id'>show_url</span>
|
1349
|
+
<span class='@show_url ivar id'>@show_url</span>
|
1350
|
+
<span class='end end kw'>end</span>
|
1351
|
+
</pre>
|
1352
|
+
</td>
|
1353
|
+
</tr>
|
1354
|
+
</table>
|
1355
|
+
</div>
|
1356
|
+
|
1357
|
+
|
1358
|
+
<span id="sign=-instance_method"></span>
|
1359
|
+
<span id="sign-instance_method"></span>
|
1360
|
+
<div class="method_details ">
|
1361
|
+
<p class="signature " id="sign-instance_method">
|
1362
|
+
|
1363
|
+
- (<tt>Object</tt>) <strong>sign</strong>
|
1364
|
+
|
1365
|
+
|
1366
|
+
|
1367
|
+
</p><div class="docstring">
|
1368
|
+
<div class="discussion">
|
1369
|
+
<p>Returns the value of attribute sign</p>
|
1370
|
+
|
1371
|
+
</div>
|
1372
|
+
</div>
|
1373
|
+
<div class="tags">
|
1374
|
+
|
1375
|
+
</div><table class="source_code">
|
1376
|
+
<tr>
|
1377
|
+
<td>
|
1378
|
+
<pre class="lines">
|
1379
|
+
|
1380
|
+
|
1381
|
+
5
|
1382
|
+
6
|
1383
|
+
7</pre>
|
1384
|
+
</td>
|
1385
|
+
<td>
|
1386
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1387
|
+
|
1388
|
+
<span class='def def kw'>def</span> <span class='sign identifier id'>sign</span>
|
1389
|
+
<span class='@sign ivar id'>@sign</span>
|
1390
|
+
<span class='end end kw'>end</span>
|
1391
|
+
</pre>
|
1392
|
+
</td>
|
1393
|
+
</tr>
|
1394
|
+
</table>
|
1395
|
+
</div>
|
1396
|
+
|
1397
|
+
|
1398
|
+
<span id="sign_type=-instance_method"></span>
|
1399
|
+
<span id="sign_type-instance_method"></span>
|
1400
|
+
<div class="method_details ">
|
1401
|
+
<p class="signature " id="sign_type-instance_method">
|
1402
|
+
|
1403
|
+
- (<tt>Object</tt>) <strong>sign_type</strong>
|
1404
|
+
|
1405
|
+
|
1406
|
+
|
1407
|
+
</p><div class="docstring">
|
1408
|
+
<div class="discussion">
|
1409
|
+
<p>Returns the value of attribute sign_type</p>
|
1410
|
+
|
1411
|
+
</div>
|
1412
|
+
</div>
|
1413
|
+
<div class="tags">
|
1414
|
+
|
1415
|
+
</div><table class="source_code">
|
1416
|
+
<tr>
|
1417
|
+
<td>
|
1418
|
+
<pre class="lines">
|
1419
|
+
|
1420
|
+
|
1421
|
+
5
|
1422
|
+
6
|
1423
|
+
7</pre>
|
1424
|
+
</td>
|
1425
|
+
<td>
|
1426
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1427
|
+
|
1428
|
+
<span class='def def kw'>def</span> <span class='sign_type identifier id'>sign_type</span>
|
1429
|
+
<span class='@sign_type ivar id'>@sign_type</span>
|
1430
|
+
<span class='end end kw'>end</span>
|
1431
|
+
</pre>
|
1432
|
+
</td>
|
1433
|
+
</tr>
|
1434
|
+
</table>
|
1435
|
+
</div>
|
1436
|
+
|
1437
|
+
|
1438
|
+
<span id="subject=-instance_method"></span>
|
1439
|
+
<span id="subject-instance_method"></span>
|
1440
|
+
<div class="method_details ">
|
1441
|
+
<p class="signature " id="subject-instance_method">
|
1442
|
+
|
1443
|
+
- (<tt>Object</tt>) <strong>subject</strong>
|
1444
|
+
|
1445
|
+
|
1446
|
+
|
1447
|
+
</p><div class="docstring">
|
1448
|
+
<div class="discussion">
|
1449
|
+
<p>Returns the value of attribute subject</p>
|
1450
|
+
|
1451
|
+
</div>
|
1452
|
+
</div>
|
1453
|
+
<div class="tags">
|
1454
|
+
|
1455
|
+
</div><table class="source_code">
|
1456
|
+
<tr>
|
1457
|
+
<td>
|
1458
|
+
<pre class="lines">
|
1459
|
+
|
1460
|
+
|
1461
|
+
5
|
1462
|
+
6
|
1463
|
+
7</pre>
|
1464
|
+
</td>
|
1465
|
+
<td>
|
1466
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1467
|
+
|
1468
|
+
<span class='def def kw'>def</span> <span class='subject identifier id'>subject</span>
|
1469
|
+
<span class='@subject ivar id'>@subject</span>
|
1470
|
+
<span class='end end kw'>end</span>
|
1471
|
+
</pre>
|
1472
|
+
</td>
|
1473
|
+
</tr>
|
1474
|
+
</table>
|
1475
|
+
</div>
|
1476
|
+
|
1477
|
+
|
1478
|
+
<span id="total_fee=-instance_method"></span>
|
1479
|
+
<span id="total_fee-instance_method"></span>
|
1480
|
+
<div class="method_details ">
|
1481
|
+
<p class="signature " id="total_fee-instance_method">
|
1482
|
+
|
1483
|
+
- (<tt>Object</tt>) <strong>total_fee</strong>
|
1484
|
+
|
1485
|
+
|
1486
|
+
|
1487
|
+
</p><div class="docstring">
|
1488
|
+
<div class="discussion">
|
1489
|
+
<p>Returns the value of attribute total_fee</p>
|
1490
|
+
|
1491
|
+
</div>
|
1492
|
+
</div>
|
1493
|
+
<div class="tags">
|
1494
|
+
|
1495
|
+
</div><table class="source_code">
|
1496
|
+
<tr>
|
1497
|
+
<td>
|
1498
|
+
<pre class="lines">
|
1499
|
+
|
1500
|
+
|
1501
|
+
5
|
1502
|
+
6
|
1503
|
+
7</pre>
|
1504
|
+
</td>
|
1505
|
+
<td>
|
1506
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 5</span>
|
1507
|
+
|
1508
|
+
<span class='def def kw'>def</span> <span class='total_fee identifier id'>total_fee</span>
|
1509
|
+
<span class='@total_fee ivar id'>@total_fee</span>
|
1510
|
+
<span class='end end kw'>end</span>
|
1511
|
+
</pre>
|
1512
|
+
</td>
|
1513
|
+
</tr>
|
1514
|
+
</table>
|
1515
|
+
</div>
|
1516
|
+
|
1517
|
+
</div>
|
1518
|
+
|
1519
|
+
|
1520
|
+
<div id="class_method_details" class="method_details_list">
|
1521
|
+
<h2>Class Method Details</h2>
|
1522
|
+
|
1523
|
+
|
1524
|
+
<div class="method_details first">
|
1525
|
+
<p class="signature first" id="accounts-class_method">
|
1526
|
+
|
1527
|
+
+ (<tt>Object</tt>) <strong>accounts</strong>
|
1528
|
+
|
1529
|
+
|
1530
|
+
|
1531
|
+
</p><table class="source_code">
|
1532
|
+
<tr>
|
1533
|
+
<td>
|
1534
|
+
<pre class="lines">
|
1535
|
+
|
1536
|
+
|
1537
|
+
101
|
1538
|
+
102
|
1539
|
+
103
|
1540
|
+
104</pre>
|
1541
|
+
</td>
|
1542
|
+
<td>
|
1543
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 101</span>
|
1544
|
+
|
1545
|
+
<span class='def def kw'>def</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='accounts identifier id'>accounts</span>
|
1546
|
+
<span class='@accounts ivar id'>@accounts</span> <span class='opasgn op'>||=</span> <span class='YAML constant id'>YAML</span><span class='dot token'>.</span><span class='load_file identifier id'>load_file</span><span class='lparen token'>(</span><span class='string val'>'test/partner.yml'</span><span class='rparen token'>)</span><span class='lbrack token'>[</span><span class='string val'>'alipay'</span><span class='rbrack token'>]</span> <span class='if if_mod kw'>if</span> <span class='ENV constant id'>ENV</span><span class='lbrack token'>[</span><span class='string val'>'magpie'</span><span class='rbrack token'>]</span> <span class='eq op'>==</span> <span class='string val'>'test'</span>
|
1547
|
+
<span class='@accounts ivar id'>@accounts</span> <span class='opasgn op'>||=</span> <span class='Magpie constant id'>Magpie</span><span class='dot token'>.</span><span class='yml_db identifier id'>yml_db</span><span class='lbrack token'>[</span><span class='string val'>'alipay'</span><span class='rbrack token'>]</span>
|
1548
|
+
<span class='end end kw'>end</span>
|
1549
|
+
</pre>
|
1550
|
+
</td>
|
1551
|
+
</tr>
|
1552
|
+
</table>
|
1553
|
+
</div>
|
1554
|
+
|
1555
|
+
</div>
|
1556
|
+
|
1557
|
+
<div id="instance_method_details" class="method_details_list">
|
1558
|
+
<h2>Instance Method Details</h2>
|
1559
|
+
|
1560
|
+
|
1561
|
+
<div class="method_details first">
|
1562
|
+
<p class="signature first" id="account-instance_method">
|
1563
|
+
|
1564
|
+
- (<tt>Object</tt>) <strong>account</strong>
|
1565
|
+
|
1566
|
+
|
1567
|
+
|
1568
|
+
</p><table class="source_code">
|
1569
|
+
<tr>
|
1570
|
+
<td>
|
1571
|
+
<pre class="lines">
|
1572
|
+
|
1573
|
+
|
1574
|
+
92
|
1575
|
+
93
|
1576
|
+
94
|
1577
|
+
95</pre>
|
1578
|
+
</td>
|
1579
|
+
<td>
|
1580
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 92</span>
|
1581
|
+
|
1582
|
+
<span class='def def kw'>def</span> <span class='account identifier id'>account</span>
|
1583
|
+
<span class='@account ivar id'>@account</span> <span class='opasgn op'>||=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='class identifier id'>class</span><span class='dot token'>.</span><span class='accounts identifier id'>accounts</span><span class='dot token'>.</span><span class='assoc identifier id'>assoc</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='partner identifier id'>partner</span>
|
1584
|
+
<span class='@account ivar id'>@account</span> <span class='opasgn op'>||=</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span>
|
1585
|
+
<span class='end end kw'>end</span>
|
1586
|
+
</pre>
|
1587
|
+
</td>
|
1588
|
+
</tr>
|
1589
|
+
</table>
|
1590
|
+
</div>
|
1591
|
+
|
1592
|
+
<div class="method_details ">
|
1593
|
+
<p class="signature " id="invalid_sign?-instance_method">
|
1594
|
+
|
1595
|
+
- (<tt>Boolean</tt>) <strong>invalid_sign?</strong>
|
1596
|
+
|
1597
|
+
|
1598
|
+
|
1599
|
+
</p><div class="docstring">
|
1600
|
+
<div class="discussion">
|
1601
|
+
|
1602
|
+
|
1603
|
+
</div>
|
1604
|
+
</div>
|
1605
|
+
<div class="tags">
|
1606
|
+
<h3>Returns:</h3>
|
1607
|
+
<ul class="return">
|
1608
|
+
|
1609
|
+
<li>
|
1610
|
+
|
1611
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1612
|
+
|
1613
|
+
|
1614
|
+
|
1615
|
+
|
1616
|
+
</li>
|
1617
|
+
|
1618
|
+
</ul>
|
1619
|
+
|
1620
|
+
</div><table class="source_code">
|
1621
|
+
<tr>
|
1622
|
+
<td>
|
1623
|
+
<pre class="lines">
|
1624
|
+
|
1625
|
+
|
1626
|
+
84
|
1627
|
+
85
|
1628
|
+
86
|
1629
|
+
87
|
1630
|
+
88
|
1631
|
+
89
|
1632
|
+
90</pre>
|
1633
|
+
</td>
|
1634
|
+
<td>
|
1635
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 84</span>
|
1636
|
+
|
1637
|
+
<span class='def def kw'>def</span> <span class='invalid_sign? fid id'>invalid_sign?</span>
|
1638
|
+
<span class='attrs identifier id'>attrs</span> <span class='assign token'>=</span> <span class='@attributes ivar id'>@attributes</span><span class='dot token'>.</span><span class='dup identifier id'>dup</span>
|
1639
|
+
<span class='attrs identifier id'>attrs</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='string val'>"sign"</span><span class='rparen token'>)</span>
|
1640
|
+
<span class='attrs identifier id'>attrs</span><span class='dot token'>.</span><span class='delete identifier id'>delete</span><span class='lparen token'>(</span><span class='string val'>"sign_type"</span><span class='rparen token'>)</span>
|
1641
|
+
<span class='text identifier id'>text</span> <span class='assign token'>=</span> <span class='attrs identifier id'>attrs</span><span class='dot token'>.</span><span class='delete_if identifier id'>delete_if</span><span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='k identifier id'>k</span><span class='comma token'>,</span> <span class='v identifier id'>v</span><span class='bitor op'>|</span> <span class='v identifier id'>v</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='eq op'>==</span> <span class='integer val'>0</span> <span class='rbrace token'>}</span><span class='dot token'>.</span><span class='sort identifier id'>sort</span><span class='dot token'>.</span><span class='collect identifier id'>collect</span><span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='s identifier id'>s</span><span class='bitor op'>|</span> <span class='s identifier id'>s</span><span class='lbrack token'>[</span><span class='integer val'>0</span><span class='rbrack token'>]</span> <span class='plus op'>+</span> <span class='string val'>"="</span> <span class='plus op'>+</span> <span class='URI constant id'>URI</span><span class='dot token'>.</span><span class='decode identifier id'>decode</span><span class='lparen token'>(</span><span class='s identifier id'>s</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='rparen token'>)</span> <span class='rbrace token'>}</span><span class='dot token'>.</span><span class='join identifier id'>join</span><span class='lparen token'>(</span><span class='string val'>"&"</span><span class='rparen token'>)</span> <span class='plus op'>+</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='key identifier id'>key</span>
|
1642
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='sign identifier id'>sign</span> <span class='eq op'>==</span> <span class='Digest constant id'>Digest</span><span class='colon2 op'>::</span><span class='MD5 constant id'>MD5</span><span class='dot token'>.</span><span class='hexdigest identifier id'>hexdigest</span><span class='lparen token'>(</span><span class='text identifier id'>text</span><span class='rparen token'>)</span> <span class='question op'>?</span> <span class='false false kw'>false</span> <span class='colon op'>:</span> <span class='true true kw'>true</span>
|
1643
|
+
<span class='end end kw'>end</span>
|
1644
|
+
</pre>
|
1645
|
+
</td>
|
1646
|
+
</tr>
|
1647
|
+
</table>
|
1648
|
+
</div>
|
1649
|
+
|
1650
|
+
<div class="method_details ">
|
1651
|
+
<p class="signature " id="key-instance_method">
|
1652
|
+
|
1653
|
+
- (<tt>Object</tt>) <strong>key</strong>
|
1654
|
+
|
1655
|
+
|
1656
|
+
|
1657
|
+
</p><table class="source_code">
|
1658
|
+
<tr>
|
1659
|
+
<td>
|
1660
|
+
<pre class="lines">
|
1661
|
+
|
1662
|
+
|
1663
|
+
97
|
1664
|
+
98
|
1665
|
+
99</pre>
|
1666
|
+
</td>
|
1667
|
+
<td>
|
1668
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 97</span>
|
1669
|
+
|
1670
|
+
<span class='def def kw'>def</span> <span class='key identifier id'>key</span>
|
1671
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='account identifier id'>account</span><span class='lbrack token'>[</span><span class='integer val'>1</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span>
|
1672
|
+
<span class='end end kw'>end</span>
|
1673
|
+
</pre>
|
1674
|
+
</td>
|
1675
|
+
</tr>
|
1676
|
+
</table>
|
1677
|
+
</div>
|
1678
|
+
|
1679
|
+
<div class="method_details ">
|
1680
|
+
<p class="signature " id="missing_partner?-instance_method">
|
1681
|
+
|
1682
|
+
- (<tt>Boolean</tt>) <strong>missing_partner?</strong>
|
1683
|
+
|
1684
|
+
|
1685
|
+
|
1686
|
+
</p><div class="docstring">
|
1687
|
+
<div class="discussion">
|
1688
|
+
|
1689
|
+
|
1690
|
+
</div>
|
1691
|
+
</div>
|
1692
|
+
<div class="tags">
|
1693
|
+
<h3>Returns:</h3>
|
1694
|
+
<ul class="return">
|
1695
|
+
|
1696
|
+
<li>
|
1697
|
+
|
1698
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1699
|
+
|
1700
|
+
|
1701
|
+
|
1702
|
+
|
1703
|
+
</li>
|
1704
|
+
|
1705
|
+
</ul>
|
1706
|
+
|
1707
|
+
</div><table class="source_code">
|
1708
|
+
<tr>
|
1709
|
+
<td>
|
1710
|
+
<pre class="lines">
|
1711
|
+
|
1712
|
+
|
1713
|
+
71
|
1714
|
+
72
|
1715
|
+
73
|
1716
|
+
74</pre>
|
1717
|
+
</td>
|
1718
|
+
<td>
|
1719
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 71</span>
|
1720
|
+
|
1721
|
+
<span class='def def kw'>def</span> <span class='missing_partner? fid id'>missing_partner?</span>
|
1722
|
+
<span class='return return kw'>return</span> <span class='if if_mod kw'>if</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='partner identifier id'>partner</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='eq op'>==</span> <span class='integer val'>0</span>
|
1723
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='account identifier id'>account</span> <span class='eq op'>==</span> <span class='lbrack token'>[</span><span class='rbrack token'>]</span> <span class='question op'>?</span> <span class='true true kw'>true</span> <span class='colon op'>:</span> <span class='false false kw'>false</span>
|
1724
|
+
<span class='end end kw'>end</span>
|
1725
|
+
</pre>
|
1726
|
+
</td>
|
1727
|
+
</tr>
|
1728
|
+
</table>
|
1729
|
+
</div>
|
1730
|
+
|
1731
|
+
<div class="method_details ">
|
1732
|
+
<p class="signature " id="money_blank?-instance_method">
|
1733
|
+
|
1734
|
+
- (<tt>Boolean</tt>) <strong>money_blank?</strong>
|
1735
|
+
|
1736
|
+
|
1737
|
+
|
1738
|
+
</p><div class="docstring">
|
1739
|
+
<div class="discussion">
|
1740
|
+
|
1741
|
+
|
1742
|
+
</div>
|
1743
|
+
</div>
|
1744
|
+
<div class="tags">
|
1745
|
+
<h3>Returns:</h3>
|
1746
|
+
<ul class="return">
|
1747
|
+
|
1748
|
+
<li>
|
1749
|
+
|
1750
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1751
|
+
|
1752
|
+
|
1753
|
+
|
1754
|
+
|
1755
|
+
</li>
|
1756
|
+
|
1757
|
+
</ul>
|
1758
|
+
|
1759
|
+
</div><table class="source_code">
|
1760
|
+
<tr>
|
1761
|
+
<td>
|
1762
|
+
<pre class="lines">
|
1763
|
+
|
1764
|
+
|
1765
|
+
80
|
1766
|
+
81
|
1767
|
+
82</pre>
|
1768
|
+
</td>
|
1769
|
+
<td>
|
1770
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 80</span>
|
1771
|
+
|
1772
|
+
<span class='def def kw'>def</span> <span class='money_blank? fid id'>money_blank?</span>
|
1773
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='price identifier id'>price</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='eq op'>==</span> <span class='integer val'>0</span> <span class='and and kw'>and</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='total_fee identifier id'>total_fee</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='eq op'>==</span> <span class='integer val'>0</span>
|
1774
|
+
<span class='end end kw'>end</span>
|
1775
|
+
</pre>
|
1776
|
+
</td>
|
1777
|
+
</tr>
|
1778
|
+
</table>
|
1779
|
+
</div>
|
1780
|
+
|
1781
|
+
<div class="method_details ">
|
1782
|
+
<p class="signature " id="notify-instance_method">
|
1783
|
+
|
1784
|
+
- (<tt>Object</tt>) <strong>notify</strong>
|
1785
|
+
|
1786
|
+
|
1787
|
+
|
1788
|
+
</p><table class="source_code">
|
1789
|
+
<tr>
|
1790
|
+
<td>
|
1791
|
+
<pre class="lines">
|
1792
|
+
|
1793
|
+
|
1794
|
+
107
|
1795
|
+
108
|
1796
|
+
109
|
1797
|
+
110
|
1798
|
+
111
|
1799
|
+
112</pre>
|
1800
|
+
</td>
|
1801
|
+
<td>
|
1802
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 107</span>
|
1803
|
+
|
1804
|
+
<span class='def def kw'>def</span> <span class='notify identifier id'>notify</span>
|
1805
|
+
<span class='@notify ivar id'>@notify</span> <span class='opasgn op'>||=</span> <span class='notify_attrs identifier id'>notify_attrs</span><span class='dot token'>.</span><span class='inject identifier id'>inject</span><span class='lparen token'>(</span><span class='lbrace token'>{</span> <span class='rbrace token'>}</span><span class='rparen token'>)</span><span class='lbrace token'>{</span> <span class='bitor op'>|</span><span class='notify identifier id'>notify</span><span class='comma token'>,</span> <span class='attr identifier id'>attr</span><span class='bitor op'>|</span>
|
1806
|
+
<span class='notify identifier id'>notify</span><span class='lbrack token'>[</span><span class='attr identifier id'>attr</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='attr identifier id'>attr</span><span class='rparen token'>)</span>
|
1807
|
+
<span class='notify identifier id'>notify</span>
|
1808
|
+
<span class='rbrace token'>}</span><span class='dot token'>.</span><span class='merge identifier id'>merge</span><span class='lparen token'>(</span><span class='string val'>"sign_type"</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='sign_type identifier id'>sign_type</span><span class='comma token'>,</span> <span class='string val'>"sign"</span> <span class='assign token'>=</span><span class='gt op'>></span> <span class='notify_sign identifier id'>notify_sign</span><span class='rparen token'>)</span>
|
1809
|
+
<span class='end end kw'>end</span>
|
1810
|
+
</pre>
|
1811
|
+
</td>
|
1812
|
+
</tr>
|
1813
|
+
</table>
|
1814
|
+
</div>
|
1815
|
+
|
1816
|
+
<div class="method_details ">
|
1817
|
+
<p class="signature " id="price_missing_quantity?-instance_method">
|
1818
|
+
|
1819
|
+
- (<tt>Boolean</tt>) <strong>price_missing_quantity?</strong>
|
1820
|
+
|
1821
|
+
|
1822
|
+
|
1823
|
+
</p><div class="docstring">
|
1824
|
+
<div class="discussion">
|
1825
|
+
|
1826
|
+
|
1827
|
+
</div>
|
1828
|
+
</div>
|
1829
|
+
<div class="tags">
|
1830
|
+
<h3>Returns:</h3>
|
1831
|
+
<ul class="return">
|
1832
|
+
|
1833
|
+
<li>
|
1834
|
+
|
1835
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1836
|
+
|
1837
|
+
|
1838
|
+
|
1839
|
+
|
1840
|
+
</li>
|
1841
|
+
|
1842
|
+
</ul>
|
1843
|
+
|
1844
|
+
</div><table class="source_code">
|
1845
|
+
<tr>
|
1846
|
+
<td>
|
1847
|
+
<pre class="lines">
|
1848
|
+
|
1849
|
+
|
1850
|
+
67
|
1851
|
+
68
|
1852
|
+
69</pre>
|
1853
|
+
</td>
|
1854
|
+
<td>
|
1855
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 67</span>
|
1856
|
+
|
1857
|
+
<span class='def def kw'>def</span> <span class='price_missing_quantity? fid id'>price_missing_quantity?</span>
|
1858
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='price identifier id'>price</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='gt op'>></span> <span class='integer val'>0</span> <span class='and and kw'>and</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='quantity identifier id'>quantity</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='eq op'>==</span> <span class='integer val'>0</span>
|
1859
|
+
<span class='end end kw'>end</span>
|
1860
|
+
</pre>
|
1861
|
+
</td>
|
1862
|
+
</tr>
|
1863
|
+
</table>
|
1864
|
+
</div>
|
1865
|
+
|
1866
|
+
<div class="method_details ">
|
1867
|
+
<p class="signature " id="repeat_money?-instance_method">
|
1868
|
+
|
1869
|
+
- (<tt>Boolean</tt>) <strong>repeat_money?</strong>
|
1870
|
+
|
1871
|
+
|
1872
|
+
|
1873
|
+
</p><div class="docstring">
|
1874
|
+
<div class="discussion">
|
1875
|
+
|
1876
|
+
|
1877
|
+
</div>
|
1878
|
+
</div>
|
1879
|
+
<div class="tags">
|
1880
|
+
<h3>Returns:</h3>
|
1881
|
+
<ul class="return">
|
1882
|
+
|
1883
|
+
<li>
|
1884
|
+
|
1885
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1886
|
+
|
1887
|
+
|
1888
|
+
|
1889
|
+
|
1890
|
+
</li>
|
1891
|
+
|
1892
|
+
</ul>
|
1893
|
+
|
1894
|
+
</div><table class="source_code">
|
1895
|
+
<tr>
|
1896
|
+
<td>
|
1897
|
+
<pre class="lines">
|
1898
|
+
|
1899
|
+
|
1900
|
+
63
|
1901
|
+
64
|
1902
|
+
65</pre>
|
1903
|
+
</td>
|
1904
|
+
<td>
|
1905
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 63</span>
|
1906
|
+
|
1907
|
+
<span class='def def kw'>def</span> <span class='repeat_money? fid id'>repeat_money?</span>
|
1908
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='price identifier id'>price</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='gt op'>></span> <span class='integer val'>0</span> <span class='and and kw'>and</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='total_fee identifier id'>total_fee</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='gt op'>></span> <span class='integer val'>0</span>
|
1909
|
+
<span class='end end kw'>end</span>
|
1910
|
+
</pre>
|
1911
|
+
</td>
|
1912
|
+
</tr>
|
1913
|
+
</table>
|
1914
|
+
</div>
|
1915
|
+
|
1916
|
+
<div class="method_details ">
|
1917
|
+
<p class="signature " id="seller_blank?-instance_method">
|
1918
|
+
|
1919
|
+
- (<tt>Boolean</tt>) <strong>seller_blank?</strong>
|
1920
|
+
|
1921
|
+
|
1922
|
+
|
1923
|
+
</p><div class="docstring">
|
1924
|
+
<div class="discussion">
|
1925
|
+
|
1926
|
+
|
1927
|
+
</div>
|
1928
|
+
</div>
|
1929
|
+
<div class="tags">
|
1930
|
+
<h3>Returns:</h3>
|
1931
|
+
<ul class="return">
|
1932
|
+
|
1933
|
+
<li>
|
1934
|
+
|
1935
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
1936
|
+
|
1937
|
+
|
1938
|
+
|
1939
|
+
|
1940
|
+
</li>
|
1941
|
+
|
1942
|
+
</ul>
|
1943
|
+
|
1944
|
+
</div><table class="source_code">
|
1945
|
+
<tr>
|
1946
|
+
<td>
|
1947
|
+
<pre class="lines">
|
1948
|
+
|
1949
|
+
|
1950
|
+
76
|
1951
|
+
77
|
1952
|
+
78</pre>
|
1953
|
+
</td>
|
1954
|
+
<td>
|
1955
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 76</span>
|
1956
|
+
|
1957
|
+
<span class='def def kw'>def</span> <span class='seller_blank? fid id'>seller_blank?</span>
|
1958
|
+
<span class='self self kw'>self</span><span class='dot token'>.</span><span class='seller_id identifier id'>seller_id</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='eq op'>==</span> <span class='integer val'>0</span> <span class='and and kw'>and</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='seller_email identifier id'>seller_email</span><span class='dot token'>.</span><span class='to_s identifier id'>to_s</span><span class='dot token'>.</span><span class='length identifier id'>length</span> <span class='eq op'>==</span> <span class='integer val'>0</span>
|
1959
|
+
<span class='end end kw'>end</span>
|
1960
|
+
</pre>
|
1961
|
+
</td>
|
1962
|
+
</tr>
|
1963
|
+
</table>
|
1964
|
+
</div>
|
1965
|
+
|
1966
|
+
<div class="method_details ">
|
1967
|
+
<p class="signature " id="send_notify-instance_method">
|
1968
|
+
|
1969
|
+
- (<tt>Object</tt>) <strong>send_notify</strong>
|
1970
|
+
|
1971
|
+
|
1972
|
+
|
1973
|
+
</p><table class="source_code">
|
1974
|
+
<tr>
|
1975
|
+
<td>
|
1976
|
+
<pre class="lines">
|
1977
|
+
|
1978
|
+
|
1979
|
+
114
|
1980
|
+
115
|
1981
|
+
116
|
1982
|
+
117
|
1983
|
+
118</pre>
|
1984
|
+
</td>
|
1985
|
+
<td>
|
1986
|
+
<pre class="code"><span class="info file"># File 'lib/models/alipay.rb', line 114</span>
|
1987
|
+
|
1988
|
+
<span class='def def kw'>def</span> <span class='send_notify identifier id'>send_notify</span>
|
1989
|
+
<span class='url identifier id'>url</span> <span class='assign token'>=</span> <span class='URI constant id'>URI</span><span class='dot token'>.</span><span class='parse identifier id'>parse</span> <span class='notify_url identifier id'>notify_url</span>
|
1990
|
+
<span class='res identifier id'>res</span> <span class='assign token'>=</span> <span class='Net constant id'>Net</span><span class='colon2 op'>::</span><span class='HTTP constant id'>HTTP</span><span class='dot token'>.</span><span class='post_form identifier id'>post_form</span> <span class='url identifier id'>url</span><span class='comma token'>,</span> <span class='self self kw'>self</span><span class='dot token'>.</span><span class='notify identifier id'>notify</span>
|
1991
|
+
<span class='res identifier id'>res</span><span class='dot token'>.</span><span class='body identifier id'>body</span>
|
1992
|
+
<span class='end end kw'>end</span>
|
1993
|
+
</pre>
|
1994
|
+
</td>
|
1995
|
+
</tr>
|
1996
|
+
</table>
|
1997
|
+
</div>
|
1998
|
+
|
1999
|
+
</div>
|
2000
|
+
|
2001
|
+
</div>
|
2002
|
+
|
2003
|
+
<div id="footer">
|
2004
|
+
Generated on Thu Oct 21 14:14:15 2010 by
|
2005
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2006
|
+
0.6.1 (ruby-1.8.7).
|
2007
|
+
</div>
|
2008
|
+
|
2009
|
+
</body>
|
2010
|
+
</html>
|