increase 1.122.0 → 1.123.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +1 -1
- data/lib/increase/models/card_dispute.rb +6 -24
- data/lib/increase/models/pending_transaction.rb +5 -3
- data/lib/increase/models/wire_transfer.rb +149 -73
- data/lib/increase/models/wire_transfer_create_params.rb +155 -73
- data/lib/increase/resources/wire_transfers.rb +5 -17
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/card_dispute.rbi +8 -90
- data/rbi/increase/models/pending_transaction.rbi +3 -3
- data/rbi/increase/models/wire_transfer.rbi +342 -72
- data/rbi/increase/models/wire_transfer_create_params.rbi +360 -107
- data/rbi/increase/resources/wire_transfers.rbi +11 -31
- data/sig/increase/models/card_dispute.rbs +8 -24
- data/sig/increase/models/pending_transaction.rbs +4 -4
- data/sig/increase/models/wire_transfer.rbs +128 -45
- data/sig/increase/models/wire_transfer_create_params.rbs +156 -60
- data/sig/increase/resources/wire_transfers.rbs +3 -9
- metadata +2 -2
| @@ -19,9 +19,27 @@ module Increase | |
| 19 19 | 
             
                  sig { returns(Integer) }
         | 
| 20 20 | 
             
                  attr_accessor :amount
         | 
| 21 21 |  | 
| 22 | 
            -
                  # The  | 
