class Plaid::Credit1099

An object representing an end user’s 1099 tax form

Attributes

april_amount[RW]

Amount reported for April.

august_amount[RW]

Amount reported for August.

card_not_present_transaction[RW]

Amount in card not present transactions.

crop_insurance_proceeds[RW]

Amount of crop insurance proceeds.

december_amount[RW]

Amount reported for December.

document_id[RW]

An identifier of the document referenced by the document metadata.

document_metadata[RW]
excess_golden_parachute_payments[RW]

Amount of golden parachute payments made by payer.

february_amount[RW]

Amount reported for February.

federal_income_tax_withheld[RW]

Amount of federal income tax withheld from payer.

filer[RW]
fishing_boat_proceeds[RW]

Amount of fishing boat proceeds from payer.

form_1099_type[RW]
gross_amount[RW]

Gross amount reported.

gross_proceeds_paid_to_an_attorney[RW]

Amount of gross proceeds paid to an attorney by payer.

january_amount[RW]

Amount reported for January.

july_amount[RW]

Amount reported for July.

june_amount[RW]

Amount reported for June.

march_amount[RW]

Amount reported for March.

may_amount[RW]

Amount reported for May.

medical_and_healthcare_payments[RW]

Amount of medical and healthcare payments from payer.

merchant_category_code[RW]

Merchant category of filer.

nonemployee_compensation[RW]

Amount of nonemployee compensation from payer.

november_amount[RW]

Amount reported for November.

number_of_payment_transactions[RW]

Number of payment transactions made.

october_amount[RW]

Amount reported for October.

other_income[RW]

Amount in other income by payer.

payer[RW]
payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer[RW]

Whether or not payer made direct sales over $5000 of consumer products.

payer_state_number[RW]

Primary state ID.

payer_state_number_lower[RW]

Secondary state ID.

primary_state[RW]

Primary state of business.

primary_state_id[RW]

Primary state ID.

primary_state_income_tax[RW]

State income tax reported for primary state.

pse_name[RW]

Name of the PSE (Payment Settlement Entity).

pse_telephone_number[RW]

Formatted (XXX) XXX-XXXX. Phone number of the PSE (Payment Settlement Entity).

recipient[RW]
rents[RW]

Amount in rent by payer.

royalties[RW]

Amount in royalties by payer.

secondary_state[RW]

Secondary state of business.

secondary_state_id[RW]

Secondary state ID.

secondary_state_income_tax[RW]

State income tax reported for secondary state.

section_409a_deferrals[RW]

Amount of 409A deferrals earned by payer.

section_409a_income[RW]

Amount of 409A income earned by payer.

september_amount[RW]

Amount reported for September.

state_income[RW]

State income reported for primary state.

state_income_lower[RW]

State income reported for secondary state.

state_tax_withheld[RW]

Amount of state tax withheld of payer for primary state.

state_tax_withheld_lower[RW]

Amount of state tax withheld of payer for secondary state.

substitute_payments_in_lieu_of_dividends_or_interest[RW]

Amount of substitute payments made by payer.

tax_year[RW]

Tax year of the tax form.

transactions_reported[RW]

One of the values will be provided Payment card Third party network

Public Class Methods

acceptable_attributes() click to toggle source

Returns all the JSON keys this model knows about

# File lib/plaid/models/credit1099.rb, line 251
def self.acceptable_attributes
  attribute_map.values
