pagarme 2.1.4 → 2.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa7618dbed41921964204454e2f5e568f9b0fb7a
|
4
|
+
data.tar.gz: b6d6bb41a4596ff19aede42f71d161722e24ba72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee689b807add92e702f32fef9e444cf0380489683ed3643bab7e82167532075a81f2dada3dbbf8c76498818999e5b9ac7605d35b2d78e5313eb11708cffc7cf
|
7
|
+
data.tar.gz: 6fd043d99737320357be4f098acf4b89e0a235c51e0c9d8162f3e5f50cc6953a4ad5abb7c0564e87251bf726d5adca9375e364c21e322fd3745321452b644c88
|
data/lib/pagarme/version.rb
CHANGED
@@ -41,12 +41,12 @@ module PagarMe
|
|
41
41
|
assert_equal anticipation.id, anticipation.confirm.id
|
42
42
|
end
|
43
43
|
|
44
|
-
should 'create a building anticipation
|
44
|
+
should 'create a building anticipation and later delete it' do
|
45
45
|
recipient = PagarMe::Recipient.default
|
46
46
|
anticipation = recipient.bulk_anticipate anticipation_params(build: true)
|
47
47
|
|
48
48
|
assert_equal anticipation.id, PagarMe::BulkAnticipation.find(recipient.id, anticipation.id).id
|
49
|
-
PagarMe::BulkAnticipation.delete(recipient.id, anticipation.id)
|
49
|
+
PagarMe::BulkAnticipation.delete(recipient.id, anticipation.id)
|
50
50
|
assert_raises PagarMe::NotFound do
|
51
51
|
PagarMe::BulkAnticipation.find recipient.id, anticipation.id
|
52
52
|
end
|
@@ -96,5 +96,14 @@ module PagarMe
|
|
96
96
|
subscription.cancel
|
97
97
|
assert_equal subscription.status, 'canceled'
|
98
98
|
end
|
99
|
+
|
100
|
+
should 'be able to settle_charge a subscription' do
|
101
|
+
plan = PagarMe::Plan.create no_trial_plan_params
|
102
|
+
subscription = PagarMe::Subscription.create boleto_with_customer_params(plan: plan)
|
103
|
+
assert_equal subscription.status, 'unpaid'
|
104
|
+
|
105
|
+
subscription.settle_charge
|
106
|
+
assert_equal subscription.status, 'paid'
|
107
|
+
end
|
99
108
|
end
|
100
109
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagarme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Franceschi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -246,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
246
|
version: '0'
|
247
247
|
requirements: []
|
248
248
|
rubyforge_project:
|
249
|
-
rubygems_version: 2.
|
249
|
+
rubygems_version: 2.6.8
|
250
250
|
signing_key:
|
251
251
|
specification_version: 4
|
252
252
|
summary: Allows integration with Pagar.me
|