stripe_invoice 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/stripe_invoice/charge.rb +6 -2
- data/lib/stripe_invoice/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b09a840817baedaa4fd39853e1189841bc36a8b
|
|
4
|
+
data.tar.gz: 770976161c1b2797ba68c311436d618d1ebf5ed4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ae6a9f8f922a60845eac0e8dea0b57e181b0c52477ec5ef11a2a43618bb95581e7faeaa7ba9ddeb1da4b04ab433b663b38af429852900470e3fd591f6a95131
|
|
7
|
+
data.tar.gz: 9a6922a964b9758632cab3f51f95205a5b942a3798acbbc9fc472677abfc650ad8f7e920b716dc5a8d83b4bd493c1d2ea08d4c9fa1c1095848c35186e59d1cd8
|
|
@@ -95,8 +95,12 @@ module StripeInvoice
|
|
|
95
95
|
|
|
96
96
|
# we found them directly, go for it.
|
|
97
97
|
unless subscription.nil?
|
|
98
|
-
puts "[#{self.class.name}##{__method__.to_s}] found
|
|
99
|
-
|
|
98
|
+
puts "[#{self.class.name}##{__method__.to_s}] found subscription for #{stripe_charge.id} - #{subscription}"
|
|
99
|
+
|
|
100
|
+
# for some reason that association may be dead
|
|
101
|
+
# so we only return if there is an actual value.
|
|
102
|
+
# else we'll try the other method
|
|
103
|
+
return subscription.subscription_owner if subscription.subscription_owner
|
|
100
104
|
end
|
|
101
105
|
|
|
102
106
|
# koudoku does have a nasty feature/bug in that it deletes the subscription
|