killbill-client 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -12
  3. data/killbill_client.gemspec +1 -1
  4. data/lib/killbill_client/api/net_http_adapter.rb +10 -3
  5. data/lib/killbill_client/models/account.rb +13 -0
  6. data/lib/killbill_client/models/bundle.rb +8 -3
  7. data/lib/killbill_client/models/catalog.rb +26 -5
  8. data/lib/killbill_client/models/gen/account_attributes.rb +3 -0
  9. data/lib/killbill_client/models/gen/bulk_base_subscription_and_add_ons_attributes.rb +34 -0
  10. data/lib/killbill_client/models/gen/invoice_attributes.rb +2 -0
  11. data/lib/killbill_client/models/gen/invoice_item_attributes.rb +2 -0
  12. data/lib/killbill_client/models/gen/invoice_payment_attributes.rb +1 -0
  13. data/lib/killbill_client/models/gen/limit_attributes.rb +36 -0
  14. data/lib/killbill_client/models/gen/overdue_attributes.rb +35 -0
  15. data/lib/killbill_client/models/gen/overdue_condition_attributes.rb +39 -0
  16. data/lib/killbill_client/models/gen/overdue_state_config_attributes.rb +41 -0
  17. data/lib/killbill_client/models/gen/payment_attempt_attributes.rb +46 -0
  18. data/lib/killbill_client/models/gen/payment_attributes.rb +1 -0
  19. data/lib/killbill_client/models/gen/phase_attributes.rb +1 -0
  20. data/lib/killbill_client/models/gen/require_gen.rb +10 -0
  21. data/lib/killbill_client/models/gen/simple_plan_attributes.rb +42 -0
  22. data/lib/killbill_client/models/gen/subscription_attributes.rb +1 -0
  23. data/lib/killbill_client/models/gen/tier_attributes.rb +37 -0
  24. data/lib/killbill_client/models/gen/tiered_block_attributes.rb +37 -0
  25. data/lib/killbill_client/models/gen/usage_attributes.rb +35 -0
  26. data/lib/killbill_client/models/invoice.rb +20 -6
  27. data/lib/killbill_client/models/invoice_item.rb +2 -2
  28. data/lib/killbill_client/models/invoice_payment.rb +3 -1
  29. data/lib/killbill_client/models/models.rb +2 -0
  30. data/lib/killbill_client/models/overdue.rb +22 -8
  31. data/lib/killbill_client/models/overdue_condition.rb +10 -0
  32. data/lib/killbill_client/models/overdue_state_config.rb +10 -0
  33. data/lib/killbill_client/models/payment.rb +5 -2
  34. data/lib/killbill_client/models/payment_method.rb +13 -4
  35. data/lib/killbill_client/models/phase.rb +2 -1
  36. data/lib/killbill_client/models/resource.rb +16 -19
  37. data/lib/killbill_client/models/resources.rb +2 -2
  38. data/lib/killbill_client/models/tenant.rb +19 -5
  39. data/lib/killbill_client/models/transaction.rb +20 -2
  40. data/lib/killbill_client/version.rb +1 -1
  41. data/spec/killbill_client/{encoding_spec.rb → http_adapter_spec.rb} +21 -0
  42. data/spec/killbill_client/remote/model_spec.rb +19 -21
  43. data/spec/spec_helper.rb +1 -1
  44. metadata +53 -44
@@ -3,7 +3,8 @@ module KillBillClient
3
3
  class Phase < PhaseAttributes
4
4
 
5
5
  has_many :prices, KillBillClient::Model::PriceAttributes
6
-
6
+ has_many :fixed_prices, KillBillClient::Model::PriceAttributes
7
+ has_one :duration, KillBillClient::Model::DurationAttributes
7
8
  end
8
9
  end
9
10
  end
@@ -15,6 +15,7 @@ module KillBillClient
15
15
  @@attribute_names = {}
16
16
 
17
17
  def initialize(hash = nil)
18
+ @uri = nil
18
19
  # Make sure we support ActiveSupport::HashWithIndifferentAccess for Kaui
