Class: OpenApiSDK::Models::Operations::ListPartnersRequest

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/open_api_sdk/models/operations/listpartners_request.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(group_id: nil, status: nil, country: nil, email: nil, tenant_id: nil, search: nil, page: nil, sort_by: Models::Operations::ListPartnersQueryParamSortBy::TOTAL_SALE_AMOUNT, sort_order: Models::Operations::ListPartnersQueryParamSortOrder::DESC, page_size: 100.0) ⇒ ListPartnersRequest

Returns a new instance of ListPartnersRequest.



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/open_api_sdk/models/operations/listpartners_request.rb', line 37

def initialize(group_id: nil, status: nil, country: nil, email: nil, tenant_id: nil, search: nil, page: nil, sort_by: Models::Operations::ListPartnersQueryParamSortBy::TOTAL_SALE_AMOUNT, sort_order: Models::Operations::ListPartnersQueryParamSortOrder::DESC, page_size: 100.0)
  @group_id = group_id
  @status = status
  @country = country
  @email = email
  @tenant_id = tenant_id
  @search = search
  @page = page
  @sort_by = sort_by
  @sort_order = sort_order
  @page_size = page_size
end

Instance Method Details

#==(other) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/open_api_sdk/models/operations/listpartners_request.rb', line 51

def ==(other)
  return false unless other.is_a? self.class
  return false unless @group_id == other.group_id
  return false unless @status == other.status
  return false unless @country == other.country
  return false unless @email == other.email
  return false unless @tenant_id == other.tenant_id
  return false unless @search == other.search
  return false unless @page == other.page
  return false unless @sort_by == other.sort_by
  return false unless @sort_order == other.sort_order
  return false unless @page_size == other.page_size
  true
end