Versions Compared

Key

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

Inputs (Array[]) inherits from EntityBase

...

NameTypeDescriptionAvailable from version
EntitiesArrayAll subscription orders in the request is returned along with each subscription orders BrickId, and array of Errors per subscription order 

Code examples

Code Block
languagec#
themeRDark
titleC# - Updaate Update Subscription Orders in a BFS instance
linenumberstrue
collapsetrue
 public static void UpdateSubscriptionOrders()
        {
            var binding = new BasicHttpBinding();
            binding.MaxReceivedMessageSize = Int32.MaxValue;
            var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://localhost:20010/bfsapi.asmx"));
            var req = new bfsapi.UpdateSubscriptionOrderRequest()
            {

                Credentials = new bfsapi.Credentials
                {
                    UserName = "apiuser",
                    Password = "apiuser"
                },
                identify = "asdfasdfasdf"
            };
            req.Entities = new bfsapi.UpdateSubscriptionOrder[]
            {
                new bfsapi.UpdateSubscriptionOrder
                {
                    BrickId = new Guid("00b2b17c-50f0-4ae9-8a91-e1a99e7b8c36"),
                    CashAmount = 123M,
                    ExecutionInterfaceSettingKey = "Internal"
                },
            };

            req.Fields=new UpdateSubscriptionOrderFields
            {
                CashAmount = true,
                LimitPrice = true,
                ExecutionInterfaceSettingKey=true
            };

            var res = target.UpdateSubscriptionOrders(req);


        }

...