Class: Onlyfans::Models::TransactionListResponse::Data::List

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onlyfans/models/transaction_list_response.rb

Defined Under Namespace

Classes: User

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(id: nil, amount: nil, created_at: nil, currency: nil, description: nil, fee: nil, net: nil, payout_pending_days: nil, status: nil, tax_amount: nil, type: nil, user: nil, vat_amount: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)
  • amount (Float) (defaults to: nil)
  • created_at (String) (defaults to: nil)
  • currency (String) (defaults to: nil)
  • description (String) (defaults to: nil)
  • fee (Integer) (defaults to: nil)
  • net (Float) (defaults to: nil)
  • payout_pending_days (Integer) (defaults to: nil)
  • status (String) (defaults to: nil)
  • tax_amount (Integer) (defaults to: nil)
  • type (String) (defaults to: nil)
  • user (Onlyfans::Models::TransactionListResponse::Data::List::User) (defaults to: nil)
  • vat_amount (Integer) (defaults to: nil)


159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
# File 'lib/onlyfans/models/transaction_list_response.rb', line 159

class List < Onlyfans::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [String, nil]
  optional :id, String

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

  # @!attribute created_at
  #
  #   @return [String, nil]
  optional :created_at, String, api_name: :createdAt

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

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

  # @!attribute fee
  #
  #   @return [Integer, nil]
  optional :fee, Integer

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

  # @!attribute payout_pending_days
  #
  #   @return [Integer, nil]
  optional :payout_pending_days, Integer, api_name: :payoutPendingDays

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

  # @!attribute tax_amount
  #
  #   @return [Integer, nil]
  optional :tax_amount, Integer, api_name: :taxAmount

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

  # @!attribute user
  #
  #   @return [Onlyfans::Models::TransactionListResponse::Data::List::User, nil]
  optional :user, -> { Onlyfans::Models::TransactionListResponse::Data::List::User }

  # @!attribute vat_amount
  #
  #   @return [Integer, nil]
  optional :vat_amount, Integer, api_name: :vatAmount

  # @!method initialize(id: nil, amount: nil, created_at: nil, currency: nil, description: nil, fee: nil, net: nil, payout_pending_days: nil, status: nil, tax_amount: nil, type: nil, user: nil, vat_amount: nil)
  #   @param id [String]
  #   @param amount [Float]
  #   @param created_at [String]
  #   @param currency [String]
  #   @param description [String]
  #   @param fee [Integer]
  #   @param net [Float]
  #   @param payout_pending_days [Integer]
  #   @param status [String]
  #   @param tax_amount [Integer]
  #   @param type [String]
  #   @param user [Onlyfans::Models::TransactionListResponse::Data::List::User]
  #   @param vat_amount [Integer]

  # @see Onlyfans::Models::TransactionListResponse::Data::List#user
  class User < Onlyfans::Internal::Type::BaseModel
    # @!attribute id
    #
    #   @return [Integer, nil]
    optional :id, Integer

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

    # @!attribute avatar_thumbs
    #
    #   @return [Onlyfans::Models::TransactionListResponse::Data::List::User::AvatarThumbs, nil]
    optional :avatar_thumbs,
             -> { Onlyfans::Models::TransactionListResponse::Data::List::User::AvatarThumbs },
             api_name: :avatarThumbs

    # @!attribute is_verified
    #
    #   @return [Boolean, nil]
    optional :is_verified, Onlyfans::Internal::Type::Boolean, api_name: :isVerified

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

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

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

    # @!method initialize(id: nil, avatar: nil, avatar_thumbs: nil, is_verified: nil, name: nil, username: nil, view: nil)
    #   @param id [Integer]
    #   @param avatar [String]
    #   @param avatar_thumbs [Onlyfans::Models::TransactionListResponse::Data::List::User::AvatarThumbs]
    #   @param is_verified [Boolean]
    #   @param name [String]
    #   @param username [String]
    #   @param view [String]

    # @see Onlyfans::Models::TransactionListResponse::Data::List::User#avatar_thumbs
    class AvatarThumbs < Onlyfans::Internal::Type::BaseModel
      # @!attribute c144
      #
      #   @return [String, nil]
      optional :c144, String

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

      # @!method initialize(c144: nil, c50: nil)
      #   @param c144 [String]
      #   @param c50 [String]
    end
  end
end

Instance Attribute Details

#amountFloat?

Returns:

  • (Float, nil)


168
# File 'lib/onlyfans/models/transaction_list_response.rb', line 168

optional :amount, Float

#created_atString?

Returns:

  • (String, nil)


173
# File 'lib/onlyfans/models/transaction_list_response.rb', line 173

optional :created_at, String, api_name: :createdAt

#currencyString?

Returns:

  • (String, nil)


178
# File 'lib/onlyfans/models/transaction_list_response.rb', line 178

optional :currency, String

#descriptionString?

Returns:

  • (String, nil)


183
# File 'lib/onlyfans/models/transaction_list_response.rb', line 183

optional :description, String

#feeInteger?

Returns:

  • (Integer, nil)


188
# File 'lib/onlyfans/models/transaction_list_response.rb', line 188

optional :fee, Integer

#idString?

Returns:

  • (String, nil)


163
# File 'lib/onlyfans/models/transaction_list_response.rb', line 163

optional :id, String

#netFloat?

Returns:

  • (Float, nil)


193
# File 'lib/onlyfans/models/transaction_list_response.rb', line 193

optional :net, Float

#payout_pending_daysInteger?

Returns:

  • (Integer, nil)


198
# File 'lib/onlyfans/models/transaction_list_response.rb', line 198

optional :payout_pending_days, Integer, api_name: :payoutPendingDays

#statusString?

Returns:

  • (String, nil)


203
# File 'lib/onlyfans/models/transaction_list_response.rb', line 203

optional :status, String

#tax_amountInteger?

Returns:

  • (Integer, nil)


208
# File 'lib/onlyfans/models/transaction_list_response.rb', line 208

optional :tax_amount, Integer, api_name: :taxAmount

#typeString?

Returns:

  • (String, nil)


213
# File 'lib/onlyfans/models/transaction_list_response.rb', line 213

optional :type, String

#userOnlyfans::Models::TransactionListResponse::Data::List::User?



218
# File 'lib/onlyfans/models/transaction_list_response.rb', line 218

optional :user, -> { Onlyfans::Models::TransactionListResponse::Data::List::User }

#vat_amountInteger?

Returns:

  • (Integer, nil)


223
# File 'lib/onlyfans/models/transaction_list_response.rb', line 223

optional :vat_amount, Integer, api_name: :vatAmount