killbill-catalog-ruby-plugin 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: d285835070603d8b81b53d6b0d8c9da694d234bb
4
- data.tar.gz: 57e5550dea43effdb5e40dcecb3949e2c18b4f05
3
+ metadata.gz: 85ec8d1d9d7a9929e6dc049f45fe9e683540ac2d
4
+ data.tar.gz: 6768f2182e88f8d4ef363bbc0bcc0fa86ee331f1
5
5
  SHA512:
6
- metadata.gz: 72ff7f416d62919831953317a23e6bde17a6278b62e9e06c17d23a5f5f6b18db9e7141c125f6154e0f5f61ea2cb58f06aafef5ea8dac013c82e0975abee262ee
7
- data.tar.gz: ca253872a50dd10c9f9a9ec0707aab59ff7263a339c4c251339ae2754fe9b7fffaf4c7c0d0a164e47ba025725b3a3ace9c5d499397988142b37a00defde0aae8
6
+ metadata.gz: 04728873ed516fa19951dcf64d54af9ba271b9fe6114607405a2da4c1058497f3414858ade59ea06575baf7a01c2b512dc270cac1fa7c1bb2611a2461be364aa
7
+ data.tar.gz: 577401272e41b9503a72510a8f6bf4a1e2d72f840fb02bbb080e23b9ce5b851399d311ba4433522269eb924cc1a37d49974046d2355c42cbba95f5f751052ab1
data/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- #gem 'killbill', :path => '$REPO_PATH/killbill-plugin-framework-ruby'
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killbill-catalog-ruby-plugin (0.1.0)
5
- killbill (~> 7.0)
4
+ killbill-catalog-ruby-plugin (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,28 @@ killbill-catalog-ruby-plugin
4
4
  Plugin to highlight the use of the CatalogPluginApi from a ruby plugin.
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%22killbill-catalog-ruby-plugin%22) with coordinates `org.kill-bill.billing.plugin.ruby:killbill-catalog-ruby-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 |
15
+
16
+ Usage
17
+ -----
18
+
19
+ You can verify Kill Bill can load up the demo Gold plan by creating a subscription:
20
+
21
+ ```
22
+ curl -v
23
+ -u admin:password
24
+ -H "X-Killbill-ApiKey: bob"
25
+ -H "X-Killbill-ApiSecret: lazar"
26
+ -H "Content-Type: application/json"
27
+ -H "X-Killbill-CreatedBy: demo"
28
+ -X POST
29
+ --data-binary '{"accountId":"486a9a5f-b896-40c0-845a-a8c042992a32","productName":"Gold","productCategory":"BASE","billingPeriod":"MONTHLY","priceList":"DEFAULT"}'
30
+ "http://127.0.0.1:8080/1.0/kb/subscriptions"
31
+ ```
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'
@@ -64,7 +64,6 @@ module CatalogControlPluginModule
64
64
  def create_price_list(plans)
65
65
  p = Killbill::Plugin::Model::PriceList.new
66
66
  p.name = 'DEFAULT'
67
- p.is_retired = false
68
67
  p.plans = plans
69
68
  p
70
69
  end
@@ -72,11 +71,9 @@ module CatalogControlPluginModule
72
71
  def create_product
73
72
  p = Killbill::Plugin::Model::Product.new
74
73
  p.name = 'Gold'
75
- p.is_retired = false
76
74
  p.available = []
77
75
  p.included = []
78
76
  p.category = :BASE
79
- #p.catalog_name =
80
77
  p.limits = []
81
78
  p
82
79
  end
@@ -86,10 +83,10 @@ module CatalogControlPluginModule
86
83
  p.initial_phases = []
87
84
  p.product = product
88
85
  p.name = 'gold-monthly'
89
- p.is_retired = false
90
86
  p.final_phase = phase
91
87
  p.all_phases = [phase]
92
88
  p.recurring_billing_period = :MONTHLY
89
+ p.price_list_name = 'DEFAULT'
93
90
  p.plans_allowed_in_bundle = -1
94
91
  p
95
92
  end
data/pom.xml CHANGED
@@ -26,7 +26,7 @@
26
26
  <groupId>org.kill-bill.billing.plugin.ruby</groupId>
27
27
  <artifactId>killbill-catalog-ruby-plugin</artifactId>
28
28
  <packaging>pom</packaging>
29
- <version>0.1.0</version>
29
+ <version>0.2.0</version>
30
30
  <name>killbill-catalog-ruby-plugin</name>
31
31
  <description></description>
32
32
  <scm>
data/release.sh CHANGED
@@ -36,7 +36,7 @@ fi
36
36
  echo 'Building artifact'
37
37
  $BUNDLE rake killbill:package
38
38
 
39
- ARTIFACT="$PWD/pkg/killbill-catalog-ruby-$VERSION.tar.gz"
39
+ ARTIFACT="$PWD/pkg/killbill-catalog-ruby-plugin-$VERSION.tar.gz"
40
40
  echo "Pushing $ARTIFACT to Maven Central"
41
41
 
42
42
  if [[ -z "$NO_RELEASE" ]]; then
metadata CHANGED
@@ -1,79 +1,79 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-catalog-ruby-plugin
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-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: killbill
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '7.0'
20
14
  requirement: !ruby/object:Gem::Requirement
21
15
  requirements:
22
- - - ~>
16
+ - - "~>"
23
17
  - !ruby/object:Gem::Version
24
- version: '7.0'
18
+ version: '8.0'
19
+ name: killbill
25
20
  prerelease: false
26
21
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: jbundler
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
- - - ~>
24
+ - - "~>"
32
25
  - !ruby/object:Gem::Version
33
- version: 0.9.2
26
+ version: '8.0'
27
+ - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
36
- - - ~>
30
+ - - "~>"
37
31
  - !ruby/object:Gem::Version
38
32
  version: 0.9.2
33
+ name: jbundler
39
34
  prerelease: false
40
35
  type: :development
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
- - - '>='
38
+ - - "~>"
46
39
  - !ruby/object:Gem::Version
47
- version: 10.0.0
40
+ version: 0.9.2
41
+ - !ruby/object:Gem::Dependency
48
42
  requirement: !ruby/object:Gem::Requirement
49
43
  requirements:
50
- - - '>='
44
+ - - ">="
51
45
  - !ruby/object:Gem::Version
52
46
  version: 10.0.0
47
+ name: rake
53
48
  prerelease: false
54
49
  type: :development
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
- - - ~>
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
- version: 2.12.0
54
+ version: 10.0.0
55
+ - !ruby/object:Gem::Dependency
62
56
  requirement: !ruby/object:Gem::Requirement
63
57
  requirements:
64
- - - ~>
58
+ - - "~>"
65
59
  - !ruby/object:Gem::Version
66
60
  version: 2.12.0
61
+ name: rspec
67
62
  prerelease: false
68
63
  type: :development
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.12.0
69
69
  description: Kill Bill Plugin to illustrate the use of the Catalog Plugin api.
70
70
  email: killbilling-users@googlegroups.com
71
71
  executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
- - .gitignore
76
- - .travis.yml
75
+ - ".gitignore"
76
+ - ".travis.yml"
77
77
  - Gemfile
78
78
  - Gemfile.lock
79
79
  - Jarfile
@@ -95,23 +95,23 @@ licenses:
95
95
  metadata: {}
96
96
  post_install_message:
97
97
  rdoc_options:
98
- - --exclude
99
- - .
98
+ - "--exclude"
99
+ - "."
100
100
  require_paths:
101
101
  - lib
102
102
  required_ruby_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - '>='
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
106
  version: 1.9.3
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - '>='
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
113
  rubyforge_project:
114
- rubygems_version: 2.1.9
114
+ rubygems_version: 2.4.8
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: Catalog Plugin