stripe 3.20.0 → 3.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/stripe/topup.rb +5 -0
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/topup_test.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7446a7ffbe62bac932c54e27e6c5ee8f227969af2cfa02888ec4c28dc2a214d8
|
4
|
+
data.tar.gz: 7906ea442c3276d124e899dea704c3b3baaccc50c6d4379b4c96cf1ce11a9b10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12f3db7c0acee86be47c3ea8db67d91e8a3b1e5bdf57332ebe3c8f3903ed4a6c2560acc4ec2b9f544b34d9c0f2b781257bb342127e8449ed946e7f7f1927ca9e
|
7
|
+
data.tar.gz: 4fd4cdbf47440515531c3981ed76fc48730322ab93776b3c185ae45e8760441c97eaa55f5a6e05e0ce3aa1ad07c57343d0cf3ff2ec8b2d75d6a652ebf0fd9d20
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.21.0
|
data/lib/stripe/topup.rb
CHANGED
data/lib/stripe/version.rb
CHANGED
data/test/stripe/topup_test.rb
CHANGED
@@ -41,5 +41,14 @@ module Stripe
|
|
41
41
|
assert_requested :post, "#{Stripe.api_base}/v1/topups/tu_123"
|
42
42
|
assert topup.is_a?(Stripe::Topup)
|
43
43
|
end
|
44
|
+
|
45
|
+
context "#cancel" do
|
46
|
+
should "cancel the topup" do
|
47
|
+
topup = Stripe::Topup.retrieve("tu_123")
|
48
|
+
topup = topup.cancel
|
49
|
+
assert_requested :post, "#{Stripe.api_base}/v1/topups/#{topup.id}/cancel"
|
50
|
+
assert topup.is_a?(Stripe::Topup)
|
51
|
+
end
|
52
|
+
end
|
44
53
|
end
|
45
54
|
end
|