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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamount(BigDecimal amount) delayUntil(OffsetDateTime delayUntil) booleanCreate an instance of CreateSimulatedIncomingWireRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Amount of the incoming wire.\"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łotyAccepted and returned in the response, but not currently used.Must contain an FFC (For Further Credit) string identifying the destination account, in the form `FFC <correspondent>-<account_number>`.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAmount(BigDecimal amount) voidsetCurrency(String currency) voidsetDelayUntil(OffsetDateTime delayUntil) voidsetWireInstructions(String wireInstructions) toJson()Convert an instance of CreateSimulatedIncomingWireRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwireInstructions(String wireInstructions)
-
Field Details
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_DELAY_UNTIL
- See Also:
-
SERIALIZED_NAME_WIRE_INSTRUCTIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateSimulatedIncomingWireRequest
public CreateSimulatedIncomingWireRequest()
-
-
Method Details
-
amount
-
getAmount
Amount of the incoming wire. Must be greater than 0.- Returns:
- amount
-
setAmount
-
currency
-
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
-
delayUntil
-
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
-
wireInstructions
-
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
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the CreateSimulatedIncomingWireRequest instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of CreateSimulatedIncomingWireRequest to an JSON string- Returns:
- JSON string
-