Class: FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Earning
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Earning
- 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
106 107 108 109 110 111 112 113 114 115 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 |
# File 'lib/finch_api/models/sandbox/payment_create_params.rb', line 106 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
#amount ⇒ Integer?
110 |
# File 'lib/finch_api/models/sandbox/payment_create_params.rb', line 110 optional :amount, Integer |
#hours ⇒ Float?
115 |
# File 'lib/finch_api/models/sandbox/payment_create_params.rb', line 115 optional :hours, Float |
#name ⇒ String?
120 |
# File 'lib/finch_api/models/sandbox/payment_create_params.rb', line 120 optional :name, String |