Class: Killbill::Plugin::Model::CaseChangePlanAlignment
- Defined in:
- lib/killbill/gen/api/case_change_plan_alignment.rb
Instance Attribute Summary collapse
-
#alignment ⇒ Object
Returns the value of attribute alignment.
-
#from_billing_period ⇒ Object
Returns the value of attribute from_billing_period.
-
#from_price_list ⇒ Object
Returns the value of attribute from_price_list.
-
#from_product ⇒ Object
Returns the value of attribute from_product.
-
#from_product_category ⇒ Object
Returns the value of attribute from_product_category.
-
#phase_type ⇒ Object
Returns the value of attribute phase_type.
-
#to_billing_period ⇒ Object
Returns the value of attribute to_billing_period.
-
#to_price_list ⇒ Object
Returns the value of attribute to_price_list.
-
#to_product ⇒ Object
Returns the value of attribute to_product.
-
#to_product_category ⇒ Object
Returns the value of attribute to_product_category.
Instance Method Summary collapse
-
#initialize ⇒ CaseChangePlanAlignment
constructor
A new instance of CaseChangePlanAlignment.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ CaseChangePlanAlignment
Returns a new instance of CaseChangePlanAlignment.
39 40 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 39 def initialize() end |
Instance Attribute Details
#alignment ⇒ Object
Returns the value of attribute alignment.
37 38 39 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 37 def alignment @alignment end |
#from_billing_period ⇒ Object
Returns the value of attribute from_billing_period.
37 38 39 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 37 def from_billing_period @from_billing_period end |
#from_price_list ⇒ Object
Returns the value of attribute from_price_list.
37 38 39 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 37 def from_price_list @from_price_list end |
#from_product ⇒ Object
Returns the value of attribute from_product.
37 38 39 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 37 def from_product @from_product end |
#from_product_category ⇒ Object
Returns the value of attribute from_product_category.
37 38 39 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 37 def from_product_category @from_product_category end |
#phase_type ⇒ Object
Returns the value of attribute phase_type.
37 38 39 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 37 def phase_type @phase_type end |
#to_billing_period ⇒ Object
Returns the value of attribute to_billing_period.
37 38 39 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 37 def to_billing_period @to_billing_period end |
#to_price_list ⇒ Object
Returns the value of attribute to_price_list.
37 38 39 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 37 def to_price_list @to_price_list end |
#to_product ⇒ Object
Returns the value of attribute to_product.
37 38 39 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 37 def to_product @to_product end |
#to_product_category ⇒ Object
Returns the value of attribute to_product_category.
37 38 39 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 37 def to_product_category @to_product_category end |
Instance Method Details
#to_java ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 42 def to_java() # conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType] @phase_type = Java::org.killbill.billing.catalog.api.PhaseType.value_of( @phase_type.to_s ) unless @phase_type.nil? # conversion for from_product [type = org.killbill.billing.catalog.api.Product] @from_product = @from_product.to_java unless @from_product.nil? # conversion for from_product_category [type = org.killbill.billing.catalog.api.ProductCategory] @from_product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @from_product_category.to_s ) unless @from_product_category.nil? # conversion for from_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @from_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @from_billing_period.to_s ) unless @from_billing_period.nil? # conversion for from_price_list [type = org.killbill.billing.catalog.api.PriceList] @from_price_list = @from_price_list.to_java unless @from_price_list.nil? # conversion for to_product [type = org.killbill.billing.catalog.api.Product] @to_product = @to_product.to_java unless @to_product.nil? # conversion for to_product_category [type = org.killbill.billing.catalog.api.ProductCategory] @to_product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @to_product_category.to_s ) unless @to_product_category.nil? # conversion for to_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @to_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @to_billing_period.to_s ) unless @to_billing_period.nil? # conversion for to_price_list [type = org.killbill.billing.catalog.api.PriceList] @to_price_list = @to_price_list.to_java unless @to_price_list.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? self end |
#to_ruby(j_obj) ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/killbill/gen/api/case_change_plan_alignment.rb', line 75 def to_ruby(j_obj) # conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType] @phase_type = j_obj.phase_type @phase_type = @phase_type.to_s.to_sym unless @phase_type.nil? # conversion for from_product [type = org.killbill.billing.catalog.api.Product] @from_product = j_obj.from_product @from_product = Killbill::Plugin::Model::Product.new.to_ruby(@from_product) unless @from_product.nil? # conversion for from_product_category [type = org.killbill.billing.catalog.api.ProductCategory] @from_product_category = j_obj.from_product_category @from_product_category = @from_product_category.to_s.to_sym unless @from_product_category.nil? # conversion for from_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @from_billing_period = j_obj.from_billing_period @from_billing_period = @from_billing_period.to_s.to_sym unless @from_billing_period.nil? # conversion for from_price_list [type = org.killbill.billing.catalog.api.PriceList] @from_price_list = j_obj.from_price_list @from_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@from_price_list) unless @from_price_list.nil? # conversion for to_product [type = org.killbill.billing.catalog.api.Product] @to_product = j_obj.to_product @to_product = Killbill::Plugin::Model::Product.new.to_ruby(@to_product) unless @to_product.nil? # conversion for to_product_category [type = org.killbill.billing.catalog.api.ProductCategory] @to_product_category = j_obj.to_product_category @to_product_category = @to_product_category.to_s.to_sym unless @to_product_category.nil? # conversion for to_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @to_billing_period = j_obj.to_billing_period @to_billing_period = @to_billing_period.to_s.to_sym unless @to_billing_period.nil? # conversion for to_price_list [type = org.killbill.billing.catalog.api.PriceList] @to_price_list = j_obj.to_price_list @to_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@to_price_list) unless @to_price_list.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 |