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
  Module: OpenPayU::Models
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.html";
21
21
  </script>
22
22
 
23
23
 
@@ -80,7 +80,7 @@
80
80
 
81
81
  <dt class="r1 last">Defined in:</dt>
82
82
  <dd class="r1 last">lib/openpayu/models/fee.rb<span class="defines">,<br />
83
- lib/openpayu/models/card.rb,<br /> lib/openpayu/models/buyer.rb,<br /> lib/openpayu/models/model.rb,<br /> lib/openpayu/models/token.rb,<br /> lib/openpayu/models/order.rb,<br /> lib/openpayu/models/refund.rb,<br /> lib/openpayu/models/address.rb,<br /> lib/openpayu/models/product.rb,<br /> lib/openpayu/models/pay_method.rb,<br /> lib/openpayu/models/status_update.rb,<br /> lib/openpayu/models/buyer/invoice.rb,<br /> lib/openpayu/models/buyer/delivery.rb,<br /> lib/openpayu/models/notify_response.rb,<br /> lib/openpayu/models/shipping_method.rb</span>
83
+ lib/openpayu/models/card.rb,<br /> lib/openpayu/models/buyer.rb,<br /> lib/openpayu/models/model.rb,<br /> lib/openpayu/models/order.rb,<br /> lib/openpayu/models/token.rb,<br /> lib/openpayu/models/refund.rb,<br /> lib/openpayu/models/address.rb,<br /> lib/openpayu/models/product.rb,<br /> lib/openpayu/models/pay_method.rb,<br /> lib/openpayu/models/status_update.rb,<br /> lib/openpayu/models/buyer/invoice.rb,<br /> lib/openpayu/models/buyer/delivery.rb,<br /> lib/openpayu/models/notify_response.rb,<br /> lib/openpayu/models/shipping_method.rb</span>
84
84
  </dd>
85
85
 
86
86
  </dl>
@@ -108,9 +108,9 @@
108
108
  </div>
109
109
 
110
110
  <div id="footer">
111
- Generated on Tue Dec 17 15:20:58 2013 by
111
+ Generated on Thu May 29 15:13:57 2014 by
112
112
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
113
- 0.8.7.2 (ruby-1.9.3).
113
+ 0.8.7.4 (ruby-1.9.3).
114
114
  </div>
115
115
 
116
116
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: OpenPayU::Models::Address
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/Address.html";
21
21
  </script>
22
22
 
23
23
 
@@ -402,10 +402,9 @@
402
402
  <h2>Method Summary</h2>
403
403
 
404
404
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Model.html" title="OpenPayU::Models::Model (class)">Model</a></span></h3>
405
- <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>
405
+ <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>
406
406
 
407
407
 
408
-
409
408
  <div id="constructor_details" class="method_details_list">
410
409
  <h2>Constructor Details</h2>
411
410
 
@@ -852,9 +851,9 @@
852
851
  </div>
853
852
 
854
853
  <div id="footer">
855
- Generated on Tue Dec 17 15:21:01 2013 by
854
+ Generated on Thu May 29 15:13:59 2014 by
856
855
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
857
- 0.8.7.2 (ruby-1.9.3).
856
+ 0.8.7.4 (ruby-1.9.3).
858
857
  </div>
859
858
 
860
859
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: OpenPayU::Models::Buyer
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/Buyer.html";
21
21
  </script>
22
22
 
23
23
 
@@ -300,10 +300,9 @@
300
300
  <h2>Method Summary</h2>
301
301
 
302
302
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Model.html" title="OpenPayU::Models::Model (class)">Model</a></span></h3>
303
- <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>
303
+ <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>
304
304
 
305
305
 
306
-
307
306
  <div id="constructor_details" class="method_details_list">
308
307
  <h2>Constructor Details</h2>
309
308
 
@@ -578,9 +577,9 @@
578
577
  </div>
579
578
 
580
579
  <div id="footer">
