AdministrationClientUpdateSettings Method |
Update the Settings linked to the submitted Values.
The Settings RSN can be fetched from the Web Service Method: SelectSettings
public Result UpdateSettings( ManagementGroupRequestOfSettings request )
using (var svc = new AdministrationService.AdministrationClient()) { var request = new AdministrationService.ManagementGroupRequestOfSettings(); request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin var settings = new AdministrationService.Settings(); settings.RSN = new Guid("0019c143-58db-440e-aeba-5276419635d7");; //Required settings.AdminFeeCurrency = "POINTS"; //Optional - valid values are : 'POINTS' or 'DOLLARS' settings.AdminFeeExclGST = 0.0M; //Optional settings.AdminFeeInclGST = 0.0M; //Optional settings.AdminFeePoints = 0.0M; //Optional settings.AdminFee_Product_RSN = Guid.Empty; //Optional settings.BCI_Settlement_DirectCredit_AccountNumber = string.Empty; //Optional settings.BCI_Settlement_DirectCredit_OriginatorName = string.Empty; //Optional settings.BCI_Settlement_DirectCredit_OtherPartyParticulars = string.Empty; //Optional settings.BCI_Settlement_DirectDebit_AccountNumber = string.Empty; //Optional settings.BCI_Settlement_DirectDebit_OriginatorName = string.Empty; //Optional settings.BCI_Settlement_DirectDebit_OtherPartyParticulars = string.Empty; //Optional settings.BCI_Settlement_FranchiseeNetCharge = string.Empty; //Optional settings.CostPriceMandatoryOnOfferSetup = false; //Optional settings.CreateCustomerAccountWhenPartnerIDandCustomerAccountIDFilled = false; //Optional settings.CustomerAccount_CustomBoolean01 = string.Empty; //Optional CustomerAccount_CustomBoolean02 - CustomerAccount_CustomBoolean20 available settings.CustomerAccount_CustomDate01 = string.Empty; //Optional CustomerAccount_CustomDate02 - CustomerAccount_CustomDate15 available settings.CustomerAccount_CustomDecimal01 = string.Empty; //Optional CustomerAccount_CustomDecimal02 - CustomerAccount_CustomDecimal05 available settings.CustomerAccount_CustomInteger01 = string.Empty; //Optional CustomerAccount_CustomInteger02 - CustomerAccount_CustomInteger10 available settings.CustomerAccount_CustomText01 = string.Empty; //Optional CustomerAccount_CustomText02 - CustomerAccount_CustomText15 available settings.DefaultPOSRewardMessage = string.Empty; //Optional settings.DirectDebitAuthorityNumber = string.Empty; //Optional settings.DisplayValue = string.Empty; //Optional settings.FreightShippingHandlingCurrency = "POINTS"; //Optional - valid values are : 'POINTS' or 'DOLLARS' settings.FreightShippingHandlingExclGST = 0.0M; //Optional settings.FreightShippingHandlingInclGST = 0.0M; //Optional settings.FreightShippingHandlingPoints = 0.0M; //Optional settings.FreightShippingHandling_Product_RSN = Guid.Empty; //Optional settings.GST_Rate = 15.0M; //Optional settings.Head_Office_Store_ID = string.Empty; //Optional settings.MinimumRewardDollarBalanceRequiredForRedemption = 0.0M; //Optional settings.OrderReceipt_Address_1 = string.Empty; //Optional OrderReceipt_Address_2 - OrderReceipt_Address_4 available settings.OrderReceipt_CompanyName_1 = string.Empty; //Optional OrderReceipt_CompanyName_2 available settings.OrderReceipt_ContactEmail = string.Empty; //Optional settings.OrderReceipt_ContactPhone = string.Empty; //Optional settings.OrderReceipt_GST_Number = string.Empty; //Optional settings.OrderReceipt_ShipMessage_1 = string.Empty; //Optional OrderReceipt_ShipMessage_2 - OrderReceipt_ShipMessage_4 available settings.Organisation_CustomBoolean01 = string.Empty; //Optional Organisation_CustomBoolean02 - Organisation_CustomBoolean20 available settings.Organisation_CustomDate01 = string.Empty; //Optional Organisation_CustomDate02 - Organisation_CustomDate15 available settings.Organisation_CustomDecimal01 = string.Empty; //Optional Organisation_CustomDecimal02 - Organisation_CustomDecimal05 available settings.Organisation_CustomInteger01 = string.Empty; //Optional Organisation_CustomInteger02 - Organisation_CustomInteger10 available settings.Organisation_CustomText01 = string.Empty; //Optional Organisation_CustomText02 - Organisation_CustomText15 available settings.OwnedBy = Guid.Empty; //Optional settings.Person_CustomBoolean01 = string.Empty; //Optional Person_CustomBoolean02 - Person_CustomBoolean20 available settings.Person_CustomDate01 = string.Empty; //Optional Person_CustomDate02 - Person_CustomDate15 available settings.Person_CustomDecimal01 = string.Empty; //Optional Person_CustomDecimal02 - Person_CustomDecimal05 available settings.Person_CustomInteger01 = string.Empty; //Optional Person_CustomInteger02 - Person_CustomInteger10 available settings.Person_CustomText01 = string.Empty; //Optional Person_CustomText02 - Person_CustomText15 available settings.SupportContactEmail = string.Empty;//Optional settings.SupportContactSecurityAcount_RSN = Guid.Empty; //Optional settings.Transaction_CustomBoolean01 = string.Empty; //Optional Transaction_CustomBoolean02 - Transaction_CustomBoolean20 available settings.Transaction_CustomDate01 = string.Empty; //Optional Transaction_CustomDate02 - Transaction_CustomDate15 available settings.Transaction_CustomDecimal01 = string.Empty; //Optional Transaction_CustomDecimal02 - Transaction_CustomDecimal05 available settings.Transaction_CustomInteger01 = string.Empty; //Optional Transaction_CustomInteger02 - Transaction_CustomInteger10 available settings.Transaction_CustomText01 = string.Empty; //Optional Transaction_CustomText02 - Transaction_CustomText15 available settings.VirtualOfferDetailConditions = string.Empty;//Optional request.Value = settings;//Required AdministrationService.Result result = svc.UpdateSettings(request); if (result.FaultCode == 0) { //Request succeeded } else { //Request failed throw new Exception(result.FaultDescription); } }