killbill-entitlement-test 0.1.0 → 0.2.0

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: fb789553e297337c0f9c72122e687e6b9edd65c4
4
- data.tar.gz: f9fd3d6caea07d474603d767bae5eb5d6ed4dddc
3
+ metadata.gz: d5ab0fa361e10550a6f33ca2224243392b9651fa
4
+ data.tar.gz: 61f0cf99063fd8a94fefc6b0d590497a78691fbb
5
5
  SHA512:
6
- metadata.gz: efdd8317d62ba90855b2668178ecaee05708a553e4f287eeef5f54d38433bec751feff6f8e7658ea83b3d21c734c78e5e9e02effb0affe128dfd32d492a029c7
7
- data.tar.gz: ebad9aead0c0ace942d6ca956227fdfdff54cee7f93a6c0aa9a8ebfbc1f3bae1aa71dce75f9986e10cd61bcc7803961f5205a1ec24ed06ced987e995e6ba8a8f
6
+ metadata.gz: c6307e0dd12add97f5892c25d11d180960430461412bc9661329b64dab70974386001f864fc7dcbaae9e83d0dd1599eb436e8eef97cd65fa5921e696ed295d80
7
+ data.tar.gz: 2c3e5951be1db89fbf9f3d9b0b0b372ec1131c0bed121334becf0dd15eb9eb240851eb0929f57386b7795adce75d1d9baa92c74d7ae0bf24897c1b1eeb875e87
data/Gemfile CHANGED
@@ -1,5 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- #gem 'killbill', :path => '/Users/sbrossier/Src/killbill/killbill-plugin-framework-ruby'
4
+ #gem 'killbill', :github => 'killbill/killbill-plugin-framework-ruby'
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-entitlement-test (0.1.0)
5
- killbill (~> 7.0)
4
+ killbill-entitlement-test (0.2.0)
5
+ killbill (~> 8.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -17,9 +17,9 @@ GEM
17
17
  thread_safe (~> 0.3, >= 0.3.1)
18
18
  diff-lcs (1.1.3)
19
19
  equalizer (0.0.11)
20
- ethon (0.8.0)
20
+ ethon (0.9.1)
21
21
  ffi (>= 1.3.0)
22
- ffi (1.9.10-java)
22
+ ffi (1.9.14-java)
23
23
  ice_nine (0.11.1)
24
24
  jar-dependencies (0.3.1)
25
25
  jbundler (0.9.2)
@@ -27,14 +27,14 @@ GEM
27
27
  jar-dependencies (~> 0.2)
28
28
  maven-tools (~> 1.0.10)
29
29
  ruby-maven (~> 3.3, >= 3.3.3)
30
- killbill (7.0.0)
30
+ killbill (8.3.1)
31
31
  rack (>= 1.5.2)
32
32
  sinatra (~> 1.3.4)
33
33
  typhoeus (~> 0.6.9)
34
34
  tzinfo (~> 1.2.0)
35
35
  maven-tools (1.0.13)
36
36
  virtus (~> 1.0)
37
- rack (1.6.4)
37
+ rack (1.6.5)
38
38
  rack-protection (1.5.3)
39
39
  rack
40
40
  rake (10.4.2)
@@ -75,4 +75,4 @@ DEPENDENCIES
75
75
  rspec (~> 2.12.0)
76
76
 
77
77
  BUNDLED WITH
78
- 1.10.6
78
+ 1.11.2
data/Jarfile CHANGED
@@ -1,11 +1,12 @@
1
- jar 'org.kill-bill.billing:killbill-api', '0.32'
2
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.18'
3
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.18'
4
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.18'
5
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.18'
6
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.18'
7
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.18'
8
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.18'
9
- jar 'org.kill-bill.billing:killbill-util:tests', '0.15.10'
1
+ jar 'org.kill-bill.billing:killbill-api', '0.50'
2
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.23'
3
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.23'
4
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.23'
5
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.23'
6
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.23'
7
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.23'
8
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.23'
9
+ jar 'org.kill-bill.billing:killbill-util:tests', '0.18.0'
10
+ jar 'org.kill-bill.billing:killbill-util', '0.18.0'
10
11
  jar 'org.mockito:mockito-all', '1.10.19'
11
12
  jar 'javax.servlet:javax.servlet-api', '3.1.0'
data/Jarfile.lock CHANGED
@@ -1,61 +1,66 @@
1
1
  ---
2
2
  :runtime:
3
3
  - io.dropwizard.metrics:metrics-core:jar:3.1.1
4
- - org.kill-bill.billing.plugin:killbill-plugin-api-catalog:jar:0.18
5
- - com.fasterxml.jackson.core:jackson-core:jar:2.4.3
6
4
  - joda-time:joda-time:jar:2.3
7
5
  - org.weakref:jmxutils:jar:1.18
8
- - org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.18
9
6
  - commons-beanutils:commons-beanutils:jar:1.8.3
10
- - org.kill-bill.billing:killbill-internal-api:jar:0.15.10
11
- - org.kill-bill.commons:killbill-xmlloader:jar:0.11
12
- - org.kill-bill.billing.plugin:killbill-plugin-api-entitlement:jar:0.18
13
7
  - com.google.inject:guice:jar:3.0
14
8
  - org.osgi:org.osgi.core:jar:5.0.0
15
- - org.slf4j:slf4j-api:jar:1.7.12
9
+ - com.fasterxml.jackson.core:jackson-databind:jar:2.4.5
10
+ - org.kill-bill.billing.plugin:killbill-plugin-api-currency:jar:0.23
11
+ - org.kill-bill.billing:killbill-platform-api:jar:0.36.1
16
12
  - com.samskivert:jmustache:jar:1.5
17
- - org.kill-bill.billing:killbill-util:jar:tests:0.15.10
18
- - org.kill-bill.billing.plugin:killbill-plugin-api-currency:jar:0.18
13
+ - org.kill-bill.commons:killbill-clock:jar:0.20
14
+ - org.kill-bill.billing:killbill-util:jar:0.18.0
15
+ - com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.4.5
16
+ - org.bouncycastle:bcpkix-jdk15on:jar:1.55
17
+ - org.bouncycastle:bcprov-jdk15on:jar:1.55
18
+ - org.kill-bill.billing.plugin:killbill-plugin-api-entitlement:jar:0.23
19
19
  - org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:jar:1.16
20
20
  - com.h2database:h2:jar:1.4.186
21
+ - com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.5
21
22
  - javax.activation:activation:jar:1.1
22
23
  - org.skife.config:config-magic:jar:0.14
23
- - com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.4.3
24
- - org.kill-bill.billing.plugin:killbill-plugin-api-control:jar:0.18
25
- - org.apache.commons:commons-email:jar:1.2
24
+ - org.javassist:javassist:jar:3.19.0-GA
26
25
  - org.mockito:mockito-all:jar:1.10.19
26
+ - org.apache.commons:commons-email:jar:1.2
27
27
  - antlr:antlr:jar:2.7.7
28
28
  - aopalliance:aopalliance:jar:1.0
29
+ - com.zaxxer:HikariCP-java6:jar:2.3.7
30
+ - org.slf4j:slf4j-api:jar:1.7.21
29
31
  - com.fasterxml.jackson.core:jackson-annotations:jar:2.4.3
30
32
  - org.antlr:stringtemplate:jar:3.2.1
31
- - org.kill-bill.commons:killbill-clock:jar:0.11
33
+ - org.slf4j:jcl-over-slf4j:jar:1.7.21
32
34
  - javax.mail:mail:jar:1.4.1
33
- - org.kill-bill.billing:killbill-platform-base:jar:0.15
34
35
  - io.dropwizard.metrics:metrics-ehcache:jar:3.1.1
35
- - org.slf4j:jcl-over-slf4j:jar:1.7.12
36
36
  - org.jdbi:jdbi:jar:2.62
37
- - org.kill-bill.billing:killbill-platform-api:jar:0.15
38
- - org.kill-bill.billing:killbill-platform-osgi:jar:0.15
37
+ - com.fasterxml.jackson.core:jackson-core:jar:2.4.5
39
38
  - org.apache.felix:org.apache.felix.framework:jar:4.4.1
40
39
  - org.joda:joda-money:jar:0.9
41
- - org.kill-bill.commons:killbill-jdbi:jar:0.11
42
- - org.kill-bill.commons:killbill-embeddeddb-common:jar:0.11
40
+ - org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.23
43
41
  - org.apache.shiro:shiro-core:jar:1.2.3
44
- - org.kill-bill.billing:killbill-platform-osgi-api:jar:0.15
45
- - org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.18
46
- - com.fasterxml.jackson.core:jackson-databind:jar:2.4.3
42
+ - org.kill-bill.billing:killbill-internal-api:jar:0.18.0
43
+ - org.kill-bill.billing:killbill-util:jar:tests:0.18.0
44
+ - org.kill-bill.billing.plugin:killbill-plugin-api-control:jar:0.23
45
+ - org.kill-bill.commons:killbill-jdbi:jar:0.20
47
46
  - com.google.guava:guava:jar:r09
48
- - org.kill-bill.commons:killbill-locker:jar:0.11
47
+ - org.kill-bill.commons:killbill-queue:jar:0.20
49
48
  - org.osgi:org.osgi.compendium:jar:5.0.0
50
- - org.kill-bill.commons:killbill-queue:jar:0.11
51
- - org.kill-bill.commons:killbill-concurrent:jar:0.11
49
+ - org.kill-bill.commons:killbill-xmlloader:jar:0.20
52
50
  - javax.servlet:javax.servlet-api:jar:3.1.0
51
+ - org.kill-bill.billing:killbill-platform-osgi:jar:0.36.1
53
52
  - org.apache.shiro:shiro-ehcache:jar:1.2.3
53
+ - org.kill-bill.billing:killbill-platform-base:jar:0.36.1
54
54
  - javax.inject:javax.inject:jar:1
55
- - com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.3
55
+ - org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.23
56
+ - org.kill-bill.billing:killbill-api:jar:0.50
56
57
  - com.google.inject.extensions:guice-multibindings:jar:3.0
58
+ - org.kill-bill.billing:killbill-platform-osgi-api:jar:0.36.1
57
59
  - net.sf.ehcache:ehcache:jar:2.9.1
58
- - org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.18
59
- - org.kill-bill.billing:killbill-api:jar:0.32
60
+ - org.kill-bill.commons:killbill-locker:jar:0.20
61
+ - org.kill-bill.commons:killbill-embeddeddb-common:jar:0.20
60
62
  - org.apache.shiro:shiro-guice:jar:1.2.3
61
63
  - com.google.code.findbugs:annotations:jar:3.0.0
64
+ - org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.23
65
+ - org.kill-bill.billing.plugin:killbill-plugin-api-catalog:jar:0.23
66
+ - org.kill-bill.commons:killbill-concurrent:jar:0.20
data/README.md CHANGED
@@ -4,3 +4,11 @@ entitlement-test-plugin
4
4
  Plugin to test the Kill Bill EntitlementPluginApi.
5
5
 
6
6
  Release builds are available on [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.kill-bill.billing.plugin.ruby%22%20AND%20a%3A%22entitlement-test-plugin%22) with coordinates `org.kill-bill.billing.plugin.ruby:entitlement-test-plugin`.
7
+
8
+ Kill Bill compatibility
9
+ -----------------------
10
+
11
+ | Plugin version | Kill Bill version |
12
+ | -------------: | ----------------: |
13
+ | 0.1.y | 0.16.z |
14
+ | 0.2.y | 0.18.z |
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.rdoc_options << '--exclude' << '.'
24
24
 
25
- s.add_dependency 'killbill', '~> 7.0'
25
+ s.add_dependency 'killbill', '~> 8.0'
26
26
 
27
27
  s.add_development_dependency 'jbundler', '~> 0.9.2'
28
28
  s.add_development_dependency 'rake', '>= 10.0.0'
@@ -11,13 +11,17 @@ module EntitlementTest
11
11
 
12
12
 
13
13
  def prior_call(entitlement_context, properties)
14
-
15
14
  puts "EntitlementTest::EntitlementPlugin prior_call : #{entitlement_context_to_s(entitlement_context)}"
16
15
 
17
16
  result = ::Killbill::Plugin::Model::PriorEntitlementResult.new
18
17
 
19
18
  result.is_aborted = property_to_bool(properties, 'TEST_ABORT_ENTITLEMENT')
20
- result.adjusted_effective_date = property_to_float(properties, 'TEST_ADJUSTED_EFFECTIVE_DATE')
19
+
20
+ # nil means no change
21
+ result.adjusted_billing_action_policy = nil
22
+ result.adjusted_base_entitlement_with_add_ons_specifiers = nil
23
+ result.adjusted_plugin_properties = nil
24
+
21
25
  result
22
26
  end
23
27
 
@@ -28,15 +32,13 @@ module EntitlementTest
28
32
 
29
33
  def on_failure_call(entitlement_context, properties)
30
34
  puts "EntitlementTest::EntitlementPlugin on_failure_call : #{entitlement_context_to_s(entitlement_context)}"
31
- result = ::Killbill::Plugin::Model::OnFailureEntitlementResult.new
32
- result.next_retry_date = property_to_date(properties, 'TEST_RETRY_FAILED_PAYMENT')
33
- result
35
+ ::Killbill::Plugin::Model::OnFailureEntitlementResult.new
34
36
  end
35
37
 
36
38
  private
37
39
 
38
40
  def entitlement_context_to_s(rc)
39
- "tenant = #{rc.tenant_id}, operation_type = #{rc.operation_type}, effective_date = #{rc.effective_date}"
41
+ "tenant = #{rc.tenant_id}, operation_type = #{rc.operation_type}"
40
42
  end
41
43
 
42
44
  def property_to_str(properties, key_name)
data/pom.xml CHANGED
@@ -26,7 +26,7 @@
26
26
  <groupId>org.kill-bill.billing.plugin.ruby</groupId>
27
27
  <artifactId>entitlement-test-plugin</artifactId>
28
28
  <packaging>pom</packaging>
29
- <version>0.1.0</version>
29
+ <version>0.2.0</version>
30
30
  <name>entitlement-test-plugin</name>
31
31
  <description></description>
32
32
  <scm>
@@ -29,7 +29,6 @@ describe EntitlementTest::EntitlementPlugin do
29
29
  output.is_aborted.should be_true
30
30
  output.adjusted_plugin_properties.should be_nil
31
31
  end
32
-
33
32
 
34
33
  private
35
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-entitlement-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
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-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill
@@ -16,12 +16,12 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '7.0'
19
+ version: '8.0'
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
22
  - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: '7.0'
24
+ version: '8.0'
25
25
  prerelease: false
26
26
  type: :runtime
27
27
  - !ruby/object:Gem::Dependency
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project:
114
- rubygems_version: 2.1.9
114
+ rubygems_version: 2.4.6
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Plugin to test the entitlement plugin api.