19
20
  if hash.respond_to?(:each)
20
21
  hash.each do |key, value|
@@ -75,8 +76,8 @@ module KillBillClient
75
76
  when %r{text/plain}
76
77
  response.body
77
78
  when %r{application/xml}
78
- if response.header['location']
79
- response.header['location']
79
+ if response['location']
80
+ response['location']
80
81
  else
81
82
  response.body
82
83
  end
@@ -84,7 +85,7 @@ module KillBillClient
84
85
  record = from_json resource_class, response.body
85
86
  if record.nil?
86
87
  record = resource_class.new
87
- record.uri = response.header['location']
88
+ record.uri = response['location']
88
89
  end
89
90
 
90
91
  session_id = extract_session_id(response)
@@ -170,26 +171,22 @@ module KillBillClient
170
171
  end
171
172
 
172
173
  def attribute(name)
173
- self.send('attr_accessor', name.to_sym)
174
-
175
- self.instance_variable_set('@json_attributes', []) unless self.instance_variable_get('@json_attributes')
176
- self.instance_variable_get('@json_attributes') << name.to_s
177
-
178
- attributes = self.instance_variable_get('@json_attributes')
179
-
180
- (
181
- class << self;
182
- self
183
- end).send(:define_method, :json_attributes) do
184
- attributes
185
- end
186
- end
174
+ send('attr_accessor', name.to_sym)
175
+ attributes = @json_attributes ||= []
176
+ begin
177
+ json_attributes.push(name.to_s)
178
+ rescue NameError
179
+ (class << self; self; end).
180
+ send(:define_method, :json_attributes) { attributes }
181
+ retry
182
+ end
183
+ end
187
184
 
188
185
  def has_many(attr_name, type = nil)
189
186
  send("attr_accessor", attr_name.to_sym)
190
187
 
191
188
  #add it to attribute_names
192
- @@attribute_names[self.name] = {} unless @@attribute_names[self.name]
189
+ @@attribute_names[self.name] ||= {}
193
190
  @@attribute_names[self.name][attr_name.to_sym] = {:type => type, :cardinality => :many}
194
191
  end
195
192
 
@@ -197,7 +194,7 @@ module KillBillClient
197
194
  send("attr_accessor", attr_name.to_sym)
198
195
 
199
196
  #add it to attribute_names
200
- @@attribute_names[self.name] = {} unless @@attribute_names[self.name]
197
+ @@attribute_names[self.name] ||= {}
201
198
  @@attribute_names[self.name][attr_name.to_sym] = {:type => type, :cardinality => :one}
202
199
  end
203
200
 
@@ -7,8 +7,8 @@ module KillBillClient
7
7
  :session_id,
8
8
  :pagination_max_nb_records,
9
9
  :pagination_total_nb_records,
10
- :pagination_next_page
11
- :response
10
+ :pagination_next_page,
11
+ :response
12
12
 
13
13
  # Same as .each, but fetch remaining pages as we go
14
14
  def each_in_batches(&block)
@@ -27,7 +27,7 @@ module KillBillClient
27
27
  end
28
28
 
29
29
  def delete_tenant_plugin_config(plugin_name, user = nil, reason = nil, comment = nil, options = {})
30
- delete_tenant_user_key_value(plugin_name, "uploadPluginConfig", "plugin config", user, reason, comment, options)
30
+ delete_tenant_key_value(plugin_name, "uploadPluginConfig", "plugin config", user, reason, comment, options)
31
31
  end
32
32
 
33
33
  def get_tenant_user_key_value(key_name, options = {})
@@ -40,9 +40,22 @@ module KillBillClient
40
40
 
41
41
 
42
42
  def delete_tenant_user_key_value(key_name, user = nil, reason = nil, comment = nil, options = {})
43
- delete_tenant_user_key_value(key_name, "userKeyValue", "tenant key/value", user, reason, comment, options)
43
+ delete_tenant_key_value(key_name, "userKeyValue", "tenant key/value", user, reason, comment, options)
44
44
  end
