killbill 1.8.4 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/Jarfile +4 -4
  3. data/NEWS +4 -1
  4. data/VERSION +1 -1
  5. data/gen_config/api.conf +1 -0
  6. data/lib/killbill/gen/api/account.rb +2 -2
  7. data/lib/killbill/gen/api/account_audit_logs.rb +303 -0
  8. data/lib/killbill/gen/api/account_audit_logs_for_object_type.rb +68 -0
  9. data/lib/killbill/gen/api/account_email.rb +2 -2
  10. data/lib/killbill/gen/api/audit_log.rb +129 -0
  11. data/lib/killbill/gen/api/audit_user_api.rb +5 -120
  12. data/lib/killbill/gen/api/blockable.rb +2 -2
  13. data/lib/killbill/gen/api/blocking_state.rb +3 -3
  14. data/lib/killbill/gen/api/call_context.rb +2 -2
  15. data/lib/killbill/gen/api/control_tag.rb +2 -2
  16. data/lib/killbill/gen/api/custom_field.rb +2 -2
  17. data/lib/killbill/gen/api/entitlement.rb +2 -2
  18. data/lib/killbill/gen/api/entity.rb +2 -2
  19. data/lib/killbill/gen/api/invoice.rb +2 -2
  20. data/lib/killbill/gen/api/invoice_formatter.rb +2 -2
  21. data/lib/killbill/gen/api/invoice_item.rb +2 -2
  22. data/lib/killbill/gen/api/invoice_item_formatter.rb +2 -2
  23. data/lib/killbill/gen/api/invoice_payment.rb +3 -3
  24. data/lib/killbill/gen/api/migration_plan.rb +1 -1
  25. data/lib/killbill/gen/api/payment.rb +3 -3
  26. data/lib/killbill/gen/api/payment_api.rb +20 -0
  27. data/lib/killbill/gen/api/payment_attempt.rb +3 -3
  28. data/lib/killbill/gen/api/payment_method.rb +2 -2
  29. data/lib/killbill/gen/api/plan.rb +1 -1
  30. data/lib/killbill/gen/api/rate.rb +1 -1
  31. data/lib/killbill/gen/api/refund.rb +3 -3
  32. data/lib/killbill/gen/api/require_gen.rb +3 -0
  33. data/lib/killbill/gen/api/rolled_up_usage.rb +2 -2
  34. data/lib/killbill/gen/api/static_catalog.rb +1 -1
  35. data/lib/killbill/gen/api/subscription.rb +2 -2
  36. data/lib/killbill/gen/api/subscription_bundle.rb +3 -3
  37. data/lib/killbill/gen/api/tag.rb +2 -2
  38. data/lib/killbill/gen/api/tag_definition.rb +2 -2
  39. data/lib/killbill/gen/api/tag_user_api.rb +18 -9
  40. data/lib/killbill/gen/api/tenant.rb +2 -2
  41. data/lib/killbill/gen/api/tenant_kv.rb +2 -2
  42. data/lib/killbill/gen/plugin-api/currency_plugin_api.rb +1 -1
  43. data/lib/killbill/gen/plugin-api/payment_info_plugin.rb +10 -3
  44. data/lib/killbill/gen/plugin-api/payment_plugin_api.rb +28 -0
  45. data/lib/killbill/gen/plugin-api/refund_info_plugin.rb +2 -2
  46. metadata +55 -70
@@ -102,6 +102,34 @@ module Killbill
102
102
  end
103
103
  end
104
104
 
