Class: Clerk::Models::Operations::GetCommerceSubscriptionItemListRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(paginated: nil, status: nil, payer_type: nil, plan_id: nil, query: nil, limit: 10, offset: 0, include_free: false) ⇒ GetCommerceSubscriptionItemListRequest

Returns a new instance of GetCommerceSubscriptionItemListRequest.



38
39
40
41
42
43
44
45
46
47
# File 'lib/clerk/models/operations/getcommercesubscriptionitemlist_request.rb', line 38

def initialize(paginated: nil, status: nil, payer_type: nil, plan_id: nil, query: nil, limit: 10, offset: 0, include_free: false)
  @paginated = paginated
  @status = status
  @payer_type = payer_type
  @plan_id = plan_id
  @query = query
  @limit = limit
  @offset = offset
  @include_free = include_free
end

Instance Method Details

#==(other) ⇒ Object



50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/clerk/models/operations/getcommercesubscriptionitemlist_request.rb', line 50

def ==(other)
  return false unless other.is_a? self.class
  return false unless @paginated == other.paginated
  return false unless @status == other.status
  return false unless @payer_type == other.payer_type
  return false unless @plan_id == other.plan_id
  return false unless @query == other.query
  return false unless @limit == other.limit
  return false unless @offset == other.offset
  return false unless @include_free == other.include_free
  true
end