45
45
 
46
+ def search_tenant_config(key_prefix, options = {})
47
+
48
+ require_multi_tenant_options!(options, "Searching for plugin config is only supported in multi-tenant mode")
49
+
50
+ uri = KILLBILL_API_TENANTS_PREFIX + "/uploadPerTenantConfig/" + key_prefix + "/search"
51
+ get uri,
52
+ {},
53
+ {
54
+ }.merge(options),
55
+ KillBillClient::Model::TenantKeyAttributes
56
+ end
57
+
58
+
46
59
  def get_tenant_key_value(key_name, key_path, error_id_str, options = {})
47
60
 
48
61
  require_multi_tenant_options!(options, "Retrieving a #{error_id_str} is only supported in multi-tenant mode")
@@ -75,7 +88,7 @@ module KillBillClient
75
88
  end
76
89
 
77
90
 
78
- def delete_tenant_user_key_value(key_name, key_path, error_id_str, user = nil, reason = nil, comment = nil, options = {})
91
+ def delete_tenant_key_value(key_name, key_path, error_id_str, user = nil, reason = nil, comment = nil, options = {})
79
92
 
80
93
  require_multi_tenant_options!(options, "Deleting a #{error_id_str} is only supported in multi-tenant mode")
81
94
 
@@ -95,10 +108,11 @@ module KillBillClient
95
108
  end
96
109
 
97
110
 
98
- def create(user = nil, reason = nil, comment = nil, options = {})
111
+ def create(use_global_default=true, user = nil, reason = nil, comment = nil, options = {})
112
+
99
113
  created_tenant = self.class.post KILLBILL_API_TENANTS_PREFIX,
100
114
  to_json,
101
- {},
115
+ {:useGlobalDefault => use_global_default},
102
116
  {
103
117
  :user => user,
104
118
  :reason => reason,
@@ -118,6 +118,24 @@ module KillBillClient
118
118
  created_transaction.refresh(options, Payment)
119
119
  end
120
120
 
121
+
122
+ def cancel_scheduled_payment(user = nil, reason = nil, comment = nil, options = {})
123
+
124
+ uri = transaction_external_key ? "#{Payment::KILLBILL_API_PAYMENTS_PREFIX}/cancelScheduledPaymentTransaction" :
125
+ "#{Payment::KILLBILL_API_PAYMENTS_PREFIX}/#{transaction_id}/cancelScheduledPaymentTransaction"
126
+
127
+ query_map = {}
128
+ query_map[:transactionExternalKey] = transaction_external_key if transaction_external_key
129
+ self.class.delete uri,
130
+ {},
131
+ query_map,
132
+ {
133
+ :user => user,
134
+ :reason => reason,
135
+ :comment => comment,
136
+ }.merge(options)
137
+ end
138
+
121
139
  private
122
140
 
123
141
 
@@ -164,9 +182,9 @@ module KillBillClient
164
182
  created_transaction = yield
165
183
  rescue KillBillClient::API::ResponseError => error
166
184
  response = error.response
167
- if response.header['location']
185
+ if response['location']
168
186
  created_transaction = Transaction.new
169
- created_transaction.uri = response.header['location']
187
+ created_transaction.uri = response['location']
170
188
  else
171
189
  raise error
172
190
  end
@@ -1,7 +1,7 @@
1
1
  module KillBillClient
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
  PRE = nil
7
7
 
@@ -8,6 +8,10 @@ describe KillBillClient::API do
8
8
  ]
9
9
  }
10
10
 
11
+ let (:ssl_uri) {URI.parse 'https://killbill.io'}
12
+ let (:uri) {URI.parse 'http://killbill.io'}
13
+ let (:timeouts) {{:read_timeout => 10000, :connection_timeout => 5000}}
14
+
11
15
  it 'should send double-encoded uri' do
12
16
  contract_property = KillBillClient::Model::PluginPropertyAttributes.new
13
17
  contract_property.key = :contractId