| 23 | 
            -
                  sig { returns( | 
| 24 | 
            -
                   | 
| 22 | 
            +
                  # The person or business that is receiving the funds from the transfer.
         | 
| 23 | 
            +
                  sig { returns(Increase::WireTransferCreateParams::Creditor) }
         | 
| 24 | 
            +
                  attr_reader :creditor
         | 
| 25 | 
            +
             | 
| 26 | 
            +
                  sig do
         | 
| 27 | 
            +
                    params(
         | 
| 28 | 
            +
                      creditor: Increase::WireTransferCreateParams::Creditor::OrHash
         | 
| 29 | 
            +
                    ).void
         | 
| 30 | 
            +
                  end
         | 
| 31 | 
            +
                  attr_writer :creditor
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                  # Additional remittance information related to the wire transfer.
         | 
| 34 | 
            +
                  sig { returns(Increase::WireTransferCreateParams::Remittance) }
         | 
| 35 | 
            +
                  attr_reader :remittance
         | 
| 36 | 
            +
             | 
| 37 | 
            +
                  sig do
         | 
| 38 | 
            +
                    params(
         | 
| 39 | 
            +
                      remittance: Increase::WireTransferCreateParams::Remittance::OrHash
         | 
| 40 | 
            +
                    ).void
         | 
| 41 | 
            +
                  end
         | 
| 42 | 
            +
                  attr_writer :remittance
         | 
| 25 43 |  | 
| 26 44 | 
             
                  # The account number for the destination account.
         | 
| 27 45 | 
             
                  sig { returns(T.nilable(String)) }
         | 
| @@ -30,26 +48,16 @@ module Increase | |
| 30 48 | 
             
                  sig { params(account_number: String).void }
         | 
| 31 49 | 
             
                  attr_writer :account_number
         | 
| 32 50 |  | 
| 33 | 
            -
                  # The  | 
| 34 | 
            -
                   | 
| 35 | 
            -
                   | 
| 36 | 
            -
             | 
| 37 | 
            -
                   | 
| 38 | 
            -
                  attr_writer :beneficiary_address_line1
         | 
| 39 | 
            -
             | 
| 40 | 
            -
                  # The beneficiary's address line 2.
         | 
| 41 | 
            -
                  sig { returns(T.nilable(String)) }
         | 
| 42 | 
            -
                  attr_reader :beneficiary_address_line2
         | 
| 43 | 
            -
             | 
| 44 | 
            -
                  sig { params(beneficiary_address_line2: String).void }
         | 
| 45 | 
            -
                  attr_writer :beneficiary_address_line2
         | 
| 51 | 
            +
                  # The person or business whose funds are being transferred. This is only necessary
         | 
| 52 | 
            +
                  # if you're transferring from a commingled account. Otherwise, we'll use the
         | 
| 53 | 
            +
                  # associated entity's details.
         | 
| 54 | 
            +
                  sig { returns(T.nilable(Increase::WireTransferCreateParams::Debtor)) }
         | 
| 55 | 
            +
                  attr_reader :debtor
         | 
| 46 56 |  | 
| 47 | 
            -
                   | 
| 48 | 
            -
             | 
| 49 | 
            -
                   | 
| 50 | 
            -
             | 
| 51 | 
            -
                  sig { params(beneficiary_address_line3: String).void }
         | 
| 52 | 
            -
                  attr_writer :beneficiary_address_line3
         | 
| 57 | 
            +
                  sig do
         | 
| 58 | 
            +
                    params(debtor: Increase::WireTransferCreateParams::Debtor::OrHash).void
         | 
| 59 | 
            +
                  end
         | 
| 60 | 
            +
                  attr_writer :debtor
         | 
| 53 61 |  | 
| 54 62 | 
             
                  # The ID of an External Account to initiate a transfer to. If this parameter is
         | 
| 55 63 | 
             
                  # provided, `account_number` and `routing_number` must be absent.
         | 
| @@ -67,49 +75,6 @@ module Increase | |
| 67 75 | 
             
                  sig { params(inbound_wire_drawdown_request_id: String).void }
         | 
| 68 76 | 
             
                  attr_writer :inbound_wire_drawdown_request_id
         | 
| 69 77 |  | 
| 70 | 
            -
                  # The originator's address line 1. This is only necessary if you're transferring
         | 
| 71 | 
            -
                  # from a commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 72 | 
            -
                  sig { returns(T.nilable(String)) }
         | 
| 73 | 
            -
                  attr_reader :originator_address_line1
         | 
| 74 | 
            -
             | 
| 75 | 
            -
                  sig { params(originator_address_line1: String).void }
         | 
| 76 | 
            -
                  attr_writer :originator_address_line1
         | 
| 77 | 
            -
             | 
| 78 | 
            -
                  # The originator's address line 2. This is only necessary if you're transferring
         | 
| 79 | 
            -
                  # from a commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 80 | 
            -
                  sig { returns(T.nilable(String)) }
         | 
| 81 | 
            -
                  attr_reader :originator_address_line2
         | 
| 82 | 
            -
             | 
| 83 | 
            -
                  sig { params(originator_address_line2: String).void }
         | 
| 84 | 
            -
                  attr_writer :originator_address_line2
         | 
| 85 | 
            -
             | 
| 86 | 
            -
                  # The originator's address line 3. This is only necessary if you're transferring
         | 
| 87 | 
            -
                  # from a commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 88 | 
            -
                  sig { returns(T.nilable(String)) }
         | 
| 89 | 
            -
                  attr_reader :originator_address_line3
         | 
| 90 | 
            -
             | 
| 91 | 
            -
                  sig { params(originator_address_line3: String).void }
         | 
| 92 | 
            -
                  attr_writer :originator_address_line3
         | 
| 93 | 
            -
             | 
| 94 | 
            -
                  # The originator's name. This is only necessary if you're transferring from a
         | 
| 95 | 
            -
                  # commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 96 | 
            -
                  sig { returns(T.nilable(String)) }
         | 
| 97 | 
            -
                  attr_reader :originator_name
         | 
| 98 | 
            -
             | 
| 99 | 
            -
                  sig { params(originator_name: String).void }
         | 
| 100 | 
            -
                  attr_writer :originator_name
         | 
| 101 | 
            -
             | 
| 102 | 
            -
                  # Additional remittance information related to the wire transfer.
         | 
| 103 | 
            -
                  sig { returns(T.nilable(Increase::WireTransferCreateParams::Remittance)) }
         | 
| 104 | 
            -
                  attr_reader :remittance
         | 
| 105 | 
            -
             | 
| 106 | 
            -
                  sig do
         | 
| 107 | 
            -
                    params(
         | 
| 108 | 
            -
                      remittance: Increase::WireTransferCreateParams::Remittance::OrHash
         | 
| 109 | 
            -
                    ).void
         | 
| 110 | 
            -
                  end
         | 
| 111 | 
            -
                  attr_writer :remittance
         | 
| 112 | 
            -
             | 
| 113 78 | 
             
                  # Whether the transfer requires explicit approval via the dashboard or API.
         | 
| 114 79 | 
             
                  sig { returns(T.nilable(T::Boolean)) }
         | 
| 115 80 | 
             
                  attr_reader :require_approval
         | 
| @@ -136,18 +101,12 @@ module Increase | |
| 136 101 | 
             
                    params(
         | 
| 137 102 | 
             
                      account_id: String,
         | 
| 138 103 | 
             
                      amount: Integer,
         | 
| 139 | 
            -
                       | 
| 104 | 
            +
                      creditor: Increase::WireTransferCreateParams::Creditor::OrHash,
         | 
| 105 | 
            +
                      remittance: Increase::WireTransferCreateParams::Remittance::OrHash,
         | 
| 140 106 | 
             
                      account_number: String,
         | 
| 141 | 
            -
                       | 
| 142 | 
            -
                      beneficiary_address_line2: String,
         | 
| 143 | 
            -
                      beneficiary_address_line3: String,
         | 
| 107 | 
            +
                      debtor: Increase::WireTransferCreateParams::Debtor::OrHash,
         | 
| 144 108 | 
             
                      external_account_id: String,
         | 
| 145 109 | 
             
                      inbound_wire_drawdown_request_id: String,
         | 
| 146 | 
            -
                      originator_address_line1: String,
         | 
| 147 | 
            -
                      originator_address_line2: String,
         | 
| 148 | 
            -
                      originator_address_line3: String,
         | 
| 149 | 
            -
                      originator_name: String,
         | 
| 150 | 
            -
                      remittance: Increase::WireTransferCreateParams::Remittance::OrHash,
         | 
| 151 110 | 
             
                      require_approval: T::Boolean,
         | 
| 152 111 | 
             
                      routing_number: String,
         | 
| 153 112 | 
             
                      source_account_number_id: String,
         | 
| @@ -159,36 +118,22 @@ module Increase | |
| 159 118 | 
             
                    account_id:,
         | 
| 160 119 | 
             
                    # The transfer amount in USD cents.
         | 
| 161 120 | 
             
                    amount:,
         | 
| 162 | 
            -
                    # The  | 
| 163 | 
            -
                     | 
| 121 | 
            +
                    # The person or business that is receiving the funds from the transfer.
         | 
| 122 | 
            +
                    creditor:,
         | 
| 123 | 
            +
                    # Additional remittance information related to the wire transfer.
         | 
| 124 | 
            +
                    remittance:,
         | 
| 164 125 | 
             
                    # The account number for the destination account.
         | 
| 165 126 | 
             
                    account_number: nil,
         | 
| 166 | 
            -
                    # The  | 
| 167 | 
            -
                     | 
| 168 | 
            -
                    #  | 
| 169 | 
            -
                     | 
| 170 | 
            -
                    # The beneficiary's address line 3.
         | 
| 171 | 
            -
                    beneficiary_address_line3: nil,
         | 
| 127 | 
            +
                    # The person or business whose funds are being transferred. This is only necessary
         | 
| 128 | 
            +
                    # if you're transferring from a commingled account. Otherwise, we'll use the
         | 
| 129 | 
            +
                    # associated entity's details.
         | 
| 130 | 
            +
                    debtor: nil,
         | 
| 172 131 | 
             
                    # The ID of an External Account to initiate a transfer to. If this parameter is
         | 
| 173 132 | 
             
                    # provided, `account_number` and `routing_number` must be absent.
         | 
| 174 133 | 
             
                    external_account_id: nil,
         | 
| 175 134 | 
             
                    # The ID of an Inbound Wire Drawdown Request in response to which this transfer is
         | 
| 176 135 | 
             
                    # being sent.
         | 
| 177 136 | 
             
                    inbound_wire_drawdown_request_id: nil,
         | 
| 178 | 
            -
                    # The originator's address line 1. This is only necessary if you're transferring
         | 
| 179 | 
            -
                    # from a commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 180 | 
            -
                    originator_address_line1: nil,
         | 
| 181 | 
            -
                    # The originator's address line 2. This is only necessary if you're transferring
         | 
| 182 | 
            -
                    # from a commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 183 | 
            -
                    originator_address_line2: nil,
         | 
| 184 | 
            -
                    # The originator's address line 3. This is only necessary if you're transferring
         | 
| 185 | 
            -
                    # from a commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 186 | 
            -
                    originator_address_line3: nil,
         | 
| 187 | 
            -
                    # The originator's name. This is only necessary if you're transferring from a
         | 
| 188 | 
            -
                    # commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 189 | 
            -
                    originator_name: nil,
         | 
| 190 | 
            -
                    # Additional remittance information related to the wire transfer.
         | 
| 191 | 
            -
                    remittance: nil,
         | 
| 192 137 | 
             
                    # Whether the transfer requires explicit approval via the dashboard or API.
         | 
| 193 138 | 
             
                    require_approval: nil,
         | 
| 194 139 | 
             
                    # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
         | 
| @@ -205,18 +150,12 @@ module Increase | |
| 205 150 | 
             
                      {
         | 
| 206 151 | 
             
                        account_id: String,
         | 
| 207 152 | 
             
                        amount: Integer,
         | 
| 208 | 
            -
                         | 
| 153 | 
            +
                        creditor: Increase::WireTransferCreateParams::Creditor,
         | 
| 154 | 
            +
                        remittance: Increase::WireTransferCreateParams::Remittance,
         | 
| 209 155 | 
             
                        account_number: String,
         | 
| 210 | 
            -
                         | 
| 211 | 
            -
                        beneficiary_address_line2: String,
         | 
| 212 | 
            -
                        beneficiary_address_line3: String,
         | 
| 156 | 
            +
                        debtor: Increase::WireTransferCreateParams::Debtor,
         | 
| 213 157 | 
             
                        external_account_id: String,
         | 
| 214 158 | 
             
                        inbound_wire_drawdown_request_id: String,
         | 
| 215 | 
            -
                        originator_address_line1: String,
         | 
| 216 | 
            -
                        originator_address_line2: String,
         | 
| 217 | 
            -
                        originator_address_line3: String,
         | 
| 218 | 
            -
                        originator_name: String,
         | 
| 219 | 
            -
                        remittance: Increase::WireTransferCreateParams::Remittance,
         | 
| 220 159 | 
             
                        require_approval: T::Boolean,
         | 
| 221 160 | 
             
                        routing_number: String,
         | 
| 222 161 | 
             
                        source_account_number_id: String,
         | 
| @@ -227,6 +166,163 @@ module Increase | |
| 227 166 | 
             
                  def to_hash
         | 
| 228 167 | 
             
                  end
         | 
| 229 168 |  | 
| 169 | 
            +
                  class Creditor < Increase::Internal::Type::BaseModel
         | 
| 170 | 
            +
                    OrHash =
         | 
| 171 | 
            +
                      T.type_alias do
         | 
| 172 | 
            +
                        T.any(
         | 
| 173 | 
            +
                          Increase::WireTransferCreateParams::Creditor,
         | 
| 174 | 
            +
                          Increase::Internal::AnyHash
         | 
| 175 | 
            +
                        )
         | 
| 176 | 
            +
                      end
         | 
| 177 | 
            +
             | 
| 178 | 
            +
                    # The person or business's name.
         | 
| 179 | 
            +
                    sig { returns(String) }
         | 
| 180 | 
            +
                    attr_accessor :name
         | 
| 181 | 
            +
             | 
| 182 | 
            +
                    # The person or business's address.
         | 
| 183 | 
            +
                    sig do
         | 
| 184 | 
            +
                      returns(
         | 
| 185 | 
            +
                        T.nilable(Increase::WireTransferCreateParams::Creditor::Address)
         | 
| 186 | 
            +
                      )
         | 
| 187 | 
            +
                    end
         | 
| 188 | 
            +
                    attr_reader :address
         | 
| 189 | 
            +
             | 
| 190 | 
            +
                    sig do
         | 
| 191 | 
            +
                      params(
         | 
| 192 | 
            +
                        address:
         | 
| 193 | 
            +
                          Increase::WireTransferCreateParams::Creditor::Address::OrHash
         | 
| 194 | 
            +
                      ).void
         | 
| 195 | 
            +
                    end
         | 
| 196 | 
            +
                    attr_writer :address
         | 
| 197 | 
            +
             | 
| 198 | 
            +
                    # The person or business that is receiving the funds from the transfer.
         | 
| 199 | 
            +
                    sig do
         | 
| 200 | 
            +
                      params(
         | 
| 201 | 
            +
                        name: String,
         | 
| 202 | 
            +
                        address:
         | 
| 203 | 
            +
                          Increase::WireTransferCreateParams::Creditor::Address::OrHash
         | 
| 204 | 
            +
                      ).returns(T.attached_class)
         | 
| 205 | 
            +
                    end
         | 
| 206 | 
            +
                    def self.new(
         | 
| 207 | 
            +
                      # The person or business's name.
         | 
| 208 | 
            +
                      name:,
         | 
| 209 | 
            +
                      # The person or business's address.
         | 
| 210 | 
            +
                      address: nil
         | 
| 211 | 
            +
                    )
         | 
| 212 | 
            +
                    end
         | 
| 213 | 
            +
             | 
| 214 | 
            +
                    sig do
         | 
| 215 | 
            +
                      override.returns(
         | 
| 216 | 
            +
                        {
         | 
| 217 | 
            +
                          name: String,
         | 
| 218 | 
            +
                          address: Increase::WireTransferCreateParams::Creditor::Address
         | 
| 219 | 
            +
                        }
         | 
| 220 | 
            +
                      )
         | 
| 221 | 
            +
                    end
         | 
| 222 | 
            +
                    def to_hash
         | 
| 223 | 
            +
                    end
         | 
| 224 | 
            +
             | 
| 225 | 
            +
                    class Address < Increase::Internal::Type::BaseModel
         | 
| 226 | 
            +
                      OrHash =
         | 
| 227 | 
            +
                        T.type_alias do
         | 
| 228 | 
            +
                          T.any(
         | 
| 229 | 
            +
                            Increase::WireTransferCreateParams::Creditor::Address,
         | 
| 230 | 
            +
                            Increase::Internal::AnyHash
         | 
| 231 | 
            +
                          )
         | 
| 232 | 
            +
                        end
         | 
| 233 | 
            +
             | 
| 234 | 
            +
                      # Unstructured address lines.
         | 
| 235 | 
            +
                      sig do
         | 
| 236 | 
            +
                        returns(
         | 
| 237 | 
            +
                          Increase::WireTransferCreateParams::Creditor::Address::Unstructured
         | 
| 238 | 
            +
                        )
         | 
| 239 | 
            +
                      end
         | 
| 240 | 
            +
                      attr_reader :unstructured
         | 
| 241 | 
            +
             | 
| 242 | 
            +
                      sig do
         | 
| 243 | 
            +
                        params(
         | 
| 244 | 
            +
                          unstructured:
         | 
| 245 | 
            +
                            Increase::WireTransferCreateParams::Creditor::Address::Unstructured::OrHash
         | 
| 246 | 
            +
                        ).void
         | 
| 247 | 
            +
                      end
         | 
| 248 | 
            +
                      attr_writer :unstructured
         | 
| 249 | 
            +
             | 
| 250 | 
            +
                      # The person or business's address.
         | 
| 251 | 
            +
                      sig do
         | 
| 252 | 
            +
                        params(
         | 
| 253 | 
            +
                          unstructured:
         | 
| 254 | 
            +
                            Increase::WireTransferCreateParams::Creditor::Address::Unstructured::OrHash
         | 
| 255 | 
            +
                        ).returns(T.attached_class)
         | 
| 256 | 
            +
                      end
         | 
| 257 | 
            +
                      def self.new(
         | 
| 258 | 
            +
                        # Unstructured address lines.
         | 
| 259 | 
            +
                        unstructured:
         | 
| 260 | 
            +
                      )
         | 
| 261 | 
            +
                      end
         | 
| 262 | 
            +
             | 
| 263 | 
            +
                      sig do
         | 
| 264 | 
            +
                        override.returns(
         | 
| 265 | 
            +
                          {
         | 
| 266 | 
            +
                            unstructured:
         | 
| 267 | 
            +
                              Increase::WireTransferCreateParams::Creditor::Address::Unstructured
         | 
| 268 | 
            +
                          }
         | 
| 269 | 
            +
                        )
         | 
| 270 | 
            +
                      end
         | 
| 271 | 
            +
                      def to_hash
         | 
| 272 | 
            +
                      end
         | 
| 273 | 
            +
             | 
| 274 | 
            +
                      class Unstructured < Increase::Internal::Type::BaseModel
         | 
| 275 | 
            +
                        OrHash =
         | 
| 276 | 
            +
                          T.type_alias do
         | 
| 277 | 
            +
                            T.any(
         | 
| 278 | 
            +
                              Increase::WireTransferCreateParams::Creditor::Address::Unstructured,
         | 
| 279 | 
            +
                              Increase::Internal::AnyHash
         | 
| 280 | 
            +
                            )
         | 
| 281 | 
            +
                          end
         | 
| 282 | 
            +
             | 
| 283 | 
            +
                        # The address line 1.
         | 
| 284 | 
            +
                        sig { returns(String) }
         | 
| 285 | 
            +
                        attr_accessor :line1
         | 
| 286 | 
            +
             | 
| 287 | 
            +
                        # The address line 2.
         | 
| 288 | 
            +
                        sig { returns(T.nilable(String)) }
         | 
| 289 | 
            +
                        attr_reader :line2
         | 
| 290 | 
            +
             | 
| 291 | 
            +
                        sig { params(line2: String).void }
         | 
| 292 | 
            +
                        attr_writer :line2
         | 
| 293 | 
            +
             | 
| 294 | 
            +
                        # The address line 3.
         | 
| 295 | 
            +
                        sig { returns(T.nilable(String)) }
         | 
| 296 | 
            +
                        attr_reader :line3
         | 
| 297 | 
            +
             | 
| 298 | 
            +
                        sig { params(line3: String).void }
         | 
| 299 | 
            +
                        attr_writer :line3
         | 
| 300 | 
            +
             | 
| 301 | 
            +
                        # Unstructured address lines.
         | 
| 302 | 
            +
                        sig do
         | 
| 303 | 
            +
                          params(line1: String, line2: String, line3: String).returns(
         | 
| 304 | 
            +
                            T.attached_class
         | 
| 305 | 
            +
                          )
         | 
| 306 | 
            +
                        end
         | 
| 307 | 
            +
                        def self.new(
         | 
| 308 | 
            +
                          # The address line 1.
         | 
| 309 | 
            +
                          line1:,
         | 
| 310 | 
            +
                          # The address line 2.
         | 
| 311 | 
            +
                          line2: nil,
         | 
| 312 | 
            +
                          # The address line 3.
         | 
| 313 | 
            +
                          line3: nil
         | 
| 314 | 
            +
                        )
         | 
| 315 | 
            +
                        end
         | 
| 316 | 
            +
             | 
| 317 | 
            +
                        sig do
         | 
| 318 | 
            +
                          override.returns({ line1: String, line2: String, line3: String })
         | 
| 319 | 
            +
                        end
         | 
| 320 | 
            +
                        def to_hash
         | 
| 321 | 
            +
                        end
         | 
| 322 | 
            +
                      end
         | 
| 323 | 
            +
                    end
         | 
| 324 | 
            +
                  end
         | 
| 325 | 
            +
             | 
| 230 326 | 
             
                  class Remittance < Increase::Internal::Type::BaseModel
         | 
| 231 327 | 
             
                    OrHash =
         | 
| 232 328 | 
             
                      T.type_alias do
         | 
| @@ -415,7 +511,7 @@ module Increase | |
| 415 511 | 
             
                          )
         | 
| 416 512 | 
             
                        end
         | 
| 417 513 |  | 
| 418 | 
            -
                      # The  | 
| 514 | 
            +
                      # The information.
         | 
| 419 515 | 
             
                      sig { returns(String) }
         | 
| 420 516 | 
             
                      attr_accessor :message
         | 
| 421 517 |  | 
| @@ -423,7 +519,7 @@ module Increase | |
| 423 519 | 
             
                      # `unstructured`.
         | 
| 424 520 | 
             
                      sig { params(message: String).returns(T.attached_class) }
         | 
| 425 521 | 
             
                      def self.new(
         | 
| 426 | 
            -
                        # The  | 
| 522 | 
            +
                        # The information.
         | 
| 427 523 | 
             
                        message:
         | 
| 428 524 | 
             
                      )
         | 
| 429 525 | 
             
                      end
         | 
| @@ -433,6 +529,163 @@ module Increase | |
| 433 529 | 
             
                      end
         | 
| 434 530 | 
             
                    end
         | 
| 435 531 | 
             
                  end
         | 
| 532 | 
            +
             | 
| 533 | 
            +
                  class Debtor < Increase::Internal::Type::BaseModel
         | 
| 534 | 
            +
                    OrHash =
         | 
| 535 | 
            +
                      T.type_alias do
         | 
| 536 | 
            +
                        T.any(
         | 
| 537 | 
            +
                          Increase::WireTransferCreateParams::Debtor,
         | 
| 538 | 
            +
                          Increase::Internal::AnyHash
         | 
| 539 | 
            +
                        )
         | 
| 540 | 
            +
                      end
         | 
| 541 | 
            +
             | 
| 542 | 
            +
                    # The person or business's name.
         | 
| 543 | 
            +
                    sig { returns(String) }
         | 
| 544 | 
            +
                    attr_accessor :name
         | 
| 545 | 
            +
             | 
| 546 | 
            +
                    # The person or business's address.
         | 
| 547 | 
            +
                    sig do
         | 
| 548 | 
            +
                      returns(
         | 
| 549 | 
            +
                        T.nilable(Increase::WireTransferCreateParams::Debtor::Address)
         | 
| 550 | 
            +
                      )
         | 
| 551 | 
            +
                    end
         | 
| 552 | 
            +
                    attr_reader :address
         | 
| 553 | 
            +
             | 
| 554 | 
            +
                    sig do
         | 
| 555 | 
            +
                      params(
         | 
| 556 | 
            +
                        address: Increase::WireTransferCreateParams::Debtor::Address::OrHash
         | 
| 557 | 
            +
                      ).void
         | 
| 558 | 
            +
                    end
         | 
| 559 | 
            +
                    attr_writer :address
         | 
| 560 | 
            +
             | 
| 561 | 
            +
                    # The person or business whose funds are being transferred. This is only necessary
         | 
| 562 | 
            +
                    # if you're transferring from a commingled account. Otherwise, we'll use the
         | 
| 563 | 
            +
                    # associated entity's details.
         | 
| 564 | 
            +
                    sig do
         | 
| 565 | 
            +
                      params(
         | 
| 566 | 
            +
                        name: String,
         | 
| 567 | 
            +
                        address: Increase::WireTransferCreateParams::Debtor::Address::OrHash
         | 
| 568 | 
            +
                      ).returns(T.attached_class)
         | 
| 569 | 
            +
                    end
         | 
| 570 | 
            +
                    def self.new(
         | 
| 571 | 
            +
                      # The person or business's name.
         | 
| 572 | 
            +
                      name:,
         | 
| 573 | 
            +
                      # The person or business's address.
         | 
| 574 | 
            +
                      address: nil
         | 
| 575 | 
            +
                    )
         | 
| 576 | 
            +
                    end
         | 
| 577 | 
            +
             | 
| 578 | 
            +
                    sig do
         | 
| 579 | 
            +
                      override.returns(
         | 
| 580 | 
            +
                        {
         | 
| 581 | 
            +
                          name: String,
         | 
| 582 | 
            +
                          address: Increase::WireTransferCreateParams::Debtor::Address
         | 
| 583 | 
            +
                        }
         | 
| 584 | 
            +
                      )
         | 
| 585 | 
            +
                    end
         | 
| 586 | 
            +
                    def to_hash
         | 
| 587 | 
            +
                    end
         | 
| 588 | 
            +
             | 
| 589 | 
            +
                    class Address < Increase::Internal::Type::BaseModel
         | 
| 590 | 
            +
                      OrHash =
         | 
| 591 | 
            +
                        T.type_alias do
         | 
| 592 | 
            +
                          T.any(
         | 
| 593 | 
            +
                            Increase::WireTransferCreateParams::Debtor::Address,
         | 
| 594 | 
            +
                            Increase::Internal::AnyHash
         | 
| 595 | 
            +
                          )
         | 
| 596 | 
            +
                        end
         | 
| 597 | 
            +
             | 
| 598 | 
            +
                      # Unstructured address lines.
         | 
| 599 | 
            +
                      sig do
         | 
| 600 | 
            +
                        returns(
         | 
| 601 | 
            +
                          Increase::WireTransferCreateParams::Debtor::Address::Unstructured
         | 
| 602 | 
            +
                        )
         | 
| 603 | 
            +
                      end
         | 
| 604 | 
            +
                      attr_reader :unstructured
         | 
| 605 | 
            +
             | 
| 606 | 
            +
                      sig do
         | 
| 607 | 
            +
                        params(
         | 
| 608 | 
            +
                          unstructured:
         | 
| 609 | 
            +
                            Increase::WireTransferCreateParams::Debtor::Address::Unstructured::OrHash
         | 
| 610 | 
            +
                        ).void
         | 
| 611 | 
            +
                      end
         | 
| 612 | 
            +
                      attr_writer :unstructured
         | 
| 613 | 
            +
             | 
| 614 | 
            +
                      # The person or business's address.
         | 
| 615 | 
            +
                      sig do
         | 
| 616 | 
            +
                        params(
         | 
| 617 | 
            +
                          unstructured:
         | 
| 618 | 
            +
                            Increase::WireTransferCreateParams::Debtor::Address::Unstructured::OrHash
         | 
| 619 | 
            +
                        ).returns(T.attached_class)
         | 
| 620 | 
            +
                      end
         | 
| 621 | 
            +
                      def self.new(
         | 
| 622 | 
            +
                        # Unstructured address lines.
         | 
| 623 | 
            +
                        unstructured:
         | 
| 624 | 
            +
                      )
         | 
| 625 | 
            +
                      end
         | 
| 626 | 
            +
             | 
| 627 | 
            +
                      sig do
         | 
| 628 | 
            +
                        override.returns(
         | 
| 629 | 
            +
                          {
         | 
| 630 | 
            +
                            unstructured:
         | 
| 631 | 
            +
                              Increase::WireTransferCreateParams::Debtor::Address::Unstructured
         | 
| 632 | 
            +
                          }
         | 
| 633 | 
            +
                        )
         | 
| 634 | 
            +
                      end
         | 
| 635 | 
            +
                      def to_hash
         | 
| 636 | 
            +
                      end
         | 
| 637 | 
            +
             | 
| 638 | 
            +
                      class Unstructured < Increase::Internal::Type::BaseModel
         | 
| 639 | 
            +
                        OrHash =
         | 
| 640 | 
            +
                          T.type_alias do
         | 
| 641 | 
            +
                            T.any(
         | 
| 642 | 
            +
                              Increase::WireTransferCreateParams::Debtor::Address::Unstructured,
         | 
| 643 | 
            +
                              Increase::Internal::AnyHash
         | 
| 644 | 
            +
                            )
         | 
| 645 | 
            +
                          end
         | 
| 646 | 
            +
             | 
| 647 | 
            +
                        # The address line 1.
         | 
| 648 | 
            +
                        sig { returns(String) }
         | 
| 649 | 
            +
                        attr_accessor :line1
         | 
| 650 | 
            +
             | 
| 651 | 
            +
                        # The address line 2.
         | 
| 652 | 
            +
                        sig { returns(T.nilable(String)) }
         | 
| 653 | 
            +
                        attr_reader :line2
         | 
| 654 | 
            +
             | 
| 655 | 
            +
                        sig { params(line2: String).void }
         | 
| 656 | 
            +
                        attr_writer :line2
         | 
| 657 | 
            +
             | 
| 658 | 
            +
                        # The address line 3.
         | 
| 659 | 
            +
                        sig { returns(T.nilable(String)) }
         | 
| 660 | 
            +
                        attr_reader :line3
         | 
| 661 | 
            +
             | 
| 662 | 
            +
                        sig { params(line3: String).void }
         | 
| 663 | 
            +
                        attr_writer :line3
         | 
| 664 | 
            +
             | 
| 665 | 
            +
                        # Unstructured address lines.
         | 
| 666 | 
            +
                        sig do
         | 
| 667 | 
            +
                          params(line1: String, line2: String, line3: String).returns(
         | 
| 668 | 
            +
                            T.attached_class
         | 
| 669 | 
            +
                          )
         | 
| 670 | 
            +
                        end
         | 
| 671 | 
            +
                        def self.new(
         | 
| 672 | 
            +
                          # The address line 1.
         | 
| 673 | 
            +
                          line1:,
         | 
| 674 | 
            +
                          # The address line 2.
         | 
| 675 | 
            +
                          line2: nil,
         | 
| 676 | 
            +
                          # The address line 3.
         | 
| 677 | 
            +
                          line3: nil
         | 
| 678 | 
            +
                        )
         | 
| 679 | 
            +
                        end
         | 
| 680 | 
            +
             | 
| 681 | 
            +
                        sig do
         | 
| 682 | 
            +
                          override.returns({ line1: String, line2: String, line3: String })
         | 
| 683 | 
            +
                        end
         | 
| 684 | 
            +
                        def to_hash
         | 
| 685 | 
            +
                        end
         | 
| 686 | 
            +
                      end
         | 
| 687 | 
            +
                    end
         | 
| 688 | 
            +
                  end
         | 
| 436 689 | 
             
                end
         | 
| 437 690 | 
             
              end
         | 
| 438 691 | 
             
            end
         | 
| @@ -8,18 +8,12 @@ module Increase | |
| 8 8 | 
             
                    params(
         | 
| 9 9 | 
             
                      account_id: String,
         | 
| 10 10 | 
             
                      amount: Integer,
         | 
| 11 | 
            -
                       | 
| 11 | 
            +
                      creditor: Increase::WireTransferCreateParams::Creditor::OrHash,
         | 
| 12 | 
            +
                      remittance: Increase::WireTransferCreateParams::Remittance::OrHash,
         | 
| 12 13 | 
             
                      account_number: String,
         | 
| 13 | 
            -
                       | 
| 14 | 
            -
                      beneficiary_address_line2: String,
         | 
| 15 | 
            -
                      beneficiary_address_line3: String,
         | 
| 14 | 
            +
                      debtor: Increase::WireTransferCreateParams::Debtor::OrHash,
         | 
| 16 15 | 
             
                      external_account_id: String,
         | 
| 17 16 | 
             
                      inbound_wire_drawdown_request_id: String,
         | 
| 18 | 
            -
                      originator_address_line1: String,
         | 
| 19 | 
            -
                      originator_address_line2: String,
         | 
| 20 | 
            -
                      originator_address_line3: String,
         | 
| 21 | 
            -
                      originator_name: String,
         | 
| 22 | 
            -
                      remittance: Increase::WireTransferCreateParams::Remittance::OrHash,
         | 
| 23 17 | 
             
                      require_approval: T::Boolean,
         | 
| 24 18 | 
             
                      routing_number: String,
         | 
| 25 19 | 
             
                      source_account_number_id: String,
         | 
| @@ -31,36 +25,22 @@ module Increase | |
| 31 25 | 
             
                    account_id:,
         | 
| 32 26 | 
             
                    # The transfer amount in USD cents.
         | 
| 33 27 | 
             
                    amount:,
         | 
| 34 | 
            -
                    # The  | 
| 35 | 
            -
                     | 
| 28 | 
            +
                    # The person or business that is receiving the funds from the transfer.
         | 
| 29 | 
            +
                    creditor:,
         | 
| 30 | 
            +
                    # Additional remittance information related to the wire transfer.
         | 
| 31 | 
            +
                    remittance:,
         | 
| 36 32 | 
             
                    # The account number for the destination account.
         | 
| 37 33 | 
             
                    account_number: nil,
         | 
| 38 | 
            -
                    # The  | 
| 39 | 
            -
                     | 
| 40 | 
            -
                    #  | 
| 41 | 
            -
                     | 
| 42 | 
            -
                    # The beneficiary's address line 3.
         | 
| 43 | 
            -
                    beneficiary_address_line3: nil,
         | 
| 34 | 
            +
                    # The person or business whose funds are being transferred. This is only necessary
         | 
| 35 | 
            +
                    # if you're transferring from a commingled account. Otherwise, we'll use the
         | 
| 36 | 
            +
                    # associated entity's details.
         | 
| 37 | 
            +
                    debtor: nil,
         | 
| 44 38 | 
             
                    # The ID of an External Account to initiate a transfer to. If this parameter is
         | 
| 45 39 | 
             
                    # provided, `account_number` and `routing_number` must be absent.
         | 
| 46 40 | 
             
                    external_account_id: nil,
         | 
| 47 41 | 
             
                    # The ID of an Inbound Wire Drawdown Request in response to which this transfer is
         | 
| 48 42 | 
             
                    # being sent.
         | 
| 49 43 | 
             
                    inbound_wire_drawdown_request_id: nil,
         | 
| 50 | 
            -
                    # The originator's address line 1. This is only necessary if you're transferring
         | 
| 51 | 
            -
                    # from a commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 52 | 
            -
                    originator_address_line1: nil,
         | 
| 53 | 
            -
                    # The originator's address line 2. This is only necessary if you're transferring
         | 
| 54 | 
            -
                    # from a commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 55 | 
            -
                    originator_address_line2: nil,
         | 
| 56 | 
            -
                    # The originator's address line 3. This is only necessary if you're transferring
         | 
| 57 | 
            -
                    # from a commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 58 | 
            -
                    originator_address_line3: nil,
         | 
| 59 | 
            -
                    # The originator's name. This is only necessary if you're transferring from a
         | 
| 60 | 
            -
                    # commingled account. Otherwise, we'll use the associated entity's details.
         | 
| 61 | 
            -
                    originator_name: nil,
         | 
| 62 | 
            -
                    # Additional remittance information related to the wire transfer.
         | 
| 63 | 
            -
                    remittance: nil,
         | 
| 64 44 | 
             
                    # Whether the transfer requires explicit approval via the dashboard or API.
         | 
| 65 45 | 
             
                    require_approval: nil,
         | 
| 66 46 | 
             
                    # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
         |