Namespace org.accordproject.usa.business@0.2.0

Compatible with Concerto versions ^3.0.0. Has 2 declarations.

Concerto JSON AST PlantUML XML Schema Typescript C# OData JSON Schema GraphQL Java Go Avro Markdown OpenAPI Protobuf Mermaid

Declared Types

      
      import org.accordproject.usa.business@0.2.0.BusinessEntity from https://models.accordproject.org/usa/business@0.2.0.cto
      import org.accordproject.usa.business@0.2.0.BusinessLicense from https://models.accordproject.org/usa/business@0.2.0.cto
      
      

Dependencies

Source

    /*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
concerto version "^3.0.0"
namespace org.accordproject.usa.business@0.2.0

import org.accordproject.geo@0.2.0.GeoCoordinates from https://models.accordproject.org/geo@0.2.0.cto
import org.accordproject.address@0.2.0.PostalAddress from https://models.accordproject.org/address@0.2.0.cto

/**
 * Types of businesses in the USA
 * Taken from: https://en.wikipedia.org/wiki/List_of_business_entities#United_States
 */
enum BusinessEntity {
  o GENERAL_PARTNERSHIP
  o LP
  o LLP
  o LLLP
  o LLC
  o PLLC
  o CORP
  o PC
  o DBA
}

/**
 * Based on the state of Delaware API:
 * https://dev.socrata.com/foundry/data.delaware.gov/5zy2-grhr
 */
concept BusinessLicense {
  o String business_name
  o String category
  o DateTime current_license_valid_from
  o DateTime current_license_valid_to
  o PostalAddress address
  o Long license_number
  o GeoCoordinates geocoded_location
}