Class: Killbill::Plugin::Model::SubscriptionEvent
- Defined in:
- lib/killbill/gen/api/subscription_event.rb
Instance Attribute Summary collapse
-
#effective_date ⇒ Object
Returns the value of attribute effective_date.
-
#entitlement_id ⇒ Object
Returns the value of attribute entitlement_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_blocked_billing ⇒ Object
Returns the value of attribute is_blocked_billing.
-
#is_blocked_entitlement ⇒ Object
Returns the value of attribute is_blocked_entitlement.
-
#next_billing_period ⇒ Object
Returns the value of attribute next_billing_period.
-
#next_phase ⇒ Object
Returns the value of attribute next_phase.
-
#next_plan ⇒ Object
Returns the value of attribute next_plan.
-
#next_price_list ⇒ Object
Returns the value of attribute next_price_list.
-
#next_product ⇒ Object
Returns the value of attribute next_product.
-
#prev_billing_period ⇒ Object
Returns the value of attribute prev_billing_period.
-
#prev_phase ⇒ Object
Returns the value of attribute prev_phase.
-
#prev_plan ⇒ Object
Returns the value of attribute prev_plan.
-
#prev_price_list ⇒ Object
Returns the value of attribute prev_price_list.
-
#prev_product ⇒ Object
Returns the value of attribute prev_product.
-
#service_name ⇒ Object
Returns the value of attribute service_name.
-
#service_state_name ⇒ Object
Returns the value of attribute service_state_name.
-
#subscription_event_type ⇒ Object
Returns the value of attribute subscription_event_type.
Instance Method Summary collapse
-
#initialize ⇒ SubscriptionEvent
constructor
A new instance of SubscriptionEvent.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ SubscriptionEvent
Returns a new instance of SubscriptionEvent.
39 40 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 39 def initialize() end |
Instance Attribute Details
#effective_date ⇒ Object
Returns the value of attribute effective_date.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def effective_date @effective_date end |
#entitlement_id ⇒ Object
Returns the value of attribute entitlement_id.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def entitlement_id @entitlement_id end |
#id ⇒ Object
Returns the value of attribute id.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def id @id end |
#is_blocked_billing ⇒ Object
Returns the value of attribute is_blocked_billing.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def is_blocked_billing @is_blocked_billing end |
#is_blocked_entitlement ⇒ Object
Returns the value of attribute is_blocked_entitlement.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def is_blocked_entitlement @is_blocked_entitlement end |
#next_billing_period ⇒ Object
Returns the value of attribute next_billing_period.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def next_billing_period @next_billing_period end |
#next_phase ⇒ Object
Returns the value of attribute next_phase.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def next_phase @next_phase end |
#next_plan ⇒ Object
Returns the value of attribute next_plan.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def next_plan @next_plan end |
#next_price_list ⇒ Object
Returns the value of attribute next_price_list.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def next_price_list @next_price_list end |
#next_product ⇒ Object
Returns the value of attribute next_product.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def next_product @next_product end |
#prev_billing_period ⇒ Object
Returns the value of attribute prev_billing_period.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def prev_billing_period @prev_billing_period end |
#prev_phase ⇒ Object
Returns the value of attribute prev_phase.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def prev_phase @prev_phase end |
#prev_plan ⇒ Object
Returns the value of attribute prev_plan.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def prev_plan @prev_plan end |
#prev_price_list ⇒ Object
Returns the value of attribute prev_price_list.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def prev_price_list @prev_price_list end |
#prev_product ⇒ Object
Returns the value of attribute prev_product.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def prev_product @prev_product end |
#service_name ⇒ Object
Returns the value of attribute service_name.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def service_name @service_name end |
#service_state_name ⇒ Object
Returns the value of attribute service_state_name.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def service_state_name @service_state_name end |
#subscription_event_type ⇒ Object
Returns the value of attribute subscription_event_type.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 37 def subscription_event_type @subscription_event_type 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 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 |
# File 'lib/killbill/gen/api/subscription_event.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 entitlement_id [type = java.util.UUID] @entitlement_id = java.util.UUID.fromString(@entitlement_id.to_s) unless @entitlement_id.nil? # conversion for effective_date [type = org.joda.time.LocalDate] if !@effective_date.nil? @effective_date = Java::org.joda.time.LocalDate.parse(@effective_date.to_s) end # conversion for subscription_event_type [type = org.killbill.billing.entitlement.api.SubscriptionEventType] @subscription_event_type = Java::org.killbill.billing.entitlement.api.SubscriptionEventType.value_of( @subscription_event_type.to_s ) unless @subscription_event_type.nil? # conversion for is_blocked_billing [type = boolean] @is_blocked_billing = @is_blocked_billing.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_blocked_billing) # conversion for is_blocked_entitlement [type = boolean] @is_blocked_entitlement = @is_blocked_entitlement.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_blocked_entitlement) # conversion for service_name [type = java.lang.String] @service_name = @service_name.to_s unless @service_name.nil? # conversion for service_state_name [type = java.lang.String] @service_state_name = @service_state_name.to_s unless @service_state_name.nil? # conversion for prev_product [type = org.killbill.billing.catalog.api.Product] @prev_product = @prev_product.to_java unless @prev_product.nil? # conversion for prev_plan [type = org.killbill.billing.catalog.api.Plan] @prev_plan = @prev_plan.to_java unless @prev_plan.nil? # conversion for prev_phase [type = org.killbill.billing.catalog.api.PlanPhase] @prev_phase = @prev_phase.to_java unless @prev_phase.nil? # conversion for prev_price_list [type = org.killbill.billing.catalog.api.PriceList] @prev_price_list = @prev_price_list.to_java unless @prev_price_list.nil? # conversion for prev_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @prev_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @prev_billing_period.to_s ) unless @prev_billing_period.nil? # conversion for next_product [type = org.killbill.billing.catalog.api.Product] @next_product = @next_product.to_java unless @next_product.nil? # conversion for next_plan [type = org.killbill.billing.catalog.api.Plan] @next_plan = @next_plan.to_java unless @next_plan.nil? # conversion for next_phase [type = org.killbill.billing.catalog.api.PlanPhase] @next_phase = @next_phase.to_java unless @next_phase.nil? # conversion for next_price_list [type = org.killbill.billing.catalog.api.PriceList] @next_price_list = @next_price_list.to_java unless @next_price_list.nil? # conversion for next_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @next_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of( @next_billing_period.to_s ) unless @next_billing_period.nil? self end |
#to_ruby(j_obj) ⇒ Object
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
# File 'lib/killbill/gen/api/subscription_event.rb', line 101 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 entitlement_id [type = java.util.UUID] @entitlement_id = j_obj.entitlement_id @entitlement_id = @entitlement_id.nil? ? nil : @entitlement_id.to_s # conversion for effective_date [type = org.joda.time.LocalDate] @effective_date = j_obj.effective_date if !@effective_date.nil? @effective_date = @effective_date.to_s end # conversion for subscription_event_type [type = org.killbill.billing.entitlement.api.SubscriptionEventType] @subscription_event_type = j_obj.subscription_event_type @subscription_event_type = @subscription_event_type.to_s.to_sym unless @subscription_event_type.nil? # conversion for is_blocked_billing [type = boolean] @is_blocked_billing = j_obj.is_blocked_billing if @is_blocked_billing.nil? @is_blocked_billing = false else tmp_bool = (@is_blocked_billing.java_kind_of? java.lang.Boolean) ? @is_blocked_billing.boolean_value : @is_blocked_billing @is_blocked_billing = tmp_bool ? true : false end # conversion for is_blocked_entitlement [type = boolean] @is_blocked_entitlement = j_obj.is_blocked_entitlement if @is_blocked_entitlement.nil? @is_blocked_entitlement = false else tmp_bool = (@is_blocked_entitlement.java_kind_of? java.lang.Boolean) ? @is_blocked_entitlement.boolean_value : @is_blocked_entitlement @is_blocked_entitlement = tmp_bool ? true : false end # conversion for service_name [type = java.lang.String] @service_name = j_obj.service_name # conversion for service_state_name [type = java.lang.String] @service_state_name = j_obj.service_state_name # conversion for prev_product [type = org.killbill.billing.catalog.api.Product] @prev_product = j_obj.prev_product @prev_product = Killbill::Plugin::Model::Product.new.to_ruby(@prev_product) unless @prev_product.nil? # conversion for prev_plan [type = org.killbill.billing.catalog.api.Plan] @prev_plan = j_obj.prev_plan @prev_plan = Killbill::Plugin::Model::Plan.new.to_ruby(@prev_plan) unless @prev_plan.nil? # conversion for prev_phase [type = org.killbill.billing.catalog.api.PlanPhase] @prev_phase = j_obj.prev_phase @prev_phase = Killbill::Plugin::Model::PlanPhase.new.to_ruby(@prev_phase) unless @prev_phase.nil? # conversion for prev_price_list [type = org.killbill.billing.catalog.api.PriceList] @prev_price_list = j_obj.prev_price_list @prev_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@prev_price_list) unless @prev_price_list.nil? # conversion for prev_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @prev_billing_period = j_obj.prev_billing_period @prev_billing_period = @prev_billing_period.to_s.to_sym unless @prev_billing_period.nil? # conversion for next_product [type = org.killbill.billing.catalog.api.Product] @next_product = j_obj.next_product @next_product = Killbill::Plugin::Model::Product.new.to_ruby(@next_product) unless @next_product.nil? # conversion for next_plan [type = org.killbill.billing.catalog.api.Plan] @next_plan = j_obj.next_plan @next_plan = Killbill::Plugin::Model::Plan.new.to_ruby(@next_plan) unless @next_plan.nil? # conversion for next_phase [type = org.killbill.billing.catalog.api.PlanPhase] @next_phase = j_obj.next_phase @next_phase = Killbill::Plugin::Model::PlanPhase.new.to_ruby(@next_phase) unless @next_phase.nil? # conversion for next_price_list [type = org.killbill.billing.catalog.api.PriceList] @next_price_list = j_obj.next_price_list @next_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@next_price_list) unless @next_price_list.nil? # conversion for next_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod] @next_billing_period = j_obj.next_billing_period @next_billing_period = @next_billing_period.to_s.to_sym unless @next_billing_period.nil? self end |