Class: OpenApiSDK::Models::Operations::GetCustomersRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(email: nil, external_id: nil, search: nil, country: nil, link_id: nil, program_id: nil, partner_id: nil, include_expanded_fields: nil, ending_before: nil, starting_after: nil, page: nil, sort_by: Models::Operations::GetCustomersQueryParamSortBy::CREATED_AT, sort_order: Models::Operations::GetCustomersQueryParamSortOrder::DESC, page_size: 100.0) ⇒ GetCustomersRequest

Returns a new instance of GetCustomersRequest.



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/open_api_sdk/models/operations/getcustomers_request.rb', line 45

def initialize(email: nil, external_id: nil, search: nil, country: nil, link_id: nil, program_id: nil, partner_id: nil, include_expanded_fields: nil, ending_before: nil, starting_after: nil, page: nil, sort_by: Models::Operations::GetCustomersQueryParamSortBy::CREATED_AT, sort_order: Models::Operations::GetCustomersQueryParamSortOrder::DESC, page_size: 100.0)
  @email = email
  @external_id = external_id
  @search = search
  @country = country
  @link_id = link_id
  @program_id = program_id
  @partner_id = partner_id
  @include_expanded_fields = include_expanded_fields
  @ending_before = ending_before
  @starting_after = starting_after
  @page = page
  @sort_by = sort_by
  @sort_order = sort_order
  @page_size = page_size
end

Instance Method Details

#==(other) ⇒ Object



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/open_api_sdk/models/operations/getcustomers_request.rb', line 63

def ==(other)
  return false unless other.is_a? self.class
  return false unless @email == other.email
  return false unless @external_id == other.external_id
  return false unless @search == other.search
  return false unless @country == other.country
  return false unless @link_id == other.link_id
  return false unless @program_id == other.program_id
  return false unless @partner_id == other.partner_id
  return false unless @include_expanded_fields == other.include_expanded_fields
  return false unless @ending_before == other.ending_before
  return false unless @starting_after == other.starting_after
  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