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.
- checksums.yaml +4 -4
- data/.editorconfig +10 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +28 -0
- data/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
- data/.github/workflows/ruby.yml +35 -0
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +104 -0
- data/.ruby-version +1 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/CODING_GUIDELINES.md +70 -0
- data/CONTRIBUTING.md +57 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +51 -12
- data/LICENSE.txt +21 -0
- data/README.md +45 -117
- data/Rakefile +3 -1
- data/docs/CODE_OF_CONDUCT_md.html +154 -0
- data/docs/CODING_GUIDELINES_md.html +188 -0
- data/docs/CONTRIBUTING_md.html +165 -0
- data/docs/LICENSE_txt.html +96 -0
- data/docs/Mercadopago/AdvancedPayment.html +279 -0
- data/docs/Mercadopago/Card.html +204 -0
- data/docs/Mercadopago/CardToken.html +160 -0
- data/docs/Mercadopago/Config.html +266 -0
- data/docs/Mercadopago/Customer.html +228 -0
- data/docs/Mercadopago/DisbursementRefund.html +183 -0
- data/docs/Mercadopago/HttpClient.html +249 -0
- data/docs/Mercadopago/IdentificationType.html +136 -0
- data/docs/Mercadopago/MPBase.html +316 -0
- data/docs/Mercadopago/MerchantOrder.html +209 -0
- data/docs/Mercadopago/Payment.html +208 -0
- data/docs/Mercadopago/PaymentMethods.html +136 -0
- data/docs/Mercadopago/Preference.html +184 -0
- data/docs/Mercadopago/Refund.html +160 -0
- data/docs/Mercadopago/RequestOptions.html +433 -0
- data/docs/Mercadopago/SDK.html +528 -0
- data/docs/Mercadopago/User.html +136 -0
- data/docs/Mercadopago.html +123 -0
- data/docs/README_md.html +181 -0
- data/docs/created.rid +25 -0
- data/docs/css/fonts.css +167 -0
- data/docs/css/rdoc.css +619 -0
- data/docs/fonts/Lato-Light.ttf +0 -0
- data/docs/fonts/Lato-LightItalic.ttf +0 -0
- data/docs/fonts/Lato-Regular.ttf +0 -0
- data/docs/fonts/Lato-RegularItalic.ttf +0 -0
- data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/docs/images/add.png +0 -0
- data/docs/images/arrow_up.png +0 -0
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/delete.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_blue.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/transparent.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +109 -0
- data/docs/js/darkfish.js +84 -0
- data/docs/js/navigation.js +105 -0
- data/docs/js/navigation.js.gz +0 -0
- data/docs/js/search.js +110 -0
- data/docs/js/search_index.js +1 -0
- data/docs/js/search_index.js.gz +0 -0
- data/docs/js/searcher.js +229 -0
- data/docs/js/searcher.js.gz +0 -0
- data/docs/table_of_contents.html +562 -0
- data/lib/mercadopago/config/config.rb +42 -0
- data/lib/mercadopago/config/request_options.rb +85 -0
- data/lib/mercadopago/core/mp_base.rb +77 -0
- data/lib/mercadopago/http/http_client.rb +74 -0
- data/lib/mercadopago/resources/advanced_payment.rb +48 -0
- data/lib/mercadopago/resources/card.rb +31 -0
- data/lib/mercadopago/resources/card_token.rb +19 -0
- data/lib/mercadopago/resources/customer.rb +36 -0
- data/lib/mercadopago/resources/disbursement_refund.rb +24 -0
- data/lib/mercadopago/resources/identification_type.rb +13 -0
- data/lib/mercadopago/resources/merchant_order.rb +32 -0
- data/lib/mercadopago/resources/payment.rb +35 -0
- data/lib/mercadopago/resources/payment_methods.rb +13 -0
- data/lib/mercadopago/resources/preference.rb +26 -0
- data/lib/mercadopago/resources/refund.rb +24 -0
- data/lib/mercadopago/resources/user.rb +13 -0
- data/lib/mercadopago/sdk.rb +85 -0
- data/lib/mercadopago.rb +24 -389
- data/mercadopago.gemspec +15 -15
- data/tests/test_card.rb +78 -0
- data/tests/test_card_token.rb +39 -0
- data/tests/test_customer.rb +54 -0
- data/tests/test_identification_type.rb +16 -0
- data/tests/test_merchant_order.rb +94 -0
- data/tests/test_payment.rb +102 -0
- data/tests/test_payment_methods.rb +14 -0
- data/tests/test_preference.rb +49 -0
- data/tests/test_refund.rb +88 -0
- data/tests/test_refund_with_custom_headers.rb +97 -0
- data/tests/test_user.rb +17 -0
- data/tests/tests.rb +13 -56
- metadata +155 -36
- data/.travis.yml +0 -14
- data/examples/checkout-buttons/basic_preference/button.rb +0 -28
- data/examples/instant-payment-notifications/receive-ipn.rb +0 -25
- data/examples/payment-search/search-approved-payments.rb +0 -23
- data/examples/payment-search/search-creditcard-payments.rb +0 -23
- data/examples/payment-search/search-funded-payments-by-name.rb +0 -23
- data/examples/payment-search/search-payments-from-email-and-date.rb +0 -23
- data/examples/payment-search/search-payments.rb +0 -23
- data/examples/preapproval-payments/button.rb +0 -42
- data/lib/ssl_options_patch.rb +0 -15
- data/lib/version.rb +0 -2
- data/travis_Gemfile +0 -4
data/docs/index.html
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>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="file">
|
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
|
+
|
40
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
41
|
+
<form action="#" method="get" accept-charset="utf-8">
|
42
|
+
<div id="search-field-wrapper">
|
43
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
44
|
+
aria-autocomplete="list" aria-controls="search-results"
|
45
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
46
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
47
|
+
</div>
|
48
|
+
|
49
|
+
<ul id="search-results" aria-label="Search Results"
|
50
|
+
aria-busy="false" aria-expanded="false"
|
51
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
52
|
+
</form>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div id="project-metadata">
|
58
|
+
|
59
|
+
<div id="fileindex-section" class="nav-section">
|
60
|
+
<h3>Pages</h3>
|
61
|
+
|
62
|
+
<ul class="link-list">
|
63
|
+
<li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
|
64
|
+
<li><a href="./CODING_GUIDELINES_md.html">CODING_GUIDELINES</a>
|
65
|
+
<li><a href="./CONTRIBUTING_md.html">CONTRIBUTING</a>
|
66
|
+
<li><a href="./LICENSE_txt.html">LICENSE</a>
|
67
|
+
<li><a href="./README_md.html">README</a>
|
68
|
+
</ul>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
<div id="classindex-section" class="nav-section">
|
72
|
+
<h3>Class and Module Index</h3>
|
73
|
+
|
74
|
+
<ul class="link-list">
|
75
|
+
<li><a href="./Mercadopago.html">Mercadopago</a>
|
76
|
+
<li><a href="./Mercadopago/AdvancedPayment.html">Mercadopago::AdvancedPayment</a>
|
77
|
+
<li><a href="./Mercadopago/Card.html">Mercadopago::Card</a>
|
78
|
+
<li><a href="./Mercadopago/CardToken.html">Mercadopago::CardToken</a>
|
79
|
+
<li><a href="./Mercadopago/Config.html">Mercadopago::Config</a>
|
80
|
+
<li><a href="./Mercadopago/Customer.html">Mercadopago::Customer</a>
|
81
|
+
<li><a href="./Mercadopago/DisbursementRefund.html">Mercadopago::DisbursementRefund</a>
|
82
|
+
<li><a href="./Mercadopago/HttpClient.html">Mercadopago::HttpClient</a>
|
83
|
+
<li><a href="./Mercadopago/IdentificationType.html">Mercadopago::IdentificationType</a>
|
84
|
+
<li><a href="./Mercadopago/MPBase.html">Mercadopago::MPBase</a>
|
85
|
+
<li><a href="./Mercadopago/MerchantOrder.html">Mercadopago::MerchantOrder</a>
|
86
|
+
<li><a href="./Mercadopago/Payment.html">Mercadopago::Payment</a>
|
87
|
+
<li><a href="./Mercadopago/PaymentMethods.html">Mercadopago::PaymentMethods</a>
|
88
|
+
<li><a href="./Mercadopago/Preference.html">Mercadopago::Preference</a>
|
89
|
+
<li><a href="./Mercadopago/Refund.html">Mercadopago::Refund</a>
|
90
|
+
<li><a href="./Mercadopago/RequestOptions.html">Mercadopago::RequestOptions</a>
|
91
|
+
<li><a href="./Mercadopago/SDK.html">Mercadopago::SDK</a>
|
92
|
+
<li><a href="./Mercadopago/User.html">Mercadopago::User</a>
|
93
|
+
</ul>
|
94
|
+
</div>
|
95
|
+
|
96
|
+
</div>
|
97
|
+
</nav>
|
98
|
+
|
99
|
+
<main role="main">
|
100
|
+
<p>This is the API documentation for RDoc Documentation.
|
101
|
+
</main>
|
102
|
+
|
103
|
+
|
104
|
+
<footer id="validator-badges" role="contentinfo">
|
105
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
106
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.0.
|
107
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
108
|
+
</footer>
|
109
|
+
|
data/docs/js/darkfish.js
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
/**
|
2
|
+
*
|
3
|
+
* Darkfish Page Functions
|
4
|
+
* $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
|
5
|
+
*
|
6
|
+
* Author: Michael Granger <mgranger@laika.com>
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
|
10
|
+
/* Provide console simulation for firebug-less environments */
|
11
|
+
/*
|
12
|
+
if (!("console" in window) || !("firebug" in console)) {
|
13
|
+
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
|
14
|
+
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
|
15
|
+
|
16
|
+
window.console = {};
|
17
|
+
for (var i = 0; i < names.length; ++i)
|
18
|
+
window.console[names[i]] = function() {};
|
19
|
+
};
|
20
|
+
*/
|
21
|
+
|
22
|
+
|
23
|
+
function showSource( e ) {
|
24
|
+
var target = e.target;
|
25
|
+
while (!target.classList.contains('method-detail')) {
|
26
|
+
target = target.parentNode;
|
27
|
+
}
|
28
|
+
if (typeof target !== "undefined" && target !== null) {
|
29
|
+
target = target.querySelector('.method-source-code');
|
30
|
+
}
|
31
|
+
if (typeof target !== "undefined" && target !== null) {
|
32
|
+
target.classList.toggle('active-menu')
|
33
|
+
}
|
34
|
+
};
|
35
|
+
|
36
|
+
function hookSourceViews() {
|
37
|
+
document.querySelectorAll('.method-heading').forEach(function (codeObject) {
|
38
|
+
codeObject.addEventListener('click', showSource);
|
39
|
+
});
|
40
|
+
};
|
41
|
+
|
42
|
+
function hookSearch() {
|
43
|
+
var input = document.querySelector('#search-field');
|
44
|
+
var result = document.querySelector('#search-results');
|
45
|
+
result.classList.remove("initially-hidden");
|
46
|
+
|
47
|
+
var search_section = document.querySelector('#search-section');
|
48
|
+
search_section.classList.remove("initially-hidden");
|
49
|
+
|
50
|
+
var search = new Search(search_data, input, result);
|
51
|
+
|
52
|
+
search.renderItem = function(result) {
|
53
|
+
var li = document.createElement('li');
|
54
|
+
var html = '';
|
55
|
+
|
56
|
+
// TODO add relative path to <script> per-page
|
57
|
+
html += '<p class="search-match"><a href="' + index_rel_prefix + result.path + '">' + this.hlt(result.title);
|
58
|
+
if (result.params)
|
59
|
+
html += '<span class="params">' + result.params + '</span>';
|
60
|
+
html += '</a>';
|
61
|
+
|
62
|
+
|
63
|
+
if (result.namespace)
|
64
|
+
html += '<p class="search-namespace">' + this.hlt(result.namespace);
|
65
|
+
|
66
|
+
if (result.snippet)
|
67
|
+
html += '<div class="search-snippet">' + result.snippet + '</div>';
|
68
|
+
|
69
|
+
li.innerHTML = html;
|
70
|
+
|
71
|
+
return li;
|
72
|
+
}
|
73
|
+
|
74
|
+
search.select = function(result) {
|
75
|
+
window.location.href = result.firstChild.firstChild.href;
|
76
|
+
}
|
77
|
+
|
78
|
+
search.scrollIntoView = search.scrollInWindow;
|
79
|
+
};
|
80
|
+
|
81
|
+
document.addEventListener('DOMContentLoaded', function() {
|
82
|
+
hookSourceViews();
|
83
|
+
hookSearch();
|
84
|
+
});
|
@@ -0,0 +1,105 @@
|
|
1
|
+
/*
|
2
|
+
* Navigation allows movement using the arrow keys through the search results.
|
3
|
+
*
|
4
|
+
* When using this library you will need to set scrollIntoView to the
|
5
|
+
* appropriate function for your layout. Use scrollInWindow if the container
|
6
|
+
* is not scrollable and scrollInElement if the container is a separate
|
7
|
+
* scrolling region.
|
8
|
+
*/
|
9
|
+
Navigation = new function() {
|
10
|
+
this.initNavigation = function() {
|
11
|
+
var _this = this;
|
12
|
+
|
13
|
+
document.addEventListener('keydown', function(e) {
|
14
|
+
_this.onkeydown(e);
|
15
|
+
});
|
16
|
+
|
17
|
+
this.navigationActive = true;
|
18
|
+
}
|
19
|
+
|
20
|
+
this.setNavigationActive = function(state) {
|
21
|
+
this.navigationActive = state;
|
22
|
+
}
|
23
|
+
|
24
|
+
this.onkeydown = function(e) {
|
25
|
+
if (!this.navigationActive) return;
|
26
|
+
switch(e.keyCode) {
|
27
|
+
case 37: //Event.KEY_LEFT:
|
28
|
+
if (this.moveLeft()) e.preventDefault();
|
29
|
+
break;
|
30
|
+
case 38: //Event.KEY_UP:
|
31
|
+
if (e.keyCode == 38 || e.ctrlKey) {
|
32
|
+
if (this.moveUp()) e.preventDefault();
|
33
|
+
}
|
34
|
+
break;
|
35
|
+
case 39: //Event.KEY_RIGHT:
|
36
|
+
if (this.moveRight()) e.preventDefault();
|
37
|
+
break;
|
38
|
+
case 40: //Event.KEY_DOWN:
|
39
|
+
if (e.keyCode == 40 || e.ctrlKey) {
|
40
|
+
if (this.moveDown()) e.preventDefault();
|
41
|
+
}
|
42
|
+
break;
|
43
|
+
case 13: //Event.KEY_RETURN:
|
44
|
+
if (this.current) e.preventDefault();
|
45
|
+
this.select(this.current);
|
46
|
+
break;
|
47
|
+
}
|
48
|
+
if (e.ctrlKey && e.shiftKey) this.select(this.current);
|
49
|
+
}
|
50
|
+
|
51
|
+
this.moveRight = function() {
|
52
|
+
}
|
53
|
+
|
54
|
+
this.moveLeft = function() {
|
55
|
+
}
|
56
|
+
|
57
|
+
this.move = function(isDown) {
|
58
|
+
}
|
59
|
+
|
60
|
+
this.moveUp = function() {
|
61
|
+
return this.move(false);
|
62
|
+
}
|
63
|
+
|
64
|
+
this.moveDown = function() {
|
65
|
+
return this.move(true);
|
66
|
+
}
|
67
|
+
|
68
|
+
/*
|
69
|
+
* Scrolls to the given element in the scrollable element view.
|
70
|
+
*/
|
71
|
+
this.scrollInElement = function(element, view) {
|
72
|
+
var offset, viewHeight, viewScroll, height;
|
73
|
+
offset = element.offsetTop;
|
74
|
+
height = element.offsetHeight;
|
75
|
+
viewHeight = view.offsetHeight;
|
76
|
+
viewScroll = view.scrollTop;
|
77
|
+
|
78
|
+
if (offset - viewScroll + height > viewHeight) {
|
79
|
+
view.scrollTop = offset - viewHeight + height;
|
80
|
+
}
|
81
|
+
if (offset < viewScroll) {
|
82
|
+
view.scrollTop = offset;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
/*
|
87
|
+
* Scrolls to the given element in the window. The second argument is
|
88
|
+
* ignored
|
89
|
+
*/
|
90
|
+
this.scrollInWindow = function(element, ignored) {
|
91
|
+
var offset, viewHeight, viewScroll, height;
|
92
|
+
offset = element.offsetTop;
|
93
|
+
height = element.offsetHeight;
|
94
|
+
viewHeight = window.innerHeight;
|
95
|
+
viewScroll = window.scrollY;
|
96
|
+
|
97
|
+
if (offset - viewScroll + height > viewHeight) {
|
98
|
+
window.scrollTo(window.scrollX, offset - viewHeight + height);
|
99
|
+
}
|
100
|
+
if (offset < viewScroll) {
|
101
|
+
window.scrollTo(window.scrollX, offset);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
Binary file
|
data/docs/js/search.js
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
Search = function(data, input, result) {
|
2
|
+
this.data = data;
|
3
|
+
this.input = input;
|
4
|
+
this.result = result;
|
5
|
+
|
6
|
+
this.current = null;
|
7
|
+
this.view = this.result.parentNode;
|
8
|
+
this.searcher = new Searcher(data.index);
|
9
|
+
this.init();
|
10
|
+
}
|
11
|
+
|
12
|
+
Search.prototype = Object.assign({}, Navigation, new function() {
|
13
|
+
var suid = 1;
|
14
|
+
|
15
|
+
this.init = function() {
|
16
|
+
var _this = this;
|
17
|
+
var observer = function(e) {
|
18
|
+
switch(e.keyCode) {
|
19
|
+
case 38: // Event.KEY_UP
|
20
|
+
case 40: // Event.KEY_DOWN
|
21
|
+
return;
|
22
|
+
}
|
23
|
+
_this.search(_this.input.value);
|
24
|
+
};
|
25
|
+
this.input.addEventListener('keyup', observer);
|
26
|
+
this.input.addEventListener('click', observer); // mac's clear field
|
27
|
+
|
28
|
+
this.searcher.ready(function(results, isLast) {
|
29
|
+
_this.addResults(results, isLast);
|
30
|
+
})
|
31
|
+
|
32
|
+
this.initNavigation();
|
33
|
+
this.setNavigationActive(false);
|
34
|
+
}
|
35
|
+
|
36
|
+
this.search = function(value, selectFirstMatch) {
|
37
|
+
value = value.trim().toLowerCase();
|
38
|
+
if (value) {
|
39
|
+
this.setNavigationActive(true);
|
40
|
+
} else {
|
41
|
+
this.setNavigationActive(false);
|
42
|
+
}
|
43
|
+
|
44
|
+
if (value == '') {
|
45
|
+
this.lastQuery = value;
|
46
|
+
this.result.innerHTML = '';
|
47
|
+
this.result.setAttribute('aria-expanded', 'false');
|
48
|
+
this.setNavigationActive(false);
|
49
|
+
} else if (value != this.lastQuery) {
|
50
|
+
this.lastQuery = value;
|
51
|
+
this.result.setAttribute('aria-busy', 'true');
|
52
|
+
this.result.setAttribute('aria-expanded', 'true');
|
53
|
+
this.firstRun = true;
|
54
|
+
this.searcher.find(value);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
this.addResults = function(results, isLast) {
|
59
|
+
var target = this.result;
|
60
|
+
if (this.firstRun && (results.length > 0 || isLast)) {
|
61
|
+
this.current = null;
|
62
|
+
this.result.innerHTML = '';
|
63
|
+
}
|
64
|
+
|
65
|
+
for (var i=0, l = results.length; i < l; i++) {
|
66
|
+
var item = this.renderItem.call(this, results[i]);
|
67
|
+
item.setAttribute('id', 'search-result-' + target.childElementCount);
|
68
|
+
target.appendChild(item);
|
69
|
+
};
|
70
|
+
|
71
|
+
if (this.firstRun && results.length > 0) {
|
72
|
+
this.firstRun = false;
|
73
|
+
this.current = target.firstChild;
|
74
|
+
this.current.classList.add('search-selected');
|
75
|
+
}
|
76
|
+
//TODO: ECMAScript
|
77
|
+
//if (jQuery.browser.msie) this.$element[0].className += '';
|
78
|
+
|
79
|
+
if (isLast) this.result.setAttribute('aria-busy', 'false');
|
80
|
+
}
|
81
|
+
|
82
|
+
this.move = function(isDown) {
|
83
|
+
if (!this.current) return;
|
84
|
+
var next = isDown ? this.current.nextElementSibling : this.current.previousElementSibling;
|
85
|
+
if (next) {
|
86
|
+
this.current.classList.remove('search-selected');
|
87
|
+
next.classList.add('search-selected');
|
88
|
+
this.input.setAttribute('aria-activedescendant', next.getAttribute('id'));
|
89
|
+
this.scrollIntoView(next, this.view);
|
90
|
+
this.current = next;
|
91
|
+
this.input.value = next.firstChild.firstChild.text;
|
92
|
+
this.input.select();
|
93
|
+
}
|
94
|
+
return true;
|
95
|
+
}
|
96
|
+
|
97
|
+
this.hlt = function(html) {
|
98
|
+
return this.escapeHTML(html).
|
99
|
+
replace(/\u0001/g, '<em>').
|
100
|
+
replace(/\u0002/g, '</em>');
|
101
|
+
}
|
102
|
+
|
103
|
+
this.escapeHTML = function(html) {
|
104
|
+
return html.replace(/[&<>]/g, function(c) {
|
105
|
+
return '&#' + c.charCodeAt(0) + ';';
|
106
|
+
});
|
107
|
+
}
|
108
|
+
|
109
|
+
});
|
110
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
var search_data = {"index":{"searchIndex":["mercadopago","advancedpayment","card","cardtoken","config","customer","disbursementrefund","httpclient","identificationtype","mpbase","merchantorder","payment","paymentmethods","preference","refund","requestoptions","sdk","user","_check_headers()","_check_request_options()","_delete()","_get()","_post()","_put()","access_token=()","access_token=()","advanced_payment()","api_base_url()","cancel()","capture()","card()","card_token()","connection_timeout=()","corporation_id=()","create()","create()","create()","create()","create()","create()","create()","create()","create()","create_all()","custom_headers=()","customer()","delete()","delete()","delete()","disbursement_refund()","get()","get()","get()","get()","get()","get()","get()","get()","get()","get()","get()","get_headers()","http_client=()","identification_type()","integrator_id=()","list()","list()","list()","max_retries=()","merchant_order()","mime_form()","mime_json()","new()","new()","new()","payment()","payment_methods()","platform_id=()","post()","preference()","product_id()","put()","refund()","request_options()","request_options=()","search()","search()","search()","search()","tracking_id()","update()","update()","update()","update()","update()","update_release_date()","user()","user_agent()","version()","code_of_conduct","coding_guidelines","contributing","license","readme"],"longSearchIndex":["mercadopago","mercadopago::advancedpayment","mercadopago::card","mercadopago::cardtoken","mercadopago::config","mercadopago::customer","mercadopago::disbursementrefund","mercadopago::httpclient","mercadopago::identificationtype","mercadopago::mpbase","mercadopago::merchantorder","mercadopago::payment","mercadopago::paymentmethods","mercadopago::preference","mercadopago::refund","mercadopago::requestoptions","mercadopago::sdk","mercadopago::user","mercadopago::mpbase#_check_headers()","mercadopago::mpbase#_check_request_options()","mercadopago::mpbase#_delete()","mercadopago::mpbase#_get()","mercadopago::mpbase#_post()","mercadopago::mpbase#_put()","mercadopago::requestoptions#access_token=()","mercadopago::sdk#access_token=()","mercadopago::sdk#advanced_payment()","mercadopago::config#api_base_url()","mercadopago::advancedpayment#cancel()","mercadopago::advancedpayment#capture()","mercadopago::sdk#card()","mercadopago::sdk#card_token()","mercadopago::requestoptions#connection_timeout=()","mercadopago::requestoptions#corporation_id=()","mercadopago::advancedpayment#create()","mercadopago::card#create()","mercadopago::cardtoken#create()","mercadopago::customer#create()","mercadopago::disbursementrefund#create()","mercadopago::merchantorder#create()","mercadopago::payment#create()","mercadopago::preference#create()","mercadopago::refund#create()","mercadopago::disbursementrefund#create_all()","mercadopago::requestoptions#custom_headers=()","mercadopago::sdk#customer()","mercadopago::card#delete()","mercadopago::customer#delete()","mercadopago::httpclient#delete()","mercadopago::sdk#disbursement_refund()","mercadopago::advancedpayment#get()","mercadopago::card#get()","mercadopago::cardtoken#get()","mercadopago::customer#get()","mercadopago::httpclient#get()","mercadopago::identificationtype#get()","mercadopago::merchantorder#get()","mercadopago::payment#get()","mercadopago::paymentmethods#get()","mercadopago::preference#get()","mercadopago::user#get()","mercadopago::requestoptions#get_headers()","mercadopago::sdk#http_client=()","mercadopago::sdk#identification_type()","mercadopago::requestoptions#integrator_id=()","mercadopago::card#list()","mercadopago::disbursementrefund#list()","mercadopago::refund#list()","mercadopago::requestoptions#max_retries=()","mercadopago::sdk#merchant_order()","mercadopago::config#mime_form()","mercadopago::config#mime_json()","mercadopago::mpbase::new()","mercadopago::requestoptions::new()","mercadopago::sdk::new()","mercadopago::sdk#payment()","mercadopago::sdk#payment_methods()","mercadopago::requestoptions#platform_id=()","mercadopago::httpclient#post()","mercadopago::sdk#preference()","mercadopago::config#product_id()","mercadopago::httpclient#put()","mercadopago::sdk#refund()","mercadopago::sdk#request_options()","mercadopago::sdk#request_options=()","mercadopago::advancedpayment#search()","mercadopago::customer#search()","mercadopago::merchantorder#search()","mercadopago::payment#search()","mercadopago::config#tracking_id()","mercadopago::advancedpayment#update()","mercadopago::customer#update()","mercadopago::merchantorder#update()","mercadopago::payment#update()","mercadopago::preference#update()","mercadopago::advancedpayment#update_release_date()","mercadopago::sdk#user()","mercadopago::config#user_agent()","mercadopago::config#version()","","","","","","","","","","","","","",""],"info":[["Mercadopago","","Mercadopago.html","","<p>typed: true\n<p>typed: true\n<p>typed: false\n"],["Mercadopago::AdvancedPayment","","Mercadopago/AdvancedPayment.html","","<p>Access to Advanced Payments\n"],["Mercadopago::Card","","Mercadopago/Card.html","","<p>This class must be used in conjunction with the Customer class. [Click here for more infos](www.mercadopago.com/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards …\n"],["Mercadopago::CardToken","","Mercadopago/CardToken.html","","<p>This class will allow you to send your customers card data for Mercado Pago server and receive a token …\n"],["Mercadopago::Config","","Mercadopago/Config.html","",""],["Mercadopago::Customer","","Mercadopago/Customer.html","","<p>This will allow your customer to complete their purchases much faster and easily when used in conjunction …\n"],["Mercadopago::DisbursementRefund","","Mercadopago/DisbursementRefund.html","","<p>Access to Advanced Payments Refunds\n"],["Mercadopago::HttpClient","","Mercadopago/HttpClient.html","",""],["Mercadopago::IdentificationType","","Mercadopago/IdentificationType.html","","<p>Access to Identification Types\n"],["Mercadopago::MPBase","","Mercadopago/MPBase.html","","<p>Module Base\n"],["Mercadopago::MerchantOrder","","Mercadopago/MerchantOrder.html","","<p>This class will allow you to create and manage your orders. You can attach one or more payments in your …\n"],["Mercadopago::Payment","","Mercadopago/Payment.html","","<p>[Click here for more infos](www.mercadopago.com.br/developers/en/guides/online-payments/checkout-api/introduction …\n"],["Mercadopago::PaymentMethods","","Mercadopago/PaymentMethods.html","","<p>Access to Payment Methods\n"],["Mercadopago::Preference","","Mercadopago/Preference.html","","<p>This class will allow you to charge your customers through our web form from any device in a simple, …\n"],["Mercadopago::Refund","","Mercadopago/Refund.html","","<p>[Click here for more infos](www.mercadopago.com.br/developers/en/guides/manage-account/account/cancellations-and-refunds#bookmark_refunds …\n"],["Mercadopago::RequestOptions","","Mercadopago/RequestOptions.html","",""],["Mercadopago::SDK","","Mercadopago/SDK.html","",""],["Mercadopago::User","","Mercadopago/User.html","","<p>Access to Users\n"],["_check_headers","Mercadopago::MPBase","Mercadopago/MPBase.html#method-i-_check_headers","(request_options = nil, extra_headers = nil)",""],["_check_request_options","Mercadopago::MPBase","Mercadopago/MPBase.html#method-i-_check_request_options","(request_options = nil)",""],["_delete","Mercadopago::MPBase","Mercadopago/MPBase.html#method-i-_delete","(uri:, request_options: nil)",""],["_get","Mercadopago::MPBase","Mercadopago/MPBase.html#method-i-_get","(uri:, filters: nil, request_options: nil)",""],["_post","Mercadopago::MPBase","Mercadopago/MPBase.html#method-i-_post","(uri:, data:, request_options: nil)",""],["_put","Mercadopago::MPBase","Mercadopago/MPBase.html#method-i-_put","(uri:, data:, request_options: nil)",""],["access_token=","Mercadopago::RequestOptions","Mercadopago/RequestOptions.html#method-i-access_token-3D","(value)",""],["access_token=","Mercadopago::SDK","Mercadopago/SDK.html#method-i-access_token-3D","(value)",""],["advanced_payment","Mercadopago::SDK","Mercadopago/SDK.html#method-i-advanced_payment","()",""],["api_base_url","Mercadopago::Config","Mercadopago/Config.html#method-i-api_base_url","()",""],["cancel","Mercadopago::AdvancedPayment","Mercadopago/AdvancedPayment.html#method-i-cancel","(advanced_payment_id, request_options: nil)",""],["capture","Mercadopago::AdvancedPayment","Mercadopago/AdvancedPayment.html#method-i-capture","(advanced_payment_id, request_options: nil)",""],["card","Mercadopago::SDK","Mercadopago/SDK.html#method-i-card","()",""],["card_token","Mercadopago::SDK","Mercadopago/SDK.html#method-i-card_token","()",""],["connection_timeout=","Mercadopago::RequestOptions","Mercadopago/RequestOptions.html#method-i-connection_timeout-3D","(value)",""],["corporation_id=","Mercadopago::RequestOptions","Mercadopago/RequestOptions.html#method-i-corporation_id-3D","(value)",""],["create","Mercadopago::AdvancedPayment","Mercadopago/AdvancedPayment.html#method-i-create","(advanced_payment_data, request_options: nil)",""],["create","Mercadopago::Card","Mercadopago/Card.html#method-i-create","(customer_id, card_data, request_options: nil)",""],["create","Mercadopago::CardToken","Mercadopago/CardToken.html#method-i-create","(card_token_data, request_options: nil)",""],["create","Mercadopago::Customer","Mercadopago/Customer.html#method-i-create","(customer_data, request_options: nil)",""],["create","Mercadopago::DisbursementRefund","Mercadopago/DisbursementRefund.html#method-i-create","(advanced_payment_id, disbursement_id, amount: nil, request_options: nil)",""],["create","Mercadopago::MerchantOrder","Mercadopago/MerchantOrder.html#method-i-create","(merchant_order_data, request_options: nil)",""],["create","Mercadopago::Payment","Mercadopago/Payment.html#method-i-create","(payment_data, request_options: nil)",""],["create","Mercadopago::Preference","Mercadopago/Preference.html#method-i-create","(preference_data, request_options: nil)",""],["create","Mercadopago::Refund","Mercadopago/Refund.html#method-i-create","(payment_id, refund_data: nil, request_options: nil)",""],["create_all","Mercadopago::DisbursementRefund","Mercadopago/DisbursementRefund.html#method-i-create_all","(advanced_payment_id, request_options: nil)",""],["custom_headers=","Mercadopago::RequestOptions","Mercadopago/RequestOptions.html#method-i-custom_headers-3D","(value)",""],["customer","Mercadopago::SDK","Mercadopago/SDK.html#method-i-customer","()",""],["delete","Mercadopago::Card","Mercadopago/Card.html#method-i-delete","(customer_id, card_id, request_options: nil)",""],["delete","Mercadopago::Customer","Mercadopago/Customer.html#method-i-delete","(customer_id, request_options: nil)",""],["delete","Mercadopago::HttpClient","Mercadopago/HttpClient.html#method-i-delete","(url:, headers:, timeout: nil)",""],["disbursement_refund","Mercadopago::SDK","Mercadopago/SDK.html#method-i-disbursement_refund","()",""],["get","Mercadopago::AdvancedPayment","Mercadopago/AdvancedPayment.html#method-i-get","(advanced_payment_id, request_options: nil)",""],["get","Mercadopago::Card","Mercadopago/Card.html#method-i-get","(customer_id, card_id, request_options: nil)",""],["get","Mercadopago::CardToken","Mercadopago/CardToken.html#method-i-get","(card_token_id, request_options: nil)",""],["get","Mercadopago::Customer","Mercadopago/Customer.html#method-i-get","(customer_id, request_options: nil)",""],["get","Mercadopago::HttpClient","Mercadopago/HttpClient.html#method-i-get","(url:, headers:, params: nil, timeout: nil, maxretries: nil)",""],["get","Mercadopago::IdentificationType","Mercadopago/IdentificationType.html#method-i-get","(request_options: nil)",""],["get","Mercadopago::MerchantOrder","Mercadopago/MerchantOrder.html#method-i-get","(merchant_order_id, request_options: nil)",""],["get","Mercadopago::Payment","Mercadopago/Payment.html#method-i-get","(payment_id, request_options: nil)",""],["get","Mercadopago::PaymentMethods","Mercadopago/PaymentMethods.html#method-i-get","(request_options: nil)",""],["get","Mercadopago::Preference","Mercadopago/Preference.html#method-i-get","(preference_id, request_options: nil)",""],["get","Mercadopago::User","Mercadopago/User.html#method-i-get","(request_options: nil)",""],["get_headers","Mercadopago::RequestOptions","Mercadopago/RequestOptions.html#method-i-get_headers","()",""],["http_client=","Mercadopago::SDK","Mercadopago/SDK.html#method-i-http_client-3D","(value)",""],["identification_type","Mercadopago::SDK","Mercadopago/SDK.html#method-i-identification_type","()",""],["integrator_id=","Mercadopago::RequestOptions","Mercadopago/RequestOptions.html#method-i-integrator_id-3D","(value)",""],["list","Mercadopago::Card","Mercadopago/Card.html#method-i-list","(customer_id, request_options: nil)",""],["list","Mercadopago::DisbursementRefund","Mercadopago/DisbursementRefund.html#method-i-list","(advanced_payment_id, request_options: nil)",""],["list","Mercadopago::Refund","Mercadopago/Refund.html#method-i-list","(payment_id, request_options: nil)",""],["max_retries=","Mercadopago::RequestOptions","Mercadopago/RequestOptions.html#method-i-max_retries-3D","(value)",""],["merchant_order","Mercadopago::SDK","Mercadopago/SDK.html#method-i-merchant_order","()",""],["mime_form","Mercadopago::Config","Mercadopago/Config.html#method-i-mime_form","()",""],["mime_json","Mercadopago::Config","Mercadopago/Config.html#method-i-mime_json","()",""],["new","Mercadopago::MPBase","Mercadopago/MPBase.html#method-c-new","(request_options, http_client)",""],["new","Mercadopago::RequestOptions","Mercadopago/RequestOptions.html#method-c-new","(access_token: nil, connection_timeout: 60.0, custom_headers: nil, corporation_id: nil, integrator_id: nil, platform_id: nil, max_retries: 3)",""],["new","Mercadopago::SDK","Mercadopago/SDK.html#method-c-new","(access_token, http_client: nil, request_options: nil)",""],["payment","Mercadopago::SDK","Mercadopago/SDK.html#method-i-payment","()",""],["payment_methods","Mercadopago::SDK","Mercadopago/SDK.html#method-i-payment_methods","()",""],["platform_id=","Mercadopago::RequestOptions","Mercadopago/RequestOptions.html#method-i-platform_id-3D","(value)",""],["post","Mercadopago::HttpClient","Mercadopago/HttpClient.html#method-i-post","(url:, data:, headers:, timeout: nil)",""],["preference","Mercadopago::SDK","Mercadopago/SDK.html#method-i-preference","()",""],["product_id","Mercadopago::Config","Mercadopago/Config.html#method-i-product_id","()",""],["put","Mercadopago::HttpClient","Mercadopago/HttpClient.html#method-i-put","(url:, data:, headers:, timeout: nil)",""],["refund","Mercadopago::SDK","Mercadopago/SDK.html#method-i-refund","()",""],["request_options","Mercadopago::SDK","Mercadopago/SDK.html#method-i-request_options","()",""],["request_options=","Mercadopago::SDK","Mercadopago/SDK.html#method-i-request_options-3D","(value)",""],["search","Mercadopago::AdvancedPayment","Mercadopago/AdvancedPayment.html#method-i-search","(filters: nil, request_options: nil)",""],["search","Mercadopago::Customer","Mercadopago/Customer.html#method-i-search","(filters: nil, request_options: nil)",""],["search","Mercadopago::MerchantOrder","Mercadopago/MerchantOrder.html#method-i-search","(filters: nil, request_options: nil)",""],["search","Mercadopago::Payment","Mercadopago/Payment.html#method-i-search","(filters: nil, request_options: nil)",""],["tracking_id","Mercadopago::Config","Mercadopago/Config.html#method-i-tracking_id","()",""],["update","Mercadopago::AdvancedPayment","Mercadopago/AdvancedPayment.html#method-i-update","(advanced_payment_id, advanced_payment_data, request_options: nil)",""],["update","Mercadopago::Customer","Mercadopago/Customer.html#method-i-update","(customer_id, customer_data, request_options: nil)",""],["update","Mercadopago::MerchantOrder","Mercadopago/MerchantOrder.html#method-i-update","(merchant_order_id, merchant_order_data, request_options: nil)",""],["update","Mercadopago::Payment","Mercadopago/Payment.html#method-i-update","(payment_id, payment_data, request_options: nil)",""],["update","Mercadopago::Preference","Mercadopago/Preference.html#method-i-update","(preference_id, preference_data, request_options: nil)",""],["update_release_date","Mercadopago::AdvancedPayment","Mercadopago/AdvancedPayment.html#method-i-update_release_date","(advanced_payment_id, release_date, request_options: nil)",""],["user","Mercadopago::SDK","Mercadopago/SDK.html#method-i-user","()",""],["user_agent","Mercadopago::Config","Mercadopago/Config.html#method-i-user_agent","()",""],["version","Mercadopago::Config","Mercadopago/Config.html#method-i-version","()",""],["CODE_OF_CONDUCT","","CODE_OF_CONDUCT_md.html","","<p>Contributor Covenant Code of Conduct\n<p>Our Pledge\n<p>In the interest of fostering an open and welcoming environment, …\n"],["CODING_GUIDELINES","","CODING_GUIDELINES_md.html","","<p>Coding Guidelines\n<p>The Mercado Pago Ruby SDK is a collaborative effort from the start. The SDK team thinks …\n"],["CONTRIBUTING","","CONTRIBUTING_md.html","","<p>Contributing to the Mercado Pago Ruby SDK\n<p>Thank you for your interest in contributing to the Mercado …\n"],["LICENSE","","LICENSE_txt.html","","<p>The MIT License (MIT)\n<p>Copyright © 2021 Mercado Pago\n<p>Permission is hereby granted, free of charge, to …\n"],["README","","README_md.html","","<p>Mercado Pago SDK for Ruby\n<p><img src=\"https://img.shields.io/gem/v/mercadopago-sdk\">\n<img src=\"https://img.shields.io/gem/dt/mercadopago-sdk\"> ...\n"]]}}
|
Binary file
|