var request = new bfsapi.UpdateTransferReceiversRequest()
{
Credentials = new bfsapi.Credentials
{
UserName = "APIUser",
Password = "thesecretpassword"
},
identify = "theIdentity",
};
request.Fields = new bfsapi.UpdateTransferReceiverFields
{
Name = true,
Comment = true,
BatchOrders = true,
CounterPartyClearingNo = true,
CounterPartyAccountNo = true
};
request.Entities = new bfsapi.UpdateTransferReceiver[]
{
new bfsapi.UpdateTransferReceiver
{
BrickId = Guid.Parse("fc4d5141-35c4-42fb-bb9c-4e52a22a2f12"),
Name = "The AG account",
Comment = "A very important comment",
BatchOrders = false,
TransferReceiverExtraInfo = new TransferReceiverExtraInfoAutoGiro()
{
BankName = "SEB",
CounterPartyClearingNo = "1234",
CounterPartyAccountNo = "1234"
}
}
};
var response= bfsapiClient.UpdateTransferReceivers(request); |