Class: WhopSDK::Models::DepositListResponse::Bank

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/whop_sdk/models/deposit_list_response.rb,
sig/whop_sdk/models/deposit_list_response.rbs

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(account_id:, bank:, object:) ⇒ Object

Parameters:



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/whop_sdk/models/deposit_list_response.rb', line 31

class Bank < WhopSDK::Internal::Type::BaseModel
  # @!attribute id
  #   Bank deposit transaction ID.
  #
  #   @return [String]
  required :id, String

  # @!attribute created_at
  #   When the bank deposit transaction was created.
  #
  #   @return [Time]
  required :created_at, Time

  # @!attribute destination_amount
  #   Amount credited to the account balance.
  #
  #   @return [String, nil]
  required :destination_amount, String, nil?: true

  # @!attribute destination_currency
  #   Currency credited to the account balance.
  #
  #   @return [String, nil]
  required :destination_currency, String, nil?: true

  # @!attribute source_amount
  #   Amount sent by the depositor.
  #
  #   @return [String]
  required :source_amount, String

  # @!attribute source_currency
  #   Currency sent by the depositor.
  #
  #   @return [String]
  required :source_currency, String

  # @!attribute status
  #   Current bank deposit status.
  #
  #   @return [String]
  required :status, String

  # @!method initialize(id:, created_at:, destination_amount:, destination_currency:, source_amount:, source_currency:, status:)
  #   @param id [String] Bank deposit transaction ID.
  #
  #   @param created_at [Time] When the bank deposit transaction was created.
  #
  #   @param destination_amount [String, nil] Amount credited to the account balance.
  #
  #   @param destination_currency [String, nil] Currency credited to the account balance.
  #
  #   @param source_amount [String] Amount sent by the depositor.
  #
  #   @param source_currency [String] Currency sent by the depositor.
  #
  #   @param status [String] Current bank deposit status.
end

Instance Attribute Details

#created_atTime

When the bank deposit transaction was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


42
# File 'lib/whop_sdk/models/deposit_list_response.rb', line 42

required :created_at, Time

#destination_amountString?

Amount credited to the account balance.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


48
# File 'lib/whop_sdk/models/deposit_list_response.rb', line 48

required :destination_amount, String, nil?: true

#destination_currencyString?

Currency credited to the account balance.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


54
# File 'lib/whop_sdk/models/deposit_list_response.rb', line 54

required :destination_currency, String, nil?: true

#idString

Bank deposit transaction ID.

Parameters:

  • value (String)

Returns:

  • (String)


36
# File 'lib/whop_sdk/models/deposit_list_response.rb', line 36

required :id, String

#source_amountString

Amount sent by the depositor.

Parameters:

  • value (String)

Returns:

  • (String)


60
# File 'lib/whop_sdk/models/deposit_list_response.rb', line 60

required :source_amount, String

#source_currencyString

Currency sent by the depositor.

Parameters:

  • value (String)

Returns:

  • (String)


66
# File 'lib/whop_sdk/models/deposit_list_response.rb', line 66

required :source_currency, String

#statusString

Current bank deposit status.

Parameters:

  • value (String)

Returns:

  • (String)


72
# File 'lib/whop_sdk/models/deposit_list_response.rb', line 72

required :status, String

Instance Method Details

#to_hash{

Returns:

  • ({)


65
# File 'sig/whop_sdk/models/deposit_list_response.rbs', line 65

def to_hash: -> {