class CyberSource::InlineResponse201PaymentInformationAccountFeatures

Attributes

account_status[RW]

Possible values: - N: Nonregulated - R: Regulated `Note` This field is returned only for CyberSource through VisaNet.

account_type[RW]

Type of account. This value is returned only if you requested a balance inquiry. Possible values: - 00: Not applicable or not specified - 10: Savings account - 20: Checking account - 30: Credit card account - 40: Universal account

affluence_indicator[RW]

**Chase Paymentech Solutions** Indicates whether a customer has high credit limits. This information enables you to market high cost items to these customers and to understand the kinds of cards that high income customers are using. This field is supported for Visa, Mastercard, Discover, and Diners Club. Possible values: - Y: Yes - N: No - X: Not applicable / Unknown Litle Flag that indicates that a Visa cardholder or Mastercard cardholder is in one of the affluent categories. Possible values: - AFFLUENT: High income customer with high spending pattern (>100k USD annual income and >40k USD annual card usage). - **MASS AFFLUENT**: High income customer (>100k USD annual income). **Processor specific maximum length**: - Chase Paymentech Solutions: 1 - Litle: 13

balance_amount[RW]

Remaining balance on the account.

balance_amount_type[RW]

Type of amount. This value is returned only if you requested a balance inquiry. The issuer determines the value that is returned. Possible values for deposit accounts: - 01: Current ledger (posted) balance. - 02: Current available balance, which is typically the ledger balance less outstanding authorizations. Some depository institutions also include pending deposits and the credit or overdraft line associated with the account. Possible values for credit card accounts: - 01: Credit amount remaining for customer (open to buy). - 02: Credit limit.

balance_sign[RW]

Sign for the remaining balance on the account. Returned only when the processor returns this value. Possible values:

category[RW]

**CyberSource through VisaNet** Visa product ID. GPN Visa or Mastercard product ID. Litle Type of card used in the transaction. The only possible value is: - PREPAID: Prepaid Card **RBS WorldPay Atlanta** Type of card used in the transaction. Possible values: - B: Business Card - O: Noncommercial Card - R: Corporate Card - S: Purchase Card - Blank: Purchase card not supported **Maximum length for processors**: - CyberSource through VisaNet: 3 - GPN: 3 - Litle: 7 - RBS WorldPay Atlanta: 1

commercial[RW]

Indicates whether the card is a commercial card, which enables you to include Level II data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - Y: Yes - N: No - X: Not applicable / Unknown

currency[RW]

Currency of the remaining balance on the account. For the possible values, see the ISO Standard Currency Codes.

group[RW]

Type of commercial card. This field is supported only for CyberSource through VisaNet. Possible values: - B: Business card - R: Corporate card - S: Purchasing card - 0: Noncommercial card

health_care[RW]

Indicates whether the card is a healthcare card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - Y: Yes - N: No - X: Not applicable / Unknown

level3_eligible[RW]

Indicates whether the card is eligible for Level III interchange fees, which enables you to include Level III data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - Y: Yes - N: No - X: Not applicable / Unknown

payroll[RW]

Indicates whether the card is a payroll card. This field is supported for Visa, Discover, Diners Club, and JCB on **Chase Paymentech Solutions**. Possible values: - Y: Yes - N: No - X: Not applicable / Unknown

pinless_debit[RW]

Indicates whether the card is a PINless debit card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - Y: Yes - N: No - X: Not applicable / Unknown

prepaid[RW]

Indicates whether the card is a prepaid card. This information enables you to determine when a gift card or prepaid card is presented for use when establishing a new recurring, installment, or deferred billing relationship. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - Y: Yes - N: No - X: Not applicable / Unknown

regulated[RW]

Indicates whether the card is regulated according to the Durbin Amendment. If the card is regulated, the card issuer is subject to price caps and interchange rules. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - Y: Yes (assets greater than 10B USD) - N: No (assets less than 10B USD) - X: Not applicable / Unknown