@@ -46,6 +50,23 @@ describe KillBillClient::API do
46
50
  # also ensure the undecoded value is different so that it was indeed encocded twice
47
51
  expect(output_info_property[1]).not_to eq(CGI.unescape output_info_property[1])
48
52
  end
53
+
54
+ it 'should use the default parameters for http client' do
55
+ http_adapter = DummyForHTTPAdapter.new
56
+ http_client = http_adapter.send(:create_http_client, uri)
57
+ expect(http_client.read_timeout).to eq(60)
58
+ expect(http_client.open_timeout).to be_nil
59
+ expect(http_client.use_ssl?).to be false
60
+ end
61
+
62
+ it 'should set the correct parameters for http client' do
63
+ http_adapter = DummyForHTTPAdapter.new
64
+ http_client = http_adapter.send(:create_http_client, ssl_uri, timeouts)
65
+ expect(http_client.read_timeout).to eq(timeouts[:read_timeout] / 1000)
66
+ expect(http_client.open_timeout).to eq(timeouts[:connection_timeout] / 1000)
67
+ expect(http_client.use_ssl?).to be true
68
+ end
69
+
49
70
  end
50
71
 
51
72
  class DummyForHTTPAdapter
@@ -135,16 +135,20 @@ describe KillBillClient::Model do
135
135
  invoice_item.currency = account.currency
136
136
  invoice_item.amount = 123.98
137
137
 
138
- invoice_item = invoice_item.create 'KillBill Spec test'
138
+ invoice_item = invoice_item.create false, true, 'KillBill Spec test'
139
139
  invoice = KillBillClient::Model::Invoice.find_by_id_or_number invoice_item.invoice_id
140
140
 
141
- expect(invoice.balance).to eq(123.98)
141
+ expect(invoice.amount).to eq(123.98)
142
+ expect(invoice.balance).to eq(0)
143
+
144
+ invoice.commit 'KillBill Spec test'
142
145
 
143
146
  # Check the account balance
144
147
  account = KillBillClient::Model::Account.find_by_id account.account_id, true
145
- expect(account.account_balance).to eq(123.98)
148
+ expect(account.account_balance).to eq(0)
146
149
 
147
- pm.destroy(true, 'KillBill Spec test')
150
+
151
+ KillBillClient::Model::PaymentMethod.destroy(pm.payment_method_id, true, true, 'KillBill Spec test')
148
152
 
149
153
  account = KillBillClient::Model::Account.find_by_id account.account_id
150
154
  expect(account.payment_method_id).to be_nil
@@ -222,17 +226,13 @@ describe KillBillClient::Model do
222
226
  item = KillBillClient::Model::InvoiceItem.new
223
227
  item.invoice_item_id = invoice_item.invoice_item_id
224
228
  item.amount = invoice_item.amount
225
- refund = KillBillClient::Model::InvoicePayment.refund invoice_payment.payment_id, invoice_payment.purchased_amount, [item], 'KillBill Spec test'
226
229
 
227
230
  # Verify the refund
228
231
  timeline = KillBillClient::Model::AccountTimeline.find_by_account_id account.account_id
229
232
  expect(timeline.payments).not_to be_empty
230
233
  expect(timeline.payments.size).to eq(1)
231
- expect(timeline.payments.first.transactions.size).to eq(2)
234
+ expect(timeline.payments.first.transactions.size).to eq(1)
232
235
  expect(timeline.payments.first.transactions.first.transaction_type).to eq('PURCHASE')
233
- refund = timeline.payments.first.transactions.last
234
- expect(refund.transaction_type).to eq('REFUND')
235
- expect(refund.amount).to eq(invoice_item.amount)
236
236
 
237
237
  # Create a credit for invoice
238
238
  new_credit = KillBillClient::Model::Credit.new
@@ -240,20 +240,17 @@ describe KillBillClient::Model do
240
240
  new_credit.invoice_id = invoice_id
241
241
  new_credit.effective_date = "2013-09-30"
242
242
  new_credit.account_id = account.account_id
