mercadopago-sdk 0.3.6 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- 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/.gitignore +2 -1
- 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 +54 -143
- 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.html +123 -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/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.rb +24 -349
- 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/mercadopago.gemspec +15 -15
- data/tests/test_card.rb +79 -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_user.rb +17 -0
- data/tests/tests.rb +12 -56
- metadata +154 -37
- 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 -1
- data/mercadopago-sdk-0.3.2.gem +0 -0
- data/mercadopago-sdk-0.3.3.gem +0 -0
@@ -0,0 +1,102 @@
|
|
1
|
+
# typed: true
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require_relative '../lib/mercadopago'
|
5
|
+
|
6
|
+
require 'minitest/autorun'
|
7
|
+
|
8
|
+
class TestPayment < Minitest::Test
|
9
|
+
def test_method_search
|
10
|
+
sdk = Mercadopago::SDK.new('TEST-6130770563612470-121314-d27bbd7363e64c3853f058251cf8fc6e-537031659')
|
11
|
+
result = sdk.payment.search(filters: { id: 1_231_872_196 })
|
12
|
+
|
13
|
+
assert_equal 200, result[:status]
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_method_get_id
|
17
|
+
sdk = Mercadopago::SDK.new('TEST-6130770563612470-121314-d27bbd7363e64c3853f058251cf8fc6e-537031659')
|
18
|
+
result = sdk.payment.get(1_231_872_196)
|
19
|
+
|
20
|
+
assert_equal 200, result[:status]
|
21
|
+
end
|
22
|
+
|
23
|
+
def test_method_post
|
24
|
+
sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
|
25
|
+
card_token_object = {
|
26
|
+
card_number: '5031433215406351',
|
27
|
+
expiration_year: 2025,
|
28
|
+
expiration_month: 11,
|
29
|
+
security_code: '123',
|
30
|
+
cardholder: {
|
31
|
+
name: 'APRO'
|
32
|
+
}
|
33
|
+
}
|
34
|
+
result_card_token = sdk.card_token.create(card_token_object)
|
35
|
+
|
36
|
+
payment_object = {
|
37
|
+
token: result_card_token[:response]['id'],
|
38
|
+
installments: 1,
|
39
|
+
transaction_amount: 58.80,
|
40
|
+
description: 'Point Mini a maquininha que dá o dinheiro de suas vendas na hora',
|
41
|
+
payment_method_id: 'master',
|
42
|
+
payer: {
|
43
|
+
email: 'test_user_123456@testuser.com',
|
44
|
+
identification: {
|
45
|
+
number: '19119119100',
|
46
|
+
type: 'CPF'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
notification_url: 'https://www.suaurl.com/notificacoes/',
|
50
|
+
binary_mode: false,
|
51
|
+
external_reference: 'MP0001',
|
52
|
+
statement_descriptor: 'MercadoPago',
|
53
|
+
additional_info: {
|
54
|
+
items: [
|
55
|
+
{
|
56
|
+
id: 'PR0001',
|
57
|
+
title: 'Point Mini',
|
58
|
+
description: 'Producto Point para cobros con tarjetas mediante bluetooth',
|
59
|
+
picture_url: 'https://http2.mlstatic.com/resources/frontend/statics/growth-sellers-landings/device-mlb-point-i_medium@2x.png',
|
60
|
+
category_id: 'electronics',
|
61
|
+
quantity: 1,
|
62
|
+
unit_price: 58.80
|
63
|
+
}
|
64
|
+
],
|
65
|
+
payer: {
|
66
|
+
first_name: 'Nome',
|
67
|
+
last_name: 'Sobrenome',
|
68
|
+
address: {
|
69
|
+
zip_code: '06233-200',
|
70
|
+
street_name: 'Av das Nacoes Unidas',
|
71
|
+
street_number: 3003
|
72
|
+
},
|
73
|
+
registration_date: '2019-01-01T12:01:01.000-03:00',
|
74
|
+
phone: {
|
75
|
+
area_code: '011',
|
76
|
+
number: '987654321'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
shipments: {
|
80
|
+
receiver_address: {
|
81
|
+
street_name: 'Av das Nacoes Unidas',
|
82
|
+
street_number: 3003,
|
83
|
+
zip_code: '06233200',
|
84
|
+
city_name: 'Buzios',
|
85
|
+
state_name: 'Rio de Janeiro'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
result = sdk.payment.create(payment_object)
|
91
|
+
assert_equal 201, result[:status]
|
92
|
+
end
|
93
|
+
|
94
|
+
def test_method_put
|
95
|
+
sdk = Mercadopago::SDK.new('TEST-6130770563612470-121314-d27bbd7363e64c3853f058251cf8fc6e-537031659')
|
96
|
+
data = {
|
97
|
+
status: 'approved'
|
98
|
+
}
|
99
|
+
result = sdk.payment.update(1_231_910_402, data)
|
100
|
+
assert_equal 403, result[:status]
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# typed: true
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require_relative '../lib/mercadopago'
|
5
|
+
|
6
|
+
require 'minitest/autorun'
|
7
|
+
|
8
|
+
class TestPaymentMethods < Minitest::Test
|
9
|
+
def test_method_get
|
10
|
+
sdk = Mercadopago::SDK.new('TEST-6130770563612470-121314-d27bbd7363e64c3853f058251cf8fc6e-537031659')
|
11
|
+
result = sdk.payment_methods.get
|
12
|
+
assert_equal 200, result[:status]
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# typed: true
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require_relative '../lib/mercadopago'
|
5
|
+
|
6
|
+
require 'minitest/autorun'
|
7
|
+
|
8
|
+
class TestPreference < Minitest::Test
|
9
|
+
def test_method_get_id
|
10
|
+
sdk = Mercadopago::SDK.new('TEST-6130770563612470-121314-d27bbd7363e64c3853f058251cf8fc6e-537031659')
|
11
|
+
result = sdk.preference.get('537031659-d710347b-7746-4025-b72b-e5be918b91ca')
|
12
|
+
|
13
|
+
assert_equal 200, result[:status]
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_method_post
|
17
|
+
sdk = Mercadopago::SDK.new('TEST-6130770563612470-121314-d27bbd7363e64c3853f058251cf8fc6e-537031659')
|
18
|
+
data = {
|
19
|
+
items: [
|
20
|
+
{
|
21
|
+
title: 'Dummy Item',
|
22
|
+
description: 'Multicolor Item',
|
23
|
+
quantity: 1,
|
24
|
+
currency_id: '',
|
25
|
+
unit_price: 10.0
|
26
|
+
}
|
27
|
+
]
|
28
|
+
}
|
29
|
+
result = sdk.preference.create(data)
|
30
|
+
assert_equal 201, result[:status]
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_method_put
|
34
|
+
sdk = Mercadopago::SDK.new('TEST-6130770563612470-121314-d27bbd7363e64c3853f058251cf8fc6e-537031659')
|
35
|
+
data = {
|
36
|
+
items: [
|
37
|
+
{
|
38
|
+
title: 'Camiseta Barcelona',
|
39
|
+
description: 'Camiseta Oficial Barcelona',
|
40
|
+
quantity: 1,
|
41
|
+
currency_id: '',
|
42
|
+
unit_price: 10.0
|
43
|
+
}
|
44
|
+
]
|
45
|
+
}
|
46
|
+
result = sdk.preference.update('537031659-e4a79653-8638-490c-a4e5-c39f6f8d9874', data)
|
47
|
+
assert_equal 200, result[:status]
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# typed: true
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require_relative '../lib/mercadopago'
|
5
|
+
require 'minitest/autorun'
|
6
|
+
|
7
|
+
##
|
8
|
+
# TestRefund
|
9
|
+
class TestRefund < Minitest::Test
|
10
|
+
def test_method_list
|
11
|
+
sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
|
12
|
+
result = sdk.refund.list(12_678_120_979)
|
13
|
+
assert_equal 200, result[:status]
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_method_post
|
17
|
+
sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
|
18
|
+
card_token_object = {
|
19
|
+
card_number: '5031433215406351',
|
20
|
+
expiration_year: 2025,
|
21
|
+
expiration_month: 11,
|
22
|
+
security_code: '123',
|
23
|
+
cardholder: {
|
24
|
+
name: 'APRO'
|
25
|
+
}
|
26
|
+
}
|
27
|
+
result_card_token = sdk.card_token.create(card_token_object)
|
28
|
+
|
29
|
+
payment_object = {
|
30
|
+
token: result_card_token[:response]['id'],
|
31
|
+
installments: 1,
|
32
|
+
transaction_amount: 10,
|
33
|
+
description: 'Point Mini a maquininha que dá o dinheiro de suas vendas na hora',
|
34
|
+
payment_method_id: 'master',
|
35
|
+
payer: {
|
36
|
+
email: 'test_user_123456@testuser.com',
|
37
|
+
identification: {
|
38
|
+
number: '19119119100',
|
39
|
+
type: 'CPF'
|
40
|
+
}
|
41
|
+
},
|
42
|
+
notification_url: 'https://www.suaurl.com/notificacoes/',
|
43
|
+
binary_mode: false,
|
44
|
+
external_reference: 'MP0001',
|
45
|
+
statement_descriptor: 'MercadoPago',
|
46
|
+
additional_info: {
|
47
|
+
items: [
|
48
|
+
{
|
49
|
+
id: 'PR0001',
|
50
|
+
title: 'Point Mini',
|
51
|
+
description: 'Producto Point para cobros con tarjetas mediante bluetooth',
|
52
|
+
picture_url: 'https://http2.mlstatic.com/resources/frontend/statics/growth-sellers-landings/device-mlb-point-i_medium@2x.png',
|
53
|
+
category_id: 'electronics',
|
54
|
+
quantity: 1,
|
55
|
+
unit_price: 58.80
|
56
|
+
}
|
57
|
+
],
|
58
|
+
payer: {
|
59
|
+
first_name: 'Nome',
|
60
|
+
last_name: 'Sobrenome',
|
61
|
+
address: {
|
62
|
+
zip_code: '06233-200',
|
63
|
+
street_name: 'Av das Nacoes Unidas',
|
64
|
+
street_number: 3003
|
65
|
+
},
|
66
|
+
registration_date: '2019-01-01T12:01:01.000-03:00',
|
67
|
+
phone: {
|
68
|
+
area_code: '011',
|
69
|
+
number: '987654321'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
shipments: {
|
73
|
+
receiver_address: {
|
74
|
+
street_name: 'Av das Nacoes Unidas',
|
75
|
+
street_number: 3003,
|
76
|
+
zip_code: '06233200',
|
77
|
+
city_name: 'Buzios',
|
78
|
+
state_name: 'Rio de Janeiro'
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
result_payment = sdk.payment.create(payment_object)
|
84
|
+
result = sdk.refund.create(result_payment[:response]['id'])
|
85
|
+
assert_equal 201, result[:status]
|
86
|
+
assert_equal 'approved', result[:response]['status']
|
87
|
+
end
|
88
|
+
end
|
data/tests/test_user.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# typed: true
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require_relative '../lib/mercadopago'
|
5
|
+
require 'minitest/autorun'
|
6
|
+
|
7
|
+
##
|
8
|
+
# Test User
|
9
|
+
class TestUser < Minitest::Test
|
10
|
+
def test_method_get
|
11
|
+
sdk = Mercadopago::SDK.new('APP_USR-558881221729581-091712-44fdc612e60e3e638775d8b4003edd51-471763966')
|
12
|
+
sdk.request_options = Mercadopago::RequestOptions.new(corporation_id: 'abc')
|
13
|
+
result = sdk.user.get(request_options: Mercadopago::RequestOptions.new(connection_timeout: 100.0))
|
14
|
+
|
15
|
+
assert_equal 200, result[:status]
|
16
|
+
end
|
17
|
+
end
|
data/tests/tests.rb
CHANGED
@@ -1,56 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
def test_long_live_access_token
|
14
|
-
@mp = MercadoPago.new("LONG_LIVE_ACCESS_TOKEN")
|
15
|
-
|
16
|
-
assert_equal(@mp.get_access_token(), "LONG_LIVE_ACCESS_TOKEN")
|
17
|
-
end
|
18
|
-
|
19
|
-
# Call preference added through button flow
|
20
|
-
def test_get_preference
|
21
|
-
preferenceData = {"items" => ["title"=>"testCreate", "quantity"=>1, "unit_price"=>10.2, "currency_id"=>"ARS"]}
|
22
|
-
|
23
|
-
preference = @mp.create_preference(preferenceData)
|
24
|
-
|
25
|
-
preference = @mp.get_preference(preference['response']['id']);
|
26
|
-
|
27
|
-
assert_equal("#{preference['status']}","200")
|
28
|
-
end
|
29
|
-
|
30
|
-
# Create a new preference and verify that data result are ok
|
31
|
-
def test_create_preference
|
32
|
-
preference_data = {"items" => ["title"=>"testCreate", "quantity"=>1, "unit_price"=>10.2, "currency_id"=>"ARS"]}
|
33
|
-
|
34
|
-
preference = @mp.create_preference(preference_data)
|
35
|
-
assert_equal "201", "#{preference['status']}"
|
36
|
-
assert_equal "testCreate", "#{preference['response']["items"][0]["title"]}"
|
37
|
-
end
|
38
|
-
|
39
|
-
# We create a new preference, we modify this one and then we verify that data are ok.
|
40
|
-
def test_update_preference
|
41
|
-
preference_data = {"items" => ["title"=>"testUpdate", "quantity"=>1, "unit_price"=>10.2, "currency_id"=>"ARS"]}
|
42
|
-
preference_created = @mp.create_preference(preference_data)
|
43
|
-
preference_to_update = @mp.get_preference("#{preference_created['response']['id']}")
|
44
|
-
|
45
|
-
preference_data_to_update = {"items" => ["title"=>"testUpdated", "quantity"=>1, "unit_price"=>2]}
|
46
|
-
preference_update = @mp.update_preference("#{preference_created['response']['id']}", preference_data_to_update)
|
47
|
-
assert_equal "200", "#{preference_update['status']}"
|
48
|
-
|
49
|
-
preference_to_update = @mp.get_preference("#{preference_created['response']['id']}")
|
50
|
-
|
51
|
-
assert_equal "testUpdated", "#{preference_to_update['response']["items"][0]["title"]}"
|
52
|
-
assert_equal "2", "#{preference_to_update['response']["items"][0]["unit_price"]}"
|
53
|
-
assert_equal "1", "#{preference_to_update['response']["items"][0]["quantity"]}"
|
54
|
-
assert_equal "ARS", "#{preference_to_update['response']["items"][0]["currency_id"]}"
|
55
|
-
end
|
56
|
-
end
|
1
|
+
# typed: true
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require_relative './test_card_token'
|
5
|
+
require_relative './test_card'
|
6
|
+
require_relative './test_identification_type'
|
7
|
+
require_relative './test_merchant_order'
|
8
|
+
require_relative './test_payment_methods'
|
9
|
+
require_relative './test_payment'
|
10
|
+
require_relative './test_preference'
|
11
|
+
require_relative './test_refund'
|
12
|
+
require_relative './test_user'
|
metadata
CHANGED
@@ -1,88 +1,195 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mercadopago-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Mercado Pago
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rest-client
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.1'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: pry
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- - "
|
45
|
+
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
47
|
+
version: '0.14'
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- - "
|
52
|
+
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
54
|
+
version: '0.14'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - "
|
59
|
+
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
61
|
+
version: '13.0'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- - "
|
66
|
+
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
description:
|
68
|
+
version: '13.0'
|
69
|
+
description: Mercado Pago Ruby SDK
|
56
70
|
email:
|
57
|
-
- matias.compiano@mercadolibre.com
|
58
71
|
executables: []
|
59
72
|
extensions: []
|
60
73
|
extra_rdoc_files: []
|
61
74
|
files:
|
75
|
+
- ".editorconfig"
|
76
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
77
|
+
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
78
|
+
- ".github/workflows/ruby.yml"
|
62
79
|
- ".gitignore"
|
80
|
+
- ".rubocop.yml"
|
81
|
+
- ".rubocop_todo.yml"
|
82
|
+
- ".ruby-version"
|
83
|
+
- CODE_OF_CONDUCT.md
|
84
|
+
- CODING_GUIDELINES.md
|
85
|
+
- CONTRIBUTING.md
|
63
86
|
- Gemfile
|
64
87
|
- Gemfile.lock
|
88
|
+
- LICENSE.txt
|
65
89
|
- README.md
|
66
90
|
- Rakefile
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
72
|
-
-
|
73
|
-
-
|
74
|
-
-
|
91
|
+
- docs/CODE_OF_CONDUCT_md.html
|
92
|
+
- docs/CODING_GUIDELINES_md.html
|
93
|
+
- docs/CONTRIBUTING_md.html
|
94
|
+
- docs/LICENSE_txt.html
|
95
|
+
- docs/Mercadopago.html
|
96
|
+
- docs/Mercadopago/AdvancedPayment.html
|
97
|
+
- docs/Mercadopago/Card.html
|
98
|
+
- docs/Mercadopago/CardToken.html
|
99
|
+
- docs/Mercadopago/Config.html
|
100
|
+
- docs/Mercadopago/Customer.html
|
101
|
+
- docs/Mercadopago/DisbursementRefund.html
|
102
|
+
- docs/Mercadopago/HttpClient.html
|
103
|
+
- docs/Mercadopago/IdentificationType.html
|
104
|
+
- docs/Mercadopago/MPBase.html
|
105
|
+
- docs/Mercadopago/MerchantOrder.html
|
106
|
+
- docs/Mercadopago/Payment.html
|
107
|
+
- docs/Mercadopago/PaymentMethods.html
|
108
|
+
- docs/Mercadopago/Preference.html
|
109
|
+
- docs/Mercadopago/Refund.html
|
110
|
+
- docs/Mercadopago/RequestOptions.html
|
111
|
+
- docs/Mercadopago/SDK.html
|
112
|
+
- docs/Mercadopago/User.html
|
113
|
+
- docs/README_md.html
|
114
|
+
- docs/created.rid
|
115
|
+
- docs/css/fonts.css
|
116
|
+
- docs/css/rdoc.css
|
117
|
+
- docs/fonts/Lato-Light.ttf
|
118
|
+
- docs/fonts/Lato-LightItalic.ttf
|
119
|
+
- docs/fonts/Lato-Regular.ttf
|
120
|
+
- docs/fonts/Lato-RegularItalic.ttf
|
121
|
+
- docs/fonts/SourceCodePro-Bold.ttf
|
122
|
+
- docs/fonts/SourceCodePro-Regular.ttf
|
123
|
+
- docs/images/add.png
|
124
|
+
- docs/images/arrow_up.png
|
125
|
+
- docs/images/brick.png
|
126
|
+
- docs/images/brick_link.png
|
127
|
+
- docs/images/bug.png
|
128
|
+
- docs/images/bullet_black.png
|
129
|
+
- docs/images/bullet_toggle_minus.png
|
130
|
+
- docs/images/bullet_toggle_plus.png
|
131
|
+
- docs/images/date.png
|
132
|
+
- docs/images/delete.png
|
133
|
+
- docs/images/find.png
|
134
|
+
- docs/images/loadingAnimation.gif
|
135
|
+
- docs/images/macFFBgHack.png
|
136
|
+
- docs/images/package.png
|
137
|
+
- docs/images/page_green.png
|
138
|
+
- docs/images/page_white_text.png
|
139
|
+
- docs/images/page_white_width.png
|
140
|
+
- docs/images/plugin.png
|
141
|
+
- docs/images/ruby.png
|
142
|
+
- docs/images/tag_blue.png
|
143
|
+
- docs/images/tag_green.png
|
144
|
+
- docs/images/transparent.png
|
145
|
+
- docs/images/wrench.png
|
146
|
+
- docs/images/wrench_orange.png
|
147
|
+
- docs/images/zoom.png
|
148
|
+
- docs/index.html
|
149
|
+
- docs/js/darkfish.js
|
150
|
+
- docs/js/navigation.js
|
151
|
+
- docs/js/navigation.js.gz
|
152
|
+
- docs/js/search.js
|
153
|
+
- docs/js/search_index.js
|
154
|
+
- docs/js/search_index.js.gz
|
155
|
+
- docs/js/searcher.js
|
156
|
+
- docs/js/searcher.js.gz
|
157
|
+
- docs/table_of_contents.html
|
75
158
|
- lib/mercadopago.rb
|
76
|
-
- lib/
|
77
|
-
- lib/
|
78
|
-
- mercadopago
|
79
|
-
- mercadopago
|
159
|
+
- lib/mercadopago/config/config.rb
|
160
|
+
- lib/mercadopago/config/request_options.rb
|
161
|
+
- lib/mercadopago/core/mp_base.rb
|
162
|
+
- lib/mercadopago/http/http_client.rb
|
163
|
+
- lib/mercadopago/resources/advanced_payment.rb
|
164
|
+
- lib/mercadopago/resources/card.rb
|
165
|
+
- lib/mercadopago/resources/card_token.rb
|
166
|
+
- lib/mercadopago/resources/customer.rb
|
167
|
+
- lib/mercadopago/resources/disbursement_refund.rb
|
168
|
+
- lib/mercadopago/resources/identification_type.rb
|
169
|
+
- lib/mercadopago/resources/merchant_order.rb
|
170
|
+
- lib/mercadopago/resources/payment.rb
|
171
|
+
- lib/mercadopago/resources/payment_methods.rb
|
172
|
+
- lib/mercadopago/resources/preference.rb
|
173
|
+
- lib/mercadopago/resources/refund.rb
|
174
|
+
- lib/mercadopago/resources/user.rb
|
175
|
+
- lib/mercadopago/sdk.rb
|
80
176
|
- mercadopago.gemspec
|
177
|
+
- tests/test_card.rb
|
178
|
+
- tests/test_card_token.rb
|
179
|
+
- tests/test_customer.rb
|
180
|
+
- tests/test_identification_type.rb
|
181
|
+
- tests/test_merchant_order.rb
|
182
|
+
- tests/test_payment.rb
|
183
|
+
- tests/test_payment_methods.rb
|
184
|
+
- tests/test_preference.rb
|
185
|
+
- tests/test_refund.rb
|
186
|
+
- tests/test_user.rb
|
81
187
|
- tests/tests.rb
|
82
188
|
homepage: http://github.com/mercadopago/sdk-ruby
|
83
|
-
licenses:
|
189
|
+
licenses:
|
190
|
+
- MIT
|
84
191
|
metadata: {}
|
85
|
-
post_install_message:
|
192
|
+
post_install_message:
|
86
193
|
rdoc_options: []
|
87
194
|
require_paths:
|
88
195
|
- lib
|
@@ -90,17 +197,27 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
197
|
requirements:
|
91
198
|
- - ">="
|
92
199
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
200
|
+
version: 2.3.0
|
94
201
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
202
|
requirements:
|
96
203
|
- - ">="
|
97
204
|
- !ruby/object:Gem::Version
|
98
205
|
version: '0'
|
99
206
|
requirements: []
|
100
|
-
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
102
|
-
signing_key:
|
207
|
+
rubyforge_project:
|
208
|
+
rubygems_version: 2.5.1
|
209
|
+
signing_key:
|
103
210
|
specification_version: 4
|
104
|
-
summary:
|
211
|
+
summary: Mercado Pago Ruby SDK
|
105
212
|
test_files:
|
213
|
+
- tests/test_card.rb
|
214
|
+
- tests/test_card_token.rb
|
215
|
+
- tests/test_customer.rb
|
216
|
+
- tests/test_identification_type.rb
|
217
|
+
- tests/test_merchant_order.rb
|
218
|
+
- tests/test_payment.rb
|
219
|
+
- tests/test_payment_methods.rb
|
220
|
+
- tests/test_preference.rb
|
221
|
+
- tests/test_refund.rb
|
222
|
+
- tests/test_user.rb
|
106
223
|
- tests/tests.rb
|