verity_ic::remittance::utilsFunction validate_remittance_data
source pub fn validate_remittance_data(
is_pdc: bool,
new_remittances: &Vec<DataModel>,
dc_canister: Principal,
) -> Result<(), String>
Expand description
Validates remittance data based on whether the caller is a PDC or not.
§Parameters
is_pdc
: A boolean indicating if the caller is a PDC.
new_remittances
: A vector of new remittance data models.
dc_canister
: The principal of the DC canister.
§Returns
A result indicating success or an error message.