Class: Killbill::Plugin::Model::OverdueState
- Defined in:
- lib/killbill/gen/api/overdue_state.rb
Instance Attribute Summary collapse
-
#auto_reevaluation_interval ⇒ Object
Returns the value of attribute auto_reevaluation_interval.
-
#external_message ⇒ Object
Returns the value of attribute external_message.
-
#is_block_changes ⇒ Object
Returns the value of attribute is_block_changes.
-
#is_clear_state ⇒ Object
Returns the value of attribute is_clear_state.
-
#is_disable_entitlement_and_changes_blocked ⇒ Object
Returns the value of attribute is_disable_entitlement_and_changes_blocked.
-
#name ⇒ Object
Returns the value of attribute name.
-
#overdue_cancellation_policy ⇒ Object
Returns the value of attribute overdue_cancellation_policy.
-
#overdue_condition ⇒ Object
Returns the value of attribute overdue_condition.
Instance Method Summary collapse
-
#initialize ⇒ OverdueState
constructor
A new instance of OverdueState.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ OverdueState
Returns a new instance of OverdueState.
39 40 |
# File 'lib/killbill/gen/api/overdue_state.rb', line 39 def initialize() end |
Instance Attribute Details
#auto_reevaluation_interval ⇒ Object
Returns the value of attribute auto_reevaluation_interval.
37 38 39 |
# File 'lib/killbill/gen/api/overdue_state.rb', line 37 def auto_reevaluation_interval @auto_reevaluation_interval end |
#external_message ⇒ Object
Returns the value of attribute external_message.
37 38 39 |
# File 'lib/killbill/gen/api/overdue_state.rb', line 37 def @external_message end |
#is_block_changes ⇒ Object
Returns the value of attribute is_block_changes.
37 38 39 |
# File 'lib/killbill/gen/api/overdue_state.rb', line 37 def is_block_changes @is_block_changes end |
#is_clear_state ⇒ Object
Returns the value of attribute is_clear_state.
37 38 39 |
# File 'lib/killbill/gen/api/overdue_state.rb', line 37 def is_clear_state @is_clear_state end |
#is_disable_entitlement_and_changes_blocked ⇒ Object
Returns the value of attribute is_disable_entitlement_and_changes_blocked.
37 38 39 |
# File 'lib/killbill/gen/api/overdue_state.rb', line 37 def is_disable_entitlement_and_changes_blocked @is_disable_entitlement_and_changes_blocked end |
#name ⇒ Object
Returns the value of attribute name.
37 38 39 |
# File 'lib/killbill/gen/api/overdue_state.rb', line 37 def name @name end |
#overdue_cancellation_policy ⇒ Object
Returns the value of attribute overdue_cancellation_policy.
37 38 39 |
# File 'lib/killbill/gen/api/overdue_state.rb', line 37 def overdue_cancellation_policy @overdue_cancellation_policy end |
#overdue_condition ⇒ Object
Returns the value of attribute overdue_condition.
37 38 39 |
# File 'lib/killbill/gen/api/overdue_state.rb', line 37 def overdue_condition @overdue_condition 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 |
# File 'lib/killbill/gen/api/overdue_state.rb', line 42 def to_java() # conversion for overdue_condition [type = org.killbill.billing.overdue.api.OverdueCondition] @overdue_condition = @overdue_condition.to_java unless @overdue_condition.nil? # conversion for name [type = java.lang.String] @name = @name.to_s unless @name.nil? # conversion for external_message [type = java.lang.String] @external_message = @external_message.to_s unless @external_message.nil? # conversion for is_block_changes [type = boolean] @is_block_changes = @is_block_changes.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_block_changes) # conversion for is_disable_entitlement_and_changes_blocked [type = boolean] @is_disable_entitlement_and_changes_blocked = @is_disable_entitlement_and_changes_blocked.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_disable_entitlement_and_changes_blocked) # conversion for overdue_cancellation_policy [type = org.killbill.billing.overdue.api.OverdueCancellationPolicy] @overdue_cancellation_policy = Java::org.killbill.billing.overdue.api.OverdueCancellationPolicy.value_of( @overdue_cancellation_policy.to_s ) unless @overdue_cancellation_policy.nil? # conversion for is_clear_state [type = boolean] @is_clear_state = @is_clear_state.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_clear_state) # conversion for auto_reevaluation_interval [type = org.killbill.billing.catalog.api.Duration] @auto_reevaluation_interval = @auto_reevaluation_interval.to_java unless @auto_reevaluation_interval.nil? self end |
#to_ruby(j_obj) ⇒ Object
69 70 71 72 73 74 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 |
# File 'lib/killbill/gen/api/overdue_state.rb', line 69 def to_ruby(j_obj) # conversion for overdue_condition [type = org.killbill.billing.overdue.api.OverdueCondition] @overdue_condition = j_obj.overdue_condition @overdue_condition = Killbill::Plugin::Model::OverdueCondition.new.to_ruby(@overdue_condition) unless @overdue_condition.nil? # conversion for name [type = java.lang.String] @name = j_obj.name # conversion for external_message [type = java.lang.String] @external_message = j_obj. # conversion for is_block_changes [type = boolean] @is_block_changes = j_obj.is_block_changes if @is_block_changes.nil? @is_block_changes = false else tmp_bool = (@is_block_changes.java_kind_of? java.lang.Boolean) ? @is_block_changes.boolean_value : @is_block_changes @is_block_changes = tmp_bool ? true : false end # conversion for is_disable_entitlement_and_changes_blocked [type = boolean] @is_disable_entitlement_and_changes_blocked = j_obj.is_disable_entitlement_and_changes_blocked if @is_disable_entitlement_and_changes_blocked.nil? @is_disable_entitlement_and_changes_blocked = false else tmp_bool = (@is_disable_entitlement_and_changes_blocked.java_kind_of? java.lang.Boolean) ? @is_disable_entitlement_and_changes_blocked.boolean_value : @is_disable_entitlement_and_changes_blocked @is_disable_entitlement_and_changes_blocked = tmp_bool ? true : false end # conversion for overdue_cancellation_policy [type = org.killbill.billing.overdue.api.OverdueCancellationPolicy] @overdue_cancellation_policy = j_obj.overdue_cancellation_policy @overdue_cancellation_policy = @overdue_cancellation_policy.to_s.to_sym unless @overdue_cancellation_policy.nil? # conversion for is_clear_state [type = boolean] @is_clear_state = j_obj.is_clear_state if @is_clear_state.nil? @is_clear_state = false else tmp_bool = (@is_clear_state.java_kind_of? java.lang.Boolean) ? @is_clear_state.boolean_value : @is_clear_state @is_clear_state = tmp_bool ? true : false end # conversion for auto_reevaluation_interval [type = org.killbill.billing.catalog.api.Duration] @auto_reevaluation_interval = j_obj.auto_reevaluation_interval @auto_reevaluation_interval = Killbill::Plugin::Model::Duration.new.to_ruby(@auto_reevaluation_interval) unless @auto_reevaluation_interval.nil? self end |