killbill 1.8.1 → 1.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 1.8.2
2
+ Add missing regenerated RefundInfoPlugin and PaymentInfoPlugin for new currency
3
+
1
4
  1.8.1
2
5
  Add currency api from Killbill for ruby plugins
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.1
1
+ 1.8.2
@@ -36,6 +36,7 @@ module Killbill
36
36
  super(real_class_name, services)
37
37
  end
38
38
 
39
+
39
40
  java_signature 'Java::java.util.Set getBaseCurrencies()'
40
41
  def get_base_currencies()
41
42
  begin
@@ -32,7 +32,7 @@ module Killbill
32
32
 
33
33
  include com.ning.billing.payment.plugin.api.PaymentInfoPlugin
34
34
 
35
- attr_accessor :amount, :created_date, :effective_date, :status, :gateway_error, :gateway_error_code, :first_payment_reference_id, :second_payment_reference_id
35
+ attr_accessor :amount, :currency, :created_date, :effective_date, :status, :gateway_error, :gateway_error_code, :first_payment_reference_id, :second_payment_reference_id
36
36
 
37
37
  def initialize()
38
38
  end
@@ -45,6 +45,9 @@ module Killbill
45
45
  @amount = java.math.BigDecimal.new(@amount.to_s)
46
46
  end
47
47
 
48
+ # conversion for currency [type = com.ning.billing.catalog.api.Currency]
49
+ @currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{@currency.to_s}") unless @currency.nil?
50
+
48
51
  # conversion for created_date [type = org.joda.time.DateTime]
49
52
  if !@created_date.nil?
50
53
  @created_date = (@created_date.kind_of? Time) ? DateTime.parse(@created_date.to_s) : @created_date
@@ -79,6 +82,10 @@ module Killbill
79
82
  @amount = j_obj.amount
80
83
  @amount = @amount.nil? ? 0 : BigDecimal.new(@amount.to_s)
81
84
 
85
+ # conversion for currency [type = com.ning.billing.catalog.api.Currency]
86
+ @currency = j_obj.currency
87
+ @currency = @currency.to_s.to_sym unless @currency.nil?
88
+
82
89
  # conversion for created_date [type = org.joda.time.DateTime]
83
90
  @created_date = j_obj.created_date
84
91
  if !@created_date.nil?
@@ -32,7 +32,7 @@ module Killbill
32
32
 
33
33
  include com.ning.billing.payment.plugin.api.RefundInfoPlugin
34
34
 
35
- attr_accessor :amount, :created_date, :effective_date, :status, :gateway_error, :gateway_error_code, :reference_id
35
+ attr_accessor :amount, :currency, :created_date, :effective_date, :status, :gateway_error, :gateway_error_code, :reference_id
36
36
 
37
37
  def initialize()
38
38
  end
@@ -45,6 +45,9 @@ module Killbill
45
45
  @amount = java.math.BigDecimal.new(@amount.to_s)
46
46
  end
47
47
 
48
+ # conversion for currency [type = com.ning.billing.catalog.api.Currency]
49
+ @currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{@currency.to_s}") unless @currency.nil?
50
+
48
51
  # conversion for created_date [type = org.joda.time.DateTime]
49
52
  if !@created_date.nil?
50
53
  @created_date = (@created_date.kind_of? Time) ? DateTime.parse(@created_date.to_s) : @created_date
@@ -76,6 +79,10 @@ module Killbill
76
79
  @amount = j_obj.amount
77
80
  @amount = @amount.nil? ? 0 : BigDecimal.new(@amount.to_s)
78
81
 
82
+ # conversion for currency [type = com.ning.billing.catalog.api.Currency]
83
+ @currency = j_obj.currency
84
+ @currency = @currency.to_s.to_sym unless @currency.nil?
85
+
79
86
  # conversion for created_date [type = org.joda.time.DateTime]
80
87
  @created_date = j_obj.created_date
81
88
  if !@created_date.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: