Class: Killbill::Plugin::Model::ExtBusEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/killbill/gen/plugin-api/ext_bus_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExtBusEvent

Returns a new instance of ExtBusEvent.



39
40
# File 'lib/killbill/gen/plugin-api/ext_bus_event.rb', line 39

def initialize()
end

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



37
38
39
# File 'lib/killbill/gen/plugin-api/ext_bus_event.rb', line 37

def 
  @account_id
end

#event_typeObject

Returns the value of attribute event_type.



37
38
39
# File 'lib/killbill/gen/plugin-api/ext_bus_event.rb', line 37

def event_type
  @event_type
end

#meta_dataObject

Returns the value of attribute meta_data.



37
38
39
# File 'lib/killbill/gen/plugin-api/ext_bus_event.rb', line 37

def 
  @meta_data
end

#object_idObject

Returns the value of attribute object_id.



37
38
39
# File 'lib/killbill/gen/plugin-api/ext_bus_event.rb', line 37

def object_id
  @object_id
end

#object_typeObject

Returns the value of attribute object_type.



37
38
39
# File 'lib/killbill/gen/plugin-api/ext_bus_event.rb', line 37

def object_type
  @object_type
end

#tenant_idObject

Returns the value of attribute tenant_id.



37
38
39
# File 'lib/killbill/gen/plugin-api/ext_bus_event.rb', line 37

def tenant_id
  @tenant_id
end

#user_tokenObject

Returns the value of attribute user_token.



37
38
39
# File 'lib/killbill/gen/plugin-api/ext_bus_event.rb', line 37

def user_token
  @user_token
end

Instance Method Details

#to_javaObject



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/killbill/gen/plugin-api/ext_bus_event.rb', line 42

def to_java()
  # conversion for event_type [type = org.killbill.billing.notification.plugin.api.ExtBusEventType]
  @event_type = Java::org.killbill.billing.notification.plugin.api.ExtBusEventType.value_of( @event_type.to_s ) unless @event_type.nil?

  # conversion for object_type [type = org.killbill.billing.ObjectType]
  @object_type = Java::org.killbill.billing.ObjectType.value_of( @object_type.to_s ) unless @object_type.nil?

  # conversion for object_id [type = java.util.UUID]
  @object_id = java.util.UUID.fromString(@object_id.to_s) unless @object_id.nil?

  # conversion for meta_data [type = java.lang.String]
  @meta_data = @meta_data.to_s unless @meta_data.nil?

  # conversion for account_id [type = java.util.UUID]
  @account_id = java.util.UUID.fromString(@account_id.to_s) unless @account_id.nil?

  # conversion for tenant_id [type = java.util.UUID]
  @tenant_id = java.util.UUID.fromString(@tenant_id.to_s) unless @tenant_id.nil?

  # conversion for user_token [type = java.util.UUID]
  @user_token = java.util.UUID.fromString(@user_token.to_s) unless @user_token.nil?
  self
end

#to_ruby(j_obj) ⇒ Object



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
# File 'lib/killbill/gen/plugin-api/ext_bus_event.rb', line 66

def to_ruby(j_obj)
  # conversion for event_type [type = org.killbill.billing.notification.plugin.api.ExtBusEventType]
  @event_type = j_obj.event_type
  @event_type = @event_type.to_s.to_sym unless @event_type.nil?

  # conversion for object_type [type = org.killbill.billing.ObjectType]
  @object_type = j_obj.object_type
  @object_type = @object_type.to_s.to_sym unless @object_type.nil?

  # conversion for object_id [type = java.util.UUID]
  @object_id = j_obj.object_id
  @object_id = @object_id.nil? ? nil : @object_id.to_s

  # conversion for meta_data [type = java.lang.String]
  @meta_data = j_obj.

  # conversion for account_id [type = java.util.UUID]
  @account_id = j_obj.
  @account_id = @account_id.nil? ? nil : @account_id.to_s

  # conversion for tenant_id [type = java.util.UUID]
  @tenant_id = j_obj.tenant_id
  @tenant_id = @tenant_id.nil? ? nil : @tenant_id.to_s

  # conversion for user_token [type = java.util.UUID]
  @user_token = j_obj.user_token
  @user_token = @user_token.nil? ? nil : @user_token.to_s
  self
end