和顺 / 衡律 返回所属 Agent
13.7

公司行动和成本归集

原能力

接纳公司行动并归集成本,保留权益变更和实际履行来源。(合同附件 R7 13.7)

首选项目

FINOS CDM(Community Specification License 1.0(CDM 规范及对应资产))。 FINOS CDM

匹配范围

生命周期事件和分录支持资金变化记录。

源码

FINOS CDM · type BusinessEvent extends

rosetta-source/src/main/rosetta/event-common-type.rosetta · 60–73 行。 在 GitHub 查看规范模型 · 许可证与声明

上游配置与指引
type BusinessEvent extends EventInstruction: <"A business event represents a life cycle event of a trade. The combination of the state changes results in a qualifiable life cycle event. An example of a Business Event is a PartialTermination which is a defined by a quantity change primitive event.">
    [metadata key]
    [rootType]

    eventQualifier string (0..1) <"The CDM event qualifier, which corresponds to the outcome of the isEvent qualification logic which qualifies the lifecycle event as a function of its features (e.g. PartialTermination, ClearingSubmission, Novation, ...).">
    after TradeState (0..*) <"Specifies the after trade state(s) created.">

    condition EventDate:
        eventDate exists

type AgreementEvent extends AgreementEventInstruction: <"An agreement event represents a life cycle event of a legal document. The combination of legal term amendments, contracting party changes or agreement status changes that are represented by an amendment agreement that includes a change to the overall Legal agreement representation through a change in contractual parties or terms.">
    [metadata key]
    [rootType]

Formance Ledger · func (s *Server) handleCreateTransaction(

internal/adapter/http/handlers_create_transaction.go · 13–26 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
func (s *Server) handleCreateTransaction(w http.ResponseWriter, r *http.Request) {
	ledgerName, ok := requireLedgerName(w, r)
	if !ok {
		return
	}

	// Decode request body into protobuf CreateTransactionPayload.
	// The custom UnmarshalJSON in service.pb.json.go drives field naming
	// from the public camelCase contract (scriptReference, accountMetadata,
	// …) — the default protoc-gen-go tags are snake_case and would silently
	// drop multi-word keys (#452).
	req := &servicepb.CreateTransactionPayload{}

	err := json.UnmarshalRead(r.Body, req)

实现与验收要点

公司行动来源、成本归属、权益日和更正。