tests/testthat/test_inline_response200120_data.R

# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate

context("Test InlineResponse200120Data")

model.instance <- InlineResponse200120Data$new()

test_that("orderType", {
  # tests for the property `orderType` (character)
  # Enum:PAY(C2B Merchant Acquiring Payment), PAY_REFUND(C2B Merchant Acquiring Payment,refund), C2C(C2C Transfer Payment),CRYPTO_BOX(Crypto box), CRYPTO_BOX_RF(Crypto Box, refund), C2C_HOLDING(Transfer to new Binance user), C2C_HOLDING_RF(Transfer to new Binance user,refund), PAYOUT(B2C Disbursement Payment)

  # uncomment below to test the property
  #expect_equal(model.instance$`orderType`, "EXPECTED_RESULT")
})

test_that("transactionId", {
  # tests for the property `transactionId` (character)

  # uncomment below to test the property
  #expect_equal(model.instance$`transactionId`, "EXPECTED_RESULT")
})

test_that("transactionTime", {
  # tests for the property `transactionTime` (integer)

  # uncomment below to test the property
  #expect_equal(model.instance$`transactionTime`, "EXPECTED_RESULT")
})

test_that("amount", {
  # tests for the property `amount` (character)
  # order amount(up to 8 decimal places), positive is income, negative is expenditure

  # uncomment below to test the property
  #expect_equal(model.instance$`amount`, "EXPECTED_RESULT")
})

test_that("currency", {
  # tests for the property `currency` (character)

  # uncomment below to test the property
  #expect_equal(model.instance$`currency`, "EXPECTED_RESULT")
})

test_that("fundsDetail", {
  # tests for the property `fundsDetail` (array[InlineResponse200120FundsDetail])

  # uncomment below to test the property
  #expect_equal(model.instance$`fundsDetail`, "EXPECTED_RESULT")
})
grahamjwhite/binanceRapi documentation built on Nov. 22, 2022, 9:37 p.m.