Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagec#
themeRDark
titleC# - FundInstructions_Settle
linenumberstrue
collapsetrue
//Use the FundInstructions_Settle method
var client = new BFSServiceReference.bfsapiSoapClient();

var credentials = new BFSServiceReference.Credentials()
{
    UserName = bfsusername, //Username of administrative user in your instance of BFS
    Password = bfspassword, //Password of the administrative user in your instance of BFS
};

var target = client.FundInstruction_Settle(new BFSServiceReference.FundInstructions_SettleRequest()
{
    Credentials = credentials,

    identify = bfsidentifier, //Identifier is a unique token for your instance of BFS 

    ActionTriggerDataEntity = new FundInstructions_Settle()
    {
        BrickId = new Guid("488c39eb02997b42-07b8a061-4998463f-8d24a81f-a088b9905484f7bbf2680846"),
        SettlementDate = TimeZoneInfo.ConvertTimeToUtc(DateTime.Parse("2016-05-01")),
        ValueDate = TimeZoneInfo.ConvertTimeToUtc(DateTime.Parse("2016-05-01")),
        SettledAmount = 100M30M
    }

});

Console.WriteLine(target.Message);

...