openpayu 0.0.2 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +5 -13
  2. data/README.md +26 -21
  3. data/doc/EmptyResponseError.html +4 -4
  4. data/doc/HttpStatusException.html +4 -4
  5. data/doc/NotImplementedException.html +4 -4
  6. data/doc/OpenPayU.html +13 -13
  7. data/doc/OpenPayU/Configuration.html +19 -17
  8. data/doc/OpenPayU/Connection.html +35 -43
  9. data/doc/OpenPayU/Document.html +24 -228
  10. data/doc/OpenPayU/Documents.html +4 -4
  11. data/doc/OpenPayU/Documents/Request.html +5 -5
  12. data/doc/OpenPayU/Documents/Response.html +72 -120
  13. data/doc/OpenPayU/Models.html +5 -5
  14. data/doc/OpenPayU/Models/Address.html +5 -6
  15. data/doc/OpenPayU/Models/Buyer.html +5 -6
  16. data/doc/OpenPayU/Models/Buyer/Delivery.html +5 -6
  17. data/doc/OpenPayU/Models/Card.html +5 -6
  18. data/doc/OpenPayU/Models/Fee.html +5 -6
  19. data/doc/OpenPayU/Models/Model.html +122 -207
  20. data/doc/OpenPayU/Models/NotifyResponse.html +5 -6
  21. data/doc/OpenPayU/Models/Order.html +8 -9
  22. data/doc/OpenPayU/Models/PayMethod.html +5 -6
  23. data/doc/OpenPayU/Models/Product.html +5 -6
  24. data/doc/OpenPayU/Models/Refund.html +13 -102
  25. data/doc/OpenPayU/Models/ShippingMethod.html +13 -14
  26. data/doc/OpenPayU/Models/StatusUpdate.html +5 -6
  27. data/doc/OpenPayU/Models/Token.html +5 -6
  28. data/doc/OpenPayU/Order.html +53 -89
  29. data/doc/OpenPayU/Refund.html +6 -18
  30. data/doc/OpenPayU/Token.html +4 -4
  31. data/doc/WrongConfigurationError.html +4 -4
  32. data/doc/WrongNotifyRequest.html +4 -4
  33. data/doc/WrongOrderParameters.html +4 -4
  34. data/doc/WrongSignatureException.html +4 -4
  35. data/doc/_index.html +13 -31
  36. data/doc/class_list.html +1 -1
  37. data/doc/css/style.css +2 -1
  38. data/doc/file.README.html +38 -30
  39. data/doc/frames.html +1 -1
  40. data/doc/index.html +38 -30
  41. data/doc/js/app.js +7 -2
  42. data/doc/method_list.html +78 -120
  43. data/doc/top-level-namespace.html +4 -4
  44. data/lib/openpayu.rb +0 -1
  45. data/lib/openpayu/configuration.rb +1 -0
  46. data/lib/openpayu/connection.rb +28 -19
  47. data/lib/openpayu/document.rb +2 -38
  48. data/lib/openpayu/documents/response.rb +9 -20
  49. data/lib/openpayu/models/model.rb +4 -25
  50. data/lib/openpayu/models/order.rb +0 -1
  51. data/lib/openpayu/models/refund.rb +5 -27
  52. data/lib/openpayu/models/shipping_method.rb +2 -2
  53. data/lib/openpayu/order.rb +7 -25
  54. data/lib/openpayu/refund.rb +1 -7
  55. data/lib/openpayu/version.rb +1 -1
  56. data/openpayu_ruby.gemspec +0 -4
  57. data/spec/cassettes/cancel_order.yml +17 -26
  58. data/spec/cassettes/create_order.yml +19 -29
  59. data/spec/cassettes/retrieve_order.yml +18 -27
  60. data/spec/cassettes/update_order.yml +19 -28
  61. data/spec/integration/order_spec.rb +65 -78
  62. data/spec/openpayu.yml +2 -2
  63. data/spec/spec_helper.rb +5 -5
  64. data/spec/test_objects/order.rb +31 -56
  65. data/spec/unit/configuration_spec.rb +1 -1
  66. data/spec/unit/models/order_spec.rb +4 -34
  67. data/spec/unit/openpayu_spec.rb +2 -5
  68. metadata +55 -87
  69. data/lib/openpayu/xml_builder.rb +0 -23
  70. data/spec/cassettes/refund_order.yml +0 -100
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: OpenPayU::Models::Token
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '../../';
20
- framesUrl = "../../frames.html#!" + escape(window.location.href);
20
+ framesUrl = "../../frames.html#!OpenPayU/Models/Token.html";
21
21
  </script>