581
- Generated on Tue Dec 17 15:20:59 2013 by
580
+ Generated on Thu May 29 15:13:58 2014 by
582
581
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
583
- 0.8.7.2 (ruby-1.9.3).
582
+ 0.8.7.4 (ruby-1.9.3).
584
583
  </div>
585
584
 
586
585
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: OpenPayU::Models::Buyer::Delivery
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/Buyer/Delivery.html";
21
21
  </script>
22
22
 
23
23
 
@@ -197,10 +197,9 @@
197
197
  <h2>Method Summary</h2>
198
198
 
199
199
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Model.html" title="OpenPayU::Models::Model (class)">Model</a></span></h3>
200
- <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>
200
+ <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>
201
201
 
202
202
 
203
-
204
203
  <div id="constructor_details" class="method_details_list">
205
204
  <h2>Constructor Details</h2>
206
205
 
@@ -303,9 +302,9 @@
303
302
  </div>
304
303
 
305
304
  <div id="footer">
306
- Generated on Tue Dec 17 15:21:02 2013 by
305
+ Generated on Thu May 29 15:14:00 2014 by
307
306
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
308
- 0.8.7.2 (ruby-1.9.3).
307
+ 0.8.7.4 (ruby-1.9.3).
309
308
  </div>
310
309
 
311
310
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: OpenPayU::Models::Card
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/Card.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:20:59 2013 by
500
+ Generated on Thu May 29 15:13:58 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::Models::Fee
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/Fee.html";
21
21
  </script>
22
22
 
23
23
 
@@ -209,10 +209,9 @@
209
209
  <h2>Method Summary</h2>
210
210
 
211
211
  <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Model.html" title="OpenPayU::Models::Model (class)">Model</a></span></h3>
212
- <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>
212
+ <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>
213
213
 
214
214
 
215
-
216
215
  <div id="constructor_details" class="method_details_list">
217
216
  <h2>Constructor Details</h2>
218
217
 
@@ -358,9 +357,9 @@
358
357
  </div>
359
358
 
360
359
  <div id="footer">
361
- Generated on Tue Dec 17 15:20:59 2013 by
360
+ Generated on Thu May 29 15:13:58 2014 by
362
361
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
363
- 0.8.7.2 (ruby-1.9.3).
362
+ 0.8.7.4 (ruby-1.9.3).
364
363
  </div>
365
364
 
366
365
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: OpenPayU::Models::Model
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/Model.html";
21
21
  </script>
22
22
 
23
23
 
@@ -91,7 +91,7 @@
91
91
 
92
92
 
93
93
  <dt class="r2">Includes:</dt>
94
- <dd class="r2">ActiveModel::Serializers::JSON, ActiveModel::Serializers::Xml, ActiveModel::Validations</dd>
94
+ <dd class="r2">ActiveModel::Serializers::JSON, ActiveModel::Validations</dd>
95
95
 
96
96
 
97
97
 
@@ -312,28 +312,6 @@
312
312
 
313
313
 
314
314
 
315
- <span class="summary_desc"><div class='inline'></div></span>
316
-
317
- </li>
318
-
319
-
320
- <li class="public ">
321
- <span class="summary_signature">
322
-
323
- <a href="#generate_xml-instance_method" title="#generate_xml (instance method)">- (Object) <strong>generate_xml</strong>(request_type) </a>
324
-
325
-
326
-
327
- </span>
328
-
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
315
  <span class="summary_desc"><div class='inline'></div></span>
338
316
 
339
317
  </li>
@@ -390,7 +368,7 @@
390
368
  <li class="public ">
391
369
  <span class="summary_signature">
392
370
 
393
- <a href="#prepare_data-instance_method" title="#prepare_data (instance method)">- (Object) <strong>prepare_data</strong>(request_type) </a>
371
+ <a href="#prepare_data-instance_method" title="#prepare_data (instance method)">- (Object) <strong>prepare_data</strong> </a>
394
372
 
