killbill-client 0.23.0 → 0.24.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: 028feae22f058fdb465ae1b0cd7b65bb959a0aa3
4
- data.tar.gz: 094761b85d0139e21f42c69f3ecfbd6e57fc6467
3
+ metadata.gz: 6bade8dfe84a6d91e52c96ddd71bacd9ce6e69ba
4
+ data.tar.gz: 5d6532b0f9395d0ac7a09b7e6a8012a314725e58
5
5
  SHA512:
6
- metadata.gz: 37a97ec81984bb947aec3d1b980467e858cb38ed98ae5c3f758709d39424e15626a5a910125224d53046c0ce5a2dd9ace68979df70746c647d9b7101e2d9f510
7
- data.tar.gz: 0b9602bea90b5f99a44633380de022c4672834d9bb50161fc5bf7b26b0f7285bbd20f0d8619ce2eaeb8875ed19224ede342b7fdfc368fed3b0980d1a75278907
6
+ metadata.gz: a2e778a9a026857f04ba2e1f90c933cfe7f5ac2972bb14146d806dc11ec741f51e7b399242ce725c3a005f90c51642812293047edb447cdcb99bf4f92484261f
7
+ data.tar.gz: 0ddd4fe32d2faba482f547d57ba1c16a5c7ec362edcaa7cef9ac38f6578c8ca0a25c77e4aa3544ddd78bf357b69368514db1582c7286f93d27c36a2d707d0d39
@@ -8,7 +8,7 @@ module KillBillClient
8
8
 
9
9
  class << self
10
10
  def simple_catalog(options = {})
11
- get "#{KILLBILL_API_CATALOG_PREFIX}/simpleCatalog",
11
+ get "#{KILLBILL_API_CATALOG_PREFIX}",
12
12
  {},
13
13
  options
14
14
  end
@@ -0,0 +1,38 @@
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 KillBillClient
29
+ module Model
30
+ class CatalogAttributes < Resource
31
+ attribute :name
32
+ attribute :effective_date
33
+ attribute :currencies
34
+ attribute :products
35
+ attribute :price_lists
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,36 @@
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 KillBillClient
29
+ module Model
30
+ class NodeCommandAttributes < Resource
31
+ attribute :system_command_type
32
+ attribute :node_command_type
33
+ attribute :node_command_properties
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,35 @@
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 KillBillClient
29
+ module Model
30
+ class NodeCommandPropertyAttributes < Resource
31
+ attribute :key
32
+ attribute :value
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,42 @@
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 KillBillClient
29
+ module Model
30
+ class NodeInfoAttributes < Resource
31
+ attribute :node_name
32
+ attribute :boot_time
33
+ attribute :last_updated_date
34
+ attribute :kb_version
35
+ attribute :api_version
36
+ attribute :plugin_api_version
37
+ attribute :common_version
38
+ attribute :platform_version
39
+ attribute :plugins_info
40
+ end
41
+ end
42
+ end
@@ -31,7 +31,7 @@ module KillBillClient
31
31
  attribute :bundle_symbolic_name
32
32
  attribute :plugin_name
33
33
  attribute :version
34
- attribute :running
34
+ attribute :state
35
35
  attribute :services
36
36
  end
37
37
  end
@@ -0,0 +1,35 @@
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 KillBillClient
29
+ module Model
30
+ class PriceListAttributes < Resource
31
+ attribute :name
32
+ attribute :plans
33
+ end
34
+ end
35
+ end
@@ -39,6 +39,12 @@ require 'killbill_client/models/gen/product_attributes'
39
39
  require 'killbill_client/models/gen/plan_attributes'
40
40
  require 'killbill_client/models/gen/phase_attributes'
41
41
  require 'killbill_client/models/gen/price_attributes'
42
+ require 'killbill_client/models/gen/price_list_attributes'
43
+ require 'killbill_client/models/gen/catalog_attributes'
44
+ require 'killbill_client/models/gen/product_attributes'
45
+ require 'killbill_client/models/gen/plan_attributes'
46
+ require 'killbill_client/models/gen/phase_attributes'
47
+ require 'killbill_client/models/gen/price_attributes'
42
48
  require 'killbill_client/models/gen/catalog_attributes_simple'
43
49
  require 'killbill_client/models/gen/combo_hosted_payment_page_attributes'
44
50
  require 'killbill_client/models/gen/combo_payment_transaction_attributes'
@@ -55,6 +61,9 @@ require 'killbill_client/models/gen/invoice_item_attributes'
55
61
  require 'killbill_client/models/gen/invoice_attributes'
56
62
  require 'killbill_client/models/gen/invoice_payment_attributes'
57
63
  require 'killbill_client/models/gen/invoice_payment_transaction_attributes'
64
+ require 'killbill_client/models/gen/node_command_attributes'
65
+ require 'killbill_client/models/gen/node_command_property_attributes'
66
+ require 'killbill_client/models/gen/node_info_attributes'
58
67
  require 'killbill_client/models/gen/notification_attributes'
59
68
  require 'killbill_client/models/gen/overdue_state_attributes'
60
69
  require 'killbill_client/models/gen/payment_attributes'
@@ -34,10 +34,10 @@ require 'killbill_client/models/role_definition'
34
34
  require 'killbill_client/models/tag'
35
35
  require 'killbill_client/models/tag_definition'
36
36
  require 'killbill_client/models/tenant'
37
- require 'killbill_client/models/plugin_info'
38
37
  require 'killbill_client/models/usage_record'
39
38
  require 'killbill_client/models/rolled_up_usage'
40
39
  require 'killbill_client/models/account_timeline'
40
+ require 'killbill_client/models/nodes_info'
41
41
 
42
42
  module KillBillClient
43
43
  module Model