22
22
 
23
23
 
@@ -263,10 +263,9 @@
263
263
  <h2>Method Summary</h2>
264
264
 
265
265
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Model.html" title="OpenPayU::Models::Model (class)">Model</a></span></h3>
266
- <p class="inherited"><span class='object_link'><a href="Model.html#after_initialize-instance_method" title="OpenPayU::Models::Model#after_initialize (method)">#after_initialize</a></span>, <span class='object_link'><a href="Model.html#all_objects_valid%3F-instance_method" title="OpenPayU::Models::Model#all_objects_valid? (method)">#all_objects_valid?</a></span>, <span class='object_link'><a href="Model.html#attributes-instance_method" title="OpenPayU::Models::Model#attributes (method)">#attributes</a></span>, <span class='object_link'><a href="Model.html#define_reader-class_method" title="OpenPayU::Models::Model.define_reader (method)">define_reader</a></span>, <span class='object_link'><a href="Model.html#define_writer-class_method" title="OpenPayU::Models::Model.define_writer (method)">define_writer</a></span>, <span class='object_link'><a href="Model.html#generate_xml-instance_method" title="OpenPayU::Models::Model#generate_xml (method)">#generate_xml</a></span>, <span class='object_link'><a href="Model.html#get_instance_values-instance_method" title="OpenPayU::Models::Model#get_instance_values (method)">#get_instance_values</a></span>, <span class='object_link'><a href="Model.html#has_many_objects-class_method" title="OpenPayU::Models::Model.has_many_objects (method)">has_many_objects</a></span>, <span class='object_link'><a href="Model.html#has_one_object-class_method" title="OpenPayU::Models::Model.has_one_object (method)">has_one_object</a></span>, <span class='object_link'><a href="Model.html#initialize-instance_method" title="OpenPayU::Models::Model#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Model.html#prepare_data-instance_method" title="OpenPayU::Models::Model#prepare_data (method)">#prepare_data</a></span>, <span class='object_link'><a href="Model.html#prepare_keys-instance_method" title="OpenPayU::Models::Model#prepare_keys (method)">#prepare_keys</a></span>, <span class='object_link'><a href="Model.html#to_flatten_hash-instance_method" title="OpenPayU::Models::Model#to_flatten_hash (method)">#to_flatten_hash</a></span>, <span class='object_link'><a href="Model.html#to_json-instance_method" title="OpenPayU::Models::Model#to_json (method)">#to_json</a></span>, <span class='object_link'><a href="Model.html#validate_all_objects-instance_method" title="OpenPayU::Models::Model#validate_all_objects (method)">#validate_all_objects</a></span></p>
266
+ <p class="inherited"><span class='object_link'><a href="Model.html#after_initialize-instance_method" title="OpenPayU::Models::Model#after_initialize (method)">#after_initialize</a></span>, <span class='object_link'><a href="Model.html#all_objects_valid%3F-instance_method" title="OpenPayU::Models::Model#all_objects_valid? (method)">#all_objects_valid?</a></span>, <span class='object_link'><a href="Model.html#attributes-instance_method" title="OpenPayU::Models::Model#attributes (method)">#attributes</a></span>, <span class='object_link'><a href="Model.html#define_reader-class_method" title="OpenPayU::Models::Model.define_reader (method)">define_reader</a></span>, <span class='object_link'><a href="Model.html#define_writer-class_method" title="OpenPayU::Models::Model.define_writer (method)">define_writer</a></span>, <span class='object_link'><a href="Model.html#get_instance_values-instance_method" title="OpenPayU::Models::Model#get_instance_values (method)">#get_instance_values</a></span>, <span class='object_link'><a href="Model.html#has_many_objects-class_method" title="OpenPayU::Models::Model.has_many_objects (method)">has_many_objects</a></span>, <span class='object_link'><a href="Model.html#has_one_object-class_method" title="OpenPayU::Models::Model.has_one_object (method)">has_one_object</a></span>, <span class='object_link'><a href="Model.html#initialize-instance_method" title="OpenPayU::Models::Model#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Model.html#prepare_data-instance_method" title="OpenPayU::Models::Model#prepare_data (method)">#prepare_data</a></span>, <span class='object_link'><a href="Model.html#prepare_keys-instance_method" title="OpenPayU::Models::Model#prepare_keys (method)">#prepare_keys</a></span>, <span class='object_link'><a href="Model.html#to_flatten_hash-instance_method" title="OpenPayU::Models::Model#to_flatten_hash (method)">#to_flatten_hash</a></span>, <span class='object_link'><a href="Model.html#to_json-instance_method" title="OpenPayU::Models::Model#to_json (method)">#to_json</a></span>, <span class='object_link'><a href="Model.html#validate_all_objects-instance_method" title="OpenPayU::Models::Model#validate_all_objects (method)">#validate_all_objects</a></span></p>
267
267
 