105
+ java_signature 'Java::com.ning.billing.util.entity.Pagination searchPayments(Java::java.lang.String, Java::java.lang.Long, Java::java.lang.Long, Java::com.ning.billing.util.callcontext.TenantContext)'
106
+ def search_payments(searchKey, offset, limit, context)
107
+
108
+ # conversion for searchKey [type = java.lang.String]
109
+
110
+ # conversion for offset [type = java.lang.Long]
111
+
112
+ # conversion for limit [type = java.lang.Long]
113
+
114
+ # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
115
+ context = Killbill::Plugin::Model::TenantContext.new.to_ruby(context) unless context.nil?
116
+ begin
117
+ res = @delegate_plugin.search_payments(searchKey, offset, limit, context)
118
+ # conversion for res [type = com.ning.billing.util.entity.Pagination]
119
+ res = res.to_java unless res.nil?
120
+ return res
121
+ rescue Exception => e
122
+ message = "Failure in search_payments: #{e}"
123
+ unless e.backtrace.nil?
124
+ message = "#{message}\n#{e.backtrace.join("\n")}"
125
+ end
126
+ logger.warn message
127
+ raise Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException.new("search_payments failure", e.message)
128
+ ensure
129
+ @delegate_plugin.after_request
130
+ end
131
+ end
132
+
105
133
  java_signature 'Java::com.ning.billing.payment.plugin.api.RefundInfoPlugin processRefund(Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::com.ning.billing.catalog.api.Currency, Java::com.ning.billing.util.callcontext.CallContext)'
106
134
  def process_refund(kbAccountId, kbPaymentId, refundAmount, currency, context)
107
135
 
@@ -86,7 +86,7 @@ module Killbill
86
86
  # conversion for created_date [type = org.joda.time.DateTime]
87
87
  @created_date = j_obj.created_date
88
88
  if !@created_date.nil?
89
- fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time
89
+ fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
90
90
  str = fmt.print(@created_date)
91
91
  @created_date = DateTime.iso8601(str)
92
92
  end
@@ -94,7 +94,7 @@ module Killbill
94
94
  # conversion for effective_date [type = org.joda.time.DateTime]
95
95
  @effective_date = j_obj.effective_date
96
96
  if !@effective_date.nil?
97
- fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time
97
+ fmt = Java::org.joda.time.format.ISODateTimeFormat.date_time_no_millis # See https://github.com/killbill/killbill-java-parser/issues/3
98
98
  str = fmt.print(@effective_date)
99
99
  @effective_date = DateTime.iso8601(str)
100
100
  end
metadata CHANGED
@@ -1,120 +1,107 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.8.4
4
+ version: 1.9.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Kill Bill core team
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-06 00:00:00.000000000 Z
11
+ date: 2014-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: sinatra
16
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
- - - "~>"
17
+ - - ~>
19
18
  - !ruby/object:Gem::Version
20
19
  version: 1.3.4
21
- none: false
22
- requirement: !ruby/object:Gem::Requirement
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.3.4
27
- none: false
28
- prerelease: false
29
- type: :runtime
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: tzinfo
32
- version_requirements: !ruby/object:Gem::Requirement
29
+ requirement: !ruby/object:Gem::Requirement
33
30
  requirements:
34
- - - "~>"
31
+ - - ~>
35
32
  - !ruby/object:Gem::Version
36
33
  version: 0.3.37
37
- none: false
38
- requirement: !ruby/object:Gem::Requirement
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
39
37
  requirements:
40
- - - "~>"
38
+ - - ~>
41
39
  - !ruby/object:Gem::Version
42
40
  version: 0.3.37
43
- none: false
44
- prerelease: false
45
- type: :runtime
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: jbundler
48
- version_requirements: !ruby/object:Gem::Requirement
43
+ requirement: !ruby/object:Gem::Requirement
49
44
  requirements:
50
- - - "~>"
45
+ - - ~>
51
46
  - !ruby/object:Gem::Version
52
47
  version: 0.4.3
53
- none: false
54
- requirement: !ruby/object:Gem::Requirement
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
55
51
  requirements:
56
- - - "~>"
52
+ - - ~>
57
53
  - !ruby/object:Gem::Version
58
54
  version: 0.4.3
59
- none: false
60
- prerelease: false
61
- type: :development
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rack
64
- version_requirements: !ruby/object:Gem::Requirement
57
+ requirement: !ruby/object:Gem::Requirement
65
58
  requirements:
66
- - - ">="
59
+ - - '>='
67
60
  - !ruby/object:Gem::Version
68
61
  version: 1.5.2
69
- none: false
70
- requirement: !ruby/object:Gem::Requirement
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
- - - ">="
66
+ - - '>='
73
67
  - !ruby/object:Gem::Version
74
68
  version: 1.5.2
