killbill 4.1.0 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/killbill/{helpers/catalog.rb → catalog.rb} +0 -0
- data/lib/killbill/gen/api/case.rb +79 -0
- data/lib/killbill/gen/api/case_billing_alignment.rb +93 -0
- data/lib/killbill/gen/api/case_cancel_policy.rb +93 -0
- data/lib/killbill/gen/api/case_change.rb +114 -0
- data/lib/killbill/gen/api/case_change_plan_alignment.rb +121 -0
- data/lib/killbill/gen/api/case_change_plan_policy.rb +121 -0
- data/lib/killbill/gen/api/case_create_alignment.rb +86 -0
- data/lib/killbill/gen/api/case_phase.rb +86 -0
- data/lib/killbill/gen/api/case_price_list.rb +86 -0
- data/lib/killbill/gen/api/plan_rules.rb +165 -0
- data/lib/killbill/gen/api/require_gen.rb +10 -0
- data/lib/killbill/version.rb +1 -1
- metadata +13 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94be00ae2f3ef1ebce5ab9ff5d9f2f6adbbcf6e5
|
4
|
+
data.tar.gz: 93f90f2194d54a67e040d3f3a6a710b8424574c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa9c26c98b33a69c9a2aac76d54da12cd9558fa3400c90c9fb7231c3cbbd7f49c1ffae4260ce1ac466fb3c6ad6a49115acf846648547ab50a9c3504ce2e2c343
|
7
|
+
data.tar.gz: eb4830cc7b9923c6ab72fbf1be91b7f6a4e8624a9d1652b580ace0699e41cb16cde47a97498e26d375fa40dd9580fd29ca4fdc8059fac86f96501423ed10019e
|
data/Gemfile.lock
CHANGED
File without changes
|
@@ -0,0 +1,79 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.catalog.api.rules'
|
33
|
+
class Case
|
34
|
+
|
35
|
+
include org.killbill.billing.catalog.api.rules.Case
|
36
|
+
|
37
|
+
attr_accessor :product, :product_category, :billing_period, :price_list
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
44
|
+
@product = @product.to_java unless @product.nil?
|
45
|
+
|
46
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
47
|
+
@product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @product_category.to_s ) unless @product_category.nil?
|
48
|
+
|
49
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
50
|
+
@billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @billing_period.to_s ) unless @billing_period.nil?
|
51
|
+
|
52
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
53
|
+
@price_list = @price_list.to_java unless @price_list.nil?
|
54
|
+
self
|
55
|
+
end
|
56
|
+
|
57
|
+
def to_ruby(j_obj)
|
58
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
59
|
+
@product = j_obj.product
|
60
|
+
@product = Killbill::Plugin::Model::Product.new.to_ruby(@product) unless @product.nil?
|
61
|
+
|
62
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
63
|
+
@product_category = j_obj.product_category
|
64
|
+
@product_category = @product_category.to_s.to_sym unless @product_category.nil?
|
65
|
+
|
66
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
67
|
+
@billing_period = j_obj.billing_period
|
68
|
+
@billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
|
69
|
+
|
70
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
71
|
+
@price_list = j_obj.price_list
|
72
|
+
@price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@price_list) unless @price_list.nil?
|
73
|
+
self
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.catalog.api.rules'
|
33
|
+
class CaseBillingAlignment
|
34
|
+
|
35
|
+
include org.killbill.billing.catalog.api.rules.CaseBillingAlignment
|
36
|
+
|
37
|
+
attr_accessor :phase_type, :product, :product_category, :billing_period, :price_list, :billing_alignment
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
44
|
+
@phase_type = Java::org.killbill.billing.catalog.api.PhaseType.value_of( @phase_type.to_s ) unless @phase_type.nil?
|
45
|
+
|
46
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
47
|
+
@product = @product.to_java unless @product.nil?
|
48
|
+
|
49
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
50
|
+
@product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @product_category.to_s ) unless @product_category.nil?
|
51
|
+
|
52
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
53
|
+
@billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @billing_period.to_s ) unless @billing_period.nil?
|
54
|
+
|
55
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
56
|
+
@price_list = @price_list.to_java unless @price_list.nil?
|
57
|
+
|
58
|
+
# conversion for billing_alignment [type = org.killbill.billing.catalog.api.BillingAlignment]
|
59
|
+
@billing_alignment = Java::org.killbill.billing.catalog.api.BillingAlignment.value_of( @billing_alignment.to_s ) unless @billing_alignment.nil?
|
60
|
+
self
|
61
|
+
end
|
62
|
+
|
63
|
+
def to_ruby(j_obj)
|
64
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
65
|
+
@phase_type = j_obj.phase_type
|
66
|
+
@phase_type = @phase_type.to_s.to_sym unless @phase_type.nil?
|
67
|
+
|
68
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
69
|
+
@product = j_obj.product
|
70
|
+
@product = Killbill::Plugin::Model::Product.new.to_ruby(@product) unless @product.nil?
|
71
|
+
|
72
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
73
|
+
@product_category = j_obj.product_category
|
74
|
+
@product_category = @product_category.to_s.to_sym unless @product_category.nil?
|
75
|
+
|
76
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
77
|
+
@billing_period = j_obj.billing_period
|
78
|
+
@billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
|
79
|
+
|
80
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
81
|
+
@price_list = j_obj.price_list
|
82
|
+
@price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@price_list) unless @price_list.nil?
|
83
|
+
|
84
|
+
# conversion for billing_alignment [type = org.killbill.billing.catalog.api.BillingAlignment]
|
85
|
+
@billing_alignment = j_obj.billing_alignment
|
86
|
+
@billing_alignment = @billing_alignment.to_s.to_sym unless @billing_alignment.nil?
|
87
|
+
self
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.catalog.api.rules'
|
33
|
+
class CaseCancelPolicy
|
34
|
+
|
35
|
+
include org.killbill.billing.catalog.api.rules.CaseCancelPolicy
|
36
|
+
|
37
|
+
attr_accessor :phase_type, :product, :product_category, :billing_period, :price_list, :billing_action_policy
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
44
|
+
@phase_type = Java::org.killbill.billing.catalog.api.PhaseType.value_of( @phase_type.to_s ) unless @phase_type.nil?
|
45
|
+
|
46
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
47
|
+
@product = @product.to_java unless @product.nil?
|
48
|
+
|
49
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
50
|
+
@product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @product_category.to_s ) unless @product_category.nil?
|
51
|
+
|
52
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
53
|
+
@billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @billing_period.to_s ) unless @billing_period.nil?
|
54
|
+
|
55
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
56
|
+
@price_list = @price_list.to_java unless @price_list.nil?
|
57
|
+
|
58
|
+
# conversion for billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
|
59
|
+
@billing_action_policy = Java::org.killbill.billing.catalog.api.BillingActionPolicy.value_of( @billing_action_policy.to_s ) unless @billing_action_policy.nil?
|
60
|
+
self
|
61
|
+
end
|
62
|
+
|
63
|
+
def to_ruby(j_obj)
|
64
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
65
|
+
@phase_type = j_obj.phase_type
|
66
|
+
@phase_type = @phase_type.to_s.to_sym unless @phase_type.nil?
|
67
|
+
|
68
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
69
|
+
@product = j_obj.product
|
70
|
+
@product = Killbill::Plugin::Model::Product.new.to_ruby(@product) unless @product.nil?
|
71
|
+
|
72
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
73
|
+
@product_category = j_obj.product_category
|
74
|
+
@product_category = @product_category.to_s.to_sym unless @product_category.nil?
|
75
|
+
|
76
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
77
|
+
@billing_period = j_obj.billing_period
|
78
|
+
@billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
|
79
|
+
|
80
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
81
|
+
@price_list = j_obj.price_list
|
82
|
+
@price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@price_list) unless @price_list.nil?
|
83
|
+
|
84
|
+
# conversion for billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
|
85
|
+
@billing_action_policy = j_obj.billing_action_policy
|
86
|
+
@billing_action_policy = @billing_action_policy.to_s.to_sym unless @billing_action_policy.nil?
|
87
|
+
self
|
88
|
+
end
|
89
|
+
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,114 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.catalog.api.rules'
|
33
|
+
class CaseChange
|
34
|
+
|
35
|
+
include org.killbill.billing.catalog.api.rules.CaseChange
|
36
|
+
|
37
|
+
attr_accessor :phase_type, :from_product, :from_product_category, :from_billing_period, :from_price_list, :to_product, :to_product_category, :to_billing_period, :to_price_list
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
44
|
+
@phase_type = Java::org.killbill.billing.catalog.api.PhaseType.value_of( @phase_type.to_s ) unless @phase_type.nil?
|
45
|
+
|
46
|
+
# conversion for from_product [type = org.killbill.billing.catalog.api.Product]
|
47
|
+
@from_product = @from_product.to_java unless @from_product.nil?
|
48
|
+
|
49
|
+
# conversion for from_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
50
|
+
@from_product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @from_product_category.to_s ) unless @from_product_category.nil?
|
51
|
+
|
52
|
+
# conversion for from_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
53
|
+
@from_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @from_billing_period.to_s ) unless @from_billing_period.nil?
|
54
|
+
|
55
|
+
# conversion for from_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
56
|
+
@from_price_list = @from_price_list.to_java unless @from_price_list.nil?
|
57
|
+
|
58
|
+
# conversion for to_product [type = org.killbill.billing.catalog.api.Product]
|
59
|
+
@to_product = @to_product.to_java unless @to_product.nil?
|
60
|
+
|
61
|
+
# conversion for to_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
62
|
+
@to_product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @to_product_category.to_s ) unless @to_product_category.nil?
|
63
|
+
|
64
|
+
# conversion for to_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
65
|
+
@to_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @to_billing_period.to_s ) unless @to_billing_period.nil?
|
66
|
+
|
67
|
+
# conversion for to_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
68
|
+
@to_price_list = @to_price_list.to_java unless @to_price_list.nil?
|
69
|
+
self
|
70
|
+
end
|
71
|
+
|
72
|
+
def to_ruby(j_obj)
|
73
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
74
|
+
@phase_type = j_obj.phase_type
|
75
|
+
@phase_type = @phase_type.to_s.to_sym unless @phase_type.nil?
|
76
|
+
|
77
|
+
# conversion for from_product [type = org.killbill.billing.catalog.api.Product]
|
78
|
+
@from_product = j_obj.from_product
|
79
|
+
@from_product = Killbill::Plugin::Model::Product.new.to_ruby(@from_product) unless @from_product.nil?
|
80
|
+
|
81
|
+
# conversion for from_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
82
|
+
@from_product_category = j_obj.from_product_category
|
83
|
+
@from_product_category = @from_product_category.to_s.to_sym unless @from_product_category.nil?
|
84
|
+
|
85
|
+
# conversion for from_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
86
|
+
@from_billing_period = j_obj.from_billing_period
|
87
|
+
@from_billing_period = @from_billing_period.to_s.to_sym unless @from_billing_period.nil?
|
88
|
+
|
89
|
+
# conversion for from_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
90
|
+
@from_price_list = j_obj.from_price_list
|
91
|
+
@from_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@from_price_list) unless @from_price_list.nil?
|
92
|
+
|
93
|
+
# conversion for to_product [type = org.killbill.billing.catalog.api.Product]
|
94
|
+
@to_product = j_obj.to_product
|
95
|
+
@to_product = Killbill::Plugin::Model::Product.new.to_ruby(@to_product) unless @to_product.nil?
|
96
|
+
|
97
|
+
# conversion for to_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
98
|
+
@to_product_category = j_obj.to_product_category
|
99
|
+
@to_product_category = @to_product_category.to_s.to_sym unless @to_product_category.nil?
|
100
|
+
|
101
|
+
# conversion for to_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
102
|
+
@to_billing_period = j_obj.to_billing_period
|
103
|
+
@to_billing_period = @to_billing_period.to_s.to_sym unless @to_billing_period.nil?
|
104
|
+
|
105
|
+
# conversion for to_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
106
|
+
@to_price_list = j_obj.to_price_list
|
107
|
+
@to_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@to_price_list) unless @to_price_list.nil?
|
108
|
+
self
|
109
|
+
end
|
110
|
+
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
@@ -0,0 +1,121 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.catalog.api.rules'
|
33
|
+
class CaseChangePlanAlignment
|
34
|
+
|
35
|
+
include org.killbill.billing.catalog.api.rules.CaseChangePlanAlignment
|
36
|
+
|
37
|
+
attr_accessor :phase_type, :from_product, :from_product_category, :from_billing_period, :from_price_list, :to_product, :to_product_category, :to_billing_period, :to_price_list, :alignment
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
44
|
+
@phase_type = Java::org.killbill.billing.catalog.api.PhaseType.value_of( @phase_type.to_s ) unless @phase_type.nil?
|
45
|
+
|
46
|
+
# conversion for from_product [type = org.killbill.billing.catalog.api.Product]
|
47
|
+
@from_product = @from_product.to_java unless @from_product.nil?
|
48
|
+
|
49
|
+
# conversion for from_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
50
|
+
@from_product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @from_product_category.to_s ) unless @from_product_category.nil?
|
51
|
+
|
52
|
+
# conversion for from_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
53
|
+
@from_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @from_billing_period.to_s ) unless @from_billing_period.nil?
|
54
|
+
|
55
|
+
# conversion for from_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
56
|
+
@from_price_list = @from_price_list.to_java unless @from_price_list.nil?
|
57
|
+
|
58
|
+
# conversion for to_product [type = org.killbill.billing.catalog.api.Product]
|
59
|
+
@to_product = @to_product.to_java unless @to_product.nil?
|
60
|
+
|
61
|
+
# conversion for to_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
62
|
+
@to_product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @to_product_category.to_s ) unless @to_product_category.nil?
|
63
|
+
|
64
|
+
# conversion for to_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
65
|
+
@to_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @to_billing_period.to_s ) unless @to_billing_period.nil?
|
66
|
+
|
67
|
+
# conversion for to_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
68
|
+
@to_price_list = @to_price_list.to_java unless @to_price_list.nil?
|
69
|
+
|
70
|
+
# conversion for alignment [type = org.killbill.billing.catalog.api.PlanAlignmentChange]
|
71
|
+
@alignment = Java::org.killbill.billing.catalog.api.PlanAlignmentChange.value_of( @alignment.to_s ) unless @alignment.nil?
|
72
|
+
self
|
73
|
+
end
|
74
|
+
|
75
|
+
def to_ruby(j_obj)
|
76
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
77
|
+
@phase_type = j_obj.phase_type
|
78
|
+
@phase_type = @phase_type.to_s.to_sym unless @phase_type.nil?
|
79
|
+
|
80
|
+
# conversion for from_product [type = org.killbill.billing.catalog.api.Product]
|
81
|
+
@from_product = j_obj.from_product
|
82
|
+
@from_product = Killbill::Plugin::Model::Product.new.to_ruby(@from_product) unless @from_product.nil?
|
83
|
+
|
84
|
+
# conversion for from_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
85
|
+
@from_product_category = j_obj.from_product_category
|
86
|
+
@from_product_category = @from_product_category.to_s.to_sym unless @from_product_category.nil?
|
87
|
+
|
88
|
+
# conversion for from_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
89
|
+
@from_billing_period = j_obj.from_billing_period
|
90
|
+
@from_billing_period = @from_billing_period.to_s.to_sym unless @from_billing_period.nil?
|
91
|
+
|
92
|
+
# conversion for from_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
93
|
+
@from_price_list = j_obj.from_price_list
|
94
|
+
@from_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@from_price_list) unless @from_price_list.nil?
|
95
|
+
|
96
|
+
# conversion for to_product [type = org.killbill.billing.catalog.api.Product]
|
97
|
+
@to_product = j_obj.to_product
|
98
|
+
@to_product = Killbill::Plugin::Model::Product.new.to_ruby(@to_product) unless @to_product.nil?
|
99
|
+
|
100
|
+
# conversion for to_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
101
|
+
@to_product_category = j_obj.to_product_category
|
102
|
+
@to_product_category = @to_product_category.to_s.to_sym unless @to_product_category.nil?
|
103
|
+
|
104
|
+
# conversion for to_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
105
|
+
@to_billing_period = j_obj.to_billing_period
|
106
|
+
@to_billing_period = @to_billing_period.to_s.to_sym unless @to_billing_period.nil?
|
107
|
+
|
108
|
+
# conversion for to_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
109
|
+
@to_price_list = j_obj.to_price_list
|
110
|
+
@to_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@to_price_list) unless @to_price_list.nil?
|
111
|
+
|
112
|
+
# conversion for alignment [type = org.killbill.billing.catalog.api.PlanAlignmentChange]
|
113
|
+
@alignment = j_obj.alignment
|
114
|
+
@alignment = @alignment.to_s.to_sym unless @alignment.nil?
|
115
|
+
self
|
116
|
+
end
|
117
|
+
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
@@ -0,0 +1,121 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.catalog.api.rules'
|
33
|
+
class CaseChangePlanPolicy
|
34
|
+
|
35
|
+
include org.killbill.billing.catalog.api.rules.CaseChangePlanPolicy
|
36
|
+
|
37
|
+
attr_accessor :phase_type, :from_product, :from_product_category, :from_billing_period, :from_price_list, :to_product, :to_product_category, :to_billing_period, :to_price_list, :billing_action_policy
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
44
|
+
@phase_type = Java::org.killbill.billing.catalog.api.PhaseType.value_of( @phase_type.to_s ) unless @phase_type.nil?
|
45
|
+
|
46
|
+
# conversion for from_product [type = org.killbill.billing.catalog.api.Product]
|
47
|
+
@from_product = @from_product.to_java unless @from_product.nil?
|
48
|
+
|
49
|
+
# conversion for from_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
50
|
+
@from_product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @from_product_category.to_s ) unless @from_product_category.nil?
|
51
|
+
|
52
|
+
# conversion for from_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
53
|
+
@from_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @from_billing_period.to_s ) unless @from_billing_period.nil?
|
54
|
+
|
55
|
+
# conversion for from_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
56
|
+
@from_price_list = @from_price_list.to_java unless @from_price_list.nil?
|
57
|
+
|
58
|
+
# conversion for to_product [type = org.killbill.billing.catalog.api.Product]
|
59
|
+
@to_product = @to_product.to_java unless @to_product.nil?
|
60
|
+
|
61
|
+
# conversion for to_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
62
|
+
@to_product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @to_product_category.to_s ) unless @to_product_category.nil?
|
63
|
+
|
64
|
+
# conversion for to_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
65
|
+
@to_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @to_billing_period.to_s ) unless @to_billing_period.nil?
|
66
|
+
|
67
|
+
# conversion for to_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
68
|
+
@to_price_list = @to_price_list.to_java unless @to_price_list.nil?
|
69
|
+
|
70
|
+
# conversion for billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
|
71
|
+
@billing_action_policy = Java::org.killbill.billing.catalog.api.BillingActionPolicy.value_of( @billing_action_policy.to_s ) unless @billing_action_policy.nil?
|
72
|
+
self
|
73
|
+
end
|
74
|
+
|
75
|
+
def to_ruby(j_obj)
|
76
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
77
|
+
@phase_type = j_obj.phase_type
|
78
|
+
@phase_type = @phase_type.to_s.to_sym unless @phase_type.nil?
|
79
|
+
|
80
|
+
# conversion for from_product [type = org.killbill.billing.catalog.api.Product]
|
81
|
+
@from_product = j_obj.from_product
|
82
|
+
@from_product = Killbill::Plugin::Model::Product.new.to_ruby(@from_product) unless @from_product.nil?
|
83
|
+
|
84
|
+
# conversion for from_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
85
|
+
@from_product_category = j_obj.from_product_category
|
86
|
+
@from_product_category = @from_product_category.to_s.to_sym unless @from_product_category.nil?
|
87
|
+
|
88
|
+
# conversion for from_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
89
|
+
@from_billing_period = j_obj.from_billing_period
|
90
|
+
@from_billing_period = @from_billing_period.to_s.to_sym unless @from_billing_period.nil?
|
91
|
+
|
92
|
+
# conversion for from_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
93
|
+
@from_price_list = j_obj.from_price_list
|
94
|
+
@from_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@from_price_list) unless @from_price_list.nil?
|
95
|
+
|
96
|
+
# conversion for to_product [type = org.killbill.billing.catalog.api.Product]
|
97
|
+
@to_product = j_obj.to_product
|
98
|
+
@to_product = Killbill::Plugin::Model::Product.new.to_ruby(@to_product) unless @to_product.nil?
|
99
|
+
|
100
|
+
# conversion for to_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
101
|
+
@to_product_category = j_obj.to_product_category
|
102
|
+
@to_product_category = @to_product_category.to_s.to_sym unless @to_product_category.nil?
|
103
|
+
|
104
|
+
# conversion for to_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
105
|
+
@to_billing_period = j_obj.to_billing_period
|
106
|
+
@to_billing_period = @to_billing_period.to_s.to_sym unless @to_billing_period.nil?
|
107
|
+
|
108
|
+
# conversion for to_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
109
|
+
@to_price_list = j_obj.to_price_list
|
110
|
+
@to_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@to_price_list) unless @to_price_list.nil?
|
111
|
+
|
112
|
+
# conversion for billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
|
113
|
+
@billing_action_policy = j_obj.billing_action_policy
|
114
|
+
@billing_action_policy = @billing_action_policy.to_s.to_sym unless @billing_action_policy.nil?
|
115
|
+
self
|
116
|
+
end
|
117
|
+
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.catalog.api.rules'
|
33
|
+
class CaseCreateAlignment
|
34
|
+
|
35
|
+
include org.killbill.billing.catalog.api.rules.CaseCreateAlignment
|
36
|
+
|
37
|
+
attr_accessor :product, :product_category, :billing_period, :price_list, :plan_alignment_create
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
44
|
+
@product = @product.to_java unless @product.nil?
|
45
|
+
|
46
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
47
|
+
@product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @product_category.to_s ) unless @product_category.nil?
|
48
|
+
|
49
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
50
|
+
@billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @billing_period.to_s ) unless @billing_period.nil?
|
51
|
+
|
52
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
53
|
+
@price_list = @price_list.to_java unless @price_list.nil?
|
54
|
+
|
55
|
+
# conversion for plan_alignment_create [type = org.killbill.billing.catalog.api.PlanAlignmentCreate]
|
56
|
+
@plan_alignment_create = Java::org.killbill.billing.catalog.api.PlanAlignmentCreate.value_of( @plan_alignment_create.to_s ) unless @plan_alignment_create.nil?
|
57
|
+
self
|
58
|
+
end
|
59
|
+
|
60
|
+
def to_ruby(j_obj)
|
61
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
62
|
+
@product = j_obj.product
|
63
|
+
@product = Killbill::Plugin::Model::Product.new.to_ruby(@product) unless @product.nil?
|
64
|
+
|
65
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
66
|
+
@product_category = j_obj.product_category
|
67
|
+
@product_category = @product_category.to_s.to_sym unless @product_category.nil?
|
68
|
+
|
69
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
70
|
+
@billing_period = j_obj.billing_period
|
71
|
+
@billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
|
72
|
+
|
73
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
74
|
+
@price_list = j_obj.price_list
|
75
|
+
@price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@price_list) unless @price_list.nil?
|
76
|
+
|
77
|
+
# conversion for plan_alignment_create [type = org.killbill.billing.catalog.api.PlanAlignmentCreate]
|
78
|
+
@plan_alignment_create = j_obj.plan_alignment_create
|
79
|
+
@plan_alignment_create = @plan_alignment_create.to_s.to_sym unless @plan_alignment_create.nil?
|
80
|
+
self
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.catalog.api.rules'
|
33
|
+
class CasePhase
|
34
|
+
|
35
|
+
include org.killbill.billing.catalog.api.rules.CasePhase
|
36
|
+
|
37
|
+
attr_accessor :product, :product_category, :billing_period, :price_list, :phase_type
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
44
|
+
@product = @product.to_java unless @product.nil?
|
45
|
+
|
46
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
47
|
+
@product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @product_category.to_s ) unless @product_category.nil?
|
48
|
+
|
49
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
50
|
+
@billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @billing_period.to_s ) unless @billing_period.nil?
|
51
|
+
|
52
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
53
|
+
@price_list = @price_list.to_java unless @price_list.nil?
|
54
|
+
|
55
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
56
|
+
@phase_type = Java::org.killbill.billing.catalog.api.PhaseType.value_of( @phase_type.to_s ) unless @phase_type.nil?
|
57
|
+
self
|
58
|
+
end
|
59
|
+
|
60
|
+
def to_ruby(j_obj)
|
61
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
62
|
+
@product = j_obj.product
|
63
|
+
@product = Killbill::Plugin::Model::Product.new.to_ruby(@product) unless @product.nil?
|
64
|
+
|
65
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
66
|
+
@product_category = j_obj.product_category
|
67
|
+
@product_category = @product_category.to_s.to_sym unless @product_category.nil?
|
68
|
+
|
69
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
70
|
+
@billing_period = j_obj.billing_period
|
71
|
+
@billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
|
72
|
+
|
73
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
74
|
+
@price_list = j_obj.price_list
|
75
|
+
@price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@price_list) unless @price_list.nil?
|
76
|
+
|
77
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
78
|
+
@phase_type = j_obj.phase_type
|
79
|
+
@phase_type = @phase_type.to_s.to_sym unless @phase_type.nil?
|
80
|
+
self
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.catalog.api.rules'
|
33
|
+
class CasePriceList
|
34
|
+
|
35
|
+
include org.killbill.billing.catalog.api.rules.CasePriceList
|
36
|
+
|
37
|
+
attr_accessor :product, :product_category, :billing_period, :price_list, :destination_price_list
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
44
|
+
@product = @product.to_java unless @product.nil?
|
45
|
+
|
46
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
47
|
+
@product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @product_category.to_s ) unless @product_category.nil?
|
48
|
+
|
49
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
50
|
+
@billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @billing_period.to_s ) unless @billing_period.nil?
|
51
|
+
|
52
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
53
|
+
@price_list = @price_list.to_java unless @price_list.nil?
|
54
|
+
|
55
|
+
# conversion for destination_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
56
|
+
@destination_price_list = @destination_price_list.to_java unless @destination_price_list.nil?
|
57
|
+
self
|
58
|
+
end
|
59
|
+
|
60
|
+
def to_ruby(j_obj)
|
61
|
+
# conversion for product [type = org.killbill.billing.catalog.api.Product]
|
62
|
+
@product = j_obj.product
|
63
|
+
@product = Killbill::Plugin::Model::Product.new.to_ruby(@product) unless @product.nil?
|
64
|
+
|
65
|
+
# conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
66
|
+
@product_category = j_obj.product_category
|
67
|
+
@product_category = @product_category.to_s.to_sym unless @product_category.nil?
|
68
|
+
|
69
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
70
|
+
@billing_period = j_obj.billing_period
|
71
|
+
@billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
|
72
|
+
|
73
|
+
# conversion for price_list [type = org.killbill.billing.catalog.api.PriceList]
|
74
|
+
@price_list = j_obj.price_list
|
75
|
+
@price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@price_list) unless @price_list.nil?
|
76
|
+
|
77
|
+
# conversion for destination_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
78
|
+
@destination_price_list = j_obj.destination_price_list
|
79
|
+
@destination_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@destination_price_list) unless @destination_price_list.nil?
|
80
|
+
self
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,165 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# DO NOT EDIT!!!
|
24
|
+
# File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
|
25
|
+
#
|
26
|
+
|
27
|
+
|
28
|
+
module Killbill
|
29
|
+
module Plugin
|
30
|
+
module Model
|
31
|
+
|
32
|
+
java_package 'org.killbill.billing.catalog.api.rules'
|
33
|
+
class PlanRules
|
34
|
+
|
35
|
+
include org.killbill.billing.catalog.api.rules.PlanRules
|
36
|
+
|
37
|
+
attr_accessor :case_change_plan_policy, :case_change_plan_alignment, :case_cancel_policy, :case_create_alignment, :case_billing_alignment, :case_price_list
|
38
|
+
|
39
|
+
def initialize()
|
40
|
+
end
|
41
|
+
|
42
|
+
def to_java()
|
43
|
+
# conversion for case_change_plan_policy [type = java.lang.Iterable]
|
44
|
+
tmp = java.util.ArrayList.new
|
45
|
+
(@case_change_plan_policy || []).each do |m|
|
46
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CaseChangePlanPolicy]
|
47
|
+
m = m.to_java unless m.nil?
|
48
|
+
tmp.add(m)
|
49
|
+
end
|
50
|
+
@case_change_plan_policy = tmp
|
51
|
+
|
52
|
+
# conversion for case_change_plan_alignment [type = java.lang.Iterable]
|
53
|
+
tmp = java.util.ArrayList.new
|
54
|
+
(@case_change_plan_alignment || []).each do |m|
|
55
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CaseChangePlanAlignment]
|
56
|
+
m = m.to_java unless m.nil?
|
57
|
+
tmp.add(m)
|
58
|
+
end
|
59
|
+
@case_change_plan_alignment = tmp
|
60
|
+
|
61
|
+
# conversion for case_cancel_policy [type = java.lang.Iterable]
|
62
|
+
tmp = java.util.ArrayList.new
|
63
|
+
(@case_cancel_policy || []).each do |m|
|
64
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CaseCancelPolicy]
|
65
|
+
m = m.to_java unless m.nil?
|
66
|
+
tmp.add(m)
|
67
|
+
end
|
68
|
+
@case_cancel_policy = tmp
|
69
|
+
|
70
|
+
# conversion for case_create_alignment [type = java.lang.Iterable]
|
71
|
+
tmp = java.util.ArrayList.new
|
72
|
+
(@case_create_alignment || []).each do |m|
|
73
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CaseCreateAlignment]
|
74
|
+
m = m.to_java unless m.nil?
|
75
|
+
tmp.add(m)
|
76
|
+
end
|
77
|
+
@case_create_alignment = tmp
|
78
|
+
|
79
|
+
# conversion for case_billing_alignment [type = java.lang.Iterable]
|
80
|
+
tmp = java.util.ArrayList.new
|
81
|
+
(@case_billing_alignment || []).each do |m|
|
82
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CaseBillingAlignment]
|
83
|
+
m = m.to_java unless m.nil?
|
84
|
+
tmp.add(m)
|
85
|
+
end
|
86
|
+
@case_billing_alignment = tmp
|
87
|
+
|
88
|
+
# conversion for case_price_list [type = java.lang.Iterable]
|
89
|
+
tmp = java.util.ArrayList.new
|
90
|
+
(@case_price_list || []).each do |m|
|
91
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CasePriceList]
|
92
|
+
m = m.to_java unless m.nil?
|
93
|
+
tmp.add(m)
|
94
|
+
end
|
95
|
+
@case_price_list = tmp
|
96
|
+
self
|
97
|
+
end
|
98
|
+
|
99
|
+
def to_ruby(j_obj)
|
100
|
+
# conversion for case_change_plan_policy [type = java.lang.Iterable]
|
101
|
+
@case_change_plan_policy = j_obj.case_change_plan_policy
|
102
|
+
tmp = []
|
103
|
+
(@case_change_plan_policy.nil? ? [] : @case_change_plan_policy.iterator).each do |m|
|
104
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CaseChangePlanPolicy]
|
105
|
+
m = Killbill::Plugin::Model::CaseChangePlanPolicy.new.to_ruby(m) unless m.nil?
|
106
|
+
tmp << m
|
107
|
+
end
|
108
|
+
@case_change_plan_policy = tmp
|
109
|
+
|
110
|
+
# conversion for case_change_plan_alignment [type = java.lang.Iterable]
|
111
|
+
@case_change_plan_alignment = j_obj.case_change_plan_alignment
|
112
|
+
tmp = []
|
113
|
+
(@case_change_plan_alignment.nil? ? [] : @case_change_plan_alignment.iterator).each do |m|
|
114
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CaseChangePlanAlignment]
|
115
|
+
m = Killbill::Plugin::Model::CaseChangePlanAlignment.new.to_ruby(m) unless m.nil?
|
116
|
+
tmp << m
|
117
|
+
end
|
118
|
+
@case_change_plan_alignment = tmp
|
119
|
+
|
120
|
+
# conversion for case_cancel_policy [type = java.lang.Iterable]
|
121
|
+
@case_cancel_policy = j_obj.case_cancel_policy
|
122
|
+
tmp = []
|
123
|
+
(@case_cancel_policy.nil? ? [] : @case_cancel_policy.iterator).each do |m|
|
124
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CaseCancelPolicy]
|
125
|
+
m = Killbill::Plugin::Model::CaseCancelPolicy.new.to_ruby(m) unless m.nil?
|
126
|
+
tmp << m
|
127
|
+
end
|
128
|
+
@case_cancel_policy = tmp
|
129
|
+
|
130
|
+
# conversion for case_create_alignment [type = java.lang.Iterable]
|
131
|
+
@case_create_alignment = j_obj.case_create_alignment
|
132
|
+
tmp = []
|
133
|
+
(@case_create_alignment.nil? ? [] : @case_create_alignment.iterator).each do |m|
|
134
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CaseCreateAlignment]
|
135
|
+
m = Killbill::Plugin::Model::CaseCreateAlignment.new.to_ruby(m) unless m.nil?
|
136
|
+
tmp << m
|
137
|
+
end
|
138
|
+
@case_create_alignment = tmp
|
139
|
+
|
140
|
+
# conversion for case_billing_alignment [type = java.lang.Iterable]
|
141
|
+
@case_billing_alignment = j_obj.case_billing_alignment
|
142
|
+
tmp = []
|
143
|
+
(@case_billing_alignment.nil? ? [] : @case_billing_alignment.iterator).each do |m|
|
144
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CaseBillingAlignment]
|
145
|
+
m = Killbill::Plugin::Model::CaseBillingAlignment.new.to_ruby(m) unless m.nil?
|
146
|
+
tmp << m
|
147
|
+
end
|
148
|
+
@case_billing_alignment = tmp
|
149
|
+
|
150
|
+
# conversion for case_price_list [type = java.lang.Iterable]
|
151
|
+
@case_price_list = j_obj.case_price_list
|
152
|
+
tmp = []
|
153
|
+
(@case_price_list.nil? ? [] : @case_price_list.iterator).each do |m|
|
154
|
+
# conversion for m [type = org.killbill.billing.catalog.api.rules.CasePriceList]
|
155
|
+
m = Killbill::Plugin::Model::CasePriceList.new.to_ruby(m) unless m.nil?
|
156
|
+
tmp << m
|
157
|
+
end
|
158
|
+
@case_price_list = tmp
|
159
|
+
self
|
160
|
+
end
|
161
|
+
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
@@ -57,6 +57,16 @@ require 'killbill/gen/api/price_list'
|
|
57
57
|
require 'killbill/gen/api/price_list_set'
|
58
58
|
require 'killbill/gen/api/product'
|
59
59
|
require 'killbill/gen/api/recurring'
|
60
|
+
require 'killbill/gen/api/case'
|
61
|
+
require 'killbill/gen/api/case_billing_alignment'
|
62
|
+
require 'killbill/gen/api/case_cancel_policy'
|
63
|
+
require 'killbill/gen/api/case_change'
|
64
|
+
require 'killbill/gen/api/case_change_plan_alignment'
|
65
|
+
require 'killbill/gen/api/case_change_plan_policy'
|
66
|
+
require 'killbill/gen/api/case_create_alignment'
|
67
|
+
require 'killbill/gen/api/case_phase'
|
68
|
+
require 'killbill/gen/api/case_price_list'
|
69
|
+
require 'killbill/gen/api/plan_rules'
|
60
70
|
require 'killbill/gen/api/static_catalog'
|
61
71
|
require 'killbill/gen/api/tier'
|
62
72
|
require 'killbill/gen/api/tiered_block'
|
data/lib/killbill/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.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-06-
|
11
|
+
date: 2015-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -340,6 +340,7 @@ files:
|
|
340
340
|
- generators/killbill_generator.rb
|
341
341
|
- killbill.gemspec
|
342
342
|
- lib/killbill.rb
|
343
|
+
- lib/killbill/catalog.rb
|
343
344
|
- lib/killbill/creator.rb
|
344
345
|
- lib/killbill/currency.rb
|
345
346
|
- lib/killbill/ext/active_merchant/typhoeus_connection.rb
|
@@ -359,6 +360,15 @@ files:
|
|
359
360
|
- lib/killbill/gen/api/blocking_api_exception.rb
|
360
361
|
- lib/killbill/gen/api/blocking_state.rb
|
361
362
|
- lib/killbill/gen/api/call_context.rb
|
363
|
+
- lib/killbill/gen/api/case.rb
|
364
|
+
- lib/killbill/gen/api/case_billing_alignment.rb
|
365
|
+
- lib/killbill/gen/api/case_cancel_policy.rb
|
366
|
+
- lib/killbill/gen/api/case_change.rb
|
367
|
+
- lib/killbill/gen/api/case_change_plan_alignment.rb
|
368
|
+
- lib/killbill/gen/api/case_change_plan_policy.rb
|
369
|
+
- lib/killbill/gen/api/case_create_alignment.rb
|
370
|
+
- lib/killbill/gen/api/case_phase.rb
|
371
|
+
- lib/killbill/gen/api/case_price_list.rb
|
362
372
|
- lib/killbill/gen/api/catalog.rb
|
363
373
|
- lib/killbill/gen/api/catalog_api_exception.rb
|
364
374
|
- lib/killbill/gen/api/catalog_user_api.rb
|
@@ -415,6 +425,7 @@ files:
|
|
415
425
|
- lib/killbill/gen/api/plan_phase_price_override.rb
|
416
426
|
- lib/killbill/gen/api/plan_phase_price_overrides_with_call_context.rb
|
417
427
|
- lib/killbill/gen/api/plan_phase_specifier.rb
|
428
|
+
- lib/killbill/gen/api/plan_rules.rb
|
418
429
|
- lib/killbill/gen/api/plan_specifier.rb
|
419
430
|
- lib/killbill/gen/api/plugin_config_service_api.rb
|
420
431
|
- lib/killbill/gen/api/plugin_property.rb
|
@@ -493,7 +504,6 @@ files:
|
|
493
504
|
- lib/killbill/helpers/active_merchant/properties.rb
|
494
505
|
- lib/killbill/helpers/active_merchant/sinatra.rb
|
495
506
|
- lib/killbill/helpers/active_merchant/utils.rb
|
496
|
-
- lib/killbill/helpers/catalog.rb
|
497
507
|
- lib/killbill/helpers/properties_helper.rb
|
498
508
|
- lib/killbill/http_servlet.rb
|
499
509
|
- lib/killbill/invoice.rb
|