end
attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# File lib/plaid/models/credit1099.rb, line 193
def self.attribute_map
  {
    :'document_id' => :'document_id',
    :'document_metadata' => :'document_metadata',
    :'form_1099_type' => :'form_1099_type',
    :'recipient' => :'recipient',
    :'payer' => :'payer',
    :'filer' => :'filer',
    :'tax_year' => :'tax_year',
    :'rents' => :'rents',
    :'royalties' => :'royalties',
    :'other_income' => :'other_income',
    :'federal_income_tax_withheld' => :'federal_income_tax_withheld',
    :'fishing_boat_proceeds' => :'fishing_boat_proceeds',
    :'medical_and_healthcare_payments' => :'medical_and_healthcare_payments',
    :'nonemployee_compensation' => :'nonemployee_compensation',
    :'substitute_payments_in_lieu_of_dividends_or_interest' => :'substitute_payments_in_lieu_of_dividends_or_interest',
    :'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer' => :'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer',
    :'crop_insurance_proceeds' => :'crop_insurance_proceeds',
    :'excess_golden_parachute_payments' => :'excess_golden_parachute_payments',
    :'gross_proceeds_paid_to_an_attorney' => :'gross_proceeds_paid_to_an_attorney',
    :'section_409a_deferrals' => :'section_409a_deferrals',
    :'section_409a_income' => :'section_409a_income',
    :'state_tax_withheld' => :'state_tax_withheld',
    :'state_tax_withheld_lower' => :'state_tax_withheld_lower',
    :'payer_state_number' => :'payer_state_number',
    :'payer_state_number_lower' => :'payer_state_number_lower',
    :'state_income' => :'state_income',
    :'state_income_lower' => :'state_income_lower',
    :'transactions_reported' => :'transactions_reported',
    :'pse_name' => :'pse_name',
    :'pse_telephone_number' => :'pse_telephone_number',
    :'gross_amount' => :'gross_amount',
    :'card_not_present_transaction' => :'card_not_present_transaction',
    :'merchant_category_code' => :'merchant_category_code',
    :'number_of_payment_transactions' => :'number_of_payment_transactions',
    :'january_amount' => :'january_amount',
    :'february_amount' => :'february_amount',
    :'march_amount' => :'march_amount',
    :'april_amount' => :'april_amount',
    :'may_amount' => :'may_amount',
    :'june_amount' => :'june_amount',
    :'july_amount' => :'july_amount',
    :'august_amount' => :'august_amount',
    :'september_amount' => :'september_amount',
    :'october_amount' => :'october_amount',
    :'november_amount' => :'november_amount',
    :'december_amount' => :'december_amount',
    :'primary_state' => :'primary_state',
    :'secondary_state' => :'secondary_state',
    :'primary_state_id' => :'primary_state_id',
    :'secondary_state_id' => :'secondary_state_id',
    :'primary_state_income_tax' => :'primary_state_income_tax',
    :'secondary_state_income_tax' => :'secondary_state_income_tax'
  }
end
build_from_hash(attributes) click to toggle source

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself

