cobrato-client 0.4.0.rc1 → 0.4.0

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: 37cc839dc49f090341f3e1a352d1e4db8bdc2ae0
4
- data.tar.gz: 2c8936cd451d11ded007262cc4756a9297684875
3
+ metadata.gz: 08ec3047982182eececccdbc941dc0bd6b3c6e71
4
+ data.tar.gz: e56ec3756454a1cbb754e7fd2d1f41efee487c5c
5
5
  SHA512:
6
- metadata.gz: 6f795889d39cc68c52af1d6623de7f7e7645385321403b48a407654e8ce0528d816e1229306fa17b5e16bdc182089443c798f2046210096bc3794f340d21efb9
7
- data.tar.gz: f05d1ec5c6844ef06621c28321d354050a81f93b6c6af36cca2c517ba3d295d3c8adff2600bef98043281f8ad0a84edf9019ad33c987fea747f048b30aa7d2a2
6
+ metadata.gz: 7a8869edf15a429a208cf6e3b5e5e7e01eb333861c5c2ebd32182693a3dd5ce69e005786380944e836d7957ad6b6305c0bc4a243b66f6cb3a38c356e53acfd8f
7
+ data.tar.gz: 2e1ce29d06443162168e5b8289e66ff2dd67990fa80a9c5a1a0677198f7cdf382724ab85e3d9c044b5434ef823fd6805328235b7687a3aa08dad6f07b1b3b600
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cobrato-client (0.4.0.rc1)
4
+ cobrato-client (0.4.0)
5
5
  multi_json (~> 1.11.1)
6
6
  typhoeus (~> 0.7.2)
7
7
  virtus (~> 1.0.5)
@@ -86,4 +86,4 @@ DEPENDENCIES
86
86
  vcr (~> 2.9)
87
87
 
88
88
  BUNDLED WITH
89
- 1.11.2
89
+ 1.12.5
data/README.md CHANGED
@@ -206,6 +206,7 @@ When you call `client.payees.destroy(1)`, an event `cobrato.payees.destroy` will
206
206
  - cobrato.charges.destroy
207
207
  - cobrato.charges.receive
208
208
  - cobrato.charges.undo_receive
209
+ - cobrato.charges.cancel
209
210
  * webhooks
210
211
  - cobrato.webhooks.create
211
212
  - cobrato.webhooks.destroy
@@ -1,18 +1,19 @@
1
1
  module Cobrato
2
2
  module Entities
3
3
  class CreditCard < Base
4
- attribute :id, Integer
5
- attribute :final_numbers, String
6
- attribute :holder_name, String
7
- attribute :unusable, Boolean
8
- attribute :brand, String
9
- attribute :expiration, String
10
- attribute :avs_address, String
11
- attribute :avs_number, String
12
- attribute :avs_complement, String
13
- attribute :avs_district, String
14
- attribute :avs_zipcode, String
15
- attribute :payer_id, Integer
4
+ attribute :id, Integer
5
+ attribute :number, String
6
+ attribute :holder_name, String
7
+ attribute :unusable, Boolean
8
+ attribute :brand, String
9
+ attribute :expiration, String
10
+ attribute :avs_address, String
11
+ attribute :avs_number, String
12
+ attribute :avs_complement, String
13
+ attribute :avs_district, String
14
+ attribute :avs_zipcode, String
15
+ attribute :payer_id, Integer
16
+ attribute :charge_config_id, Integer
16
17
  end
17
18
  end
18
19
  end
@@ -34,7 +34,13 @@ module Cobrato
34
34
  end
35
35
  end
36
36
 
37
- notify :receive, :undo_receive
37
+ def retry(id)
38
+ http.put("#{resource_base_path}/#{id}/retry") do |response|
39
+ response.code == 204
40
+ end
41
+ end
42
+
43
+ notify :receive, :undo_receive, :cancel
38
44
  end
39
45
  end
40
46
  end
@@ -1,3 +1,3 @@
1
1
  module Cobrato
2
- VERSION = '0.4.0.rc1'
2
+ VERSION = '0.4.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobrato-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.rc1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcio Ricardo Santos
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2016-05-19 00:00:00.000000000 Z
13
+ date: 2016-06-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus
@@ -234,12 +234,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
234
  version: '0'
235
235
  required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  requirements:
237
- - - ">"
237
+ - - ">="
238
238
  - !ruby/object:Gem::Version
239
- version: 1.3.1
239
+ version: '0'
240
240
  requirements: []
241
241
  rubyforge_project:
242
- rubygems_version: 2.4.5.1
242
+ rubygems_version: 2.5.1
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: This is the official Ruby client for the Cobrato API.