243
- new_credit.create 'KillBill Spec test'
243
+
244
+ expect { new_credit.create 'KillBill Spec test' }.to raise_error(KillBillClient::API::BadRequest)
244
245
 
245
246
  # Verify the invoice item of the credit
246
247
  invoice = KillBillClient::Model::Invoice.find_by_id_or_number invoice_id
247
248
  expect(invoice.items).not_to be_empty
248
249
  item = invoice.items.last
249
250
  expect(item.invoice_id).to eq(invoice_id)
250
- expect(item.amount).to eq(10.1)
251
+ expect(item.amount).to eq(123.98)
251
252
  expect(item.account_id).to eq(account.account_id)
252
253
 
253
- # Verify the credit
254
- account = KillBillClient::Model::Account.find_by_id account.account_id, true
255
- expect(account.account_balance).to eq(-10.1)
256
-
257
254
  # Create a subscription
258
255
  sub = KillBillClient::Model::Subscription.new
259
256
  sub.account_id = account.account_id
@@ -265,16 +262,17 @@ describe KillBillClient::Model do
265
262
  sub = sub.create 'KillBill Spec test'
266
263
 
267
264
  # Verify we can retrieve it
268
- expect(account.bundles.size).to eq(1)
269
- expect(account.bundles[0].subscriptions.size).to eq(1)
270
- expect(account.bundles[0].subscriptions[0].subscription_id).to eq(sub.subscription_id)
271
- bundle = account.bundles[0]
265
+ account_bundles = account.bundles
266
+ expect(account_bundles.size).to eq(1)
267
+ expect(account_bundles[0].subscriptions.size).to eq(1)
268
+ expect(account_bundles[0].subscriptions[0].subscription_id).to eq(sub.subscription_id)
269
+ bundle = account_bundles[0]
272
270
 
273
271
  # Verify we can retrieve it by id
274
272
  expect(KillBillClient::Model::Bundle.find_by_id(bundle.bundle_id)).to eq(bundle)
275
273
 
276
274
  # Verify we can retrieve it by external key
277
- expect(KillBillClient::Model::Bundle.find_by_external_key(bundle.external_key)).to eq(bundle)
275
+ expect(KillBillClient::Model::Bundle.find_by_external_key(bundle.external_key, true).first).to eq(bundle)
278
276
 
279
277
  # Verify we can retrieve it by account id and external key
280
278
  bundles = KillBillClient::Model::Bundle.find_all_by_account_id_and_external_key(account.account_id, bundle.external_key)
@@ -309,7 +307,7 @@ describe KillBillClient::Model do
309
307
  tenant.api_secret = api_secret
310
308
 
311
309
  # Create and verify the tenant
312
- tenant = tenant.create('KillBill Spec test')
310
+ tenant = tenant.create(true, 'KillBill Spec test')
313
311
  expect(tenant.api_key).to eq(api_key)
314
312
  expect(tenant.tenant_id).not_to be_nil
315
313
 
@@ -26,7 +26,7 @@ RSpec.configure do |config|
26
26
  tenant = KillBillClient::Model::Tenant.new
27
27
  tenant.api_key = KillBillClient.api_key
28
28
  tenant.api_secret = KillBillClient.api_secret
29
- tenant.create('KillBill Spec test')
29
+ tenant.create(true, 'KillBill Spec test')
30
30
  end
31
31
  end
32
32
 
metadata CHANGED
@@ -1,71 +1,77 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Killbill core team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-15 00:00:00.000000000 Z
11
+ date: 2016-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
- requirement: !ruby/object:Gem::Requirement
15
+ version_requirements: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.2.0
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
20
+ - - <
21
+ - !ruby/object:Gem::Version
22
+ version: 2.0.0
23
+ requirement: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - ">="
25
+ - - '>='
25
26
  - !ruby/object:Gem::Version
26
27
  version: 1.2.0
28
+ - - <
29
+ - !ruby/object:Gem::Version
30
+ version: 2.0.0
31
+ prerelease: false
32
+ type: :runtime
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rake
29
- requirement: !ruby/object:Gem::Requirement
35
+ version_requirements: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - ">="
37
+ - - '>='
32
38
  - !ruby/object:Gem::Version
