killbill-cybersource 4.0.0 → 4.0.1

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: 509812fec3bb76e81447d35a0bd303d388d8be94
4
- data.tar.gz: 1bd797fd275d3b170aa230f6e1fbf149ba64ccaf
3
+ metadata.gz: 70b683af2803875628c898a0e286c606904729e5
4
+ data.tar.gz: 5c89305ff541fb3bafc46b17af392c2f33ff8f29
5
5
  SHA512:
6
- metadata.gz: fae2318e660f3ef8506b9720ae07364e4723dd7004c3af992ae2724ae34c9b60b030693303a2017aa371591d2bc07d139ddf24a5b5c3d7a2e58e6e750c7a07dc
7
- data.tar.gz: 665b02a16bc66880a73a1b55e20da502e1c423b277d321776c27bb8ff600010d1fc2a161915254fb5d8b5d517a4a922d61c9e4ca1a8c7413872544379e7dd20b
6
+ metadata.gz: c24e46930e496e0dc56ed77e2e67c1207ebcbaf5fd164c86090cfdb3b975e7b3c1df59e337ae93355ca63ba40a0cd732aaffb3970bb76ffde06995ad403bf8fc
7
+ data.tar.gz: f0823fc7f52a074d5b6b8bd8cd847dbd2762d27fddb5c0e19123466a03a34bfe415391b9431511ca31d4511626222caeaf495a29c97141ffc030047984d02d9c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-cybersource (4.0.0)
4
+ killbill-cybersource (4.0.1)
5
5
  actionpack (~> 4.1.0)
6
6
  actionview (~> 4.1.0)
7
7
  activemerchant (~> 1.48.0)
@@ -65,7 +65,7 @@ GEM
65
65
  diff-lcs (1.1.3)
66
66
  equalizer (0.0.11)
67
67
  erubis (2.7.0)
68
- ethon (0.8.0)
68
+ ethon (0.8.1)
69
69
  ffi (>= 1.3.0)
70
70
  ffi (1.9.10-java)
71
71
  i18n (0.7.0)
@@ -80,7 +80,7 @@ GEM
80
80
  jdbc-sqlite3 (3.8.11.2)
81
81
  jruby-openssl (0.9.12-java)
82
82
  json (1.8.3-java)
83
- killbill (7.0.0)
83
+ killbill (7.0.1)
84
84
  rack (>= 1.5.2)
85
85
  sinatra (~> 1.3.4)
86
86
  typhoeus (~> 0.6.9)
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 4.0.1
2
+ Add support for standalone credits on CreditCards
3
+
1
4
  4.0.0
2
5
  Initial release for Kill Bill 0.16.x
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.0
1
+ 4.0.1
data/db/ddl.sql CHANGED
@@ -46,7 +46,8 @@ CREATE TABLE `cybersource_transactions` (
46
46
  `kb_account_id` varchar(255) NOT NULL,
47
47
  `kb_tenant_id` varchar(255) NOT NULL,
48
48
  PRIMARY KEY (`id`),
49
- KEY `index_cybersource_transactions_on_kb_payment_id` (`kb_payment_id`)
49
+ KEY `index_cybersource_transactions_on_kb_payment_id` (`kb_payment_id`),
50
+ KEY `index_cybersource_transactions_on_cybersource_response_id` (`cybersource_response_id`)
50
51
  ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
51
52
 
52
53
  CREATE TABLE `cybersource_responses` (
@@ -86,5 +87,6 @@ CREATE TABLE `cybersource_responses` (
86
87
  `updated_at` datetime NOT NULL,
87
88
  `kb_account_id` varchar(255) DEFAULT NULL,
88
89
  `kb_tenant_id` varchar(255) DEFAULT NULL,
89
- PRIMARY KEY (`id`)
90
+ PRIMARY KEY (`id`),
91
+ KEY `index_cybersource_responses_on_kb_payment_id_kb_tenant_id` (`kb_payment_id`, `kb_tenant_id`)
90
92
  ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
data/db/schema.rb CHANGED
@@ -50,6 +50,7 @@ ActiveRecord::Schema.define(:version => 20140410153635) do
50
50
  end
51
51
 
52
52
  add_index(:cybersource_transactions, :kb_payment_id)
53
+ add_index(:cybersource_transactions, :cybersource_response_id)
53
54
 
54
55
  create_table "cybersource_responses", :force => true do |t|
55
56
  t.string "api_call", :null => false
@@ -88,4 +89,6 @@ ActiveRecord::Schema.define(:version => 20140410153635) do
88
89
  t.string "kb_account_id"
89
90
  t.string "kb_tenant_id"
90
91
  end
92
+
93
+ add_index(:cybersource_responses, [:kb_payment_id, :kb_tenant_id])
91
94
  end
@@ -2,6 +2,18 @@ module ActiveMerchant
2
2
  module Billing
3
3
  class CyberSourceGateway
4
4
 
5
+ # Add support for CreditCard objects
6
+ def build_credit_request(money, creditcard_or_reference, options)
7
+ xml = Builder::XmlMarkup.new :indent => 2
8
+
9
+ setup_address_hash(options)
10
+
11
+ add_payment_method_or_subscription(xml, money, creditcard_or_reference, options)
12
+ add_credit_service(xml)
13
+
14
+ xml.target!
15
+ end
16
+
5
17
  # See https://github.com/killbill/killbill-cybersource-plugin/issues/4
6
18
  def commit(request, options)
7
19
  request = build_request(request, options)
data/pom.xml CHANGED
@@ -25,7 +25,7 @@
25
25
  <groupId>org.kill-bill.billing.plugin.ruby</groupId>
26
26
  <artifactId>cybersource-plugin</artifactId>
27
27
  <packaging>pom</packaging>
28
- <version>4.0.0</version>
28
+ <version>4.0.1</version>
29
29
  <name>cybersource-plugin</name>
30
30
  <url>http://github.com/killbill/killbill-cybersource-plugin</url>
31
31
  <description>Plugin for accessing Cybersource as a payment gateway</description>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-cybersource
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
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: 2015-12-18 00:00:00.000000000 Z
11
+ date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill