Class: Killbill::Plugin::Model::PlanChangeResult
- Defined in:
- lib/killbill/gen/api/plan_change_result.rb
Instance Attribute Summary collapse
-
#alignment ⇒ Object
Returns the value of attribute alignment.
-
#new_price_list ⇒ Object
Returns the value of attribute new_price_list.
-
#policy ⇒ Object
Returns the value of attribute policy.
Instance Method Summary collapse
-
#initialize ⇒ PlanChangeResult
constructor
A new instance of PlanChangeResult.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ PlanChangeResult
Returns a new instance of PlanChangeResult.
37 38 |
# File 'lib/killbill/gen/api/plan_change_result.rb', line 37 def initialize() end |
Instance Attribute Details
#alignment ⇒ Object
Returns the value of attribute alignment.
35 36 37 |
# File 'lib/killbill/gen/api/plan_change_result.rb', line 35 def alignment @alignment end |
#new_price_list ⇒ Object
Returns the value of attribute new_price_list.
35 36 37 |
# File 'lib/killbill/gen/api/plan_change_result.rb', line 35 def new_price_list @new_price_list end |
#policy ⇒ Object
Returns the value of attribute policy.
35 36 37 |
# File 'lib/killbill/gen/api/plan_change_result.rb', line 35 def policy @policy end |
Instance Method Details
#to_java ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/killbill/gen/api/plan_change_result.rb', line 40 def to_java() # conversion for new_price_list [type = org.killbill.billing.catalog.api.PriceList] @new_price_list = @new_price_list.to_java unless @new_price_list.nil? # conversion for policy [type = org.killbill.billing.catalog.api.BillingActionPolicy] @policy = Java::org.killbill.billing.catalog.api.BillingActionPolicy.value_of( @policy.to_s ) unless @policy.nil? # conversion for alignment [type = org.killbill.billing.catalog.api.PlanAlignmentChange] @alignment = Java::org.killbill.billing.catalog.api.PlanAlignmentChange.value_of( @alignment.to_s ) unless @alignment.nil? Java::org.killbill.billing.catalog.api.PlanChangeResult.new(@new_price_list, @policy, @alignment) end |
#to_ruby(j_obj) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/killbill/gen/api/plan_change_result.rb', line 52 def to_ruby(j_obj) # conversion for new_price_list [type = org.killbill.billing.catalog.api.PriceList] @new_price_list = j_obj.new_price_list @new_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@new_price_list) unless @new_price_list.nil? # conversion for policy [type = org.killbill.billing.catalog.api.BillingActionPolicy] @policy = j_obj.policy @policy = @policy.to_s.to_sym unless @policy.nil? # conversion for alignment [type = org.killbill.billing.catalog.api.PlanAlignmentChange] @alignment = j_obj.alignment @alignment = @alignment.to_s.to_sym unless @alignment.nil? self end |