Class: Clerk::Models::Components::CreateBillingPriceRequest

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/components/createbillingpricerequest.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(plan_id:, amount:, annual_monthly_amount: nil, description: nil, currency: 'USD') ⇒ CreateBillingPriceRequest

Returns a new instance of CreateBillingPriceRequest.



27
28
29
30
31
32
33
# File 'lib/clerk/models/components/createbillingpricerequest.rb', line 27

def initialize(plan_id:, amount:, annual_monthly_amount: nil, description: nil, currency: 'USD')
  @plan_id = plan_id
  @amount = amount
  @annual_monthly_amount = annual_monthly_amount
  @description = description
  @currency = currency
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/clerk/models/components/createbillingpricerequest.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @plan_id == other.plan_id
  return false unless @amount == other.amount
  return false unless @annual_monthly_amount == other.annual_monthly_amount
  return false unless @description == other.description
  return false unless @currency == other.currency
  true
end