// Generated from Fairmint/OpenCapTable/OCF/Issuer.daml
/* eslint-disable @typescript-eslint/camelcase */
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable @typescript-eslint/no-use-before-define */
import * as jtv from '@mojotech/json-type-validation';
import * as damlTypes from '@daml/types';
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
import * as damlLedger from '@daml/ledger';

import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';

import * as Fairmint_OpenCapTable_Types from '../../../../Fairmint/OpenCapTable/Types/module';

export declare type OcfInitialSharesAuthorized =
  |  { tag: 'OcfInitialSharesNumeric'; value: damlTypes.Numeric }
  |  { tag: 'OcfInitialSharesEnum'; value: OcfAuthorizedShares }
;

export declare const OcfInitialSharesAuthorized:
  damlTypes.Serializable<OcfInitialSharesAuthorized> & {
  }
;


export declare type OcfAuthorizedShares =
  | 'OcfAuthorizedSharesNotApplicable'
  | 'OcfAuthorizedSharesUnlimited'
;

export declare const OcfAuthorizedShares:
  damlTypes.Serializable<OcfAuthorizedShares> & {
  }
& { readonly keys: OcfAuthorizedShares[] } & { readonly [e in OcfAuthorizedShares]: e }
;


export declare type IssuerOcfData = {
  id: string;
  country_of_formation: string;
  formation_date: damlTypes.Time;
  legal_name: string;
  comments: string[];
  tax_ids: Fairmint_OpenCapTable_Types.OcfTaxID[];
  address: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfAddress>;
  country_subdivision_of_formation: damlTypes.Optional<string>;
  country_subdivision_name_of_formation: damlTypes.Optional<string>;
  dba: damlTypes.Optional<string>;
  email: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfEmail>;
  initial_shares_authorized: damlTypes.Optional<OcfInitialSharesAuthorized>;
  phone: damlTypes.Optional<Fairmint_OpenCapTable_Types.OcfPhone>;
};

export declare const IssuerOcfData:
  damlTypes.Serializable<IssuerOcfData> & {
  }
;


export declare type Issuer = {
  context: Fairmint_OpenCapTable_Types.Context;
  issuer_data: IssuerOcfData;
};

export declare interface IssuerInterface {
  Archive: damlTypes.Choice<Issuer, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<Issuer, undefined>>;
}
export declare const Issuer:
  damlTypes.Template<Issuer, undefined, '#OpenCapTable-v25:Fairmint.OpenCapTable.OCF.Issuer:Issuer'> &
  damlTypes.ToInterface<Issuer, never> &
  IssuerInterface;

export declare namespace Issuer {
  export type CreateEvent = damlLedger.CreateEvent<Issuer, undefined, typeof Issuer.templateId>
  export type ArchiveEvent = damlLedger.ArchiveEvent<Issuer, typeof Issuer.templateId>
  export type Event = damlLedger.Event<Issuer, undefined, typeof Issuer.templateId>
  export type QueryResult = damlLedger.QueryResult<Issuer, undefined, typeof Issuer.templateId>
}


