Class: Killbill::Plugin::Model::DryRunArguments
- Defined in:
- lib/killbill/gen/api/dry_run_arguments.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#billing_action_policy ⇒ Object
Returns the value of attribute billing_action_policy.
-
#bundle_id ⇒ Object
Returns the value of attribute bundle_id.
-
#dry_run_type ⇒ Object
Returns the value of attribute dry_run_type.
-
#effective_date ⇒ Object
Returns the value of attribute effective_date.
-
#entitlement_specifier ⇒ Object
Returns the value of attribute entitlement_specifier.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
Instance Method Summary collapse
-
#initialize ⇒ DryRunArguments
constructor
A new instance of DryRunArguments.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ DryRunArguments
Returns a new instance of DryRunArguments.
39 40 |
# File 'lib/killbill/gen/api/dry_run_arguments.rb', line 39 def initialize() end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
37 38 39 |
# File 'lib/killbill/gen/api/dry_run_arguments.rb', line 37 def action @action end |
#billing_action_policy ⇒ Object
Returns the value of attribute billing_action_policy.
37 38 39 |
# File 'lib/killbill/gen/api/dry_run_arguments.rb', line 37 def billing_action_policy @billing_action_policy end |
#bundle_id ⇒ Object
Returns the value of attribute bundle_id.
37 38 39 |
# File 'lib/killbill/gen/api/dry_run_arguments.rb', line 37 def bundle_id @bundle_id end |
#dry_run_type ⇒ Object
Returns the value of attribute dry_run_type.
37 38 39 |
# File 'lib/killbill/gen/api/dry_run_arguments.rb', line 37 def dry_run_type @dry_run_type end |
#effective_date ⇒ Object
Returns the value of attribute effective_date.
37 38 39 |
# File 'lib/killbill/gen/api/dry_run_arguments.rb', line 37 def effective_date @effective_date end |
#entitlement_specifier ⇒ Object
Returns the value of attribute entitlement_specifier.
37 38 39 |
# File 'lib/killbill/gen/api/dry_run_arguments.rb', line 37 def entitlement_specifier @entitlement_specifier end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
37 38 39 |
# File 'lib/killbill/gen/api/dry_run_arguments.rb', line 37 def subscription_id @subscription_id 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 |
# File 'lib/killbill/gen/api/dry_run_arguments.rb', line 42 def to_java() # conversion for dry_run_type [type = org.killbill.billing.invoice.api.DryRunType] @dry_run_type = Java::org.killbill.billing.invoice.api.DryRunType.value_of( @dry_run_type.to_s ) unless @dry_run_type.nil? # conversion for entitlement_specifier [type = org.killbill.billing.entitlement.api.EntitlementSpecifier] @entitlement_specifier = @entitlement_specifier.to_java unless @entitlement_specifier.nil? # conversion for action [type = org.killbill.billing.entitlement.api.SubscriptionEventType] @action = Java::org.killbill.billing.entitlement.api.SubscriptionEventType.value_of( @action.to_s ) unless @action.nil? # conversion for subscription_id [type = java.util.UUID] @subscription_id = java.util.UUID.fromString(@subscription_id.to_s) unless @subscription_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 bundle_id [type = java.util.UUID] @bundle_id = java.util.UUID.fromString(@bundle_id.to_s) unless @bundle_id.nil? # conversion for billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy] @billing_action_policy = Java::org.killbill.billing.catalog.api.BillingActionPolicy.value_of( @billing_action_policy.to_s ) unless @billing_action_policy.nil? self end |
#to_ruby(j_obj) ⇒ Object
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/dry_run_arguments.rb', line 68 def to_ruby(j_obj) # conversion for dry_run_type [type = org.killbill.billing.invoice.api.DryRunType] @dry_run_type = j_obj.dry_run_type @dry_run_type = @dry_run_type.to_s.to_sym unless @dry_run_type.nil? # conversion for entitlement_specifier [type = org.killbill.billing.entitlement.api.EntitlementSpecifier] @entitlement_specifier = j_obj.entitlement_specifier @entitlement_specifier = Killbill::Plugin::Model::EntitlementSpecifier.new.to_ruby(@entitlement_specifier) unless @entitlement_specifier.nil? # conversion for action [type = org.killbill.billing.entitlement.api.SubscriptionEventType] @action = j_obj.action @action = @action.to_s.to_sym unless @action.nil? # conversion for subscription_id [type = java.util.UUID] @subscription_id = j_obj.subscription_id @subscription_id = @subscription_id.nil? ? nil : @subscription_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 bundle_id [type = java.util.UUID] @bundle_id = j_obj.bundle_id @bundle_id = @bundle_id.nil? ? nil : @bundle_id.to_s # conversion for billing_action_policy [type = org.killbill.billing.catalog.api.BillingActionPolicy] @billing_action_policy = j_obj.billing_action_policy @billing_action_policy = @billing_action_policy.to_s.to_sym unless @billing_action_policy.nil? self end |