signature_debit[RW]

Indicates whether the card is a signature debit card. This information enables you to alter the way an order is processed. For example, you might not want to reauthorize a transaction for a signature debit card, or you might want to perform reversals promptly for a signature debit card. This field is supported for Visa, Mastercard, and Maestro (International) on Chase Paymentech Solutions. Possible values: - Y: Yes - N: No - X: Not applicable / Unknown

Public Class Methods

attribute_map() click to toggle source

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

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 91
def self.attribute_map
  {
    :'account_type' => :'accountType',
    :'account_status' => :'accountStatus',
    :'balance_amount' => :'balanceAmount',
    :'balance_amount_type' => :'balanceAmountType',
    :'currency' => :'currency',
    :'balance_sign' => :'balanceSign',
    :'affluence_indicator' => :'affluenceIndicator',
    :'category' => :'category',
    :'commercial' => :'commercial',
    :'group' => :'group',
    :'health_care' => :'healthCare',
    :'payroll' => :'payroll',
    :'level3_eligible' => :'level3Eligible',
    :'pinless_debit' => :'pinlessDebit',
    :'signature_debit' => :'signatureDebit',
    :'prepaid' => :'prepaid',
    :'regulated' => :'regulated'
  }
end
new(attributes = {}) click to toggle source

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

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 138
def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'accountType')
    self.account_type = attributes[:'accountType']
  end

  if attributes.has_key?(:'accountStatus')
    self.account_status = attributes[:'accountStatus']
  end

  if attributes.has_key?(:'balanceAmount')
    self.balance_amount = attributes[:'balanceAmount']
  end

  if attributes.has_key?(:'balanceAmountType')
    self.balance_amount_type = attributes[:'balanceAmountType']
  end

  if attributes.has_key?(:'currency')
    self.currency = attributes[:'currency']
  end

  if attributes.has_key?(:'balanceSign')
    self.balance_sign = attributes[:'balanceSign']
  end

  if attributes.has_key?(:'affluenceIndicator')
    self.affluence_indicator = attributes[:'affluenceIndicator']
  end

  if attributes.has_key?(:'category')
    self.category = attributes[:'category']
  end

  if attributes.has_key?(:'commercial')
    self.commercial = attributes[:'commercial']
  end

  if attributes.has_key?(:'group')
    self.group = attributes[:'group']
  end

  if attributes.has_key?(:'healthCare')
    self.health_care = attributes[:'healthCare']
  end

  if attributes.has_key?(:'payroll')
    self.payroll = attributes[:'payroll']
  end

  if attributes.has_key?(:'level3Eligible')
    self.level3_eligible = attributes[:'level3Eligible']
  end

  if attributes.has_key?(:'pinlessDebit')
    self.pinless_debit = attributes[:'pinlessDebit']
  end

  if attributes.has_key?(:'signatureDebit')
    self.signature_debit = attributes[:'signatureDebit']
  end

  if attributes.has_key?(:'prepaid')
    self.prepaid = attributes[:'prepaid']
  end

  if attributes.has_key?(:'regulated')
    self.regulated = attributes[:'regulated']
  end
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 114
def self.swagger_types
  {
    :'account_type' => :'String',
    :'account_status' => :'String',
    :'balance_amount' => :'String',
    :'balance_amount_type' => :'String',
    :'currency' => :'String',
    :'balance_sign' => :'String',
    :'affluence_indicator' => :'String',
    :'category' => :'String',
    :'commercial' => :'String',
    :'group' => :'String',
    :'health_care' => :'String',
    :'payroll' => :'String',
    :'level3_eligible' => :'String',
    :'pinless_debit' => :'String',
    :'signature_debit' => :'String',
    :'prepaid' => :'String',
    :'regulated' => :'String'
  }
end

Public Instance Methods