# File lib/plaid/models/credit1099.rb, line 677
def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/plaid/models/credit1099.rb, line 368
def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `Plaid::Credit1099` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `Plaid::Credit1099`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'document_id')
    self.document_id = attributes[:'document_id']
  end

  if attributes.key?(:'document_metadata')
    self.document_metadata = attributes[:'document_metadata']
  end

  if attributes.key?(:'form_1099_type')
    self.form_1099_type = attributes[:'form_1099_type']
  end

  if attributes.key?(:'recipient')
    self.recipient = attributes[:'recipient']
  end

  if attributes.key?(:'payer')
    self.payer = attributes[:'payer']
  end

  if attributes.key?(:'filer')
    self.filer = attributes[:'filer']
  end

  if attributes.key?(:'tax_year')
    self.tax_year = attributes[:'tax_year']
  end

  if attributes.key?(:'rents')
    self.rents = attributes[:'rents']
  end

  if attributes.key?(:'royalties')
    self.royalties = attributes[:'royalties']
  end

  if attributes.key?(:'other_income')
    self.other_income = attributes[:'other_income']
  end

  if attributes.key?(:'federal_income_tax_withheld')
    self.federal_income_tax_withheld = attributes[:'federal_income_tax_withheld']
  end

  if attributes.key?(:'fishing_boat_proceeds')
    self.fishing_boat_proceeds = attributes[:'fishing_boat_proceeds']
  end

  if attributes.key?(:'medical_and_healthcare_payments')
    self.medical_and_healthcare_payments = attributes[:'medical_and_healthcare_payments']
  end

  if attributes.key?(:'nonemployee_compensation')
    self.nonemployee_compensation = attributes[:'nonemployee_compensation']
  end

  if attributes.key?(:'substitute_payments_in_lieu_of_dividends_or_interest')
    self.substitute_payments_in_lieu_of_dividends_or_interest = attributes[:'substitute_payments_in_lieu_of_dividends_or_interest']
  end

  if attributes.key?(:'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer')
    self.payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer = attributes[:'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer']
  end

  if attributes.key?(:'crop_insurance_proceeds')
    self.crop_insurance_proceeds = attributes[:'crop_insurance_proceeds']
  end

  if attributes.key?(:'excess_golden_parachute_payments')
    self.excess_golden_parachute_payments = attributes[:'excess_golden_parachute_payments']
  end

  if attributes.key?(:'gross_proceeds_paid_to_an_attorney')
    self.gross_proceeds_paid_to_an_attorney = attributes[:'gross_proceeds_paid_to_an_attorney']
  end

  if attributes.key?(:'section_409a_deferrals')
    self.section_409a_deferrals = attributes[:'section_409a_deferrals']
  end

  if attributes.key?(:'section_409a_income')
    self.section_409a_income = attributes[:'section_409a_income']
  end

  if attributes.key?(:'state_tax_withheld')
    self.state_tax_withheld = attributes[:'state_tax_withheld']
  end

  if attributes.key?(:'state_tax_withheld_lower')
    self.state_tax_withheld_lower = attributes[:'state_tax_withheld_lower']
  end

  if attributes.key?(:'payer_state_number')
    self.payer_state_number = attributes[:'payer_state_number']
  end

  if attributes.key?(:'payer_state_number_lower')
    self.payer_state_number_lower = attributes[:'payer_state_number_lower']
  end

  if attributes.key?(:'state_income')
    self.state_income = attributes[:'state_income']
  end

  if attributes.key?(:'state_income_lower')
    self.state_income_lower = attributes[:'state_income_lower']
  end

  if attributes.key?(:'transactions_reported')
    self.transactions_reported = attributes[:'transactions_reported']
  end

  if attributes.key?(:'pse_name')
    self.pse_name = attributes[:'pse_name']
  end

  if attributes.key?(:'pse_telephone_number')
    self.pse_telephone_number = attributes[:'pse_telephone_number']
  end

  if attributes.key?(:'gross_amount')
    self.gross_amount = attributes[:'gross_amount']
  end

  if attributes.key?(:'card_not_present_transaction')
    self.card_not_present_transaction = attributes[:'card_not_present_transaction']
  end

  if attributes.key?(:'merchant_category_code')
    self.merchant_category_code = attributes[:'merchant_category_code']
  end

  if attributes.key?(:'number_of_payment_transactions')
    self.number_of_payment_transactions = attributes[:'number_of_payment_transactions']
  end

  if attributes.key?(:'january_amount')
    self.january_amount = attributes[:'january_amount']
  end

  if attributes.key?(:'february_amount')
    self.february_amount = attributes[:'february_amount']
  end

  if attributes.key?(:'march_amount')
    self.march_amount = attributes[:'march_amount']
  end

  if attributes.key?(:'april_amount')
    self.april_amount = attributes[:'april_amount']
  end

  if attributes.key?(:'may_amount')
    self.may_amount = attributes[:'may_amount']
  end

  if attributes.key?(:'june_amount')
    self.june_amount = attributes[:'june_amount']
  end

  if attributes.key?(:'july_amount')
    self.july_amount = attributes[:'july_amount']
  end

  if attributes.key?(:'august_amount')
    self.august_amount = attributes[:'august_amount']
  end

  if attributes.key?(:'september_amount')
    self.september_amount = attributes[:'september_amount']
  end

  if attributes.key?(:'october_amount')
    self.october_amount = attributes[:'october_amount']
  end

  if attributes.key?(:'november_amount')
    self.november_amount = attributes[:'november_amount']
  end

  if attributes.key?(:'december_amount')
    self.december_amount = attributes[:'december_amount']
  end

  if attributes.key?(:'primary_state')
    self.primary_state = attributes[:'primary_state']
  end

  if attributes.key?(:'secondary_state')
    self.secondary_state = attributes[:'secondary_state']
  end

  if attributes.key?(:'primary_state_id')
    self.primary_state_id = attributes[:'primary_state_id']
  end

  if attributes.key?(:'secondary_state_id')
    self.secondary_state_id = attributes[:'secondary_state_id']
  end

  if attributes.key?(:'primary_state_income_tax')
    self.primary_state_income_tax = attributes[:'primary_state_income_tax']
  end

  if attributes.key?(:'secondary_state_income_tax')
    self.secondary_state_income_tax = attributes[:'secondary_state_income_tax']
  end
end
openapi_nullable() click to toggle source

List of attributes with nullable: true