268
268
 
269
-
270
269
  <div id="constructor_details" class="method_details_list">
271
270
  <h2>Constructor Details</h2>
272
271
 
@@ -498,9 +497,9 @@
498
497
  </div>
499
498
 
500
499
  <div id="footer">
501
- Generated on Tue Dec 17 15:21:00 2013 by
500
+ Generated on Thu May 29 15:13:59 2014 by
502
501
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
503
- 0.8.7.2 (ruby-1.9.3).
502
+ 0.8.7.4 (ruby-1.9.3).
504
503
  </div>
505
504
 
506
505
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: OpenPayU::Order
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '../';
20
- framesUrl = "../frames.html#!" + escape(window.location.href);
20
+ framesUrl = "../frames.html#!OpenPayU/Order.html";
21
21
  </script>
22
22
 
23
23
 
@@ -342,23 +342,23 @@
342
342
  <pre class="lines">
343
343
 
344
344
 
345
- 109
346
- 110
347
- 111
348
- 112
349
- 113
350
- 114
351
- 115</pre>
345
+ 91
346
+ 92
347
+ 93
348
+ 94
349
+ 95
350
+ 96
351
+ 97</pre>
352
352
  </td>
353
353
  <td>
354
- <pre class="code"><span class="info file"># File 'lib/openpayu/order.rb', line 109</span>
354
+ <pre class="code"><span class="info file"># File 'lib/openpayu/order.rb', line 91</span>
355
355
 
356
356
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_build_notify_response'>build_notify_response</span><span class='lparen'>(</span><span class='id identifier rubyid_request_id'>request_id</span><span class='rparen'>)</span>
357
357
  <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='const'>Models</span><span class='op'>::</span><span class='const'>NotifyResponse</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='lbrace'>{</span>
358
358
  <span class='label'>res_id:</span> <span class='id identifier rubyid_request_id'>request_id</span><span class='comma'>,</span>
359
- <span class='label'>status:</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>StatusCode</span><span class='tstring_end'>'</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>SUCCESS</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
359
+ <span class='label'>status:</span> <span class='lbrace'>{</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>statusCode</span><span class='tstring_end'>'</span></span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>SUCCESS</span><span class='tstring_end'>'</span></span> <span class='rbrace'>}</span>
360
360
  <span class='rbrace'>}</span><span class='rparen'>)</span>
