# 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 InlineResponse200142Data
#'
#' @description InlineResponse200142Data Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field token character
#'
#' @field amount character
#'
#' @field referenceNo character
#'
#' @field identityNo character
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
InlineResponse200142Data <- R6::R6Class(
'InlineResponse200142Data',
public = list(
`token` = NULL,
`amount` = NULL,
`referenceNo` = NULL,
`identityNo` = NULL,
initialize = function(
`token`, `amount`, `referenceNo`, `identityNo`, ...
) {
local.optional.var <- list(...)
if (!missing(`token`)) {
stopifnot(is.character(`token`), length(`token`) == 1)
self$`token` <- `token`
}
if (!missing(`amount`)) {
stopifnot(is.character(`amount`), length(`amount`) == 1)
self$`amount` <- `amount`
}
if (!missing(`referenceNo`)) {
stopifnot(is.character(`referenceNo`), length(`referenceNo`) == 1)
self$`referenceNo` <- `referenceNo`
}
if (!missing(`identityNo`)) {
stopifnot(is.character(`identityNo`), length(`identityNo`) == 1)
self$`identityNo` <- `identityNo`
}
},
toJSON = function() {
InlineResponse200142DataObject <- list()
if (!is.null(self$`token`)) {
InlineResponse200142DataObject[['token']] <-
self$`token`
}
if (!is.null(self$`amount`)) {
InlineResponse200142DataObject[['amount']] <-
self$`amount`
}
if (!is.null(self$`referenceNo`)) {
InlineResponse200142DataObject[['referenceNo']] <-
self$`referenceNo`
}
if (!is.null(self$`identityNo`)) {
InlineResponse200142DataObject[['identityNo']] <-
self$`identityNo`
}
InlineResponse200142DataObject
},
fromJSON = function(InlineResponse200142DataJson) {
InlineResponse200142DataObject <- jsonlite::fromJSON(InlineResponse200142DataJson)
if (!is.null(InlineResponse200142DataObject$`token`)) {
self$`token` <- InlineResponse200142DataObject$`token`
}
if (!is.null(InlineResponse200142DataObject$`amount`)) {
self$`amount` <- InlineResponse200142DataObject$`amount`
}
if (!is.null(InlineResponse200142DataObject$`referenceNo`)) {
self$`referenceNo` <- InlineResponse200142DataObject$`referenceNo`
}
if (!is.null(InlineResponse200142DataObject$`identityNo`)) {
self$`identityNo` <- InlineResponse200142DataObject$`identityNo`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`token`)) {
sprintf(
'"token":
"%s"
',
self$`token`
)},
if (!is.null(self$`amount`)) {
sprintf(
'"amount":
"%s"
',
self$`amount`
)},
if (!is.null(self$`referenceNo`)) {
sprintf(
'"referenceNo":
"%s"
',
self$`referenceNo`
)},
if (!is.null(self$`identityNo`)) {
sprintf(
'"identityNo":
"%s"
',
self$`identityNo`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(InlineResponse200142DataJson) {
InlineResponse200142DataObject <- jsonlite::fromJSON(InlineResponse200142DataJson)
self$`token` <- InlineResponse200142DataObject$`token`
self$`amount` <- InlineResponse200142DataObject$`amount`
self$`referenceNo` <- InlineResponse200142DataObject$`referenceNo`
self$`identityNo` <- InlineResponse200142DataObject$`identityNo`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.