# File lib/plaid/models/credit1099.rb, line 314
def self.openapi_nullable
  Set.new([
    :'document_id',
    :'tax_year',
    :'rents',
    :'royalties',
    :'other_income',
    :'federal_income_tax_withheld',
    :'fishing_boat_proceeds',
    :'medical_and_healthcare_payments',
    :'nonemployee_compensation',
    :'substitute_payments_in_lieu_of_dividends_or_interest',
    :'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer',
    :'crop_insurance_proceeds',
    :'excess_golden_parachute_payments',
    :'gross_proceeds_paid_to_an_attorney',
    :'section_409a_deferrals',
    :'section_409a_income',
    :'state_tax_withheld',
    :'state_tax_withheld_lower',
    :'payer_state_number',
    :'payer_state_number_lower',
    :'state_income',
    :'state_income_lower',
    :'transactions_reported',
    :'pse_name',
    :'pse_telephone_number',
    :'gross_amount',
    :'card_not_present_transaction',
    :'merchant_category_code',
    :'number_of_payment_transactions',
    :'january_amount',
    :'february_amount',
    :'march_amount',
    :'april_amount',
    :'may_amount',
    :'june_amount',
    :'july_amount',
    :'august_amount',
    :'september_amount',
    :'october_amount',
    :'november_amount',
    :'december_amount',
    :'primary_state',
    :'secondary_state',
    :'primary_state_id',
    :'secondary_state_id',
    :'primary_state_income_tax',
    :'secondary_state_income_tax'
  ])
end
openapi_types() click to toggle source

Attribute type mapping.

