killbill 1.0.16 → 1.0.17

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.
data/Jarfile CHANGED
@@ -1,5 +1,3 @@
1
- jar 'com.ning.billing:killbill-api', '0.1.77-SNAPSHOT'
2
- jar 'com.ning.billing:killbill-util:tests', '0.1.77-SNAPSHOT'
3
- jar 'com.ning.billing:killbill-api', '0.1.76'
4
- jar 'com.ning.billing:killbill-util:tests', '0.1.76'
1
+ jar 'com.ning.billing:killbill-api', '0.1.78'
2
+ jar 'com.ning.billing:killbill-util:tests', '0.1.78'
5
3
  jar 'javax.servlet:javax.servlet-api', '3.0.1'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.16
1
+ 1.0.17
@@ -7,39 +7,39 @@ module Killbill
7
7
  class OperationUnsupportedByGatewayError < NotImplementedError
8
8
  end
9
9
 
10
- def process_payment(kb_account_id, kb_payment_id, kb_payment_method_id, amount_in_cents, currency, options = {})
10
+ def process_payment(kb_account_id, kb_payment_id, kb_payment_method_id, amount_in_cents, currency, call_context, options = {})
11
11
  raise OperationUnsupportedByGatewayError
12
12
  end
13
13
 
14
- def get_payment_info(kb_account_id, kb_payment_id, options = {})
14
+ def get_payment_info(kb_account_id, kb_payment_id, tenant_context, options = {})
15
15
  raise OperationUnsupportedByGatewayError
16
16
  end
17
17
 
18
- def process_refund(kb_account_id, kb_payment_id, amount_in_cents, currency, options = {})
18
+ def process_refund(kb_account_id, kb_payment_id, amount_in_cents, currency, call_context, options = {})
19
19
  raise OperationUnsupportedByGatewayError
20
20
  end
21
21
 
22
- def get_refund_info(kb_account_id, kb_payment_id, options = {})
22
+ def get_refund_info(kb_account_id, kb_payment_id, tenant_context, options = {})
23
23
  raise OperationUnsupportedByGatewayError
24
24
  end
25
25
 
26
- def add_payment_method(kb_account_id, kb_payment_method_id, payment_method_props, set_default, options = {})
26
+ def add_payment_method(kb_account_id, kb_payment_method_id, payment_method_props, set_default, call_context, options = {})
27
27
  raise OperationUnsupportedByGatewayError
28
28
  end
29
29
 
30
- def delete_payment_method(kb_account_id, kb_payment_method_id, options = {})
30
+ def delete_payment_method(kb_account_id, kb_payment_method_id, call_context, options = {})
31
31
  raise OperationUnsupportedByGatewayError
32
32
  end
33
33
 
34
- def get_payment_method_detail(kb_account_id, kb_payment_method_id, options = {})
34
+ def get_payment_method_detail(kb_account_id, kb_payment_method_id, tenant_context, options = {})
35
35
  raise OperationUnsupportedByGatewayError
36
36
  end
37
37
 
38
- def set_default_payment_method(kb_account_id, kb_payment_method_id, options = {})
38
+ def set_default_payment_method(kb_account_id, kb_payment_method_id, call_context, options = {})
39
39
  raise OperationUnsupportedByGatewayError
40
40
  end
41
41
 
42
- def get_payment_methods(kb_account_id, refresh_from_gateway, options = {})
42
+ def get_payment_methods(kb_account_id, refresh_from_gateway, call_context, options = {})
43
43
  raise OperationUnsupportedByGatewayError
44
44
  end
45
45
 
@@ -9,6 +9,15 @@ describe Killbill::Plugin::Payment do
9
9
  @kb_payment_id = SecureRandom.uuid
10
10
  @amount_in_cents = rand(100000)
11
11
  @currency = 'USD'
12
+ @call_context = Killbill::Plugin::Model::CallContext.new(SecureRandom.uuid,
13
+ 'token',
14
+ 'rspec tester',
15
+ 'TEST',
16
+ 'user',
17
+ 'testing',
18
+ 'this is from a test',
19
+ Time.now,
20
+ Time.now)
12
21
 
13
22
  @payment_method = Hash.new(:credit_card => SecureRandom.uuid)
14
23
  @kb_payment_method_id = SecureRandom.uuid
@@ -21,16 +30,16 @@ describe Killbill::Plugin::Payment do
21
30
  end
22
31
 
23
32
  it "should raise exceptions for unsupported operations" do
24
- lambda { @plugin.process_payment(@kb_account_id, @kb_payment_id, @kb_payment_method_id, @amount_in_cents, @currency) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
25
- lambda { @plugin.process_refund(@kb_account_id, @kb_payment_id, @amount_in_cents, @currency) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
26
- lambda { @plugin.get_payment_info(@kb_account_id, @kb_payment_id) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
27
- lambda { @plugin.get_refund_info(@kb_account_id, @kb_payment_id) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
28
- lambda { @plugin.add_payment_method(@kb_account_id, @payment_method, @payment_method_props, true ) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
29
- lambda { @plugin.delete_payment_method(@kb_account_id, @kb_payment_method_id) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
30
- lambda { @plugin.set_default_payment_method(@kb_account_id, @payment_method) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
33
+ lambda { @plugin.process_payment(@kb_account_id, @kb_payment_id, @kb_payment_method_id, @amount_in_cents, @currency, @call_context) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
34
+ lambda { @plugin.process_refund(@kb_account_id, @kb_payment_id, @amount_in_cents, @currency, @call_context) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
35
+ lambda { @plugin.get_payment_info(@kb_account_id, @kb_payment_id, @call_context) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
36
+ lambda { @plugin.get_refund_info(@kb_account_id, @kb_payment_id, @call_context) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
37
+ lambda { @plugin.add_payment_method(@kb_account_id, @payment_method, @payment_method_props, true, @call_context) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
38
+ lambda { @plugin.delete_payment_method(@kb_account_id, @kb_payment_method_id, @call_context) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
39
+ lambda { @plugin.set_default_payment_method(@kb_account_id, @payment_method, @call_context) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
31
40
 
32
- lambda { @plugin.get_payment_method_detail(@kb_account_id, @payment_method) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
33
- lambda { @plugin.get_payment_methods(@kb_account_id, true) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
41
+ lambda { @plugin.get_payment_method_detail(@kb_account_id, @payment_method, @call_context) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
42
+ lambda { @plugin.get_payment_methods(@kb_account_id, true, @call_context) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
34
43
  lambda { @plugin.reset_payment_methods(@kb_account_id, @payment_methods) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
35
44
  end
36
45
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill
3
3
  version: !ruby/object:Gem::Version
4
+ version: 1.0.17
4
5
  prerelease:
5
- version: 1.0.16
6
6
  platform: ruby
7
7
  authors:
8
8
  - Killbill core team
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-18 00:00:00.000000000 Z
12
+ date: 2013-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jbundler
@@ -192,9 +192,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  - !ruby/object:Gem::Version
193
193
  segments:
194
194
  - 0
195
- hash: 2
196
195
  version: !binary |-
197
196
  MA==
197
+ hash: 2
198
198
  none: false
199
199
  requirements: []
200
200
  rubyforge_project: