必要 ひつよう次第 しだいでした
hitsuyōshidaideshita

Noun
Desu Copula

The polite past form of 必要次第

1. It depended.; It was necessary.

Past/Perfective
Polite