@@ -0,0 +1,32 @@
1
+ module KillBillClient
2
+ module Model
3
+ class NodesInfo < NodeInfoAttributes
4
+
5
+ KILLBILL_NODES_INFO_PREFIX = "#{KILLBILL_API_PREFIX}/nodesInfo"
6
+
7
+ has_many :plugins_info, KillBillClient::Model::PluginInfoAttributes
8
+
9
+ class << self
10
+
11
+ def nodes_info(options = {})
12
+ get KILLBILL_NODES_INFO_PREFIX,
13
+ {},
14
+ options
15
+ end
16
+
17
+ def trigger_node_command(node_command, local_node_only, user = nil, reason = nil, comment = nil, options = {})
18
+ post KILLBILL_NODES_INFO_PREFIX,
19
+ node_command.to_json,
20
+ {:localNodeOnly => local_node_only},
21
+ {
22
+ :user => user,
23
+ :reason => reason,
24
+ :comment => comment,
25
+ }.merge(options)
26
+ end
27
+
28
+ end
29
+
30
+ end
31
+ end
32
+ end
@@ -12,16 +12,19 @@ module KillBillClient
12
12
  has_custom_fields KILLBILL_API_PAYMENTS_PREFIX, :payment_id
13
13
 
14
14
  class << self
15
- def find_by_id(payment_id, options = {})
15
+ def find_by_id(payment_id, with_plugin_info = false, options = {})
16
16
  get "#{KILLBILL_API_PAYMENTS_PREFIX}/#{payment_id}",
17
- {},
17
+ {
18
+ :withPluginInfo => with_plugin_info
19
+ },
18
20
  options
19
21
  end
20
22
 
21
- def find_by_external_key(external_key, options = {})
23
+ def find_by_external_key(external_key, with_plugin_info = false, options = {})
22
24
  get "#{KILLBILL_API_PAYMENTS_PREFIX}",
23
25
  {
24
- :externalKey => external_key
26
+ :externalKey => external_key,
27
+ :withPluginInfo => with_plugin_info
25
28
  },
26
29
  options
27
30
  end
@@ -1,7 +1,7 @@
1
1
  module KillBillClient
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 23
4
+ MINOR = 24
5
5
  PATCH = 0
6
6
  PRE = nil
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Killbill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-03 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -88,6 +88,7 @@ files:
88
88
  - lib/killbill_client/models/gen/blocking_state_attributes.rb
89
89
  - lib/killbill_client/models/gen/bundle_attributes.rb
90
90
  - lib/killbill_client/models/gen/bundle_timeline_attributes.rb
91
+ - lib/killbill_client/models/gen/catalog_attributes.rb
91
92
  - lib/killbill_client/models/gen/catalog_attributes_simple.rb
92
93
  - lib/killbill_client/models/gen/combo_hosted_payment_page_attributes.rb
93
94
  - lib/killbill_client/models/gen/combo_payment_transaction_attributes.rb
@@ -105,6 +106,9 @@ files:
105
106
  - lib/killbill_client/models/gen/invoice_item_attributes.rb
106
107
  - lib/killbill_client/models/gen/invoice_payment_attributes.rb
107
108
  - lib/killbill_client/models/gen/invoice_payment_transaction_attributes.rb
109
+ - lib/killbill_client/models/gen/node_command_attributes.rb
110
+ - lib/killbill_client/models/gen/node_command_property_attributes.rb
111
+ - lib/killbill_client/models/gen/node_info_attributes.rb
108
112
  - lib/killbill_client/models/gen/notification_attributes.rb
109
113
  - lib/killbill_client/models/gen/overdue_state_attributes.rb
110
114
  - lib/killbill_client/models/gen/payment_attributes.rb
@@ -119,6 +123,7 @@ files:
119
123
  - lib/killbill_client/models/gen/plugin_property_attributes.rb
120
124
  - lib/killbill_client/models/gen/plugin_service_info_attributes.rb
121
125
  - lib/killbill_client/models/gen/price_attributes.rb
126
+ - lib/killbill_client/models/gen/price_list_attributes.rb
122
127
  - lib/killbill_client/models/gen/product_attributes.rb
123
128
  - lib/killbill_client/models/gen/profiling_data_attributes.rb
124
129
  - lib/killbill_client/models/gen/profiling_data_attributes_item.rb
@@ -145,13 +150,13 @@ files:
145
150
  - lib/killbill_client/models/invoice_item.rb
146
151
  - lib/killbill_client/models/invoice_payment.rb
147
152
  - lib/killbill_client/models/models.rb
153
+ - lib/killbill_client/models/nodes_info.rb
148
154
  - lib/killbill_client/models/overdue.rb
149
155
  - lib/killbill_client/models/payment.rb
150
156
  - lib/killbill_client/models/payment_method.rb
151
157
  - lib/killbill_client/models/phase.rb
152
158
  - lib/killbill_client/models/plan.rb
153
159
  - lib/killbill_client/models/plan_detail.rb
154
- - lib/killbill_client/models/plugin_info.rb
155
160
  - lib/killbill_client/models/product.rb
156
161
  - lib/killbill_client/models/resource.rb
157
162
  - lib/killbill_client/models/resources.rb
@@ -1,21 +0,0 @@
1
- module KillBillClient
2
- module Model
3
- class PluginInfo < PluginInfoAttributes
4
-
5
- KILLBILL_API_TENANTS_PREFIX = "#{KILLBILL_API_PREFIX}/pluginsInfo"
6
-
7
- has_many :services, KillBillClient::Model::PluginServiceInfoAttributes
8
-
9
- class << self
10
-
11
- def plugins_info(options = {})
12
- get KILLBILL_API_TENANTS_PREFIX,
13
- {},
14
- options
15
- end
16
-
17
- end
18
-
19
- end
20
- end
21
- end