docs/A1099/V2/Get1099Form200Response

AvalaraSdk::A1099::V2::Get1099Form200Response

Class instance methods

openapi_one_of

Returns the list of classes defined in oneOf.

Example

require 'avalara_sdk'

AvalaraSdk::A1099::V2::Get1099Form200Response.openapi_one_of
# =>
# [
#   :'Form1042S',
#   :'Form1095B',
#   :'Form1095C',
#   :'Form1099Div',
#   :'Form1099Int',
#   :'Form1099K',
#   :'Form1099Misc',
#   :'Form1099Nec',
#   :'Form1099R'
# ]

build

Find the appropriate object from the openapi_one_of list and casts the data into it.

Example

require 'avalara_sdk'

AvalaraSdk::A1099::V2::Get1099Form200Response.build(data)
# => #

AvalaraSdk::A1099::V2::Get1099Form200Response.build(data_that_doesnt_match)
# => nil

Parameters

Name Type Description
data Mixed data to be matched against the list of oneOf items

Return type

  • Form1042S
  • Form1095B
  • Form1095C
  • Form1099Div
  • Form1099Int
  • Form1099K
  • Form1099Misc
  • Form1099Nec
  • Form1099R
  • nil (if no type matches)