I think that anything that will violate the mental or physical autonomy of a person or group will be a violation of free will. A general definition of autonomy is independence, establishing norms for oneself, a state of self-reliance, the ability to decide for oneself.
I think that anything that an individual finds that he or she did not wish for one reason or another can be considered a violation of that individual’s free will.
Also doing things outside a person’s consciousness that affect him or immediate environment that affects the individual will also be a violation of free will.
Whether person B violate the free will of person A giving this person gift really depends on a lot of things, the level of affinity, the relationship between these people whether they like/love each other or not, the type of gift.
It could be that person A will consider any attempt to get a gift from person B as something offensive (it means free will violation). Or it could be that person A, despite being prejudiced and reluctant to receive the gifts, will suddenly be cheer up and consider the gift as something precious if previously thought that he/she didn’t want any gift.
It depends on many factors that need to be approached in relationship between people. The best thing to do is to ask yourself whether if we do something to the other person (give him a gift or anything), will he/she perceive it positively or negatively taking into account the whole context and all the information we have. If we consider that he/she will perceive it positively and indeed so, it will be free of free will violation, if he/she perceives something negatively, it means that we have violated free will.
If possible, we can also ask directly if the person wishes a gift or make a research question about it. Of course, with this also varies, because sometimes we can’t ask directly, or the answer will be insincere and further the matter will be open.
If we can’t tell from information or based on strong intuition that we can believe whether we should do a certain thing or not, like share a certain gift, then we are left to rely on our own Heart (green ray center) and how we feel what we should do in a given situation. If we continue to have doubts, then it is best to refrain from acting than to make someone uncomfortable or hurt by doing something and violate free will.
And as for the second situation:
There, too, there may or may not be a violation of free will. It may be that person A will offend person B with this and it will be a violation of person B’s free will, in which case it is advisable to act more diplomatically and carefully to refuse the gift.
It may also be otherwise person B after receiving the answer of refusal, may recognize: “Okay, I don’t see any problem with that.” So in that case, there is no question of violating person B’s free will.
Each case simply needs to be considered separately. In each action, theoretically, we can recognize whether the behavior will violate free will or not, whether it will be an STO action toward another person or an STS action also. However, a specific example is needed. Since under “person A” and “person B” there may be different people with different connections, under the word “gift” there may also be different kind of gift.
However, if you treat characters A and B as “cardboard” and simplify this situation only to what is given. Then the answer to the first question would be: Yes, this is a violation of person A’s free will, since he/she has clearly declared that he/she does not want gifts. There would be no violation of free will in this situation when person A asked for gifts, or was neutral or open to possible gifts, he/she still doesn’t decide that want or not want gift.
The answer to the second question would be: No, this is not a violation of person B’s free will, because person A acted in self-defense, and person B still has the option of sharing gifts with other people.
Of course, that’s just my point of view. Everyone should decide for themselves what they consider appropriate and what not.