Class Eip155SubmitResponse.Builder
-
- All Implemented Interfaces:
public final class Eip155SubmitResponse.BuilderA builder for Eip155SubmitResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final Eip155SubmitResponse.Builder id(String id)
ID of
EIP155OrderRequest. This is the primary identifier for the/order_requestsroutes.
-
id
final Eip155SubmitResponse.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
accountId
final Eip155SubmitResponse.Builder accountId(String accountId)
ID of
Accountplacing theEIP155OrderRequest.
-
accountId
final Eip155SubmitResponse.Builder accountId(JsonField<String> accountId)
Sets Builder.accountId to an arbitrary JSON value.
You should usually call Builder.accountId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdDt
final Eip155SubmitResponse.Builder createdDt(OffsetDateTime createdDt)
Datetime at which the
EIP155OrderRequestwas created. ISO 8601 timestamp.
-
createdDt
final Eip155SubmitResponse.Builder createdDt(JsonField<OffsetDateTime> createdDt)
Sets Builder.createdDt to an arbitrary JSON value.
You should usually call Builder.createdDt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderSide
final Eip155SubmitResponse.Builder orderSide(OrderSide orderSide)
Indicates whether
Orderis a buy or sell.
-
orderSide
final Eip155SubmitResponse.Builder orderSide(JsonField<OrderSide> orderSide)
Sets Builder.orderSide to an arbitrary JSON value.
You should usually call Builder.orderSide with a well-typed OrderSide value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderTif
final Eip155SubmitResponse.Builder orderTif(OrderTif orderTif)
Indicates how long
Orderis valid for.
-
orderTif
final Eip155SubmitResponse.Builder orderTif(JsonField<OrderTif> orderTif)
Sets Builder.orderTif to an arbitrary JSON value.
You should usually call Builder.orderTif with a well-typed OrderTif value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderType
final Eip155SubmitResponse.Builder orderType(OrderType orderType)
Type of
Order.
-
orderType
final Eip155SubmitResponse.Builder orderType(JsonField<OrderType> orderType)
Sets Builder.orderType to an arbitrary JSON value.
You should usually call Builder.orderType with a well-typed OrderType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final Eip155SubmitResponse.Builder status(OrderRequestStatus status)
Status of
EIP155OrderRequest. Possible values:QUOTED: Order request created with fee quote provided, ready for processingPENDING: Order request is being prepared for submissionPENDING_BRIDGE: Order is waiting for bridge transaction to completeSUBMITTED: Order has been successfully submitted to the order bookERROR: An error occurred during order processingCANCELLED: Order request was cancelledEXPIRED: Order request expired due to deadline passing
-
status
final Eip155SubmitResponse.Builder status(JsonField<OrderRequestStatus> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed OrderRequestStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
cancelMessage
final Eip155SubmitResponse.Builder cancelMessage(String cancelMessage)
Reason for the order cancellation if the order status is CANCELLED
-
cancelMessage
final Eip155SubmitResponse.Builder cancelMessage(Optional<String> cancelMessage)
Alias for calling Builder.cancelMessage with
cancelMessage.orElse(null).
-
cancelMessage
final Eip155SubmitResponse.Builder cancelMessage(JsonField<String> cancelMessage)
Sets Builder.cancelMessage to an arbitrary JSON value.
You should usually call Builder.cancelMessage with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderId
final Eip155SubmitResponse.Builder orderId(String orderId)
ID of
Ordercreated from theEIP155OrderRequest. This is the primary identifier for the/ordersroutes.
-
orderId
final Eip155SubmitResponse.Builder orderId(Optional<String> orderId)
Alias for calling Builder.orderId with
orderId.orElse(null).
-
orderId
final Eip155SubmitResponse.Builder orderId(JsonField<String> orderId)
Sets Builder.orderId to an arbitrary JSON value.
You should usually call Builder.orderId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
recipientAccountId
final Eip155SubmitResponse.Builder recipientAccountId(String recipientAccountId)
ID of recipient
Account.
-
recipientAccountId
final Eip155SubmitResponse.Builder recipientAccountId(Optional<String> recipientAccountId)
Alias for calling Builder.recipientAccountId with
recipientAccountId.orElse(null).
-
recipientAccountId
final Eip155SubmitResponse.Builder recipientAccountId(JsonField<String> recipientAccountId)
Sets Builder.recipientAccountId to an arbitrary JSON value.
You should usually call Builder.recipientAccountId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final Eip155SubmitResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Eip155SubmitResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Eip155SubmitResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Eip155SubmitResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Eip155SubmitResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Eip155SubmitResponse build()
Returns an immutable instance of Eip155SubmitResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .accountId() .createdDt() .orderSide() .orderTif() .orderType() .status()
-
-
-
-