Class: Clerk::Models::Components::SchemasCommerceSubscriptionItem
- Inherits:
-
Object
- Object
- Clerk::Models::Components::SchemasCommerceSubscriptionItem
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/schemas_commercesubscriptionitem.rb
Overview
A commerce subscription item.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, instance_id:, status:, plan_id:, plan_period:, payment_source_id:, payer_id:, is_free_trial:, proration_date:, created_at:, updated_at:, price_id: nil, plan: nil, credit: nil, payment_source: nil, lifetime_paid: nil, amount: nil, next_invoice: nil, next_payment: nil, payer: nil, period_start: nil, period_end: nil, canceled_at: nil, past_due_at: nil, ended_at: nil) ⇒ SchemasCommerceSubscriptionItem
constructor
A new instance of SchemasCommerceSubscriptionItem.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, instance_id:, status:, plan_id:, plan_period:, payment_source_id:, payer_id:, is_free_trial:, proration_date:, created_at:, updated_at:, price_id: nil, plan: nil, credit: nil, payment_source: nil, lifetime_paid: nil, amount: nil, next_invoice: nil, next_payment: nil, payer: nil, period_start: nil, period_end: nil, canceled_at: nil, past_due_at: nil, ended_at: nil) ⇒ SchemasCommerceSubscriptionItem
Returns a new instance of SchemasCommerceSubscriptionItem.
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 |
# File 'lib/clerk/models/components/schemas_commercesubscriptionitem.rb', line 69 def initialize(object:, id:, instance_id:, status:, plan_id:, plan_period:, payment_source_id:, payer_id:, is_free_trial:, proration_date:, created_at:, updated_at:, price_id: nil, plan: nil, credit: nil, payment_source: nil, lifetime_paid: nil, amount: nil, next_invoice: nil, next_payment: nil, payer: nil, period_start: nil, period_end: nil, canceled_at: nil, past_due_at: nil, ended_at: nil) @object = object @id = id @instance_id = instance_id @status = status @plan_id = plan_id @plan_period = plan_period @payment_source_id = payment_source_id @payer_id = payer_id @is_free_trial = is_free_trial @proration_date = proration_date @created_at = created_at @updated_at = updated_at @price_id = price_id @plan = plan @credit = credit @payment_source = payment_source @lifetime_paid = lifetime_paid @amount = amount @next_invoice = next_invoice @next_payment = next_payment @payer = payer @period_start = period_start @period_end = period_end @canceled_at = canceled_at @past_due_at = past_due_at @ended_at = ended_at end |
Instance Method Details
#==(other) ⇒ Object
99 100 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 |
# File 'lib/clerk/models/components/schemas_commercesubscriptionitem.rb', line 99 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 @instance_id == other.instance_id return false unless @status == other.status return false unless @plan_id == other.plan_id return false unless @plan_period == other.plan_period return false unless @payment_source_id == other.payment_source_id return false unless @payer_id == other.payer_id return false unless @is_free_trial == other.is_free_trial return false unless @proration_date == other.proration_date return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @price_id == other.price_id return false unless @plan == other.plan return false unless @credit == other.credit return false unless @payment_source == other.payment_source return false unless @lifetime_paid == other.lifetime_paid return false unless @amount == other.amount return false unless @next_invoice == other.next_invoice return false unless @next_payment == other.next_payment return false unless @payer == other.payer return false unless @period_start == other.period_start return false unless @period_end == other.period_end return false unless @canceled_at == other.canceled_at return false unless @past_due_at == other.past_due_at return false unless @ended_at == other.ended_at true end |