361
- <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_prepare_data'>prepare_data</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OrderNotifyResponse</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
361
+ <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_prepare_data'>prepare_data</span>
362
362
  <span class='kw'>end</span></pre>
363
363
  </td>
364
364
  </tr>
@@ -432,26 +432,18 @@
432
432
  <pre class="lines">
433
433
 
434
434
 
435
- 73
436
- 74
437
- 75
438
- 76
439
- 77
440
- 78
441
- 79
442
- 80
443
- 81</pre>
435
+ 60
436
+ 61
437
+ 62
438
+ 63
439
+ 64</pre>
444
440
  </td>
445
441
  <td>
446
- <pre class="code"><span class="info file"># File 'lib/openpayu/order.rb', line 73</span>
442
+ <pre class="code"><span class="info file"># File 'lib/openpayu/order.rb', line 60</span>
447
443
 
448
444
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_cancel'>cancel</span><span class='lparen'>(</span><span class='id identifier rubyid_order_id'>order_id</span><span class='rparen'>)</span>
449
- <span class='id identifier rubyid_url'>url</span> <span class='op'>=</span> <span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_get_base_url'>get_base_url</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>order/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_order_id'>order_id</span><span class='rbrace'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span>
450
- <span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_data_format'>data_format</span>
451
- <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>Documents</span><span class='op'>::</span><span class='const'>Request</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
452
445
  <span class='const'>Documents</span><span class='op'>::</span><span class='const'>Response</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
453
- <span class='const'>Connection</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span><span class='comma'>,</span>
454
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OrderCancelResponse</span><span class='tstring_end'>'</span></span>
446
+ <span class='const'>Connection</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>orders/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_order_id'>order_id</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
455
447
  <span class='rparen'>)</span>
456
448
  <span class='kw'>end</span></pre>
457
449
  </td>
@@ -541,28 +533,26 @@
541
533
  <pre class="lines">
542
534
 
543
535
 
544
- 90
545
- 91
546
- 92
547
- 93
548
- 94
549
- 95
550
- 96
551
- 97
552
- 98
553
- 99
554
- 100
555
- 101
556
- 102
557
- 103</pre>
536
+ 73
537
+ 74
538
+ 75
539
+ 76
540
+ 77
541
+ 78
542
+ 79
543
+ 80
544
+ 81
545
+ 82
546
+ 83
547
+ 84
548
+ 85</pre>
558
549
  </td>
559
550
  <td>
560
- <pre class="code"><span class="info file"># File 'lib/openpayu/order.rb', line 90</span>
551
+ <pre class="code"><span class="info file"># File 'lib/openpayu/order.rb', line 73</span>
561
552
 
562
553
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_consume_notification'>consume_notification</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
563
554
  <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='const'>Documents</span><span class='op'>::</span><span class='const'>Response</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
564
- <span class='lbrace'>{</span> <span class='label'>response:</span> <span class='id identifier rubyid_request'>request</span><span class='comma'>,</span> <span class='label'>request:</span> <span class='kw'>nil</span> <span class='rbrace'>}</span><span class='comma'>,</span>
565
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OrderNotifyRequest</span><span class='tstring_end'>'</span></span>
555
+ <span class='lbrace'>{</span> <span class='label'>response:</span> <span class='id identifier rubyid_request'>request</span><span class='comma'>,</span> <span class='label'>request:</span> <span class='kw'>nil</span> <span class='rbrace'>}</span>
566
556
  <span class='rparen'>)</span>
567
557
  <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
568
558
  <span class='id identifier rubyid_response'>response</span>
@@ -663,33 +653,25 @@
663
653
  <pre class="lines">
664
654
 
665
655
 
656
+ 28
657
+ 29
658
+ 30
659
+ 31
666
660
  32
667
661
  33
668
662
  34
669
663
  35
670
664
  36