==(o) click to toggle source

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

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 485
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      account_type == o.account_type &&
      account_status == o.account_status &&
      balance_amount == o.balance_amount &&
      balance_amount_type == o.balance_amount_type &&
      currency == o.currency &&
      balance_sign == o.balance_sign &&
      affluence_indicator == o.affluence_indicator &&
      category == o.category &&
      commercial == o.commercial &&
      group == o.group &&
      health_care == o.health_care &&
      payroll == o.payroll &&
      level3_eligible == o.level3_eligible &&
      pinless_debit == o.pinless_debit &&
      signature_debit == o.signature_debit &&
      prepaid == o.prepaid &&
      regulated == o.regulated
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/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 543
def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.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
    temp_model = CyberSource.const_get(type).new
    temp_model.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/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 609
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
account_status=(account_status) click to toggle source

Custom attribute writer method with validation @param [Object] account_status Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 325
def account_status=(account_status)
  if !account_status.nil? && account_status.to_s.length > 1
    fail ArgumentError, 'invalid value for "account_status", the character length must be smaller than or equal to 1.'
  end

  @account_status = account_status
end
account_type=(account_type) click to toggle source

Custom attribute writer method with validation @param [Object] account_type Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 315
def account_type=(account_type)
  if !account_type.nil? && account_type.to_s.length > 2
    fail ArgumentError, 'invalid value for "account_type", the character length must be smaller than or equal to 2.'
  end

  @account_type = account_type
end
affluence_indicator=(affluence_indicator) click to toggle source

Custom attribute writer method with validation @param [Object] affluence_indicator Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 375
def affluence_indicator=(affluence_indicator)
  if !affluence_indicator.nil? && affluence_indicator.to_s.length > 13
    fail ArgumentError, 'invalid value for "affluence_indicator", the character length must be smaller than or equal to 13.'
  end

  @affluence_indicator = affluence_indicator
end
balance_amount=(balance_amount) click to toggle source

Custom attribute writer method with validation @param [Object] balance_amount Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 335
def balance_amount=(balance_amount)
  if !balance_amount.nil? && balance_amount.to_s.length > 12
    fail ArgumentError, 'invalid value for "balance_amount", the character length must be smaller than or equal to 12.'
  end

  @balance_amount = balance_amount
end
balance_amount_type=(balance_amount_type) click to toggle source

Custom attribute writer method with validation @param [Object] balance_amount_type Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 345
def balance_amount_type=(balance_amount_type)
  if !balance_amount_type.nil? && balance_amount_type.to_s.length > 2
    fail ArgumentError, 'invalid value for "balance_amount_type", the character length must be smaller than or equal to 2.'
  end

  @balance_amount_type = balance_amount_type
end
balance_sign=(balance_sign) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] balance_sign Object to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 365
def balance_sign=(balance_sign)
  validator = EnumAttributeValidator.new('String', ['+', '-'])
  unless validator.valid?(balance_sign)
    fail ArgumentError, 'invalid value for "balance_sign", must be one of #{validator.allowable_values}.'
  end
  @balance_sign = balance_sign
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/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 522
def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the 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 # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end
category=(category) click to toggle source

Custom attribute writer method with validation @param [Object] category Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 385
def category=(category)
  if !category.nil? && category.to_s.length > 7
    fail ArgumentError, 'invalid value for "category", the character length must be smaller than or equal to 7.'
  end

  @category = category
end
commercial=(commercial) click to toggle source

Custom attribute writer method with validation @param [Object] commercial Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 395
def commercial=(commercial)
  if !commercial.nil? && commercial.to_s.length > 1
    fail ArgumentError, 'invalid value for "commercial", the character length must be smaller than or equal to 1.'
  end

  @commercial = commercial
end
currency=(currency) click to toggle source

Custom attribute writer method with validation @param [Object] currency Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 355
def currency=(currency)
  if !currency.nil? && currency.to_s.length > 5
    fail ArgumentError, 'invalid value for "currency", the character length must be smaller than or equal to 5.'
  end

  @currency = currency
end
eql?(o) click to toggle source

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

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 509
def eql?(o)
  self == o
