Class: Increase::Models::AccountStatementListParams::StatementPeriodStart

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/account_statement_list_params.rb,
sig/increase/models/account_statement_list_params.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil) ⇒ Object

Parameters:

  • after (Time) (defaults to: nil)

    Return results after this ISO 8601 timestamp.

  • before (Time) (defaults to: nil)

    Return results before this ISO 8601 timestamp.

  • on_or_after (Time) (defaults to: nil)

    Return results on or after this ISO 8601 timestamp.

  • on_or_before (Time) (defaults to: nil)

    Return results on or before this ISO 8601 timestamp.



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/increase/models/account_statement_list_params.rb', line 47

class StatementPeriodStart < Increase::Internal::Type::BaseModel
  # @!attribute after
  #   Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
  #   timestamp.
  #
  #   @return [Time, nil]
  optional :after, Time

  # @!attribute before
  #   Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
  #   timestamp.
  #
  #   @return [Time, nil]
  optional :before, Time

  # @!attribute on_or_after
  #   Return results on or after this
  #   [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
  #
  #   @return [Time, nil]
  optional :on_or_after, Time

  # @!attribute on_or_before
  #   Return results on or before this
  #   [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
  #
  #   @return [Time, nil]
  optional :on_or_before, Time

  # @!method initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil)
  #   @param after [Time]
  #     Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
  #     timestamp.
  #
  #   @param before [Time]
  #     Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
  #     timestamp.
  #
  #   @param on_or_after [Time]
  #     Return results on or after this
  #     [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
  #
  #   @param on_or_before [Time]
  #     Return results on or before this
  #     [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
end

Instance Attribute Details

#afterTime?

Return results after this ISO 8601 timestamp.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


53
# File 'lib/increase/models/account_statement_list_params.rb', line 53

optional :after, Time

#beforeTime?

Return results before this ISO 8601 timestamp.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


60
# File 'lib/increase/models/account_statement_list_params.rb', line 60

optional :before, Time

#on_or_afterTime?

Return results on or after this ISO 8601 timestamp.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


67
# File 'lib/increase/models/account_statement_list_params.rb', line 67

optional :on_or_after, Time

#on_or_beforeTime?

Return results on or before this ISO 8601 timestamp.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


74
# File 'lib/increase/models/account_statement_list_params.rb', line 74

optional :on_or_before, Time

Instance Method Details

#to_hash{

Returns:

  • ({)


77
# File 'sig/increase/models/account_statement_list_params.rbs', line 77

def to_hash: -> {