Class: Killbill::Plugin::Model::EntitlementAOStatusDryRun
- Defined in:
- lib/killbill/gen/api/entitlement_ao_status_dry_run.rb
Instance Attribute Summary collapse
-
#billing_period ⇒ Object
Returns the value of attribute billing_period.
-
#id ⇒ Object
Returns the value of attribute id.
-
#phase_type ⇒ Object
Returns the value of attribute phase_type.
-
#price_list ⇒ Object
Returns the value of attribute price_list.
-
#product_name ⇒ Object
Returns the value of attribute product_name.
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize ⇒ EntitlementAOStatusDryRun
constructor
A new instance of EntitlementAOStatusDryRun.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ EntitlementAOStatusDryRun
Returns a new instance of EntitlementAOStatusDryRun.
39 40 |
# File 'lib/killbill/gen/api/entitlement_ao_status_dry_run.rb', line 39 def initialize() end |
Instance Attribute Details
#billing_period ⇒ Object
Returns the value of attribute billing_period.
37 38 39 |
# File 'lib/killbill/gen/api/entitlement_ao_status_dry_run.rb', line 37 def billing_period @billing_period end |
#id ⇒ Object
Returns the value of attribute id.
37 38 39 |
# File 'lib/killbill/gen/api/entitlement_ao_status_dry_run.rb', line 37 def id @id end |
#phase_type ⇒ Object
Returns the value of attribute phase_type.
37 38 39 |
# File 'lib/killbill/gen/api/entitlement_ao_status_dry_run.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/entitlement_ao_status_dry_run.rb', line 37 def price_list @price_list end |
#product_name ⇒ Object
Returns the value of attribute product_name.
37 38 39 |
# File 'lib/killbill/gen/api/entitlement_ao_status_dry_run.rb', line 37 def product_name @product_name end |
#reason ⇒ Object
Returns the value of attribute reason.
37 38 39 |
# File 'lib/killbill/gen/api/entitlement_ao_status_dry_run.rb', line 37 def reason @reason 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/entitlement_ao_status_dry_run.rb', line 42 def to_java() # conversion for id [type = java.util.UUID] @id = java.util.UUID.fromString(@id.to_s) unless @id.nil? # conversion for product_name [type = java.lang.String] @product_name = @product_name.to_s unless @product_name.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 = java.lang.String] @price_list = @price_list.to_s unless @price_list.nil? # 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 reason [type = org.killbill.billing.entitlement.api.DryRunChangeReason] @reason = Java::org.killbill.billing.entitlement.api.DryRunChangeReason.value_of( @reason.to_s ) unless @reason.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 |
# File 'lib/killbill/gen/api/entitlement_ao_status_dry_run.rb', line 63 def to_ruby(j_obj) # conversion for id [type = java.util.UUID] @id = j_obj.id @id = @id.nil? ? nil : @id.to_s # conversion for product_name [type = java.lang.String] @product_name = j_obj.product_name # 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 = java.lang.String] @price_list = j_obj.price_list # 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 reason [type = org.killbill.billing.entitlement.api.DryRunChangeReason] @reason = j_obj.reason @reason = @reason.to_s.to_sym unless @reason.nil? self end |