Class: Killbill::Plugin::Model::CaseBillingAlignment
- Defined in:
- lib/killbill/gen/api/case_billing_alignment.rb
Instance Attribute Summary collapse
-
#billing_alignment ⇒ Object
Returns the value of attribute billing_alignment.
-
#billing_period ⇒ Object
Returns the value of attribute billing_period.
-
#phase_type ⇒ Object
Returns the value of attribute phase_type.
-
#price_list ⇒ Object
Returns the value of attribute price_list.
-
#product ⇒ Object
Returns the value of attribute product.
-
#product_category ⇒ Object
Returns the value of attribute product_category.
Instance Method Summary collapse
-
#initialize ⇒ CaseBillingAlignment
constructor
A new instance of CaseBillingAlignment.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ CaseBillingAlignment
Returns a new instance of CaseBillingAlignment.
39 40 |
# File 'lib/killbill/gen/api/case_billing_alignment.rb', line 39 def initialize() end |
Instance Attribute Details
#billing_alignment ⇒ Object
Returns the value of attribute billing_alignment.
37 38 39 |
# File 'lib/killbill/gen/api/case_billing_alignment.rb', line 37 def billing_alignment @billing_alignment end |
#billing_period ⇒ Object
Returns the value of attribute billing_period.
37 38 39 |
# File 'lib/killbill/gen/api/case_billing_alignment.rb', line 37 def billing_period @billing_period end |
#phase_type ⇒ Object
Returns the value of attribute phase_type.
37 38 39 |
# File 'lib/killbill/gen/api/case_billing_alignment.rb', line 37 def phase_type @phase_type end |
#price_list ⇒ Object
Returns the value of attribute price_list.
37 38 39 |
# File 'lib/killbill/gen/api/case_billing_alignment.rb', line 37 def price_list @price_list end |
#product ⇒ Object
Returns the value of attribute product.
37 38 39 |
# File 'lib/killbill/gen/api/case_billing_alignment.rb', line 37 def product @product end |
#product_category ⇒ Object
Returns the value of attribute product_category.
37 38 39 |
# File 'lib/killbill/gen/api/case_billing_alignment.rb', line 37 def product_category @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 |
# File 'lib/killbill/gen/api/case_billing_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 product [type = org.killbill.billing.catalog.api.Product] @product = @product.to_java unless @product.nil? # conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory] @product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of( @product_category.to_s ) unless @product_category.nil? # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @billing_period.to_s ) unless @billing_period.nil? # conversion for price_list [type = org.killbill.billing.catalog.api.PriceList] @price_list = @price_list.to_java unless @price_list.nil? # conversion for billing_alignment [type = org.killbill.billing.catalog.api.BillingAlignment] @billing_alignment = Java::org.killbill.billing.catalog.api.BillingAlignment.value_of( @billing_alignment.to_s ) unless @billing_alignment.nil? self end |
#to_ruby(j_obj) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/killbill/gen/api/case_billing_alignment.rb', line 63 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 product [type = org.killbill.billing.catalog.api.Product] @product = j_obj.product @product = Killbill::Plugin::Model::Product.new.to_ruby(@product) unless @product.nil? # conversion for product_category [type = org.killbill.billing.catalog.api.ProductCategory] @product_category = j_obj.product_category @product_category = @product_category.to_s.to_sym unless @product_category.nil? # conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @billing_period = j_obj.billing_period @billing_period = @billing_period.to_s.to_sym unless @billing_period.nil? # conversion for price_list [type = org.killbill.billing.catalog.api.PriceList] @price_list = j_obj.price_list @price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@price_list) unless @price_list.nil? # conversion for billing_alignment [type = org.killbill.billing.catalog.api.BillingAlignment] @billing_alignment = j_obj.billing_alignment @billing_alignment = @billing_alignment.to_s.to_sym unless @billing_alignment.nil? self end |