Module: OfacSdn

Defined in:
lib/ofac_sdn.rb,
lib/ofac_sdn/xsd.rb,
lib/ofac_sdn/parser.rb,
lib/ofac_sdn/version.rb,
lib/ofac_sdn/document.rb

Defined Under Namespace

Classes: Document, Parser, Read

Constant Summary collapse

XSD_HASH =
{
  sdnEntry: {
    element: {
      uid: 'int',
      firstName: 'string',
      lastName: 'string',
      title: 'string',
      sdnType: 'string',
      remarks: 'string'
    }
  },
  programList: {
    element: {
      program: 'string'
    }
  },
  idList: {
    key: 'id',
    element: {
      uid: 'int',
      idType: 'string',
      idNumber: 'string',
      idCountry: 'string',
      issueDate: 'string',
      expirationDate: 'string'
    }
  },
  akaList: {
    key: 'aka',
    element: {
      uid: 'int',
      type: 'string',
      category: 'string',
      lastName: 'string',
      firstName: 'string'
    }
  },
  addressList: {
    key: 'address',
    element:
    {
      uid: 'int',
      address1: 'string',
      address2: 'string',
      address3: 'string',
      city: 'string',
      stateOrProvince: 'string',
      postalCode: 'string',
      country: 'string'
    }
  },
  nationalityList: {
    key: 'nationality',
    element: {
      uid: 'int',
      country: 'string',
      mainEntry: 'bool'
    }
  },
  citizenshipList: {
    key: 'citizenship',
    element: {
      uid: 'int',
      country: 'string',
      mainEntry: 'bool'
    }
  },
  dateOfBirthList: {
    key: 'dateOfBirthItem',
    element: {
      uid: 'int',
      dateOfBirth: 'string',
      mainEntry: 'bool'
    }
  },
  placeOfBirthList: {
    key: 'placeOfBirthItem',
    element: {
      uid: 'int',
      placeOfBirth: 'string',
      mainEntry: 'bool'
    }
  },
  vesselInfo: {
    element: {
      callSign: 'string',
      vesselType: 'string',
      vesselFlag: 'string',
      vesselOwner: 'string',
      tonnage: 'int',
      grossRegisteredTonnage: 'int'
    }
  }
}.freeze
VERSION =
"0.1.4"