Class CreateSimulatedIncomingWireRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.28.0") public class CreateSimulatedIncomingWireRequest extends Object implements Serializable
Request body for simulating an incoming wire transfer in the sandbox environment. `currency` defaults to `USD` when omitted and must match the base currency of the destination account. Supported currencies are `AUD`, `CAD`, `CHF`, `EUR`, `GBP`, `JPY`, `NZD`, `SGD`, `TRY`, and `USD`. Other currencies are rejected with `422`.
See Also:
  • Field Details

  • Constructor Details

    • CreateSimulatedIncomingWireRequest

      public CreateSimulatedIncomingWireRequest()
  • Method Details

    • amount

      public CreateSimulatedIncomingWireRequest amount(@Nonnull BigDecimal amount)
    • getAmount

      @Nonnull public BigDecimal getAmount()
      Amount of the incoming wire. Must be greater than 0.
      Returns:
      amount
    • setAmount

      public void setAmount(@Nonnull BigDecimal amount)
    • currency

      public CreateSimulatedIncomingWireRequest currency(@Nullable String currency)
    • getCurrency

      @Nullable 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(@Nullable String currency)
    • delayUntil

      public CreateSimulatedIncomingWireRequest delayUntil(@Nullable OffsetDateTime delayUntil)
    • getDelayUntil

      @Nullable public OffsetDateTime getDelayUntil()
      Accepted and returned in the response, but not currently used. The wire is processed on the next worker run regardless of this value.
      Returns:
      delayUntil
    • setDelayUntil

      public void setDelayUntil(@Nullable OffsetDateTime delayUntil)
    • wireInstructions

      public CreateSimulatedIncomingWireRequest wireInstructions(@Nonnull String wireInstructions)
    • getWireInstructions

      @Nonnull public String getWireInstructions()
      Must contain an FFC (For Further Credit) string identifying the destination account, in the form `FFC <correspondent>-<account_number>`. The hyphen can also be a space or omitted. Text before or after the FFC string is ignored. `<correspondent>` must be your 4-character correspondent code, and `<account_number>` must be the 9-character account number of one of your accounts. Only the first 9 characters after the correspondent code are read as the account number.
      Returns:
      wireInstructions
    • setWireInstructions

      public void setWireInstructions(@Nonnull String wireInstructions)
    • putAdditionalProperty

      public CreateSimulatedIncomingWireRequest 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 CreateSimulatedIncomingWireRequest 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 CreateSimulatedIncomingWireRequest
    • fromJson

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

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