33
39
  version: 10.0.0
34
- - - "<"
40
+ - - <
35
41
  - !ruby/object:Gem::Version
36
42
  version: 11.0.0
37
- type: :development
38
- prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ">="
45
+ - - '>='
42
46
  - !ruby/object:Gem::Version
43
47
  version: 10.0.0
44
- - - "<"
48
+ - - <
45
49
  - !ruby/object:Gem::Version
46
50
  version: 11.0.0
51
+ prerelease: false
52
+ type: :development
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: rspec
49
- requirement: !ruby/object:Gem::Requirement
55
+ version_requirements: !ruby/object:Gem::Requirement
50
56
  requirements:
51
- - - "~>"
57
+ - - ~>
52
58
  - !ruby/object:Gem::Version
53
59
  version: '3.4'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
60
+ requirement: !ruby/object:Gem::Requirement
57
61
  requirements:
58
- - - "~>"
62
+ - - ~>
59
63
  - !ruby/object:Gem::Version
60
64
  version: '3.4'
65
+ prerelease: false
66
+ type: :development
61
67
  description: An API client library for Kill Bill.
62
68
  email: killbilling-users@googlegroups.com
63
69
  executables: []
64
70
  extensions: []
65
71
  extra_rdoc_files: []
66
72
  files:
67
- - ".gitignore"
68
- - ".travis.yml"
73
+ - .gitignore
74
+ - .travis.yml
69
75
  - Gemfile
70
76
  - README.md
71
77
  - Rakefile
@@ -92,6 +98,7 @@ files:
92
98
  - lib/killbill_client/models/gen/audit_log_attributes.rb
93
99
  - lib/killbill_client/models/gen/billing_exception_attributes.rb
94
100
  - lib/killbill_client/models/gen/blocking_state_attributes.rb
101
+ - lib/killbill_client/models/gen/bulk_base_subscription_and_add_ons_attributes.rb
95
102
  - lib/killbill_client/models/gen/bundle_attributes.rb
96
103
  - lib/killbill_client/models/gen/bundle_timeline_attributes.rb
97
104
  - lib/killbill_client/models/gen/catalog_attributes.rb
@@ -112,11 +119,16 @@ files:
112
119
  - lib/killbill_client/models/gen/invoice_item_attributes.rb
113
120
  - lib/killbill_client/models/gen/invoice_payment_attributes.rb
114
121
  - lib/killbill_client/models/gen/invoice_payment_transaction_attributes.rb
122
+ - lib/killbill_client/models/gen/limit_attributes.rb
115
123
  - lib/killbill_client/models/gen/node_command_attributes.rb
116
124
  - lib/killbill_client/models/gen/node_command_property_attributes.rb
117
125
  - lib/killbill_client/models/gen/node_info_attributes.rb
118
126
  - lib/killbill_client/models/gen/notification_attributes.rb
127
+ - lib/killbill_client/models/gen/overdue_attributes.rb
128
+ - lib/killbill_client/models/gen/overdue_condition_attributes.rb
119
129
  - lib/killbill_client/models/gen/overdue_state_attributes.rb
130
+ - lib/killbill_client/models/gen/overdue_state_config_attributes.rb
131
+ - lib/killbill_client/models/gen/payment_attempt_attributes.rb
120
132
  - lib/killbill_client/models/gen/payment_attributes.rb
121
133
  - lib/killbill_client/models/gen/payment_method_attributes.rb
122
134
  - lib/killbill_client/models/gen/payment_method_plugin_detail_attributes.rb
@@ -138,6 +150,7 @@ files:
138
150
  - lib/killbill_client/models/gen/rolled_up_unit_attributes.rb
139
151
  - lib/killbill_client/models/gen/rolled_up_usage_attributes.rb
140
152
  - lib/killbill_client/models/gen/session_attributes.rb
