code: private function preparePayload(array $payload)
      {
          return array_map(function ($payload) {
              if (!($payload instanceof TransferObjectInterface)) {
                  return $payload;
              }
  
              return $payload->getIdentifier();
          }, $payload);
      }
docs: @param array $payload
  
  @return array