671
- 37
672
- 38
673
- 39
674
- 40
675
- 41
676
- 42
677
- 43
678
- 44
679
- 45</pre>
665
+ 37</pre>
680
666
  </td>
681
667
  <td>
682
- <pre class="code"><span class="info file"># File 'lib/openpayu/order.rb', line 32</span>
668
+ <pre class="code"><span class="info file"># File 'lib/openpayu/order.rb', line 28</span>
683
669
 
684
670
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_order'>order</span><span class='rparen'>)</span>
685
671
  <span class='ivar'>@order</span> <span class='op'>=</span> <span class='const'>Models</span><span class='op'>::</span><span class='const'>Order</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_order'>order</span><span class='rparen'>)</span>
686
672
  <span class='kw'>if</span> <span class='ivar'>@order</span><span class='period'>.</span><span class='id identifier rubyid_all_objects_valid?'>all_objects_valid?</span>
687
- <span class='id identifier rubyid_url'>url</span> <span class='op'>=</span> <span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_get_base_url'>get_base_url</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>order.</span><span class='tstring_end'>'</span></span> <span class='op'>+</span> <span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_data_format'>data_format</span>
688
- <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span>
689
- <span class='const'>Documents</span><span class='op'>::</span><span class='const'>Request</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@order</span><span class='period'>.</span><span class='id identifier rubyid_prepare_data'>prepare_data</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OrderCreateRequest</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
690
673
  <span class='const'>Documents</span><span class='op'>::</span><span class='const'>Response</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
691
- <span class='const'>Connection</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span><span class='comma'>,</span>
692
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OrderCreateResponse</span><span class='tstring_end'>'</span></span>
674
+ <span class='const'>Connection</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>orders</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='ivar'>@order</span><span class='period'>.</span><span class='id identifier rubyid_prepare_data'>prepare_data</span><span class='rparen'>)</span>
693
675
  <span class='rparen'>)</span>
694
676
  <span class='kw'>else</span>
695
677
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>WrongOrderParameters</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@order</span><span class='rparen'>)</span>
@@ -771,22 +753,14 @@
771
753
  15
772
754
  16
773
755
  17
774
- 18
775
- 19
776
- 20
777
- 21
778
- 22</pre>
756
+ 18</pre>
779
757
  </td>
780
758
  <td>
781
759
  <pre class="code"><span class="info file"># File 'lib/openpayu/order.rb', line 14</span>
782
760
 
783
761
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_retrieve'>retrieve</span><span class='lparen'>(</span><span class='id identifier rubyid_order_id'>order_id</span><span class='rparen'>)</span>
784
- <span class='id identifier rubyid_url'>url</span> <span class='op'>=</span> <span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_get_base_url'>get_base_url</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>order/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_order_id'>order_id</span><span class='rbrace'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span>
785
- <span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_data_format'>data_format</span>
786
- <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>Documents</span><span class='op'>::</span><span class='const'>Request</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
787
762
  <span class='const'>Documents</span><span class='op'>::</span><span class='const'>Response</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
788
- <span class='const'>Connection</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span><span class='comma'>,</span>
789
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OrderRetrieveResponse</span><span class='tstring_end'>'</span></span>
763
+ <span class='const'>Connection</span><span class='period'>.</span><span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>orders/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_order_id'>order_id</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
790
764
  <span class='rparen'>)</span>
791
765
  <span class='kw'>end</span></pre>
792
766
  </td>
@@ -879,30 +853,20 @@
879
853
  <pre class="lines">
880
854
 
881
855
 
882
- 55
883
- 56
884
- 57
885
- 58
886
- 59
887
- 60
888
- 61
889
- 62
890
- 63
891
- 64
892
- 65</pre>
856
+ 47
857
+ 48
858
+ 49
859
+ 50
860
+ 51
861
+ 52</pre>
893
862
  </td>
894
863
  <td>
895
- <pre class="code"><span class="info file"># File 'lib/openpayu/order.rb', line 55</span>
864
+ <pre class="code"><span class="info file"># File 'lib/openpayu/order.rb', line 47</span>
896
865
 
