Class: Onlyfans::Models::ChargebackListResponse::Data::List

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

Defined Under Namespace

Classes: Payment

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, created_at: nil, payment: nil, payment_type: nil) ⇒ Object

Parameters:



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
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
# File 'lib/onlyfans/models/chargeback_list_response.rb', line 130

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

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

  # @!attribute payment
  #
  #   @return [Onlyfans::Models::ChargebackListResponse::Data::List::Payment, nil]
  optional :payment, -> { Onlyfans::Models::ChargebackListResponse::Data::List::Payment }

  # @!attribute payment_type
  #
  #   @return [String, nil]
  optional :payment_type, String, api_name: :paymentType

  # @!method initialize(id: nil, created_at: nil, payment: nil, payment_type: nil)
  #   @param id [Integer]
  #   @param created_at [String]
  #   @param payment [Onlyfans::Models::ChargebackListResponse::Data::List::Payment]
  #   @param payment_type [String]

  # @see Onlyfans::Models::ChargebackListResponse::Data::List#payment
  class Payment < 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 media_tax_amount
    #
    #   @return [Integer, nil]
    optional :media_tax_amount, Integer, api_name: :mediaTaxAmount

    # @!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 user
    #
    #   @return [Onlyfans::Models::ChargebackListResponse::Data::List::Payment::User, nil]
    optional :user, -> { Onlyfans::Models::ChargebackListResponse::Data::List::Payment::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, media_tax_amount: nil, net: nil, payout_pending_days: nil, status: nil, tax_amount: 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 media_tax_amount [Integer]
    #   @param net [Float]
    #   @param payout_pending_days [Integer]
    #   @param status [String]
    #   @param tax_amount [Integer]
    #   @param user [Onlyfans::Models::ChargebackListResponse::Data::List::Payment::User]
    #   @param vat_amount [Integer]

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

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

      # @!attribute avatar_thumbs
      #
      #   @return [String, nil]
      optional :avatar_thumbs, String, api_name: :avatarThumbs, nil?: true

      # @!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, nil]
      #   @param avatar_thumbs [String, nil]
      #   @param is_verified [Boolean]
      #   @param name [String]
      #   @param username [String]
      #   @param view [String]
    end
  end
end

Instance Attribute Details

#created_atString?

Returns:

  • (String, nil)


139
# File 'lib/onlyfans/models/chargeback_list_response.rb', line 139

optional :created_at, String, api_name: :createdAt

#idInteger?

Returns:

  • (Integer, nil)


134
# File 'lib/onlyfans/models/chargeback_list_response.rb', line 134

optional :id, Integer

#paymentOnlyfans::Models::ChargebackListResponse::Data::List::Payment?



144
# File 'lib/onlyfans/models/chargeback_list_response.rb', line 144

optional :payment, -> { Onlyfans::Models::ChargebackListResponse::Data::List::Payment }

#payment_typeString?

Returns:

  • (String, nil)


149
# File 'lib/onlyfans/models/chargeback_list_response.rb', line 149

optional :payment_type, String, api_name: :paymentType