end
group=(group) click to toggle source

Custom attribute writer method with validation @param [Object] group Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 405
def group=(group)
  if !group.nil? && group.to_s.length > 1
    fail ArgumentError, 'invalid value for "group", the character length must be smaller than or equal to 1.'
  end

  @group = group
end
hash() click to toggle source

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

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 515
def hash
  [account_type, account_status, balance_amount, balance_amount_type, currency, balance_sign, affluence_indicator, category, commercial, group, health_care, payroll, level3_eligible, pinless_debit, signature_debit, prepaid, regulated].hash
end
health_care=(health_care) click to toggle source

Custom attribute writer method with validation @param [Object] health_care Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 415
def health_care=(health_care)
  if !health_care.nil? && health_care.to_s.length > 1
    fail ArgumentError, 'invalid value for "health_care", the character length must be smaller than or equal to 1.'
  end

  @health_care = health_care
end
level3_eligible=(level3_eligible) click to toggle source

Custom attribute writer method with validation @param [Object] level3_eligible Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 435
def level3_eligible=(level3_eligible)
  if !level3_eligible.nil? && level3_eligible.to_s.length > 1
    fail ArgumentError, 'invalid value for "level3_eligible", the character length must be smaller than or equal to 1.'
  end

  @level3_eligible = level3_eligible
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/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 215
def list_invalid_properties
  invalid_properties = Array.new
  if !@account_type.nil? && @account_type.to_s.length > 2
    invalid_properties.push('invalid value for "account_type", the character length must be smaller than or equal to 2.')
  end

  if !@account_status.nil? && @account_status.to_s.length > 1
    invalid_properties.push('invalid value for "account_status", the character length must be smaller than or equal to 1.')
  end

  if !@balance_amount.nil? && @balance_amount.to_s.length > 12
    invalid_properties.push('invalid value for "balance_amount", the character length must be smaller than or equal to 12.')
  end

  if !@balance_amount_type.nil? && @balance_amount_type.to_s.length > 2
    invalid_properties.push('invalid value for "balance_amount_type", the character length must be smaller than or equal to 2.')
  end

  if !@currency.nil? && @currency.to_s.length > 5
    invalid_properties.push('invalid value for "currency", the character length must be smaller than or equal to 5.')
  end

  if !@balance_sign.nil? && @balance_sign.to_s.length > 1
    invalid_properties.push('invalid value for "balance_sign", the character length must be smaller than or equal to 1.')
  end

  if !@affluence_indicator.nil? && @affluence_indicator.to_s.length > 13
    invalid_properties.push('invalid value for "affluence_indicator", the character length must be smaller than or equal to 13.')
  end

  if !@category.nil? && @category.to_s.length > 7
    invalid_properties.push('invalid value for "category", the character length must be smaller than or equal to 7.')
  end

  if !@commercial.nil? && @commercial.to_s.length > 1
    invalid_properties.push('invalid value for "commercial", the character length must be smaller than or equal to 1.')
  end

  if !@group.nil? && @group.to_s.length > 1
    invalid_properties.push('invalid value for "group", the character length must be smaller than or equal to 1.')
  end

  if !@health_care.nil? && @health_care.to_s.length > 1
    invalid_properties.push('invalid value for "health_care", the character length must be smaller than or equal to 1.')
  end

  if !@payroll.nil? && @payroll.to_s.length > 1
    invalid_properties.push('invalid value for "payroll", the character length must be smaller than or equal to 1.')
  end

  if !@level3_eligible.nil? && @level3_eligible.to_s.length > 1
    invalid_properties.push('invalid value for "level3_eligible", the character length must be smaller than or equal to 1.')
  end

  if !@pinless_debit.nil? && @pinless_debit.to_s.length > 1
    invalid_properties.push('invalid value for "pinless_debit", the character length must be smaller than or equal to 1.')
  end

  if !@signature_debit.nil? && @signature_debit.to_s.length > 1
    invalid_properties.push('invalid value for "signature_debit", the character length must be smaller than or equal to 1.')
  end

  if !@prepaid.nil? && @prepaid.to_s.length > 1
    invalid_properties.push('invalid value for "prepaid", the character length must be smaller than or equal to 1.')
  end

  if !@regulated.nil? && @regulated.to_s.length > 1
    invalid_properties.push('invalid value for "regulated", the character length must be smaller than or equal to 1.')
  end

  invalid_properties
