Class: Killbill::Plugin::Model::CaseChangePlanPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/killbill/gen/api/case_change_plan_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCaseChangePlanPolicy

Returns a new instance of CaseChangePlanPolicy.



39
40
# File 'lib/killbill/gen/api/case_change_plan_policy.rb', line 39

def initialize()
end

Instance Attribute Details

#billing_action_policyObject

Returns the value of attribute billing_action_policy.



37
38
39
# File 'lib/killbill/gen/api/case_change_plan_policy.rb', line 37

def billing_action_policy
  @billing_action_policy
end

#from_billing_periodObject

Returns the value of attribute from_billing_period.



37
38
39
# File 'lib/killbill/gen/api/case_change_plan_policy.rb', line 37

def from_billing_period
  @from_billing_period
end

#from_price_listObject

Returns the value of attribute from_price_list.



37
38
39
# File 'lib/killbill/gen/api/case_change_plan_policy.rb', line 37

def from_price_list
  @from_price_list
end

#from_productObject

Returns the value of attribute from_product.



37
38
39
# File 'lib/killbill/gen/api/case_change_plan_policy.rb', line 37

def from_product
  @from_product
end

#from_product_categoryObject

Returns the value of attribute from_product_category.



37
38
39
# File 'lib/killbill/gen/api/case_change_plan_policy.rb', line 37

def from_product_category
  @from_product_category
end

#phase_typeObject

Returns the value of attribute phase_type.



37
38
39
# File 'lib/killbill/gen/api/case_change_plan_policy.rb', line 37

def phase_type
  @phase_type
end

#to_billing_periodObject

Returns the value of attribute to_billing_period.



37
38
39
# File 'lib/killbill/gen/api/case_change_plan_policy.rb', line 37

def to_billing_period
  @to_billing_period
end

#to_price_listObject

Returns the value of attribute to_price_list.



37
38
39
# File 'lib/killbill/gen/api/case_change_plan_policy.rb', line 37

def to_price_list
  @to_price_list
end

#to_productObject

Returns the value of attribute to_product.



37
38
39
# File 'lib/killbill/gen/api/case_change_plan_policy.rb', line 37

def to_product
  @to_product
end

#to_product_categoryObject

Returns the value of attribute to_product_category.



37
38
39
# File 'lib/killbill/gen/api/case_change_plan_policy.rb', line 37

def to_product_category
  @to_product_category
end

Instance Method Details

#to_javaObject



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_policy.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 billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
  @billing_action_policy = Java::org.killbill.billing.catalog.api.BillingActionPolicy.value_of( @billing_action_policy.to_s ) unless @billing_action_policy.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_policy.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 billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
  @billing_action_policy = j_obj.billing_action_policy
  @billing_action_policy = @billing_action_policy.to_s.to_sym unless @billing_action_policy.nil?
  self
end