75
- none: false
76
- prerelease: false
77
- type: :development
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rake
80
- version_requirements: !ruby/object:Gem::Requirement
71
+ requirement: !ruby/object:Gem::Requirement
81
72
  requirements:
82
- - - ">="
73
+ - - '>='
83
74
  - !ruby/object:Gem::Version
84
75
  version: 0.8.7
85
- none: false
86
- requirement: !ruby/object:Gem::Requirement
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
87
79
  requirements:
88
- - - ">="
80
+ - - '>='
89
81
  - !ruby/object:Gem::Version
90
82
  version: 0.8.7
91
- none: false
92
- prerelease: false
93
- type: :development
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rspec
96
- version_requirements: !ruby/object:Gem::Requirement
85
+ requirement: !ruby/object:Gem::Requirement
97
86
  requirements:
98
- - - "~>"
87
+ - - ~>
99
88
  - !ruby/object:Gem::Version
100
89
  version: 2.12.0
101
- none: false
102
- requirement: !ruby/object:Gem::Requirement
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
103
93
  requirements:
104
- - - "~>"
94
+ - - ~>
105
95
  - !ruby/object:Gem::Version
106
96
  version: 2.12.0
107
- none: false
108
- prerelease: false
109
- type: :development
110
97
  description: Base classes to write plugins.
111
98
  email: killbilling-users@googlegroups.com
112
99
  executables: []
113
100
  extensions: []
114
101
  extra_rdoc_files: []
115
102
  files:
116
- - ".gitignore"
117
- - ".travis.yml"
103
+ - .gitignore
104
+ - .travis.yml
118
105
  - Gemfile
119
106
  - Jarfile
120
107
  - NEWS
@@ -129,9 +116,12 @@ files:
129
116
  - lib/killbill/currency.rb
130
117
  - lib/killbill/gen/api/account.rb
131
118
  - lib/killbill/gen/api/account_api_exception.rb
119
+ - lib/killbill/gen/api/account_audit_logs.rb
120
+ - lib/killbill/gen/api/account_audit_logs_for_object_type.rb
132
121
  - lib/killbill/gen/api/account_data.rb
133
122
  - lib/killbill/gen/api/account_email.rb
134
123
  - lib/killbill/gen/api/account_user_api.rb
124
+ - lib/killbill/gen/api/audit_log.rb
135
125
  - lib/killbill/gen/api/audit_user_api.rb
136
126
  - lib/killbill/gen/api/billing_exception_base.rb
137
127
  - lib/killbill/gen/api/blockable.rb
@@ -253,35 +243,30 @@ files:
253
243
  homepage: http://kill-bill.org
254
244
  licenses:
255
245
  - Apache License (2.0)
256
- post_install_message:
246
+ metadata: {}
247
+ post_install_message:
257
248
  rdoc_options:
258
- - "--exclude"
259
- - "."
249
+ - --exclude
250
+ - .
260
251
  require_paths:
261
252
  - lib
262
253
  required_ruby_version: !ruby/object:Gem::Requirement
263
254
  requirements:
264
- - - ">="
255
+ - - '>='
265
256
  - !ruby/object:Gem::Version
266
257
  version: 1.9.3
267
- none: false
268
258
  required_rubygems_version: !ruby/object:Gem::Requirement
269
259
  requirements:
270
- - - ">="
260
+ - - '>='
271
261
  - !ruby/object:Gem::Version
272
- segments:
273
- - 0
274
- hash: 2
275
- version: !binary |-
276
- MA==
277
- none: false
262
+ version: '0'
278
263
  requirements:
279
264
  - jar 'com.ning.billing:killbill-api'
280
265
  - jar 'com.ning.billing:killbill-util:tests'
281
- rubyforge_project:
282
- rubygems_version: 1.8.24
283
- signing_key:
284
- specification_version: 3
266
+ rubyforge_project:
267
+ rubygems_version: 2.0.3
268
+ signing_key:
269
+ specification_version: 4
285
270
  summary: Framework to write Kill Bill plugins in Ruby.
286
271
  test_files:
287
272
  - spec/killbill/base_plugin_spec.rb