897
866
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_status_update'>status_update</span><span class='lparen'>(</span><span class='id identifier rubyid_status_update'>status_update</span><span class='rparen'>)</span>
898
867
  <span class='ivar'>@update</span> <span class='op'>=</span> <span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Models</span><span class='op'>::</span><span class='const'>StatusUpdate</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_status_update'>status_update</span>
899
- <span class='id identifier rubyid_url'>url</span> <span class='op'>=</span> <span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_get_base_url'>get_base_url</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>order/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@update</span><span class='period'>.</span><span class='id identifier rubyid_order_id'>order_id</span><span class='rbrace'>}</span><span class='tstring_content'>/status.</span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span>
900
- <span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_data_format'>data_format</span>
901
- <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span>
902
- <span class='const'>Documents</span><span class='op'>::</span><span class='const'>Request</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@update</span><span class='period'>.</span><span class='id identifier rubyid_prepare_data'>prepare_data</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OrderStatusUpdateRequest</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
903
868
  <span class='const'>Documents</span><span class='op'>::</span><span class='const'>Response</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
904
- <span class='const'>Connection</span><span class='period'>.</span><span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span><span class='comma'>,</span>
905
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OrderStatusUpdateResponse</span><span class='tstring_end'>'</span></span>
869
+ <span class='const'>Connection</span><span class='period'>.</span><span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>orders/</span><span class='embexpr_beg'>#{</span><span class='ivar'>@update</span><span class='period'>.</span><span class='id identifier rubyid_order_id'>order_id</span><span class='rbrace'>}</span><span class='tstring_content'>/status</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='ivar'>@update</span><span class='period'>.</span><span class='id identifier rubyid_prepare_data'>prepare_data</span><span class='rparen'>)</span>
906
870
  <span class='rparen'>)</span>
907
871
  <span class='kw'>end</span></pre>
908
872
  </td>
@@ -915,9 +879,9 @@
915
879
  </div>
916
880
 
917
881
  <div id="footer">
918
- Generated on Tue Dec 17 15:20:58 2013 by
882
+ Generated on Thu May 29 15:13:57 2014 by
919
883
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
920
- 0.8.7.2 (ruby-1.9.3).
884
+ 0.8.7.4 (ruby-1.9.3).
921
885
  </div>
922
886
 
923
887
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: OpenPayU::Refund
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '../';
20
- framesUrl = "../frames.html#!" + escape(window.location.href);
20
+ framesUrl = "../frames.html#!OpenPayU/Refund.html";
21
21
  </script>
22
22
 
23
23
 
@@ -227,27 +227,15 @@
227
227
  15
228
228
  16
229
229
  17
230
- 18
231
- 19
232
- 20
233
- 21
234
- 22
235
- 23
236
- 24</pre>
230
+ 18</pre>
237
231
  </td>
238
232
  <td>
239
233
  <pre class="code"><span class="info file"># File 'lib/openpayu/refund.rb', line 13</span>
240
234
 
241
235
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
242
236
  <span class='id identifier rubyid_refund'>refund</span> <span class='op'>=</span> <span class='const'>Models</span><span class='op'>::</span><span class='const'>Refund</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
243
- <span class='id identifier rubyid_url'>url</span> <span class='op'>=</span> <span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_get_base_url'>get_base_url</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>order/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_refund'>refund</span><span class='period'>.</span><span class='id identifier rubyid_order_id'>order_id</span><span class='rbrace'>}</span><span class='tstring_content'>/refund.</span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span>
244
- <span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_data_format'>data_format</span>
245
- <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>Documents</span><span class='op'>::</span><span class='const'>Request</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
246
- <span class='id identifier rubyid_refund'>refund</span><span class='period'>.</span><span class='id identifier rubyid_prepare_data'>prepare_data</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RefundCreateRequest</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
247
- <span class='rparen'>)</span>
248
237
  <span class='ivar'>@response</span> <span class='op'>=</span> <span class='const'>Documents</span><span class='op'>::</span><span class='const'>Response</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span>
