stripe_invoice 1.1.5 → 1.1.6
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: fe28977dd97498c416a2fe8b5b596b7f0b77ee25
|
4
|
+
data.tar.gz: 64900535b3523672b90e522711ea6c04859d5cf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a86a3fb5883c063a8d685d6e44610f1e439d9f3ce51440de1f70a4d63f91b38b0a346b9d1ad48cebbe9ba9ca6d946e7ade484e89c5fc242ae7535fdaf7f79dfa
|
7
|
+
data.tar.gz: 8bb7013cc444b6b30b0560c92a95205c74de9b9456952a432d76874772b1519f9769859a5f3ae70d4a310eaa5ccb607cc9ea2a7485bb74baa070a30ed18a9594
|
@@ -20,9 +20,12 @@ module StripeInvoice
|
|
20
20
|
|
21
21
|
next unless owner # skip if we don't have an owner
|
22
22
|
|
23
|
+
country = Countries[charge.country] ? charge.country : Countries.find_by_name(charge.country)
|
24
|
+
country ||= 'Unknown Country'
|
25
|
+
|
23
26
|
data = {
|
24
27
|
charge: charge,
|
25
|
-
country:
|
28
|
+
country: country,
|
26
29
|
tax_number: charge.tax_number,
|
27
30
|
billing_address: charge.billing_address,
|
28
31
|
bt: Stripe::BalanceTransaction.retrieve(charge.indifferent_json[:balance_transaction]),
|
@@ -101,6 +101,7 @@ module StripeInvoice
|
|
101
101
|
# so we only return if there is an actual value.
|
102
102
|
# else we'll try the other method
|
103
103
|
return subscription.subscription_owner if subscription.subscription_owner
|
104
|
+
puts "[#{self.class.name}##{__method__.to_s}] found subscription but the owner relation was gone"
|
104
105
|
end
|
105
106
|
|
106
107
|
# koudoku does have a nasty feature/bug in that it deletes the subscription
|