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