Class SimulatedIncomingWire

java.lang.Object
markets.alpaca.client.openapi.broker.model.SimulatedIncomingWire
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.28.0") public class SimulatedIncomingWire extends Object implements Serializable
A simulated incoming wire transfer created with `POST /v1/testing/incoming_wires`. Available in the sandbox environment only.
See Also:
  • Field Details

  • Constructor Details

    • SimulatedIncomingWire

      public SimulatedIncomingWire()
  • Method Details

    • accountNumber

      public SimulatedIncomingWire accountNumber(@Nonnull String accountNumber)
    • getAccountNumber

      @Nonnull public String getAccountNumber()
      Account number of the destination account.
      Returns:
      accountNumber
    • setAccountNumber

      public void setAccountNumber(@Nonnull String accountNumber)
    • amount

      public SimulatedIncomingWire amount(@Nonnull BigDecimal amount)
    • getAmount

      @Nonnull public BigDecimal getAmount()
      Amount of the incoming wire.
      Returns:
      amount
    • setAmount

      public void setAmount(@Nonnull BigDecimal amount)
    • batchProcessedAt

      public SimulatedIncomingWire batchProcessedAt(@Nonnull OffsetDateTime batchProcessedAt)
    • getBatchProcessedAt

      @Nonnull public OffsetDateTime getBatchProcessedAt()
      Not currently populated. Always returns the zero time `0001-01-01T00:00:00Z`.
      Returns:
      batchProcessedAt
    • setBatchProcessedAt

      public void setBatchProcessedAt(@Nonnull OffsetDateTime batchProcessedAt)
    • correspondent

      public SimulatedIncomingWire correspondent(@Nonnull String correspondent)
    • getCorrespondent

      @Nonnull public String getCorrespondent()
      Your 4-character correspondent code.
      Returns:
      correspondent
    • setCorrespondent

      public void setCorrespondent(@Nonnull String correspondent)
    • createAt

      public SimulatedIncomingWire createAt(@Nonnull OffsetDateTime createAt)
    • getCreateAt

      @Nonnull public OffsetDateTime getCreateAt()
      Timestamp when the incoming wire was created.
      Returns:
      createAt
    • setCreateAt

      public void setCreateAt(@Nonnull OffsetDateTime createAt)
    • currency

      public SimulatedIncomingWire currency(@Nonnull String currency)
    • getCurrency

      @Nonnull public String getCurrency()
      \"USD\" // US Dollar \"JPY\" // Japanese Yen \"EUR\" // Euro \"CAD\" // Canadian Dollar \"GBP\" // British Pound Sterling \"CHF\" // Swiss Franc \"TRY\" // Turkish Lira \"AUD\" // Australian Dollar \"CZK\" // Czech Koruna \"SEK\" // Swedish Krona \"DKK\" // Danish Krone \"SGD\" // Singapore Dollar \"HKD\" // Hong Kong Dollar \"HUF\" // Hungarian Forint \"NZD\" // New Zealand Dollar \"NOK\" // Norwegian Krone \"PLN\" // Poland Złoty
      Returns:
      currency
    • setCurrency

      public void setCurrency(@Nonnull String currency)
    • delayUntil

      public SimulatedIncomingWire delayUntil(@Nullable OffsetDateTime delayUntil)
    • getDelayUntil

      @Nullable public OffsetDateTime getDelayUntil()
      The `delay_until` value from the request, or `null` if none was sent. Not used to delay processing.
      Returns:
      delayUntil
    • setDelayUntil

      public void setDelayUntil(@Nullable OffsetDateTime delayUntil)
    • id

      public SimulatedIncomingWire id(@Nonnull UUID id)
    • getId

      @Nonnull public UUID getId()
      The incoming wire ID.
      Returns:
      id
    • setId

      public void setId(@Nonnull UUID id)
    • status

      public SimulatedIncomingWire status(@Nonnull TransferStatus status)
    • getStatus

      @Nonnull public TransferStatus getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus(@Nonnull TransferStatus status)
    • wireInstructions

      public SimulatedIncomingWire wireInstructions(@Nonnull String wireInstructions)
    • getWireInstructions

      @Nonnull public String getWireInstructions()
      The `wire_instructions` value from the request.
      Returns:
      wireInstructions
    • setWireInstructions

      public void setWireInstructions(@Nonnull String wireInstructions)
    • putAdditionalProperty

      public SimulatedIncomingWire putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the SimulatedIncomingWire instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to SimulatedIncomingWire
    • fromJson

      public static SimulatedIncomingWire fromJson(String jsonString) throws IOException
      Create an instance of SimulatedIncomingWire given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of SimulatedIncomingWire
      Throws:
      IOException - if the JSON string is invalid with respect to SimulatedIncomingWire
    • toJson

      public String toJson()
      Convert an instance of SimulatedIncomingWire to an JSON string
      Returns:
      JSON string