@cfxlabsinc/b2b-services
    Preparing search index...
    PaymentInstrumentEditOutcome:
        | { notice?: string; ok: true; status?: EditableStatus }
        | {
            fieldErrors?: Record<string, string>;
            message: string;
            nextHref?: string;
            ok: false;
        }

    What onSave reports: a refusal's message with per-field messages keyed by path and an optional link to the next step, or a success with a notice when part of the edit was not applied.

    Type Declaration

    • { notice?: string; ok: true; status?: EditableStatus }
      • Optionalnotice?: string
      • ok: true
      • Optionalstatus?: EditableStatus

        The status the save left, when a re-check set it instead of the pick.

    • {
          fieldErrors?: Record<string, string>;
          message: string;
          nextHref?: string;
          ok: false;
      }
      • OptionalfieldErrors?: Record<string, string>
      • message: string
      • OptionalnextHref?: string

        Where the operator resolves the refusal, such as the conflicting instrument's list.

      • ok: false