395
373
 
396
374
 
@@ -502,7 +480,6 @@
502
480
 
503
481
 
504
482
 
505
-
506
483
  <div id="constructor_details" class="method_details_list">
507
484
  <h2>Constructor Details</h2>
508
485
 
@@ -532,15 +509,15 @@
532
509
  <pre class="lines">
533
510
 
534
511
 
512
+ 13
535
513
  14
536
514
  15
537
515
  16
538
516
  17
539
- 18
540
- 19</pre>
517
+ 18</pre>
541
518
  </td>
542
519
  <td>
543
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 14</span>
520
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 13</span>
544
521
 
545
522
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_values'>values</span><span class='rparen'>)</span>
546
523
  <span class='id identifier rubyid_values'>values</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
@@ -586,12 +563,12 @@
586
563
  <pre class="lines">
587
564
 
588
565
 
566
+ 11
589
567
  12
590
- 13
591
- 14</pre>
568
+ 13</pre>
592
569
  </td>
593
570
  <td>
594
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 12</span>
571
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 11</span>
595
572
 
596
573
  <span class='kw'>def</span> <span class='id identifier rubyid_all_errors'>all_errors</span>
597
574
  <span class='ivar'>@all_errors</span>
@@ -623,12 +600,12 @@
623
600
  <pre class="lines">
624
601
 
625
602
 
626
- 144
627
- 145
628
- 146</pre>
603
+ 123
604
+ 124
605
+ 125</pre>
629
606
  </td>
630
607
  <td>
631
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 144</span>
608
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 123</span>
632
609
 
633
610
  <span class='kw'>def</span> <span class='id identifier rubyid_define_reader'>define_reader</span><span class='lparen'>(</span><span class='id identifier rubyid_association'>association</span><span class='rparen'>)</span>
634
611
  <span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='id identifier rubyid_association'>association</span>
@@ -653,34 +630,34 @@
653
630
  <pre class="lines">
654
631
 
655
632
 
656
- 129
657
- 130
658
- 131
659
- 132
660
- 133
661
- 134
662
- 135
663
- 136
664
- 137
665
- 138
666
- 139
667
- 140
668
- 141
669
- 142</pre>
633
+ 108
634
+ 109
635
+ 110
636
+ 111
637
+ 112
638
+ 113
639
+ 114
640
+ 115
641
+ 116
642
+ 117
643
+ 118
644
+ 119
645
+ 120
646
+ 121</pre>
670
647
  </td>
671
648
  <td>
672
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 129</span>
649
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 108</span>
673
650
 
674
651
  <span class='kw'>def</span> <span class='id identifier rubyid_define_writer'>define_writer</span><span class='lparen'>(</span><span class='id identifier rubyid_association'>association</span><span class='comma'>,</span> <span class='id identifier rubyid_class_name'>class_name</span><span class='rparen'>)</span>
675
652
  <span class='id identifier rubyid_class_eval'>class_eval</span> <span class='heredoc_beg'>&lt;&lt;-CODE</span>
676
653
  <span class='tstring_content'> def </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_association'>association</span><span class='rbrace'>}</span><span class='tstring_content'>=(value)
677
- </span><span class='embexpr_beg'> @#{</span><span class='id identifier rubyid_association'>association</span><span class='rbrace'>}</span><span class='tstring_content'> =
654
+ @</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_association'>association</span><span class='rbrace'>}</span><span class='tstring_content'> =
678
655
  if value.class.name == &quot;Array&quot;
679
656
  value.collect do |val|
680
- </span><span class='embexpr_beg'> #{</span><span class='id identifier rubyid_class_name'>class_name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_camelize'>camelize</span><span class='rbrace'>}</span><span class='tstring_content'>.new(val)
657
+ </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_class_name'>class_name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_camelize'>camelize</span><span class='rbrace'>}</span><span class='tstring_content'>.new(val)
681
658
  end
