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: 4b09a840817baedaa4fd39853e1189841bc36a8b
4
- data.tar.gz: 770976161c1b2797ba68c311436d618d1ebf5ed4
3
+ metadata.gz: fe28977dd97498c416a2fe8b5b596b7f0b77ee25
4
+ data.tar.gz: 64900535b3523672b90e522711ea6c04859d5cf2
5
5
  SHA512:
6
- metadata.gz: 7ae6a9f8f922a60845eac0e8dea0b57e181b0c52477ec5ef11a2a43618bb95581e7faeaa7ba9ddeb1da4b04ab433b663b38af429852900470e3fd591f6a95131
7
- data.tar.gz: 9a6922a964b9758632cab3f51f95205a5b942a3798acbbc9fc472677abfc650ad8f7e920b716dc5a8d83b4bd493c1d2ea08d4c9fa1c1095848c35186e59d1cd8
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: charge.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
@@ -1,3 +1,3 @@
1
1
  module StripeInvoice
2
- VERSION = "1.1.5"
2
+ VERSION = "1.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe_invoice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christoph Engelhardt