mercadopago-sdk 1.2.0 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +10 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +28 -0
  4. data/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
  5. data/.github/workflows/ruby.yml +35 -0
  6. data/.rubocop.yml +1 -0
  7. data/.rubocop_todo.yml +104 -0
  8. data/.ruby-version +1 -0
  9. data/CODE_OF_CONDUCT.md +74 -0
  10. data/CODING_GUIDELINES.md +70 -0
  11. data/CONTRIBUTING.md +57 -0
  12. data/Gemfile +8 -0
  13. data/Gemfile.lock +51 -12
  14. data/LICENSE.txt +21 -0
  15. data/README.md +45 -117
  16. data/Rakefile +3 -1
  17. data/docs/CODE_OF_CONDUCT_md.html +154 -0
  18. data/docs/CODING_GUIDELINES_md.html +188 -0
  19. data/docs/CONTRIBUTING_md.html +165 -0
  20. data/docs/LICENSE_txt.html +96 -0
  21. data/docs/Mercadopago/AdvancedPayment.html +279 -0
  22. data/docs/Mercadopago/Card.html +204 -0
  23. data/docs/Mercadopago/CardToken.html +160 -0
  24. data/docs/Mercadopago/Config.html +266 -0
  25. data/docs/Mercadopago/Customer.html +228 -0
  26. data/docs/Mercadopago/DisbursementRefund.html +183 -0
  27. data/docs/Mercadopago/HttpClient.html +249 -0
  28. data/docs/Mercadopago/IdentificationType.html +136 -0
  29. data/docs/Mercadopago/MPBase.html +316 -0
  30. data/docs/Mercadopago/MerchantOrder.html +209 -0
  31. data/docs/Mercadopago/Payment.html +208 -0
  32. data/docs/Mercadopago/PaymentMethods.html +136 -0
  33. data/docs/Mercadopago/Preference.html +184 -0
  34. data/docs/Mercadopago/Refund.html +160 -0
  35. data/docs/Mercadopago/RequestOptions.html +433 -0
  36. data/docs/Mercadopago/SDK.html +528 -0
  37. data/docs/Mercadopago/User.html +136 -0
  38. data/docs/Mercadopago.html +123 -0
  39. data/docs/README_md.html +181 -0
  40. data/docs/created.rid +25 -0
  41. data/docs/css/fonts.css +167 -0
  42. data/docs/css/rdoc.css +619 -0
  43. data/docs/fonts/Lato-Light.ttf +0 -0
  44. data/docs/fonts/Lato-LightItalic.ttf +0 -0
  45. data/docs/fonts/Lato-Regular.ttf +0 -0
  46. data/docs/fonts/Lato-RegularItalic.ttf +0 -0
  47. data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
  48. data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
  49. data/docs/images/add.png +0 -0
  50. data/docs/images/arrow_up.png +0 -0
  51. data/docs/images/brick.png +0 -0
  52. data/docs/images/brick_link.png +0 -0
  53. data/docs/images/bug.png +0 -0
  54. data/docs/images/bullet_black.png +0 -0
  55. data/docs/images/bullet_toggle_minus.png +0 -0
  56. data/docs/images/bullet_toggle_plus.png +0 -0
  57. data/docs/images/date.png +0 -0
  58. data/docs/images/delete.png +0 -0
  59. data/docs/images/find.png +0 -0
  60. data/docs/images/loadingAnimation.gif +0 -0
  61. data/docs/images/macFFBgHack.png +0 -0
  62. data/docs/images/package.png +0 -0
  63. data/docs/images/page_green.png +0 -0
  64. data/docs/images/page_white_text.png +0 -0
  65. data/docs/images/page_white_width.png +0 -0
  66. data/docs/images/plugin.png +0 -0
  67. data/docs/images/ruby.png +0 -0
  68. data/docs/images/tag_blue.png +0 -0
  69. data/docs/images/tag_green.png +0 -0
  70. data/docs/images/transparent.png +0 -0
  71. data/docs/images/wrench.png +0 -0
  72. data/docs/images/wrench_orange.png +0 -0
  73. data/docs/images/zoom.png +0 -0
  74. data/docs/index.html +109 -0
  75. data/docs/js/darkfish.js +84 -0
  76. data/docs/js/navigation.js +105 -0
  77. data/docs/js/navigation.js.gz +0 -0
  78. data/docs/js/search.js +110 -0
  79. data/docs/js/search_index.js +1 -0
  80. data/docs/js/search_index.js.gz +0 -0
  81. data/docs/js/searcher.js +229 -0
  82. data/docs/js/searcher.js.gz +0 -0
  83. data/docs/table_of_contents.html +562 -0
  84. data/lib/mercadopago/config/config.rb +42 -0
  85. data/lib/mercadopago/config/request_options.rb +85 -0
  86. data/lib/mercadopago/core/mp_base.rb +77 -0
  87. data/lib/mercadopago/http/http_client.rb +74 -0
  88. data/lib/mercadopago/resources/advanced_payment.rb +48 -0
  89. data/lib/mercadopago/resources/card.rb +31 -0
  90. data/lib/mercadopago/resources/card_token.rb +19 -0
  91. data/lib/mercadopago/resources/customer.rb +36 -0
  92. data/lib/mercadopago/resources/disbursement_refund.rb +24 -0
  93. data/lib/mercadopago/resources/identification_type.rb +13 -0
  94. data/lib/mercadopago/resources/merchant_order.rb +32 -0
  95. data/lib/mercadopago/resources/payment.rb +35 -0
  96. data/lib/mercadopago/resources/payment_methods.rb +13 -0
  97. data/lib/mercadopago/resources/preference.rb +26 -0
  98. data/lib/mercadopago/resources/refund.rb +24 -0
  99. data/lib/mercadopago/resources/user.rb +13 -0
  100. data/lib/mercadopago/sdk.rb +85 -0
  101. data/lib/mercadopago.rb +24 -389
  102. data/mercadopago.gemspec +15 -15
  103. data/tests/test_card.rb +78 -0
  104. data/tests/test_card_token.rb +39 -0
  105. data/tests/test_customer.rb +54 -0
  106. data/tests/test_identification_type.rb +16 -0
  107. data/tests/test_merchant_order.rb +94 -0
  108. data/tests/test_payment.rb +102 -0
  109. data/tests/test_payment_methods.rb +14 -0
  110. data/tests/test_preference.rb +49 -0
  111. data/tests/test_refund.rb +88 -0
  112. data/tests/test_refund_with_custom_headers.rb +97 -0
  113. data/tests/test_user.rb +17 -0
  114. data/tests/tests.rb +13 -56
  115. metadata +155 -36
  116. data/.travis.yml +0 -14
  117. data/examples/checkout-buttons/basic_preference/button.rb +0 -28
  118. data/examples/instant-payment-notifications/receive-ipn.rb +0 -25
  119. data/examples/payment-search/search-approved-payments.rb +0 -23
  120. data/examples/payment-search/search-creditcard-payments.rb +0 -23
  121. data/examples/payment-search/search-funded-payments-by-name.rb +0 -23
  122. data/examples/payment-search/search-payments-from-email-and-date.rb +0 -23
  123. data/examples/payment-search/search-payments.rb +0 -23
  124. data/examples/preapproval-payments/button.rb +0 -42
  125. data/lib/ssl_options_patch.rb +0 -15
  126. data/lib/version.rb +0 -2
  127. data/travis_Gemfile +0 -4