682
659
  else
683
- </span><span class='embexpr_beg'> #{</span><span class='id identifier rubyid_class_name'>class_name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_camelize'>camelize</span><span class='rbrace'>}</span><span class='tstring_content'>.new(value)
660
+ </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_class_name'>class_name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_camelize'>camelize</span><span class='rbrace'>}</span><span class='tstring_content'>.new(value)
684
661
  end
685
662
  end
686
663
  </span><span class='heredoc_end'> CODE
@@ -705,13 +682,13 @@
705
682
  <pre class="lines">
706
683
 
707
684
 
708
- 119
709
- 120
710
- 121
711
- 122</pre>
685
+ 98
686
+ 99
687
+ 100
688
+ 101</pre>
712
689
  </td>
713
690
  <td>
714
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 119</span>
691
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 98</span>
715
692
 
716
693
  <span class='kw'>def</span> <span class='id identifier rubyid_has_many_objects'>has_many_objects</span><span class='lparen'>(</span><span class='id identifier rubyid_association'>association</span><span class='comma'>,</span> <span class='id identifier rubyid_class_name'>class_name</span><span class='rparen'>)</span>
717
694
  <span class='id identifier rubyid_define_writer'>define_writer</span><span class='lparen'>(</span><span class='id identifier rubyid_association'>association</span><span class='comma'>,</span> <span class='id identifier rubyid_class_name'>class_name</span><span class='rparen'>)</span>
@@ -737,13 +714,13 @@
737
714
  <pre class="lines">
738
715
 
739
716
 
740
- 124
741
- 125
742
- 126
743
- 127</pre>
717
+ 103
718
+ 104
719
+ 105
720
+ 106</pre>
744
721
  </td>
745
722
  <td>
746
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 124</span>
723
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 103</span>
747
724
 
748
725
  <span class='kw'>def</span> <span class='id identifier rubyid_has_one_object'>has_one_object</span><span class='lparen'>(</span><span class='id identifier rubyid_association'>association</span><span class='rparen'>)</span>
749
726
  <span class='id identifier rubyid_define_writer'>define_writer</span><span class='lparen'>(</span><span class='id identifier rubyid_association'>association</span><span class='comma'>,</span> <span class='id identifier rubyid_association'>association</span><span class='rparen'>)</span>
@@ -775,11 +752,11 @@
775
752
  <pre class="lines">
776
753
 
777
754
 
778
- 21
779
- 22</pre>
755
+ 20
756
+ 21</pre>
780
757
  </td>
781
758
  <td>
782
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 21</span>
759
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 20</span>
783
760
 
784
761
  <span class='kw'>def</span> <span class='id identifier rubyid_after_initialize'>after_initialize</span>
785
762
  <span class='kw'>end</span></pre>
@@ -825,12 +802,12 @@
825
802
  <pre class="lines">
826
803
 
827
804
 
828
- 94
829
- 95
830
- 96</pre>
805
+ 73
806
+ 74
807
+ 75</pre>
831
808
  </td>
832
809
  <td>
833
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 94</span>
810
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 73</span>
834
811
 
835
812
  <span class='kw'>def</span> <span class='id identifier rubyid_all_objects_valid?'>all_objects_valid?</span>
836
813
  <span class='op'>!</span><span class='id identifier rubyid_validate_all_objects'>validate_all_objects</span><span class='period'>.</span><span class='id identifier rubyid_any?'>any?</span>
@@ -855,12 +832,12 @@
855
832
  <pre class="lines">
856
833
 
857
834
 
835
+ 23
858
836
  24
859
- 25
860
- 26</pre>
837
+ 25</pre>
861
838
  </td>
862
839
  <td>
863
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 24</span>
840
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 23</span>
864
841
 
865
842
  <span class='kw'>def</span> <span class='id identifier rubyid_attributes'>attributes</span>
