Class: FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Earning

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/finch_api/models/sandbox/payment_create_params.rb

Defined Under Namespace

Modules: Type

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(amount: nil, hours: nil, name: nil, type: nil) ⇒ Object

Parameters:



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/finch_api/models/sandbox/payment_create_params.rb', line 116

class Earning < FinchAPI::Internal::Type::BaseModel
  # @!attribute amount
  #
  #   @return [Integer, nil]
  optional :amount, Integer

  # @!attribute hours
  #
  #   @return [Float, nil]
  optional :hours, Float

  # @!attribute name
  #
  #   @return [String, nil]
  optional :name, String

  # @!attribute type
  #
  #   @return [Symbol, FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Earning::Type, nil]
  optional :type, enum: -> { FinchAPI::Sandbox::PaymentCreateParams::PayStatement::Earning::Type }

  # @!method initialize(amount: nil, hours: nil, name: nil, type: nil)
  #   @param amount [Integer]
  #   @param hours [Float]
  #   @param name [String]
  #   @param type [Symbol, FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Earning::Type]

  # @see FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Earning#type
  module Type
    extend FinchAPI::Internal::Type::Enum

    BONUS = :bonus
    COMMISSION = :commission
    DOUBLE_OVERTIME = :double_overtime
    OTHER = :other
    OVERTIME = :overtime
    PTO = :pto
    REIMBURSEMENT = :reimbursement
    SALARY = :salary
    SEVERANCE = :severance
    SICK = :sick
    TIPS = :tips
    WAGE = :wage
    TYPE_1099 = :"1099"

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#amountInteger?

Returns:

  • (Integer, nil)


120
# File 'lib/finch_api/models/sandbox/payment_create_params.rb', line 120

optional :amount, Integer

#hoursFloat?

Returns:

  • (Float, nil)


125
# File 'lib/finch_api/models/sandbox/payment_create_params.rb', line 125

optional :hours, Float

#nameString?

Returns:

  • (String, nil)


130
# File 'lib/finch_api/models/sandbox/payment_create_params.rb', line 130

optional :name, String

#typeSymbol, ...



135
# File 'lib/finch_api/models/sandbox/payment_create_params.rb', line 135

optional :type, enum: -> { FinchAPI::Sandbox::PaymentCreateParams::PayStatement::Earning::Type }