// Generated from Fairmint/OpenCapTable/StockRepurchase.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 OcfStockRepurchaseTxData = {
  id: string;
  date: damlTypes.Time;
  price: Fairmint_OpenCapTable_Types.OcfMonetary;
  quantity: damlTypes.Numeric;
  security_id: string;
  comments: string[];
  balance_security_id: damlTypes.Optional<string>;
  consideration_text: damlTypes.Optional<string>;
};

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


export declare type ArchiveByIssuer = {
};

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


export declare type StockRepurchase = {
  context: Fairmint_OpenCapTable_Types.Context;
  repurchase_data: OcfStockRepurchaseTxData;
};

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

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


