Class: Killbill::Plugin::Model::SubscriptionBundleTimeline
- Defined in:
- lib/killbill/gen/api/subscription_bundle_timeline.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#bundle_id ⇒ Object
Returns the value of attribute bundle_id.
-
#external_key ⇒ Object
Returns the value of attribute external_key.
-
#subscription_events ⇒ Object
Returns the value of attribute subscription_events.
Instance Method Summary collapse
-
#initialize ⇒ SubscriptionBundleTimeline
constructor
A new instance of SubscriptionBundleTimeline.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ SubscriptionBundleTimeline
Returns a new instance of SubscriptionBundleTimeline.
39 40 |
# File 'lib/killbill/gen/api/subscription_bundle_timeline.rb', line 39 def initialize() end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_bundle_timeline.rb', line 37 def account_id @account_id end |
#bundle_id ⇒ Object
Returns the value of attribute bundle_id.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_bundle_timeline.rb', line 37 def bundle_id @bundle_id end |
#external_key ⇒ Object
Returns the value of attribute external_key.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_bundle_timeline.rb', line 37 def external_key @external_key end |
#subscription_events ⇒ Object
Returns the value of attribute subscription_events.
37 38 39 |
# File 'lib/killbill/gen/api/subscription_bundle_timeline.rb', line 37 def subscription_events @subscription_events 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/subscription_bundle_timeline.rb', line 42 def to_java() # conversion for account_id [type = java.util.UUID] @account_id = java.util.UUID.fromString(@account_id.to_s) unless @account_id.nil? # conversion for bundle_id [type = java.util.UUID] @bundle_id = java.util.UUID.fromString(@bundle_id.to_s) unless @bundle_id.nil? # conversion for external_key [type = java.lang.String] @external_key = @external_key.to_s unless @external_key.nil? # conversion for subscription_events [type = java.util.List] tmp = java.util.ArrayList.new (@subscription_events || []).each do |m| # conversion for m [type = org.killbill.billing.entitlement.api.SubscriptionEvent] m = m.to_java unless m.nil? tmp.add(m) end @subscription_events = tmp 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 |
# File 'lib/killbill/gen/api/subscription_bundle_timeline.rb', line 63 def to_ruby(j_obj) # conversion for account_id [type = java.util.UUID] @account_id = j_obj.account_id @account_id = @account_id.nil? ? nil : @account_id.to_s # conversion for bundle_id [type = java.util.UUID] @bundle_id = j_obj.bundle_id @bundle_id = @bundle_id.nil? ? nil : @bundle_id.to_s # conversion for external_key [type = java.lang.String] @external_key = j_obj.external_key # conversion for subscription_events [type = java.util.List] @subscription_events = j_obj.subscription_events tmp = [] (@subscription_events || []).each do |m| # conversion for m [type = org.killbill.billing.entitlement.api.SubscriptionEvent] m = Killbill::Plugin::Model::SubscriptionEvent.new.to_ruby(m) unless m.nil? tmp << m end @subscription_events = tmp self end |