end
payroll=(payroll) click to toggle source

Custom attribute writer method with validation @param [Object] payroll Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 425
def payroll=(payroll)
  if !payroll.nil? && payroll.to_s.length > 1
    fail ArgumentError, 'invalid value for "payroll", the character length must be smaller than or equal to 1.'
  end

  @payroll = payroll
end
pinless_debit=(pinless_debit) click to toggle source

Custom attribute writer method with validation @param [Object] pinless_debit Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 445
def pinless_debit=(pinless_debit)
  if !pinless_debit.nil? && pinless_debit.to_s.length > 1
    fail ArgumentError, 'invalid value for "pinless_debit", the character length must be smaller than or equal to 1.'
  end

  @pinless_debit = pinless_debit
end
prepaid=(prepaid) click to toggle source

Custom attribute writer method with validation @param [Object] prepaid Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 465
def prepaid=(prepaid)
  if !prepaid.nil? && prepaid.to_s.length > 1
    fail ArgumentError, 'invalid value for "prepaid", the character length must be smaller than or equal to 1.'
  end

  @prepaid = prepaid
end
regulated=(regulated) click to toggle source

Custom attribute writer method with validation @param [Object] regulated Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 475
def regulated=(regulated)
  if !regulated.nil? && regulated.to_s.length > 1
    fail ArgumentError, 'invalid value for "regulated", the character length must be smaller than or equal to 1.'
  end

  @regulated = regulated
end
signature_debit=(signature_debit) click to toggle source

Custom attribute writer method with validation @param [Object] signature_debit Value to be assigned

# File lib/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 455
def signature_debit=(signature_debit)
  if !signature_debit.nil? && signature_debit.to_s.length > 1
    fail ArgumentError, 'invalid value for "signature_debit", the character length must be smaller than or equal to 1.'
  end

  @signature_debit = signature_debit
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/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 589
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/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 595
def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    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/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 583
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/cyberSource_client/models/inline_response_201_payment_information_account_features.rb, line 290
def valid?
  return false if !@account_type.nil? && @account_type.to_s.length > 2
  return false if !@account_status.nil? && @account_status.to_s.length > 1
  return false if !@balance_amount.nil? && @balance_amount.to_s.length > 12
  return false if !@balance_amount_type.nil? && @balance_amount_type.to_s.length > 2
  return false if !@currency.nil? && @currency.to_s.length > 5
  balance_sign_validator = EnumAttributeValidator.new('String', ['+', '-'])
  return false unless balance_sign_validator.valid?(@balance_sign)
  return false if !@balance_sign.nil? && @balance_sign.to_s.length > 1
  return false if !@affluence_indicator.nil? && @affluence_indicator.to_s.length > 13
  return false if !@category.nil? && @category.to_s.length > 7
  return false if !@commercial.nil? && @commercial.to_s.length > 1
  return false if !@group.nil? && @group.to_s.length > 1
  return false if !@health_care.nil? && @health_care.to_s.length > 1
  return false if !@payroll.nil? && @payroll.to_s.length > 1
  return false if !@level3_eligible.nil? && @level3_eligible.to_s.length > 1
  return false if !@pinless_debit.nil? && @pinless_debit.to_s.length > 1
  return false if !@signature_debit.nil? && @signature_debit.to_s.length > 1
  return false if !@prepaid.nil? && @prepaid.to_s.length > 1
  return false if !@regulated.nil? && @regulated.to_s.length > 1
  true
end