Skip to content

Commit 79aa4be

Browse files
author
Lennart Regebro
committed
Updated schema to 1.2.0
1 parent 6217dec commit 79aa4be

186 files changed

Lines changed: 1413 additions & 362 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ ifndef NO_VENV
77
bin_dir := $(root_dir)/ve/bin/
88
python_exe := $(bin_dir)python3
99
endif
10-
git_source := https://github.com/Open-Cap-Table-Coalition/Open-Cap-Format-OCF.git
11-
git_branch := release-v1.1.0
10+
git_source := https://github.com/regebro/Open-Cap-Format-OCF.git
11+
git_branch := lregebro-v1.2.0
1212

1313
all: devenv fetch build
1414

docs/source/using.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ but you then need to create ``File`` objects for each file, with dummy md5 hashe
5151
... )
5252

5353
>>> cap.transactions.append(
54-
... api.PlanSecurityIssuance(
55-
... object_type="TX_PLAN_SECURITY_ISSUANCE",
54+
... api.EquityCompensationIssuance(
55+
... object_type="TX_EQUITY_COMPENSATION_ISSUANCE",
5656
... stock_plan_id="test",
5757
... id="Success OPTION",
5858
... custom_id="test",
@@ -65,6 +65,7 @@ but you then need to create ``File`` objects for each file, with dummy md5 hashe
6565
... security_id="",
6666
... date="2022-12-12",
6767
... security_law_exemptions=[],
68+
... expiration_date=None,
6869
... )
6970
... )
7071

@@ -105,9 +106,9 @@ A captable will then be created and Python objects will be stored in it.
105106
object_type='STAKEHOLDER', name=Name(legal_name='Person Y', first_name=None,
106107
last_name=None), stakeholder_type=<StakeholderType.ENUM_INDIVIDUAL:
107108
'INDIVIDUAL'>, issuer_assigned_id=None, current_relationship=None,
108-
primary_contact=None, addresses=None, tax_ids=None),
109+
primary_contact=None, contact_info=None, addresses=None, tax_ids=None),
109110
Stakeholder(id='d6c49a5a-257d-4b41-9f1d-073a77dfe719', comments=[],
110111
object_type='STAKEHOLDER', name=Name(legal_name='Person Y', first_name=None,
111112
last_name=None), stakeholder_type=<StakeholderType.ENUM_INDIVIDUAL:
112113
'INDIVIDUAL'>, issuer_assigned_id=None, current_relationship=None,
113-
primary_contact=None, addresses=None, tax_ids=None)]
114+
primary_contact=None, contact_info=None, addresses=None, tax_ids=None)]

