Buyer
A buyer participates in exchanges.
Buyer's funds management is described in Deposit and withdraw.
Solidity
Creates a new buyer account
IBosonAccountHandler bosonProtocol = IBosonAccountHandler(_bosonProtocolAddress);
BosonTypes.Buyer memory buyer = BosonTypes.Buyer({
    id: 0, // will be ignored and auto-assigned
    wallet: payable(buyerWalletAddress),
    active: true
});
bosonProtocol.createBuyer(buyer);Updates an existing buyer account.
IBosonAccountHandler bosonProtocol = IBosonAccountHandler(_bosonProtocolAddress);
BosonTypes.Buyer memory buyer = BosonTypes.Buyer({
    id: 1, // buyer ID we would like to update
    wallet: payable(newWalletAddress),
    active: true
});
bosonProtocol.updateBuyer(buyer);Last updated
