Service Layer low complexity mobilebackend
1
Dependencies
1
Dependents
2
Entities
0
Integrations

Description

Declaration Service

Feature: Confidentiality Declarations

declaration-service

Responsibilities

  • Fetch the current versioned declaration text from the backend for the authenticated user's organization
  • Submit acknowledgement records containing user_id, activity_id, declaration_version, and accepted_at timestamp
  • Determine whether a declaration is required for a given expense type by consulting module configuration

Interfaces

getDeclarationText(organizationId: String) → Future<DeclarationContent>
submitDeclaration(userId: String, activityId: String, declarationVersion: String) → Future<void>
isDeclarationRequired(expenseTypeId: String) → Future<bool>

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component