src/pyocf/api.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from pyocf.enums.accrualperiodtype import AccrualPeriodType
77
from pyocf.enums.addresstype import AddressType
88
from pyocf.enums.allocationtype import AllocationType
9+
from pyocf.enums.authorizedshares import AuthorizedShares
910
from pyocf.enums.compensationtype import CompensationType
1011
from pyocf.enums.compoundingtype import CompoundingType
1112
from pyocf.enums.conversionmechanismtype import ConversionMechanismType
@@ -22,6 +23,7 @@
2223
from pyocf.enums.parentsecuritytype import ParentSecurityType
2324
from pyocf.enums.periodtype import PeriodType
2425
from pyocf.enums.phonetype import PhoneType
26+
from pyocf.enums.quantitysourcetype import QuantitySourceType
2527
from pyocf.enums.roundingtype import RoundingType
2628
from pyocf.enums.stakeholderrelationshiptype import StakeholderRelationshipType
2729
from pyocf.enums.stakeholdertype import StakeholderType
@@ -31,9 +33,12 @@
3133
StockPlanCancellationBehaviorType,
3234
)
3335
from pyocf.enums.terminationwindowtype import TerminationWindowType
36+
from pyocf.enums.valuationbasedformulatype import ValuationBasedFormulaType
3437
from pyocf.enums.valuationtype import ValuationType
3538
from pyocf.enums.vestingdayofmonth import VestingDayOfMonth
3639
from pyocf.enums.vestingtriggertype import VestingTriggerType
40+
from pyocf.files.documentsfile import DocumentsFile
41+
from pyocf.files.financingsfile import FinancingsFile
3742
from pyocf.files.ocfmanifestfile import OCFManifestFile
3843
from pyocf.files.stakeholdersfile import StakeholdersFile
3944
from pyocf.files.stockclassesfile import StockClassesFile
@@ -42,6 +47,8 @@
4247
from pyocf.files.transactionsfile import TransactionsFile
4348
from pyocf.files.valuationsfile import ValuationsFile
4449
from pyocf.files.vestingtermsfile import VestingTermsFile
50+
from pyocf.objects.document import Document
51+
from pyocf.objects.financing import Financing
4552
from pyocf.objects.issuer import Issuer
4653
from pyocf.objects.stakeholder import Stakeholder
4754
from pyocf.objects.stockclass import StockClass
@@ -58,6 +65,9 @@
5865
)
5966
from pyocf.objects.transactions.acceptance.stockacceptance import StockAcceptance
6067
from pyocf.objects.transactions.acceptance.warrantacceptance import WarrantAcceptance
68+
from pyocf.objects.transactions.adjustment.issuerauthorizedsharesadjustment import (
69+
IssuerAuthorizedSharesAdjustment,
70+
)
6171
from pyocf.objects.transactions.adjustment.stockclassauthorizedsharesadjustment import (
6272
StockClassAuthorizedSharesAdjustment,
6373
)
@@ -142,6 +152,7 @@
142152
from pyocf.primitives.objects.transactions.conversion.conversion import Conversion
143153
from pyocf.primitives.objects.transactions.exercise.exercise import Exercise
144154
from pyocf.primitives.objects.transactions.issuance.issuance import Issuance
155+
from pyocf.primitives.objects.transactions.issuertransaction import IssuerTransaction
145156
from pyocf.primitives.objects.transactions.reissuance.reissuance import Reissuance
146157
from pyocf.primitives.objects.transactions.release.release import Release
147158
from pyocf.primitives.objects.transactions.repurchase.repurchase import Repurchase
@@ -194,6 +205,12 @@
194205
from pyocf.types.conversion_mechanisms.safeconversionmechanism import (
195206
SAFEConversionMechanism,
196207
)
208+
from pyocf.types.conversion_mechanisms.sharepricebasedconversionmechanism import (
209+
SharePriceBasedConversionMechanism,
210+
)
211+
from pyocf.types.conversion_mechanisms.valuationbasedconversionmechanism import (
212+
ValuationBasedConversionMechanism,
213+
)
197214
from pyocf.types.conversion_rights.convertibleconversionright import (
198215
ConvertibleConversionRight,
199216
)
@@ -230,6 +247,7 @@
230247
from pyocf.types.monetary import Monetary
231248
from pyocf.types.name import Name
232249
from pyocf.types.numeric import Numeric
250+
from pyocf.types.objectreference import ObjectReference
233251
from pyocf.types.percentage import Percentage
234252
from pyocf.types.phone import Phone
235253
from pyocf.types.ratio import Ratio
@@ -238,6 +256,7 @@
238256
from pyocf.types.stockparent import StockParent
239257
from pyocf.types.taxid import TaxID
240258
from pyocf.types.terminationwindow import TerminationWindow
259+
from pyocf.types.vesting import Vesting
241260
from pyocf.types.vesting.vestingcondition import VestingCondition
242261
from pyocf.types.vesting.vestingconditionportion import VestingConditionPortion
243262
from pyocf.types.vesting.vestingeventtrigger import VestingEventTrigger
@@ -257,6 +276,7 @@
257276
Address,
258277
AddressType,
259278
AllocationType,
279+
AuthorizedShares,
260280
AutomaticConversionOnConditionTrigger,
261281
AutomaticConversionOnDateTrigger,
262282
Cancellation,
@@ -288,6 +308,8 @@
288308
CustomConversionMechanism,
289309
Date,
290310
DayCountType,
311+
Document,
312+
DocumentsFile,
291313
ElectiveConversionAtWillTrigger,
292314
ElectiveConversionInDateRangeTrigger,
293315
ElectiveConversionOnConditionTrigger,
@@ -304,18 +326,23 @@
304326
File,
305327
FileObject,
306328
FileType,
329+
Financing,
330+
FinancingsFile,
307331
FixedAmountConversionMechanism,
308332
InterestPayoutType,
309333
InterestRate,
310334
Issuance,
311335
Issuer,
336+
IssuerAuthorizedSharesAdjustment,
337+
IssuerTransaction,
312338
Md5,
313339
Monetary,
314340
Name,
315341
NoteConversionMechanism,
316342
Numeric,
317343
OCFManifestFile,
318344
Object,
345+
ObjectReference,
319346
ObjectType,
320347
OptionType,
321348
ParentSecurityType,
@@ -331,6 +358,7 @@
331358
PlanSecurityRelease,
332359
PlanSecurityRetraction,
333360
PlanSecurityTransfer,
361+
QuantitySourceType,
334362
Ratio,
335363
RatioConversionMechanism,
336364
Reissuance,
@@ -343,6 +371,7 @@
343371
SecurityExemption,
344372
SecurityTransaction,
345373
ShareNumberRange,
374+
SharePriceBasedConversionMechanism,
346375
Stakeholder,
347376
StakeholderRelationshipType,
348377
StakeholderType,
@@ -381,8 +410,11 @@
381410
Transfer,
382411
UnspecifiedConversionTrigger,
383412
Valuation,
413+
ValuationBasedConversionMechanism,
414+
ValuationBasedFormulaType,
384415
ValuationType,
385416
ValuationsFile,
417+
Vesting,
386418
VestingAcceleration,
387419
VestingCondition,
388420
VestingConditionPortion,