@@ -0,0 +1,528 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Mercadopago::SDK - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ var index_rel_prefix = "../";
12
+ </script>
13
+
14
+ <script src="../js/navigation.js" defer></script>
15
+ <script src="../js/search.js" defer></script>
16
+ <script src="../js/search_index.js" defer></script>
17
+ <script src="../js/searcher.js" defer></script>
18
+ <script src="../js/darkfish.js" defer></script>
19
+
20
+ <link href="../css/fonts.css" rel="stylesheet">
21
+ <link href="../css/rdoc.css" rel="stylesheet">
22
+
23
+
24
+ <body id="top" role="document" class="class">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../table_of_contents.html#pages">Pages</a>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+
61
+ <div id="parent-class-section" class="nav-section">
62
+ <h3>Parent</h3>
63
+
64
+ <p class="link">Object
65
+ </div>
66
+
67
+
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <div id="method-list-section" class="nav-section">
72
+ <h3>Methods</h3>
73
+
74
+ <ul class="link-list" role="directory">
75
+ <li ><a href="#method-c-new">::new</a>
76
+ <li ><a href="#method-i-access_token-3D">#access_token=</a>
77
+ <li ><a href="#method-i-advanced_payment">#advanced_payment</a>
78
+ <li ><a href="#method-i-card">#card</a>
79
+ <li ><a href="#method-i-card_token">#card_token</a>
80
+ <li ><a href="#method-i-customer">#customer</a>
81
+ <li ><a href="#method-i-disbursement_refund">#disbursement_refund</a>
82
+ <li ><a href="#method-i-http_client-3D">#http_client=</a>
83
+ <li ><a href="#method-i-identification_type">#identification_type</a>
84
+ <li ><a href="#method-i-merchant_order">#merchant_order</a>
85
+ <li ><a href="#method-i-payment">#payment</a>
86
+ <li ><a href="#method-i-payment_methods">#payment_methods</a>
87
+ <li ><a href="#method-i-preference">#preference</a>
88
+ <li ><a href="#method-i-refund">#refund</a>
89
+ <li ><a href="#method-i-request_options">#request_options</a>
90
+ <li ><a href="#method-i-request_options-3D">#request_options=</a>
91
+ <li ><a href="#method-i-user">#user</a>
92
+ </ul>
93
+ </div>
94
+
95
+ </div>
96
+ </nav>
97
+
98
+ <main role="main" aria-labelledby="class-Mercadopago::SDK">
99
+ <h1 id="class-Mercadopago::SDK" class="class">
100
+ class Mercadopago::SDK
101
+ </h1>
102
+
103
+ <section class="description">
104
+
105
+ </section>
106
+
107
+ <section id="5Buntitled-5D" class="documentation-section">
108
+
109
+
110
+
111
+ <section class="attribute-method-details" class="method-section">
112
+ <header>
113
+ <h3>Attributes</h3>
114
+ </header>
115
+
116
+ <div id="attribute-i-access_token" class="method-detail">
117
+ <div class="method-heading attribute-method-heading">
118
+ <span class="method-name">access_token</span><span
119
+ class="attribute-access-type">[R]</span>
120
+ </div>
121
+
122
+ <div class="method-description">
123
+
124
+ </div>
125
+ </div>
126
+ <div id="attribute-i-http_client" class="method-detail">
127
+ <div class="method-heading attribute-method-heading">
128
+ <span class="method-name">http_client</span><span
129
+ class="attribute-access-type">[R]</span>
130
+ </div>
131
+
132
+ <div class="method-description">
133
+
134
+ </div>
135
+ </div>
136
+ </section>
137
+
138
+
139
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
140
+ <header>
141
+ <h3>Public Class Methods</h3>
142
+ </header>
143
+
144
+ <div id="method-c-new" class="method-detail ">
145
+ <div class="method-heading">
146
+ <span class="method-name">new</span><span
147
+ class="method-args">(access_token, http_client: nil, request_options: nil)</span>
148
+ <span class="method-click-advice">click to toggle source</span>
149
+ </div>
150
+
151
+ <div class="method-description">
152
+
153
+
154
+ <div class="method-source-code" id="new-source">
155
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 8</span>
156
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">access_token</span>, <span class="ruby-value">http_client:</span> <span class="ruby-keyword">nil</span>, <span class="ruby-value">request_options:</span> <span class="ruby-keyword">nil</span>)
157
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">access_token</span> = <span class="ruby-identifier">access_token</span>
158
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">http_client</span> = <span class="ruby-identifier">http_client</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-constant">HttpClient</span>.<span class="ruby-identifier">new</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">http_client</span>
159
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">request_options</span> = <span class="ruby-identifier">request_options</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-constant">RequestOptions</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">access_token:</span> <span class="ruby-identifier">access_token</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">request_options</span>
160
+ <span class="ruby-keyword">end</span></pre>
161
+ </div>
162
+ </div>
163
+
164
+
165
+ </div>
166
+
167
+ </section>
168
+
169
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
170
+ <header>
171
+ <h3>Public Instance Methods</h3>
172
+ </header>
173
+
174
+ <div id="method-i-access_token-3D" class="method-detail ">
175
+ <div class="method-heading">
176
+ <span class="method-name">access_token=</span><span
177
+ class="method-args">(value)</span>
178
+ <span class="method-click-advice">click to toggle source</span>
179
+ </div>
180
+
181
+ <div class="method-description">
182
+
183
+
184
+ <div class="method-source-code" id="access_token-3D-source">
185
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 62</span>
186
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">access_token=</span>(<span class="ruby-identifier">value</span>)
187
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-string">&#39;Param access_token must be a String&#39;</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>)
188
+
189
+ <span class="ruby-ivar">@access_token</span> = <span class="ruby-identifier">value</span>
190
+ <span class="ruby-keyword">end</span></pre>
191
+ </div>
192
+ </div>
193
+
194
+
195
+ </div>
196
+
197
+ <div id="method-i-advanced_payment" class="method-detail ">
198
+ <div class="method-heading">
199
+ <span class="method-name">advanced_payment</span><span
200
+ class="method-args">()</span>
201
+ <span class="method-click-advice">click to toggle source</span>
202
+ </div>
203
+
204
+ <div class="method-description">
205
+
206
+
207
+ <div class="method-source-code" id="advanced_payment-source">
208
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 14</span>
209
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">advanced_payment</span>
210
+ <span class="ruby-constant">AdvancedPayment</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
211
+ <span class="ruby-keyword">end</span></pre>
212
+ </div>
213
+ </div>
214
+
215
+
216
+ </div>
217
+
218
+ <div id="method-i-card" class="method-detail ">
219
+ <div class="method-heading">
220
+ <span class="method-name">card</span><span
221
+ class="method-args">()</span>
222
+ <span class="method-click-advice">click to toggle source</span>
223
+ </div>
224
+
225
+ <div class="method-description">
226
+
227
+
228
+ <div class="method-source-code" id="card-source">
229
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 18</span>
230
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">card</span>
231
+ <span class="ruby-constant">Card</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
232
+ <span class="ruby-keyword">end</span></pre>
233
+ </div>
234
+ </div>
235
+
236
+
237
+ </div>
238
+
239
+ <div id="method-i-card_token" class="method-detail ">
240
+ <div class="method-heading">
241
+ <span class="method-name">card_token</span><span
242
+ class="method-args">()</span>
243
+ <span class="method-click-advice">click to toggle source</span>
244
+ </div>
245
+
246
+ <div class="method-description">
247
+
248
+
249
+ <div class="method-source-code" id="card_token-source">
250
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 22</span>
251
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">card_token</span>
252
+ <span class="ruby-constant">CardToken</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
253
+ <span class="ruby-keyword">end</span></pre>
254
+ </div>
255
+ </div>
256
+
257
+
258
+ </div>
259
+
260
+ <div id="method-i-customer" class="method-detail ">
261
+ <div class="method-heading">
262
+ <span class="method-name">customer</span><span
263
+ class="method-args">()</span>
264
+ <span class="method-click-advice">click to toggle source</span>
265
+ </div>
266
+
267
+ <div class="method-description">
268
+
269
+
270
+ <div class="method-source-code" id="customer-source">
271
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 26</span>
272
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">customer</span>
273
+ <span class="ruby-constant">Customer</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
274
+ <span class="ruby-keyword">end</span></pre>
275
+ </div>
276
+ </div>
277
+
278
+
279
+ </div>
280
+
281
+ <div id="method-i-disbursement_refund" class="method-detail ">
282
+ <div class="method-heading">
283
+ <span class="method-name">disbursement_refund</span><span
284
+ class="method-args">()</span>
285
+ <span class="method-click-advice">click to toggle source</span>
286
+ </div>
287
+
288
+ <div class="method-description">
289
+
290
+
291
+ <div class="method-source-code" id="disbursement_refund-source">
292
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 30</span>
293
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">disbursement_refund</span>
294
+ <span class="ruby-constant">DisbursementRefund</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
295
+ <span class="ruby-keyword">end</span></pre>
296
+ </div>
297
+ </div>
298
+
299
+
300
+ </div>
301
+
302
+ <div id="method-i-http_client-3D" class="method-detail ">
303
+ <div class="method-heading">
304
+ <span class="method-name">http_client=</span><span
305
+ class="method-args">(value)</span>
306
+ <span class="method-click-advice">click to toggle source</span>
307
+ </div>
308
+
309
+ <div class="method-description">
310
+
311
+
312
+ <div class="method-source-code" id="http_client-3D-source">
313
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 68</span>
314
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">http_client=</span>(<span class="ruby-identifier">value</span>)
315
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-string">&#39;Param http_client must be a implementation of HttpClient&#39;</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">HttpClient</span>)
316
+
317
+ <span class="ruby-ivar">@http_client</span> = <span class="ruby-identifier">value</span>
318
+ <span class="ruby-keyword">end</span></pre>
319
+ </div>
320
+ </div>
321
+
322
+
323
+ </div>
324
+
325
+ <div id="method-i-identification_type" class="method-detail ">
326
+ <div class="method-heading">
327
+ <span class="method-name">identification_type</span><span
328
+ class="method-args">()</span>
329
+ <span class="method-click-advice">click to toggle source</span>
330
+ </div>
331
+
332
+ <div class="method-description">
333
+
334
+
335
+ <div class="method-source-code" id="identification_type-source">
336
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 38</span>
337
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">identification_type</span>
338
+ <span class="ruby-constant">IdentificationType</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
339
+ <span class="ruby-keyword">end</span></pre>
340
+ </div>
341
+ </div>
342
+
343
+
344
+ </div>
345
+
346
+ <div id="method-i-merchant_order" class="method-detail ">
347
+ <div class="method-heading">
348
+ <span class="method-name">merchant_order</span><span
349
+ class="method-args">()</span>
350
+ <span class="method-click-advice">click to toggle source</span>
351
+ </div>
352
+
353
+ <div class="method-description">
354
+
355
+
356
+ <div class="method-source-code" id="merchant_order-source">
357
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 42</span>
358
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">merchant_order</span>
359
+ <span class="ruby-constant">MerchantOrder</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
360
+ <span class="ruby-keyword">end</span></pre>
361
+ </div>
362
+ </div>
363
+
364
+
365
+ </div>
366
+
367
+ <div id="method-i-payment" class="method-detail ">
368
+ <div class="method-heading">
369
+ <span class="method-name">payment</span><span
370
+ class="method-args">()</span>
371
+ <span class="method-click-advice">click to toggle source</span>
372
+ </div>
373
+
374
+ <div class="method-description">
375
+
376
+
377
+ <div class="method-source-code" id="payment-source">
378
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 46</span>
379
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">payment</span>
380
+ <span class="ruby-constant">Payment</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
381
+ <span class="ruby-keyword">end</span></pre>
382
+ </div>
383
+ </div>
384
+
385
+
386
+ </div>
387
+
388
+ <div id="method-i-payment_methods" class="method-detail ">
389
+ <div class="method-heading">
390
+ <span class="method-name">payment_methods</span><span
391
+ class="method-args">()</span>
392
+ <span class="method-click-advice">click to toggle source</span>
393
+ </div>
394
+
395
+ <div class="method-description">
396
+
397
+
398
+ <div class="method-source-code" id="payment_methods-source">
399
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 50</span>
400
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">payment_methods</span>
401
+ <span class="ruby-constant">PaymentMethods</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
402
+ <span class="ruby-keyword">end</span></pre>
403
+ </div>
404
+ </div>
405
+
406
+
407
+ </div>
408
+
409
+ <div id="method-i-preference" class="method-detail ">
410
+ <div class="method-heading">
411
+ <span class="method-name">preference</span><span
412
+ class="method-args">()</span>
413
+ <span class="method-click-advice">click to toggle source</span>
414
+ </div>
415
+
416
+ <div class="method-description">
417
+
418
+
419
+ <div class="method-source-code" id="preference-source">
420
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 54</span>
421
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">preference</span>
422
+ <span class="ruby-constant">Preference</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
423
+ <span class="ruby-keyword">end</span></pre>
424
+ </div>
425
+ </div>
426
+
427
+
428
+ </div>
429
+
430
+ <div id="method-i-refund" class="method-detail ">
431
+ <div class="method-heading">
432
+ <span class="method-name">refund</span><span
433
+ class="method-args">()</span>
434
+ <span class="method-click-advice">click to toggle source</span>
435
+ </div>
436
+
437
+ <div class="method-description">
438
+
439
+
440
+ <div class="method-source-code" id="refund-source">
441
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 58</span>
442
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">refund</span>
443
+ <span class="ruby-constant">Refund</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
444
+ <span class="ruby-keyword">end</span></pre>
445
+ </div>
446
+ </div>
447
+
448
+
449
+ </div>
450
+
451
+ <div id="method-i-request_options" class="method-detail ">
452
+ <div class="method-heading">
453
+ <span class="method-name">request_options</span><span
454
+ class="method-args">()</span>
455
+ <span class="method-click-advice">click to toggle source</span>
456
+ </div>
457
+
458
+ <div class="method-description">
459
+
460
+
461
+ <div class="method-source-code" id="request_options-source">
462
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 80</span>
463
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">request_options</span>
464
+ <span class="ruby-ivar">@request_options</span>.<span class="ruby-identifier">access_token</span> = <span class="ruby-ivar">@access_token</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@request_options</span>.<span class="ruby-identifier">access_token</span>.<span class="ruby-identifier">nil?</span>
465
+ <span class="ruby-ivar">@request_options</span>
466
+ <span class="ruby-keyword">end</span></pre>
467
+ </div>
468
+ </div>
469
+
470
+
471
+ </div>
472
+
473
+ <div id="method-i-request_options-3D" class="method-detail ">
474
+ <div class="method-heading">
475
+ <span class="method-name">request_options=</span><span
476
+ class="method-args">(value)</span>
477
+ <span class="method-click-advice">click to toggle source</span>
478
+ </div>
479
+
480
+ <div class="method-description">
481
+
482
+
483
+ <div class="method-source-code" id="request_options-3D-source">
484
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 74</span>
485
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">request_options=</span>(<span class="ruby-identifier">value</span>)
486
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">TypeError</span>, <span class="ruby-string">&#39;Param request_options must be a RequestOptions object&#39;</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">value</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">RequestOptions</span>)
487
+
488
+ <span class="ruby-ivar">@request_options</span> = <span class="ruby-identifier">value</span>
489
+ <span class="ruby-keyword">end</span></pre>
490
+ </div>
491
+ </div>
492
+
493
+
494
+ </div>
495
+
496
+ <div id="method-i-user" class="method-detail ">
497
+ <div class="method-heading">
498
+ <span class="method-name">user</span><span
499
+ class="method-args">()</span>
500
+ <span class="method-click-advice">click to toggle source</span>
501
+ </div>
502
+
503
+ <div class="method-description">
504
+
505
+
506
+ <div class="method-source-code" id="user-source">
507
+ <pre><span class="ruby-comment"># File lib/mercadopago/sdk.rb, line 34</span>
508
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">user</span>
509
+ <span class="ruby-constant">User</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">request_options</span>, <span class="ruby-identifier">http_client</span>)
510
+ <span class="ruby-keyword">end</span></pre>
511
+ </div>
512
+ </div>
513
+
514
+
515
+ </div>
516
+
517
+ </section>
518
+
519
+ </section>
520
+ </main>
521
+
522
+
523
+ <footer id="validator-badges" role="contentinfo">
524
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
525
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
526
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
527
+ </footer>
528
+
@@ -0,0 +1,136 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Mercadopago::User - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ var index_rel_prefix = "../";
12
+ </script>
13
+
14
+ <script src="../js/navigation.js" defer></script>
15
+ <script src="../js/search.js" defer></script>
16
+ <script src="../js/search_index.js" defer></script>
17
+ <script src="../js/searcher.js" defer></script>
18
+ <script src="../js/darkfish.js" defer></script>
19
+
20
+ <link href="../css/fonts.css" rel="stylesheet">
21
+ <link href="../css/rdoc.css" rel="stylesheet">
22
+
23
+
24
+ <body id="top" role="document" class="class">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
29
+ <a href="../index.html" rel="home">Home</a>
30
+ </h2>
31
+
32
+ <div id="table-of-contents-navigation">
33
+ <a href="../table_of_contents.html#pages">Pages</a>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
47
+
48
+ <ul id="search-results" aria-label="Search Results"
49
+ aria-busy="false" aria-expanded="false"
50
+ aria-atomic="false" class="initially-hidden"></ul>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+
61
+ <div id="parent-class-section" class="nav-section">
62
+ <h3>Parent</h3>
63
+
64
+ <p class="link"><a href="MPBase.html">Mercadopago::MPBase</a>
65
+ </div>
66
+
67
+
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <div id="method-list-section" class="nav-section">
72
+ <h3>Methods</h3>
73
+
74
+ <ul class="link-list" role="directory">
75
+ <li ><a href="#method-i-get">#get</a>
76
+ </ul>
77
+ </div>
78
+
79
+ </div>
80
+ </nav>
81
+
82
+ <main role="main" aria-labelledby="class-Mercadopago::User">
83
+ <h1 id="class-Mercadopago::User" class="class">
84
+ class Mercadopago::User
85
+ </h1>
86
+
87
+ <section class="description">
88
+
89
+ <p>Access to Users</p>
90
+
91
+ </section>
92
+
93
+ <section id="5Buntitled-5D" class="documentation-section">
94
+
95
+
96
+
97
+
98
+
99
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
100
+ <header>
101
+ <h3>Public Instance Methods</h3>
102
+ </header>
103
+
104
+ <div id="method-i-get" class="method-detail ">
105
+ <div class="method-heading">
106
+ <span class="method-name">get</span><span
107
+ class="method-args">(request_options: nil)</span>
108
+ <span class="method-click-advice">click to toggle source</span>
109
+ </div>
110
+
111
+ <div class="method-description">
112
+
113
+
114
+ <div class="method-source-code" id="get-source">
115
+ <pre><span class="ruby-comment"># File lib/mercadopago/resources/user.rb, line 9</span>
116
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get</span>(<span class="ruby-value">request_options:</span> <span class="ruby-keyword">nil</span>)
117
+ <span class="ruby-identifier">_get</span>(<span class="ruby-value">uri:</span> <span class="ruby-string">&#39;/users/me&#39;</span>, <span class="ruby-value">request_options:</span> <span class="ruby-identifier">request_options</span>)
118
+ <span class="ruby-keyword">end</span></pre>
119
+ </div>
120
+ </div>
121
+
122
+
123
+ </div>
124
+
125
+ </section>
126
+
127
+ </section>
128
+ </main>
129
+
130
+
131
+ <footer id="validator-badges" role="contentinfo">
132
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
133
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
134
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
135
+ </footer>
136
+