Class: GustoEmbedded::Models::Operations::GetInvoicesInvoicePeriodRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(invoice_period:, page: nil, per: nil, company_uuids: nil, x_gusto_api_version: Models::Operations::GetInvoicesInvoicePeriodHeaderXGustoAPIVersion::TWO_THOUSAND_AND_TWENTY_FIVE_MINUS_06_MINUS_15) ⇒ GetInvoicesInvoicePeriodRequest

Returns a new instance of GetInvoicesInvoicePeriodRequest.



27
28
29
30
31
32
33
# File 'lib/gusto_embedded/models/operations/get_invoices_invoice_period_request.rb', line 27

def initialize(invoice_period:, page: nil, per: nil, company_uuids: nil, x_gusto_api_version: Models::Operations::GetInvoicesInvoicePeriodHeaderXGustoAPIVersion::TWO_THOUSAND_AND_TWENTY_FIVE_MINUS_06_MINUS_15)
  @invoice_period = invoice_period
  @page = page
  @per = per
  @company_uuids = company_uuids
  @x_gusto_api_version = x_gusto_api_version
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/gusto_embedded/models/operations/get_invoices_invoice_period_request.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @invoice_period == other.invoice_period
  return false unless @page == other.page
  return false unless @per == other.per
  return false unless @company_uuids == other.company_uuids
  return false unless @x_gusto_api_version == other.x_gusto_api_version
  true
end