src/pyocf/enums/accrualperiodtype.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Copyright © 2023 FMR LLC
55
#
66
# Based on the Open Captable Format schema:
7-
# Copyright © 2023 Open Cap Table Coalition (https://opencaptablecoalition.com) /
7+
# Copyright © 2024 Open Cap Table Coalition (https://opencaptablecoalition.com) /
88
# Original File: https://github.com/Open-Cap-Table-Coalition/Open-Cap-Format-
9-
# OCF/tree/v1.1.0/schema/enums/AccrualPeriodType.schema.json
9+
# OCF/tree/v1.2.0/schema/enums/AccrualPeriodType.schema.json
1010

1111
from enum import Enum
1212

src/pyocf/enums/addresstype.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Copyright © 2023 FMR LLC
55
#
66
# Based on the Open Captable Format schema:
7-
# Copyright © 2023 Open Cap Table Coalition (https://opencaptablecoalition.com) /
7+
# Copyright © 2024 Open Cap Table Coalition (https://opencaptablecoalition.com) /
88
# Original File: https://github.com/Open-Cap-Table-Coalition/Open-Cap-Format-
9-
# OCF/tree/v1.1.0/schema/enums/AddressType.schema.json
9+
# OCF/tree/v1.2.0/schema/enums/AddressType.schema.json
1010

1111
from enum import Enum
1212

src/pyocf/enums/allocationtype.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
# Copyright © 2023 FMR LLC
1414
#
1515
# Based on the Open Captable Format schema:
16-
# Copyright © 2023 Open Cap Table Coalition (https://opencaptablecoalition.com) /
16+
# Copyright © 2024 Open Cap Table Coalition (https://opencaptablecoalition.com) /
1717
# Original File: https://github.com/Open-Cap-Table-Coalition/Open-Cap-Format-
18-
# OCF/tree/v1.1.0/schema/enums/AllocationType.schema.json
18+
# OCF/tree/v1.2.0/schema/enums/AllocationType.schema.json
1919

