killbill-stripe 3.0.2 → 3.0.3

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: 93eb72559ef8c3517570c186d5f29be49c610462
4
- data.tar.gz: fcc197f4c25a3689271280e120605bc087cd6e28
3
+ metadata.gz: c11578ed9811c3cede79c0f86444fcbd52608458
4
+ data.tar.gz: 14da2b81d2b8bb9bba816cf9bf8924fc3aa31375
5
5
  SHA512:
6
- metadata.gz: 8787b675c7f96d674dbc007a6bd322c4af0d93ac925ed953e6611b69dd54541c78beeed0a724008efcd8e0540fb85d6887617f462dda7203b717c713094dc139
7
- data.tar.gz: 7a33c85bfd8331bdb59da1ee01656aad78fe7e3cbe238dc76bb5b18d0397cba6e29ca5c7935fd46f2be3c5041530d51c7a394f8fade77dd41b11296a7d74db00
6
+ metadata.gz: b02f0b889a718fc0bb4e08edccd7f1970c31430146a414123b5fddd80eda330caa0843571c464ad0dacfbdfba9d33a561849d385dd2b9adbe7a320911ac9b934
7
+ data.tar.gz: b2a2193b13738a8889c23893bfeb8661177055517d38052350c7695ef4d42fa659e91cc1282fec4e8abb5e586c48529b3c6ef82b91ddb753a9061f435e5c289d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-stripe (3.0.2)
4
+ killbill-stripe (3.0.3)
5
5
  actionpack (~> 4.1.0)
6
6
  actionview (~> 4.1.0)
7
7
  activemerchant (~> 1.48.0)
data/Jarfile.lock CHANGED
@@ -8,9 +8,9 @@
8
8
  - org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.18
9
9
  - commons-beanutils:commons-beanutils:jar:1.8.3
10
10
  - org.kill-bill.billing:killbill-internal-api:jar:0.15.10
11
+ - com.google.inject:guice:jar:3.0
11
12
  - org.kill-bill.commons:killbill-xmlloader:jar:0.11
12
13
  - org.kill-bill.billing.plugin:killbill-plugin-api-entitlement:jar:0.18
13
- - com.google.inject:guice:jar:3.0
14
14
  - org.osgi:org.osgi.core:jar:5.0.0
15
15
  - org.slf4j:slf4j-api:jar:1.7.12
16
16
  - com.samskivert:jmustache:jar:1.5
@@ -50,14 +50,14 @@
50
50
  - org.kill-bill.commons:killbill-locker:jar:0.11
51
51
  - org.osgi:org.osgi.compendium:jar:5.0.0
52
52
  - org.kill-bill.commons:killbill-queue:jar:0.11
53
- - org.kill-bill.commons:killbill-concurrent:jar:0.11
54
53
  - javax.servlet:javax.servlet-api:jar:3.1.0
54
+ - org.kill-bill.commons:killbill-concurrent:jar:0.11
55
55
  - org.apache.shiro:shiro-ehcache:jar:1.2.3
56
56
  - javax.inject:javax.inject:jar:1
57
57
  - com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.3
58
58
  - com.google.inject.extensions:guice-multibindings:jar:3.0
59
59
  - net.sf.ehcache:ehcache:jar:2.9.1
60
- - org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.18
61
60
  - org.kill-bill.billing:killbill-api:jar:0.32
61
+ - org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.18
62
62
  - org.apache.shiro:shiro-guice:jar:1.2.3
63
63
  - com.google.code.findbugs:annotations:jar:3.0.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.0.3
data/db/ddl.sql CHANGED
@@ -49,6 +49,7 @@ CREATE TABLE stripe_transactions (
49
49
  PRIMARY KEY (id)
50
50
  ) /*! ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin */;
51
51
  CREATE INDEX index_stripe_transactions_kb_payment_id ON stripe_transactions(kb_payment_id);
52
+ CREATE INDEX index_stripe_transactions_stripe_response_id ON stripe_transactions(stripe_response_id);
52
53
 
53
54
  CREATE TABLE stripe_responses (
54
55
  id serial unique,
@@ -120,3 +121,4 @@ CREATE TABLE stripe_responses (
120
121
  kb_tenant_id varchar(255) DEFAULT NULL,
121
122
  PRIMARY KEY (id)
122
123
  ) /*! ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin */;
124
+ CREATE INDEX index_stripe_responses_kb_payment_id_kb_tenant_id ON stripe_responses(kb_payment_id, kb_tenant_id);
data/db/schema.rb CHANGED
@@ -51,6 +51,7 @@ ActiveRecord::Schema.define(:version => 20140410153635) do
51
51
  end
52
52
 
53
53
  add_index(:stripe_transactions, :kb_payment_id)
54
+ add_index(:stripe_transactions, :stripe_response_id)
54
55
 
55
56
  create_table "stripe_responses", :force => true do |t|
56
57
  t.string "api_call", :null => false
@@ -120,4 +121,6 @@ ActiveRecord::Schema.define(:version => 20140410153635) do
120
121
  t.string "kb_account_id"
121
122
  t.string "kb_tenant_id"
122
123
  end
124
+
125
+ add_index(:stripe_responses, [:kb_payment_id, :kb_tenant_id])
123
126
  end
data/lib/stripe/api.rb CHANGED
@@ -137,7 +137,7 @@ module Killbill #:nodoc:
137
137
  # Update the default payment method on the customer object
138
138
  options = properties_to_hash(properties)
139
139
  payment_processor_account_id = options[:payment_processor_account_id] || :default
140
- gateway = lookup_gateway(payment_processor_account_id)
140
+ gateway = lookup_gateway(payment_processor_account_id, context.tenant_id)
141
141
  stripe_response = gateway.update_customer(pm.stripe_customer_id, :default_card => pm.token)
142
142
  response, transaction = save_response_and_transaction(stripe_response, :set_default_payment_method, kb_account_id, context.tenant_id, payment_processor_account_id)
143
143
 
data/pom.xml CHANGED
@@ -25,7 +25,7 @@
25
25
  <groupId>org.kill-bill.billing.plugin.ruby</groupId>
26
26
  <artifactId>stripe-plugin</artifactId>
27
27
  <packaging>pom</packaging>
28
- <version>3.0.2</version>
28
+ <version>3.0.3</version>
29
29
  <name>stripe-plugin</name>
30
30
  <url>http://github.com/killbill/killbill-stripe-plugin</url>
31
31
  <description>Plugin for accessing Stripe as a payment gateway</description>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-15 00:00:00.000000000 Z
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill
@@ -341,8 +341,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
341
341
  version: '0'
342
342
  requirements: []
343
343
  rubyforge_project:
344
- rubygems_version: 2.1.9
344
+ rubygems_version: 2.4.6
345
345
  signing_key:
346
346
  specification_version: 4
347
347
  summary: Plugin to use Stripe as a gateway.
348
- test_files: []
348
+ test_files:
349
+ - spec/spec_helper.rb
350
+ - spec/stripe/base_plugin_spec.rb
351
+ - spec/stripe/remote/integration_spec.rb