Class: Clerk::Models::Components::SchemasCommercePlan
- Inherits:
-
Object
- Object
- Clerk::Models::Components::SchemasCommercePlan
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/schemas_commerceplan.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, name:, fee:, annual_monthly_fee:, annual_fee:, amount:, amount_formatted:, annual_monthly_amount:, annual_monthly_amount_formatted:, annual_amount:, annual_amount_formatted:, currency_symbol:, currency:, description:, product_id:, is_default:, is_recurring:, publicly_visible:, has_base_fee:, payer_type:, for_payer_type:, slug:, avatar_url:, features:, period: nil, interval: nil, free_trial_enabled: nil, free_trial_days: nil) ⇒ SchemasCommercePlan
constructor
A new instance of SchemasCommercePlan.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, name:, fee:, annual_monthly_fee:, annual_fee:, amount:, amount_formatted:, annual_monthly_amount:, annual_monthly_amount_formatted:, annual_amount:, annual_amount_formatted:, currency_symbol:, currency:, description:, product_id:, is_default:, is_recurring:, publicly_visible:, has_base_fee:, payer_type:, for_payer_type:, slug:, avatar_url:, features:, period: nil, interval: nil, free_trial_enabled: nil, free_trial_days: nil) ⇒ SchemasCommercePlan
Returns a new instance of SchemasCommercePlan.
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 |
# File 'lib/clerk/models/components/schemas_commerceplan.rb', line 75 def initialize(object:, id:, name:, fee:, annual_monthly_fee:, annual_fee:, amount:, amount_formatted:, annual_monthly_amount:, annual_monthly_amount_formatted:, annual_amount:, annual_amount_formatted:, currency_symbol:, currency:, description:, product_id:, is_default:, is_recurring:, publicly_visible:, has_base_fee:, payer_type:, for_payer_type:, slug:, avatar_url:, features:, period: nil, interval: nil, free_trial_enabled: nil, free_trial_days: nil) @object = object @id = id @name = name @fee = fee @annual_monthly_fee = annual_monthly_fee @annual_fee = annual_fee @amount = amount @amount_formatted = amount_formatted @annual_monthly_amount = annual_monthly_amount @annual_monthly_amount_formatted = annual_monthly_amount_formatted @annual_amount = annual_amount @annual_amount_formatted = annual_amount_formatted @currency_symbol = currency_symbol @currency = currency @description = description @product_id = product_id @is_default = is_default @is_recurring = is_recurring @publicly_visible = publicly_visible @has_base_fee = has_base_fee @payer_type = payer_type @for_payer_type = for_payer_type @slug = slug @avatar_url = avatar_url @features = features @period = period @interval = interval @free_trial_enabled = free_trial_enabled @free_trial_days = free_trial_days end |
Instance Method Details
#==(other) ⇒ Object
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 |
# File 'lib/clerk/models/components/schemas_commerceplan.rb', line 108 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @id == other.id return false unless @name == other.name return false unless @fee == other.fee return false unless @annual_monthly_fee == other.annual_monthly_fee return false unless @annual_fee == other.annual_fee return false unless @amount == other.amount return false unless @amount_formatted == other.amount_formatted return false unless @annual_monthly_amount == other.annual_monthly_amount return false unless @annual_monthly_amount_formatted == other.annual_monthly_amount_formatted return false unless @annual_amount == other.annual_amount return false unless @annual_amount_formatted == other.annual_amount_formatted return false unless @currency_symbol == other.currency_symbol return false unless @currency == other.currency return false unless @description == other.description return false unless @product_id == other.product_id return false unless @is_default == other.is_default return false unless @is_recurring == other.is_recurring return false unless @publicly_visible == other.publicly_visible return false unless @has_base_fee == other.has_base_fee return false unless @payer_type == other.payer_type return false unless @for_payer_type == other.for_payer_type return false unless @slug == other.slug return false unless @avatar_url == other.avatar_url return false unless @features == other.features return false unless @period == other.period return false unless @interval == other.interval return false unless @free_trial_enabled == other.free_trial_enabled return false unless @free_trial_days == other.free_trial_days true end |