Class: FinchAPI::Models::Sandbox::PaymentCreateParams::PayStatement::Earning
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/finch_api/models/sandbox/payment_create_params.rb,
sig/finch_api/models/sandbox/payment_create_params.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#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
optional :amount, Integer
optional :hours, Float
optional :name, String
optional :type, enum: -> { FinchAPI::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"
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
|
#type ⇒ Symbol, ...
125
|
# File 'lib/finch_api/models/sandbox/payment_create_params.rb', line 125
optional :type, enum: -> { FinchAPI::Sandbox::PaymentCreateParams::PayStatement::Earning::Type }
|
Instance Method Details
#to_hash ⇒ {
161
|
# File 'sig/finch_api/models/sandbox/payment_create_params.rbs', line 161
def to_hash: -> {
|