866
843
  <span class='id identifier rubyid_instance_values'>instance_values</span>
@@ -868,48 +845,6 @@
868
845
  </td>
869
846
  </tr>
870
847
  </table>
871
- </div>
872
-
873
- <div class="method_details ">
874
- <h3 class="signature " id="generate_xml-instance_method">
875
-
876
- - (<tt>Object</tt>) <strong>generate_xml</strong>(request_type)
877
-
878
-
879
-
880
-
881
-
882
- </h3><table class="source_code">
883
- <tr>
884
- <td>
885
- <pre class="lines">
886
-
887
-
888
- 44
889
- 45
890
- 46
891
- 47
892
- 48
893
- 49
894
- 50
895
- 51
896
- 52</pre>
897
- </td>
898
- <td>
899
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 44</span>
900
-
901
- <span class='kw'>def</span> <span class='id identifier rubyid_generate_xml'>generate_xml</span><span class='lparen'>(</span><span class='id identifier rubyid_request_type'>request_type</span><span class='rparen'>)</span>
902
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
903
- &lt;OpenPayU xmlns=&quot;http://www.openpayu.com/20/openpayu.xsd&quot;&gt;</span><span class='tstring_end'>'</span></span> <span class='op'>+</span>
904
- <span class='id identifier rubyid_prepare_keys'>prepare_keys</span><span class='lparen'>(</span><span class='id identifier rubyid_instance_values'>instance_values</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_xml'>to_xml</span><span class='lparen'>(</span>
905
- <span class='label'>builder:</span> <span class='const'>OpenPayU</span><span class='op'>::</span><span class='const'>XmlBuilder</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_request_type'>request_type</span><span class='comma'>,</span> <span class='label'>indent:</span> <span class='int'>2</span><span class='rparen'>)</span><span class='comma'>,</span>
906
- <span class='label'>root:</span> <span class='id identifier rubyid_request_type'>request_type</span><span class='comma'>,</span>
907
- <span class='label'>skip_types:</span> <span class='kw'>true</span><span class='comma'>,</span>
908
- <span class='label'>skip_instruct:</span> <span class='kw'>true</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>&lt;/OpenPayU&gt;</span><span class='tstring_end'>'</span></span>
909
- <span class='kw'>end</span></pre>
910
- </td>
911
- </tr>
912
- </table>
913
848
  </div>
914
849
 
915
850
  <div class="method_details ">
@@ -927,14 +862,14 @@
927
862
  <pre class="lines">
928
863
 
929
864
 
930
- 54
931
- 55
932
- 56
933
- 57
934
- 58</pre>
865
+ 35
866
+ 36
867
+ 37
868
+ 38
869
+ 39</pre>
935
870
  </td>
936
871
  <td>
937
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 54</span>
872
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 35</span>
938
873
 
939
874
  <span class='kw'>def</span> <span class='id identifier rubyid_get_instance_values'>get_instance_values</span>
940
875
  <span class='id identifier rubyid_instance_values'>instance_values</span><span class='period'>.</span><span class='id identifier rubyid_delete_if'>delete_if</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
@@ -949,7 +884,7 @@
949
884
  <div class="method_details ">
950
885
  <h3 class="signature " id="prepare_data-instance_method">
951
886
 
952
- - (<tt>Object</tt>) <strong>prepare_data</strong>(request_type)
887
+ - (<tt>Object</tt>) <strong>prepare_data</strong>
953
888
 
954
889
 
955
890
 
@@ -961,31 +896,15 @@
961
896
  <pre class="lines">
962
897
 
963
898
 
899
+ 31
964
900
  32
965
- 33
966
- 34
967
- 35
968
- 36
969
- 37
970
- 38
971
- 39
972
- 40
973
- 41
974
- 42</pre>
901
+ 33</pre>
975
902
  </td>
976
903
  <td>
977
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 32</span>
904
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 31</span>
978
905
 
979
- <span class='kw'>def</span> <span class='id identifier rubyid_prepare_data'>prepare_data</span><span class='lparen'>(</span><span class='id identifier rubyid_request_type'>request_type</span><span class='rparen'>)</span>
980
- <span class='kw'>if</span> <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> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>xml</span><span class='tstring_end'>'</span></span>
981
- <span class='id identifier rubyid_generate_xml'>generate_xml</span><span class='lparen'>(</span><span class='id identifier rubyid_request_type'>request_type</span><span class='rparen'>)</span>
982
- <span class='kw'>else</span>
983
- <span class='lbrace'>{</span>
984
- <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>OpenPayU</span><span class='tstring_end'>'</span></span> <span class='op'>=&gt;</span> <span class='lbrace'>{</span>
985
- <span class='id identifier rubyid_request_type'>request_type</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_prepare_keys'>prepare_keys</span><span class='lparen'>(</span><span class='id identifier rubyid_instance_values'>instance_values</span><span class='rparen'>)</span>
986
- <span class='rbrace'>}</span>
987
- <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span>
988
- <span class='kw'>end</span>
906
+ <span class='kw'>def</span> <span class='id identifier rubyid_prepare_data'>prepare_data</span>
907
+ <span class='id identifier rubyid_prepare_keys'>prepare_keys</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span>
989
908
  <span class='kw'>end</span></pre>
990
909
  </td>
991
910
  </tr>
@@ -1007,32 +926,28 @@
1007
926
  <pre class="lines">
1008
927
 
1009
928
 
1010
- 60
1011
- 61
1012
- 62
1013
- 63
1014
- 64
1015
- 65
1016
- 66
1017
- 67
1018
- 68
1019
- 69
1020
- 70
1021
- 71
1022
- 72
1023
- 73
1024
- 74</pre>
929
+ 41
930
+ 42
931
+ 43
932
+ 44
933
+ 45
934
+ 46
935
+ 47
936
+ 48
937
+ 49
938
+ 50
939
+ 51
940
+ 52
941
+ 53</pre>
1025
942
  </td>
1026
943
  <td>
1027
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 60</span>
944
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 41</span>
1028
945
 
1029
946
  <span class='kw'>def</span> <span class='id identifier rubyid_prepare_keys'>prepare_keys</span><span class='lparen'>(</span><span class='id identifier rubyid_attrs'>attrs</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_hash'>hash</span> <span class='op'>=</span> <span class='id identifier rubyid_get_instance_values'>get_instance_values</span><span class='rparen'>)</span>
1030
947
  <span class='id identifier rubyid_hash'>hash</span><span class='period'>.</span><span class='id identifier rubyid_each_pair'>each_pair</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='op'>|</span>
1031
- <span class='id identifier rubyid_attrs'>attrs</span><span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_camelize'>camelize</span><span class='rbracket'>]</span> <span class='op'>=</span>
948
+ <span class='id identifier rubyid_attrs'>attrs</span><span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_camelize'>camelize</span><span class='lparen'>(</span><span class='symbol'>:lower</span><span class='rparen'>)</span><span class='rbracket'>]</span> <span class='op'>=</span>
1032
949
  <span class='kw'>if</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
1033
- <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_element'>element</span><span class='op'>|</span>
1034
- <span class='lbrace'>{</span> <span class='id identifier rubyid_element'>element</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_demodulize'>demodulize</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_element'>element</span><span class='period'>.</span><span class='id identifier rubyid_prepare_keys'>prepare_keys</span> <span class='rbrace'>}</span>
1035
- <span class='kw'>end</span>
950
+ <span class='lbrace'>{</span> <span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_camelize'>camelize</span><span class='lparen'>(</span><span class='symbol'>:lower</span><span class='rparen'>)</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:prepare_keys</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1036
951
  <span class='kw'>elsif</span> <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>OpenPayU::Models</span><span class='regexp_end'>/</span></span>
1037
952
  <span class='id identifier rubyid_v'>v</span><span class='period'>.</span><span class='id identifier rubyid_prepare_keys'>prepare_keys</span>
1038
953
  <span class='kw'>else</span>
@@ -1061,27 +976,27 @@
1061
976
  <pre class="lines">
1062
977
 
1063
978
 
1064
- 98
1065
- 99
1066
- 100
1067
- 101
1068
- 102
1069
- 103
1070
- 104
1071
- 105
1072
- 106
1073
- 107
1074
- 108
1075
- 109
1076
- 110
1077
- 111
1078
- 112
1079
- 113
1080
- 114
1081
- 115</pre>
979
+ 77
980
+ 78
981
+ 79
982
+ 80
983
+ 81
984
+ 82
985
+ 83
986
+ 84
987
+ 85
988
+ 86
989
+ 87
990
+ 88
991
+ 89
992
+ 90
993
+ 91
994
+ 92
995
+ 93
996
+ 94</pre>
1082
997
  </td>
1083
998
  <td>
1084
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 98</span>
999
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 77</span>
1085
1000
 
1086
1001
  <span class='kw'>def</span> <span class='id identifier rubyid_to_flatten_hash'>to_flatten_hash</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_target'>target</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_namespace'>namespace</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_index'>index</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1087
1002
  <span class='id identifier rubyid_source'>source</span> <span class='op'>||=</span> <span class='id identifier rubyid_prepare_keys'>prepare_keys</span><span class='lparen'>(</span><span class='id identifier rubyid_instance_values'>instance_values</span><span class='rparen'>)</span>
@@ -1121,12 +1036,12 @@
1121
1036
  <pre class="lines">
1122
1037
 
1123
1038
 
1039
+ 27
1124
1040
  28
1125
- 29
1126
- 30</pre>
1041
+ 29</pre>
1127
1042
  </td>
1128
1043
  <td>
1129
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 28</span>
1044
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 27</span>
1130
1045
 
1131
1046
  <span class='kw'>def</span> <span class='id identifier rubyid_to_json'>to_json</span>
1132
1047
  <span class='id identifier rubyid_prepare_keys'>prepare_keys</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span>
@@ -1151,26 +1066,26 @@
1151
1066
  <pre class="lines">
1152
1067
 
1153
1068
 
1154
- 76
1155
- 77
1156
- 78
1157
- 79
1158
- 80
1159
- 81
1160
- 82
1161
- 83
1162
- 84
1163
- 85
1164
- 86
1165
- 87
1166
- 88
1167
- 89
1168
- 90
1169
- 91
1170
- 92</pre>
1069
+ 55
1070
+ 56
1071
+ 57
1072
+ 58
1073
+ 59
1074
+ 60
1075
+ 61
1076
+ 62
1077
+ 63
1078
+ 64
1079
+ 65
1080
+ 66
1081
+ 67
1082
+ 68
1083
+ 69
1084
+ 70
1085
+ 71</pre>
1171
1086
  </td>
1172
1087
  <td>
1173
- <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 76</span>
1088
+ <pre class="code"><span class="info file"># File 'lib/openpayu/models/model.rb', line 55</span>
1174
1089
 
1175
1090
  <span class='kw'>def</span> <span class='id identifier rubyid_validate_all_objects'>validate_all_objects</span>
1176
1091
  <span class='ivar'>@all_errors</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
@@ -1199,9 +1114,9 @@
1199
1114
  </div>
1200
1115
 
1201
1116
  <div id="footer">
1202
- Generated on Tue Dec 17 15:21:00 2013 by
1117
+ Generated on Thu May 29 15:13:59 2014 by
1203
1118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1204
- 0.8.7.2 (ruby-1.9.3).
1119
+ 0.8.7.4 (ruby-1.9.3).
1205
1120
  </div>
1206
1121
 
1207
1122
  </body>