Class: Increase::Models::WireTransferCreateParams::Creditor

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/wire_transfer_create_params.rb

Defined Under Namespace

Classes: Address

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(name: , address: nil) ⇒ Object

The person or business that is receiving the funds from the transfer.

Parameters:



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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/increase/models/wire_transfer_create_params.rb', line 109

class Creditor < Increase::Internal::Type::BaseModel
  # @!attribute name
  #   The person or business's name.
  #
  #   @return [String]
  required :name, String

  # @!attribute address
  #   The person or business's address.
  #
  #   @return [Increase::Models::WireTransferCreateParams::Creditor::Address, nil]
  optional :address, -> { Increase::WireTransferCreateParams::Creditor::Address }

  # @!method initialize(name:, address: nil)
  #   The person or business that is receiving the funds from the transfer.
  #
  #   @param name [String] The person or business's name.
  #
  #   @param address [Increase::Models::WireTransferCreateParams::Creditor::Address] The person or business's address.

  # @see Increase::Models::WireTransferCreateParams::Creditor#address
  class Address < Increase::Internal::Type::BaseModel
    # @!attribute unstructured
    #   Unstructured address lines.
    #
    #   @return [Increase::Models::WireTransferCreateParams::Creditor::Address::Unstructured]
    required :unstructured, -> { Increase::WireTransferCreateParams::Creditor::Address::Unstructured }

    # @!method initialize(unstructured:)
    #   The person or business's address.
    #
    #   @param unstructured [Increase::Models::WireTransferCreateParams::Creditor::Address::Unstructured] Unstructured address lines.

    # @see Increase::Models::WireTransferCreateParams::Creditor::Address#unstructured
    class Unstructured < Increase::Internal::Type::BaseModel
      # @!attribute line1
      #   The address line 1.
      #
      #   @return [String]
      required :line1, String

      # @!attribute line2
      #   The address line 2.
      #
      #   @return [String, nil]
      optional :line2, String

      # @!attribute line3
      #   The address line 3.
      #
      #   @return [String, nil]
      optional :line3, String

      # @!method initialize(line1:, line2: nil, line3: nil)
      #   Unstructured address lines.
      #
      #   @param line1 [String] The address line 1.
      #
      #   @param line2 [String] The address line 2.
      #
      #   @param line3 [String] The address line 3.
    end
  end
end

Instance Attribute Details

#addressIncrease::Models::WireTransferCreateParams::Creditor::Address?

The person or business’s address.



120
# File 'lib/increase/models/wire_transfer_create_params.rb', line 120

optional :address, -> { Increase::WireTransferCreateParams::Creditor::Address }

#nameString

The person or business’s name.

Returns:

  • (String)


114
# File 'lib/increase/models/wire_transfer_create_params.rb', line 114

required :name, String