2020
from enum import Enum
2121

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""Enumeration of authorized shares types"""
2+
3+
# Autogenerated, do not edit.
4+
# Copyright © 2023 FMR LLC
5+
#
6+
# Based on the Open Captable Format schema:
7+
# Copyright © 2024 Open Cap Table Coalition (https://opencaptablecoalition.com) /
8+
# Original File: https://github.com/Open-Cap-Table-Coalition/Open-Cap-Format-
9+
# OCF/tree/v1.2.0/schema/enums/AuthorizedShares.schema.json
10+
11+
from enum import Enum
12+
13+
14+
class AuthorizedShares(Enum):
15+
"""Enumeration of authorized shares types"""
16+
17+
ENUM_NOTAPPLICABLE = "NOT APPLICABLE"
18+
ENUM_UNLIMITED = "UNLIMITED"

src/pyocf/enums/compensationtype.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
# Copyright © 2023 FMR LLC
1616
#
1717
# Based on the Open Captable Format schema:
18-
# Copyright © 2023 Open Cap Table Coalition (https://opencaptablecoalition.com) /
18+
# Copyright © 2024 Open Cap Table Coalition (https://opencaptablecoalition.com) /
1919
# Original File: https://github.com/Open-Cap-Table-Coalition/Open-Cap-Format-
20-
# OCF/tree/v1.1.0/schema/enums/CompensationType.schema.json
20+
# OCF/tree/v1.2.0/schema/enums/CompensationType.schema.json
2121

2222
from enum import Enum
2323

src/pyocf/enums/compoundingtype.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Copyright © 2023 FMR LLC
55
#
66
# Based on the Open Captable Format schema:
7-
# Copyright © 2023 Open Cap Table Coalition (https://opencaptablecoalition.com) /
7+
# Copyright © 2024 Open Cap Table Coalition (https://opencaptablecoalition.com) /
88
# Original File: https://github.com/Open-Cap-Table-Coalition/Open-Cap-Format-
9-
# OCF/tree/v1.1.0/schema/enums/CompoundingType.schema.json
9+
# OCF/tree/v1.2.0/schema/enums/CompoundingType.schema.json
1010

1111
from enum import Enum
1212

src/pyocf/enums/conversionmechanismtype.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Copyright © 2023 FMR LLC
55
#
66
# Based on the Open Captable Format schema:
7-
# Copyright © 2023 Open Cap Table Coalition (https://opencaptablecoalition.com) /
7+
# Copyright © 2024 Open Cap Table Coalition (https://opencaptablecoalition.com) /
88
# Original File: https://github.com/Open-Cap-Table-Coalition/Open-Cap-Format-
9-
# OCF/tree/v1.1.0/schema/enums/ConversionMechanismType.schema.json
9+
# OCF/tree/v1.2.0/schema/enums/ConversionMechanismType.schema.json
1010

1111
from enum import Enum
1212

@@ -20,5 +20,7 @@ class ConversionMechanismType(Enum):
2020
)
2121
ENUM_RATIO_CONVERSION = "RATIO_CONVERSION"
2222
ENUM_SAFE_CONVERSION = "SAFE_CONVERSION"
23+
ENUM_VALUATION_BASED_CONVERSION = "VALUATION_BASED_CONVERSION"
2324
ENUM_CONVERTIBLE_NOTE_CONVERSION = "CONVERTIBLE_NOTE_CONVERSION"
2425
ENUM_CUSTOM_CONVERSION = "CUSTOM_CONVERSION"
26+
ENUM_PPS_BASED_CONVERSION = "PPS_BASED_CONVERSION"

0 commit comments

Comments
 (0)