# File lib/plaid/models/credit1099.rb, line 256
def self.openapi_types
  {
    :'document_id' => :'String',
    :'document_metadata' => :'CreditDocumentMetadata',
    :'form_1099_type' => :'Form1099Type',
    :'recipient' => :'Credit1099Recipient',
    :'payer' => :'Credit1099Payer',
    :'filer' => :'Credit1099Filer',
    :'tax_year' => :'String',
    :'rents' => :'Float',
    :'royalties' => :'Float',
    :'other_income' => :'Float',
    :'federal_income_tax_withheld' => :'Float',
    :'fishing_boat_proceeds' => :'Float',
    :'medical_and_healthcare_payments' => :'Float',
    :'nonemployee_compensation' => :'Float',
    :'substitute_payments_in_lieu_of_dividends_or_interest' => :'Float',
    :'payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer' => :'String',
    :'crop_insurance_proceeds' => :'Float',
    :'excess_golden_parachute_payments' => :'Float',
    :'gross_proceeds_paid_to_an_attorney' => :'Float',
    :'section_409a_deferrals' => :'Float',
    :'section_409a_income' => :'Float',
    :'state_tax_withheld' => :'Float',
    :'state_tax_withheld_lower' => :'Float',
    :'payer_state_number' => :'String',
    :'payer_state_number_lower' => :'String',
    :'state_income' => :'Float',
    :'state_income_lower' => :'Float',
    :'transactions_reported' => :'String',
    :'pse_name' => :'String',
    :'pse_telephone_number' => :'String',
    :'gross_amount' => :'Float',
    :'card_not_present_transaction' => :'Float',
    :'merchant_category_code' => :'String',
    :'number_of_payment_transactions' => :'String',
    :'january_amount' => :'Float',
    :'february_amount' => :'Float',
    :'march_amount' => :'Float',
    :'april_amount' => :'Float',
    :'may_amount' => :'Float',
    :'june_amount' => :'Float',
    :'july_amount' => :'Float',
    :'august_amount' => :'Float',
    :'september_amount' => :'Float',
    :'october_amount' => :'Float',
    :'november_amount' => :'Float',
    :'december_amount' => :'Float',
    :'primary_state' => :'String',
    :'secondary_state' => :'String',
    :'primary_state_id' => :'String',
    :'secondary_state_id' => :'String',
    :'primary_state_income_tax' => :'Float',
    :'secondary_state_income_tax' => :'Float'
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/plaid/models/credit1099.rb, line 605
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      document_id == o.document_id &&
      document_metadata == o.document_metadata &&
      form_1099_type == o.form_1099_type &&
      recipient == o.recipient &&
      payer == o.payer &&
      filer == o.filer &&
      tax_year == o.tax_year &&
      rents == o.rents &&
      royalties == o.royalties &&
      other_income == o.other_income &&
      federal_income_tax_withheld == o.federal_income_tax_withheld &&
      fishing_boat_proceeds == o.fishing_boat_proceeds &&
      medical_and_healthcare_payments == o.medical_and_healthcare_payments &&
      nonemployee_compensation == o.nonemployee_compensation &&
      substitute_payments_in_lieu_of_dividends_or_interest == o.substitute_payments_in_lieu_of_dividends_or_interest &&
      payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer == o.payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer &&
      crop_insurance_proceeds == o.crop_insurance_proceeds &&
      excess_golden_parachute_payments == o.excess_golden_parachute_payments &&
      gross_proceeds_paid_to_an_attorney == o.gross_proceeds_paid_to_an_attorney &&
      section_409a_deferrals == o.section_409a_deferrals &&
      section_409a_income == o.section_409a_income &&
      state_tax_withheld == o.state_tax_withheld &&
      state_tax_withheld_lower == o.state_tax_withheld_lower &&
      payer_state_number == o.payer_state_number &&
      payer_state_number_lower == o.payer_state_number_lower &&
      state_income == o.state_income &&
      state_income_lower == o.state_income_lower &&
      transactions_reported == o.transactions_reported &&
      pse_name == o.pse_name &&
      pse_telephone_number == o.pse_telephone_number &&
      gross_amount == o.gross_amount &&
      card_not_present_transaction == o.card_not_present_transaction &&
      merchant_category_code == o.merchant_category_code &&
      number_of_payment_transactions == o.number_of_payment_transactions &&
      january_amount == o.january_amount &&
      february_amount == o.february_amount &&
      march_amount == o.march_amount &&
      april_amount == o.april_amount &&
      may_amount == o.may_amount &&
      june_amount == o.june_amount &&
      july_amount == o.july_amount &&
      august_amount == o.august_amount &&
      september_amount == o.september_amount &&
      october_amount == o.october_amount &&
      november_amount == o.november_amount &&
      december_amount == o.december_amount &&
      primary_state == o.primary_state &&
      secondary_state == o.secondary_state &&
      primary_state_id == o.primary_state_id &&
      secondary_state_id == o.secondary_state_id &&
      primary_state_income_tax == o.primary_state_income_tax &&
      secondary_state_income_tax == o.secondary_state_income_tax
end
_deserialize(type, value) click to toggle source

Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data

# File lib/plaid/models/credit1099.rb, line 708
def _deserialize(type, value)
  case type.to_sym
  when :Time
    Time.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :Boolean
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    # models (e.g. Pet) or oneOf
    klass = Plaid.const_get(type)
    klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
  end
end
_to_hash(value) click to toggle source

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash

# File lib/plaid/models/credit1099.rb, line 779
def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end
build_from_hash(attributes) click to toggle source

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself

# File lib/plaid/models/credit1099.rb, line 684
def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  attributes = attributes.transform_keys(&:to_sym)
  self.class.openapi_types.each_pair do |key, type|
    if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
      self.send("#{key}=", nil)
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end
  end

  self
end
eql?(o) click to toggle source

@see the ‘==` method @param [Object] Object to be compared

# File lib/plaid/models/credit1099.rb, line 664
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Integer] Hash code

# File lib/plaid/models/credit1099.rb, line 670
def hash
  [document_id, document_metadata, form_1099_type, recipient, payer, filer, tax_year, rents, royalties, other_income, federal_income_tax_withheld, fishing_boat_proceeds, medical_and_healthcare_payments, nonemployee_compensation, substitute_payments_in_lieu_of_dividends_or_interest, payer_made_direct_sales_of_5000_or_more_of_consumer_products_to_buyer, crop_insurance_proceeds, excess_golden_parachute_payments, gross_proceeds_paid_to_an_attorney, section_409a_deferrals, section_409a_income, state_tax_withheld, state_tax_withheld_lower, payer_state_number, payer_state_number_lower, state_income, state_income_lower, transactions_reported, pse_name, pse_telephone_number, gross_amount, card_not_present_transaction, merchant_category_code, number_of_payment_transactions, january_amount, february_amount, march_amount, april_amount, may_amount, june_amount, july_amount, august_amount, september_amount, october_amount, november_amount, december_amount, primary_state, secondary_state, primary_state_id, secondary_state_id, primary_state_income_tax, secondary_state_income_tax].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/plaid/models/credit1099.rb, line 592
def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end
to_body() click to toggle source

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash

# File lib/plaid/models/credit1099.rb, line 755
def to_body
  to_hash
end
to_hash() click to toggle source

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash

# File lib/plaid/models/credit1099.rb, line 761
def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end
to_s() click to toggle source

Returns the string representation of the object @return [String] String presentation of the object

# File lib/plaid/models/credit1099.rb, line 749
def to_s
  to_hash.to_s
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# File lib/plaid/models/credit1099.rb, line 599
def valid?
  true
end