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