draft method
ResponseFuture<IdentifierResponse>
draft(
- DebitNotesServiceCreateRequest request, {
- CallOptions? options,
Saves a new record as a draft without triggering side effects.
Use this method when you have incomplete information but wish to persist
the record for later completion. The record remains in a DRAFT state.
Note: Some strict validation rules may be relaxed in the backend for drafts compared to Create.
Side Effects:
- Generates a unique system UUID.
- Records an audit log for the "Draft" action.
Errors:
INVALID_ARGUMENT: If critical system fields are missing.
Implementation
$grpc.ResponseFuture<$1.IdentifierResponse> draft(
$0.DebitNotesServiceCreateRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$draft, request, options: options);
}