153
+ - lib/killbill_client/models/gen/simple_plan_attributes.rb
141
154
  - lib/killbill_client/models/gen/stack_trace_element_attributes.rb
142
155
  - lib/killbill_client/models/gen/subject_attributes.rb
143
156
  - lib/killbill_client/models/gen/subscription_attributes.rb
@@ -146,7 +159,10 @@ files:
146
159
  - lib/killbill_client/models/gen/tag_definition_attributes.rb
147
160
  - lib/killbill_client/models/gen/tenant_attributes.rb
148
161
  - lib/killbill_client/models/gen/tenant_key_attributes.rb
162
+ - lib/killbill_client/models/gen/tier_attributes.rb
163
+ - lib/killbill_client/models/gen/tiered_block_attributes.rb
149
164
  - lib/killbill_client/models/gen/unit_usage_record_attributes.rb
165
+ - lib/killbill_client/models/gen/usage_attributes.rb
150
166
  - lib/killbill_client/models/gen/usage_record_attributes.rb
151
167
  - lib/killbill_client/models/gen/user_roles_attributes.rb
152
168
  - lib/killbill_client/models/helpers/custom_field_helper.rb
@@ -158,6 +174,8 @@ files:
158
174
  - lib/killbill_client/models/models.rb
159
175
  - lib/killbill_client/models/nodes_info.rb
160
176
  - lib/killbill_client/models/overdue.rb
177
+ - lib/killbill_client/models/overdue_condition.rb
178
+ - lib/killbill_client/models/overdue_state_config.rb
161
179
  - lib/killbill_client/models/payment.rb
162
180
  - lib/killbill_client/models/payment_method.rb
163
181
  - lib/killbill_client/models/phase.rb
@@ -181,8 +199,8 @@ files:
181
199
  - lib/rails/generators/killbill_client/config_generator.rb
182
200
  - lib/rails/killbill_client.rb
183
201
  - spec/killbill_client/base_uri_spec.rb
184
- - spec/killbill_client/encoding_spec.rb
185
202
  - spec/killbill_client/errors_spec.rb
203
+ - spec/killbill_client/http_adapter_spec.rb
186
204
  - spec/killbill_client/model_relation_spec.rb
187
205
  - spec/killbill_client/remote/api_spec.rb
188
206
  - spec/killbill_client/remote/model_spec.rb
@@ -193,35 +211,26 @@ homepage: http://www.killbilling.org
193
211
  licenses:
194
212
  - Apache License (2.0)
195
213
  metadata: {}
196
- post_install_message:
214
+ post_install_message:
197
215
  rdoc_options:
198
- - "--exclude"
199
- - "."
216
+ - --exclude
217
+ - .
200
218
  require_paths:
201
219
  - lib
202
220
  required_ruby_version: !ruby/object:Gem::Requirement
203
221
  requirements:
204
- - - ">="
222
+ - - '>='
205
223
  - !ruby/object:Gem::Version
206
224
  version: 1.8.6
207
225
  required_rubygems_version: !ruby/object:Gem::Requirement
208
226
  requirements:
209
- - - ">="
227
+ - - '>='
210
228
  - !ruby/object:Gem::Version
211
229
  version: '0'
212
230
  requirements: []
213
- rubyforge_project:
214
- rubygems_version: 2.2.2
215
- signing_key:
231
+ rubyforge_project:
232
+ rubygems_version: 2.4.6
233
+ signing_key:
216
234
  specification_version: 4
217
235
  summary: Kill Bill client library.
218
- test_files:
219
- - spec/killbill_client/base_uri_spec.rb
220
- - spec/killbill_client/encoding_spec.rb
221
- - spec/killbill_client/errors_spec.rb
222
- - spec/killbill_client/model_relation_spec.rb
223
- - spec/killbill_client/remote/api_spec.rb
224
- - spec/killbill_client/remote/model_spec.rb
225
- - spec/killbill_client/resource_spec.rb
226
- - spec/killbill_client/resources_spec.rb
227
- - spec/spec_helper.rb
236
+ test_files: []