# Binance Public Spot API
#
# OpenAPI Specifications for the Binance Public Spot API API documents: - [https://github.com/binance/binance-spot-api-docs](https://github.com/binance/binance-spot-api-docs) - [https://binance-docs.github.io/apidocs/spot/en](https://binance-docs.github.io/apidocs/spot/en)
#
# The version of the OpenAPI document: 1.0
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title InlineResponse20037
#'
#' @description InlineResponse20037 Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field address character
#'
#' @field amount character
#'
#' @field applyTime character
#'
#' @field coin character
#'
#' @field id character
#'
#' @field withdrawOrderId character
#'
#' @field network character
#'
#' @field transferType integer
#'
#' @field status integer
#'
#' @field transactionFee character
#'
#' @field confirmNo integer [optional]
#'
#' @field info character [optional]
#'
#' @field txId character
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse20037 <- R6::R6Class(
'InlineResponse20037',
public = list(
`address` = NULL,
`amount` = NULL,
`applyTime` = NULL,
`coin` = NULL,
`id` = NULL,
`withdrawOrderId` = NULL,
`network` = NULL,
`transferType` = NULL,
`status` = NULL,
`transactionFee` = NULL,
`confirmNo` = NULL,
`info` = NULL,
`txId` = NULL,
initialize = function(
`address`, `amount`, `applyTime`, `coin`, `id`, `withdrawOrderId`, `network`, `transferType`, `status`, `transactionFee`, `txId`, `confirmNo`=NULL, `info`=NULL, ...
) {
local.optional.var <- list(...)
if (!missing(`address`)) {
stopifnot(is.character(`address`), length(`address`) == 1)
self$`address` <- `address`
}
if (!missing(`amount`)) {
stopifnot(is.character(`amount`), length(`amount`) == 1)
self$`amount` <- `amount`
}
if (!missing(`applyTime`)) {
stopifnot(is.character(`applyTime`), length(`applyTime`) == 1)
self$`applyTime` <- `applyTime`
}
if (!missing(`coin`)) {
stopifnot(is.character(`coin`), length(`coin`) == 1)
self$`coin` <- `coin`
}
if (!missing(`id`)) {
stopifnot(is.character(`id`), length(`id`) == 1)
self$`id` <- `id`
}
if (!missing(`withdrawOrderId`)) {
stopifnot(is.character(`withdrawOrderId`), length(`withdrawOrderId`) == 1)
self$`withdrawOrderId` <- `withdrawOrderId`
}
if (!missing(`network`)) {
stopifnot(is.character(`network`), length(`network`) == 1)
self$`network` <- `network`
}
if (!missing(`transferType`)) {
stopifnot(is.numeric(`transferType`), length(`transferType`) == 1)
self$`transferType` <- `transferType`
}
if (!missing(`status`)) {
stopifnot(is.numeric(`status`), length(`status`) == 1)
self$`status` <- `status`
}
if (!missing(`transactionFee`)) {
stopifnot(is.character(`transactionFee`), length(`transactionFee`) == 1)
self$`transactionFee` <- `transactionFee`
}
if (!missing(`txId`)) {
stopifnot(is.character(`txId`), length(`txId`) == 1)
self$`txId` <- `txId`
}
if (!is.null(`confirmNo`)) {
stopifnot(is.numeric(`confirmNo`), length(`confirmNo`) == 1)
self$`confirmNo` <- `confirmNo`
}
if (!is.null(`info`)) {
stopifnot(is.character(`info`), length(`info`) == 1)
self$`info` <- `info`
}
},
toJSON = function() {
InlineResponse20037Object <- list()
if (!is.null(self$`address`)) {
InlineResponse20037Object[['address']] <-
self$`address`
}
if (!is.null(self$`amount`)) {
InlineResponse20037Object[['amount']] <-
self$`amount`
}
if (!is.null(self$`applyTime`)) {
InlineResponse20037Object[['applyTime']] <-
self$`applyTime`
}
if (!is.null(self$`coin`)) {
InlineResponse20037Object[['coin']] <-
self$`coin`
}
if (!is.null(self$`id`)) {
InlineResponse20037Object[['id']] <-
self$`id`
}
if (!is.null(self$`withdrawOrderId`)) {
InlineResponse20037Object[['withdrawOrderId']] <-
self$`withdrawOrderId`
}
if (!is.null(self$`network`)) {
InlineResponse20037Object[['network']] <-
self$`network`
}
if (!is.null(self$`transferType`)) {
InlineResponse20037Object[['transferType']] <-
self$`transferType`
}
if (!is.null(self$`status`)) {
InlineResponse20037Object[['status']] <-
self$`status`
}
if (!is.null(self$`transactionFee`)) {
InlineResponse20037Object[['transactionFee']] <-
self$`transactionFee`
}
if (!is.null(self$`confirmNo`)) {
InlineResponse20037Object[['confirmNo']] <-
self$`confirmNo`
}
if (!is.null(self$`info`)) {
InlineResponse20037Object[['info']] <-
self$`info`
}
if (!is.null(self$`txId`)) {
InlineResponse20037Object[['txId']] <-
self$`txId`
}
InlineResponse20037Object
},
fromJSON = function(InlineResponse20037Json) {
InlineResponse20037Object <- jsonlite::fromJSON(InlineResponse20037Json)
if (!is.null(InlineResponse20037Object$`address`)) {
self$`address` <- InlineResponse20037Object$`address`
}
if (!is.null(InlineResponse20037Object$`amount`)) {
self$`amount` <- InlineResponse20037Object$`amount`
}
if (!is.null(InlineResponse20037Object$`applyTime`)) {
self$`applyTime` <- InlineResponse20037Object$`applyTime`
}
if (!is.null(InlineResponse20037Object$`coin`)) {
self$`coin` <- InlineResponse20037Object$`coin`
}
if (!is.null(InlineResponse20037Object$`id`)) {
self$`id` <- InlineResponse20037Object$`id`
}
if (!is.null(InlineResponse20037Object$`withdrawOrderId`)) {
self$`withdrawOrderId` <- InlineResponse20037Object$`withdrawOrderId`
}
if (!is.null(InlineResponse20037Object$`network`)) {
self$`network` <- InlineResponse20037Object$`network`
}
if (!is.null(InlineResponse20037Object$`transferType`)) {
self$`transferType` <- InlineResponse20037Object$`transferType`
}
if (!is.null(InlineResponse20037Object$`status`)) {
self$`status` <- InlineResponse20037Object$`status`
}
if (!is.null(InlineResponse20037Object$`transactionFee`)) {
self$`transactionFee` <- InlineResponse20037Object$`transactionFee`
}
if (!is.null(InlineResponse20037Object$`confirmNo`)) {
self$`confirmNo` <- InlineResponse20037Object$`confirmNo`
}
if (!is.null(InlineResponse20037Object$`info`)) {
self$`info` <- InlineResponse20037Object$`info`
}
if (!is.null(InlineResponse20037Object$`txId`)) {
self$`txId` <- InlineResponse20037Object$`txId`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`address`)) {
sprintf(
'"address":
"%s"
',
self$`address`
)},
if (!is.null(self$`amount`)) {
sprintf(
'"amount":
"%s"
',
self$`amount`
)},
if (!is.null(self$`applyTime`)) {
sprintf(
'"applyTime":
"%s"
',
self$`applyTime`
)},
if (!is.null(self$`coin`)) {
sprintf(
'"coin":
"%s"
',
self$`coin`
)},
if (!is.null(self$`id`)) {
sprintf(
'"id":
"%s"
',
self$`id`
)},
if (!is.null(self$`withdrawOrderId`)) {
sprintf(
'"withdrawOrderId":
"%s"
',
self$`withdrawOrderId`
)},
if (!is.null(self$`network`)) {
sprintf(
'"network":
"%s"
',
self$`network`
)},
if (!is.null(self$`transferType`)) {
sprintf(
'"transferType":
%d
',
self$`transferType`
)},
if (!is.null(self$`status`)) {
sprintf(
'"status":
%d
',
self$`status`
)},
if (!is.null(self$`transactionFee`)) {
sprintf(
'"transactionFee":
"%s"
',
self$`transactionFee`
)},
if (!is.null(self$`confirmNo`)) {
sprintf(
'"confirmNo":
%d
',
self$`confirmNo`
)},
if (!is.null(self$`info`)) {
sprintf(
'"info":
"%s"
',
self$`info`
)},
if (!is.null(self$`txId`)) {
sprintf(
'"txId":
"%s"
',
self$`txId`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(InlineResponse20037Json) {
InlineResponse20037Object <- jsonlite::fromJSON(InlineResponse20037Json)
self$`address` <- InlineResponse20037Object$`address`
self$`amount` <- InlineResponse20037Object$`amount`
self$`applyTime` <- InlineResponse20037Object$`applyTime`
self$`coin` <- InlineResponse20037Object$`coin`
self$`id` <- InlineResponse20037Object$`id`
self$`withdrawOrderId` <- InlineResponse20037Object$`withdrawOrderId`
self$`network` <- InlineResponse20037Object$`network`
self$`transferType` <- InlineResponse20037Object$`transferType`
self$`status` <- InlineResponse20037Object$`status`
self$`transactionFee` <- InlineResponse20037Object$`transactionFee`
self$`confirmNo` <- InlineResponse20037Object$`confirmNo`
self$`info` <- InlineResponse20037Object$`info`
self$`txId` <- InlineResponse20037Object$`txId`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.