249
- <span class='const'>Connection</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_headers'>headers</span><span class='rparen'>)</span><span class='comma'>,</span>
250
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>RefundCreateResponse</span><span class='tstring_end'>'</span></span>
238
+ <span class='const'>Connection</span><span class='period'>.</span><span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>orders/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_refund'>refund</span><span class='period'>.</span><span class='id identifier rubyid_order_id'>order_id</span><span class='rbrace'>}</span><span class='tstring_content'>/refund</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_refund'>refund</span><span class='period'>.</span><span class='id identifier rubyid_prepare_data'>prepare_data</span><span class='rparen'>)</span>
251
239
  <span class='rparen'>)</span>
252
240
  <span class='kw'>end</span></pre>
253
241
  </td>
@@ -260,9 +248,9 @@
260
248
  </div>
261
249
 
262
250
  <div id="footer">
263
- Generated on Tue Dec 17 15:20:58 2013 by
251
+ Generated on Thu May 29 15:13:57 2014 by
264
252
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
265
- 0.8.7.2 (ruby-1.9.3).
253
+ 0.8.7.4 (ruby-1.9.3).
266
254
  </div>
267
255
 
268
256
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: OpenPayU::Token
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '../';
20
- framesUrl = "../frames.html#!" + escape(window.location.href);
20
+ framesUrl = "../frames.html#!OpenPayU/Token.html";
21
21
  </script>
22
22
 
23
23
 
@@ -279,9 +279,9 @@
279
279
  </div>
280
280
 
281
281
  <div id="footer">
282
- Generated on Tue Dec 17 15:20:58 2013 by
282
+ Generated on Thu May 29 15:13:57 2014 by
283
283
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
284
- 0.8.7.2 (ruby-1.9.3).
284
+ 0.8.7.4 (ruby-1.9.3).
285
285
  </div>
286
286
 
287
287
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: WrongConfigurationError
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '';
20
- framesUrl = "frames.html#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!WrongConfigurationError.html";
21
21
  </script>
22
22
 
23
23
 
@@ -114,9 +114,9 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Tue Dec 17 15:20:59 2013 by
117
+ Generated on Thu May 29 15:13:58 2014 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.8.7.2 (ruby-1.9.3).
119
+ 0.8.7.4 (ruby-1.9.3).
120
120
  </div>
121
121
 
122
122
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: WrongNotifyRequest
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '';
20
- framesUrl = "frames.html#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!WrongNotifyRequest.html";
21
21
  </script>
22
22
 
23
23
 
@@ -114,9 +114,9 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Tue Dec 17 15:20:59 2013 by
117
+ Generated on Thu May 29 15:13:58 2014 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.8.7.2 (ruby-1.9.3).
119
+ 0.8.7.4 (ruby-1.9.3).
120
120
  </div>
121
121
 
122
122
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: WrongOrderParameters
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.2
9
+ &mdash; Documentation by YARD 0.8.7.4
10
10
 
11
11
  </title>
12
12
 
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript" charset="utf-8">
18
18
  hasFrames = window.top.frames.main ? true : false;
19
19
  relpath = '';
20
- framesUrl = "frames.html#!" + escape(window.location.href);
20
+ framesUrl = "frames.html#!WrongOrderParameters.html";
21
21
  </script>
22
22
 
23
23
 
@@ -258,9 +258,9 @@
258
258
  </div>
259
259
 
260
260
  <div id="footer">
261
- Generated on Tue Dec 17 15:20:59 2013 by
261
+ Generated on Thu May 29 15:13:58 2014 by
262
262
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
263
- 0.8.7.2 (ruby-1.9.3).
263
+ 0.8.7.4 (ruby-1.9.3).
264
264
  </div>
265
265
 
266
266
  </body>