mercadopago-custom-checkout 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e6e4fbf03195f74dd0352230ec6e6d360271497
4
- data.tar.gz: 14ce60dc7686046778ec1729c465de1a8942e079
3
+ metadata.gz: c847503b7963a234e56100da1061e04e1e46ae45
4
+ data.tar.gz: 12908be981e0ffff53f4f4d0fb58d46f70837f83
5
5
  SHA512:
6
- metadata.gz: 2aee1ff134e4f6f6e67f3f89943991c36e2bcc993bfa3a723ff896809bc48dcc0bf29f2f16bc0e17a781856d9762a0a26f938066b06ab33c6caa2d250e8d75cb
7
- data.tar.gz: 646f99beddecde661db4f056bd974ace41670d4b4a31b15131d309fd68b2e90c1dbe90ba053be74834c3efad06165601eb23cdd9aa2a2a21ac9ab71e9fa098ea
6
+ metadata.gz: 35d82303e76abdfcd317743e1c6c1965143843292685d08b580e74986212140ac8c41c7cf61e8f8b980e0f2c74fb71694c2348d815bacab7118e6d90591e0274
7
+ data.tar.gz: 82c488dfe40c4f65089464df5a1017e689950aa3d5f65f58a9f9744e464d14f3c7fbbcb02bf2eb6399d88b9413722a36ff30b9363eefb2a71162a242869651aa
@@ -111,6 +111,11 @@ module MercadoPago
111
111
  method: :post,
112
112
  allowed_tokens: [:access_token]
113
113
  },
114
+ refund: {
115
+ endpoint: "/%{version}/payments/%{id}/refunds",
116
+ method: :post,
117
+ allowed_tokens: [:access_token]
118
+ },
114
119
  retrieve: {
115
120
  endpoint: "/%{version}/payments/%{id}",
116
121
  method: :get,
@@ -105,6 +105,10 @@ module MercadoPago
105
105
  @client.call(:payments, :create, payload)
106
106
  end
107
107
 
108
+ def full_refund_payment(payment_id, metadata = {})
109
+ @client.call(:payments, :refund, { id: payment_id, metadata: metadata } )
110
+ end
111
+
108
112
  def payment(payment_id)
109
113
  @client.call(:payments, :retrieve, { id: payment_id })
110
114
  end
@@ -1,5 +1,5 @@
1
1
  module MercadoPago
2
2
  module CustomCheckout
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercadopago-custom-checkout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Cavilliotti
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-20 00:00:00.000000000 Z
11
+ date: 2018-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry