createTvcManifestApprovals method
Future<TCreateTvcManifestApprovalsResponse>
createTvcManifestApprovals({
- required TCreateTvcManifestApprovalsBody input,
Post one or more manifest approvals for a TVC Manifest
Sign the provided TCreateTvcManifestApprovalsBody with the client's stamp function and submit the request (POST /public/v1/submit/create_tvc_manifest_approvals).
See also: stampCreateTvcManifestApprovals.
Implementation
Future<TCreateTvcManifestApprovalsResponse> createTvcManifestApprovals({
required TCreateTvcManifestApprovalsBody input,
}) async {
final body = packActivityBody(
bodyJson: input.toJson(),
fallbackOrganizationId: input.organizationId ??
config.organizationId ??
(throw Exception(
"Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
activityType: 'ACTIVITY_TYPE_CREATE_TVC_MANIFEST_APPROVALS',
);
return await request<Map<String, dynamic>,
TCreateTvcManifestApprovalsResponse>(
"/public/v1/submit/create_tvc_manifest_approvals",
body,
(json) => TCreateTvcManifestApprovalsResponse.fromJson(
transformActivityResponse(json, 'CreateTvcManifestApprovals')));
}