public IActionResult UpdateAccount(String account, CustomerReq req) { var result = customerSvc.UpdateCustomer(account, req); return(Ok(result)); }
public void UpdateCustomer() { _billtoaddress[0].id = _cust.body.billToAddresses[0].id; _customerLocations[0].id = _cust.body.customerLocations[0].id; _contacts[0].id = _cust.body.contacts[0].id; var cust = CustomerSvc.UpdateCustomer(_cust.body.id, new UpdCustomer() { id = _cust.body.id, contacts = _contacts, customerNotes = _cutomerNotes, customerTags = new List <object>() { }, billToAddresses = _billtoaddress, //accountManager = new EDI_soapAPI.Entities.AccountManager() { }, customerLocations = _customerLocations, companyName = compName, //ediRules = new List<EdiRule>() ediRules = new List <EdiRule>() { new EdiRule() { @override = false, enabled = true, active = true, location = new Location() { id = "2124049", name = "WareHouse" }, equipment = new EDI_soapAPI.Entities.Equipment() { id = "146", name = "Flatbed Stretch" }, maxPerDay = "2", commit = "1", originCityStateZip = "SCHENECTADY, NY, 12345", originCity = "SCHENECTADY", originState = "NY", originZipCode = "12345", destCityStateZip = "FORT STORY, VA, 23459", destinationCity = "FORT STORY", destinationState = "VA", destinationZipCode = "23459", destinationCityStateZip = "FORT STORY, VA, 23459", originCountry = "United States of America", destinationCountry = "United States of America", ediRuleCommitTypes = new List <EdiRuleCommitType>() { new EdiRuleCommitType() { commitType = new CommitType() { id = "1", name = "Daily" } } } } }, outboundMessages = true, shipsFrequently = false, ediCustomer = false, firstAddress = new FirstAddress() { id = 1, companyName = compName, address1 = "134 main st", zipCode = "07047", countryName = "United States of America", stateCode = "NJ", city = "WOODCLIFF", contactFirstName = fn, contactLastName = ln, contactPhone = cphno, contactEmail = email, isIndividualEmail = false, invoiceStyle = "Transactional", invoiceFormat = "PDF", invoiceAfter = "Delivery", invoiceCurrency = "USD", invoiceBatchBilling = false, frequencyType = null, dateOfInvoice = null, deliveryMethod = new DeliveryMethod() { id = "1", name = "Do Not Send Invoice" }, dnb = null, yearEstablished = null, creditAmount = 9000000, availableCredit = 9000000, unbilledCredit = 0, creditOverride = false, previousCreditOverride = false, creditOverrideDate = 1580954400077, active = true, paymentTerms = new PaymentTerms() { id = "1", name = "Pre-Paid" }, countryCode = "USA", portal = null, auditMarginBelowPct = 0, auditMarginAbovePct = 70, auditMarginAboveAmt = 1500, verifyCostBeforeInvoice = false, invoiceRequiredFields = new List <object>(), invoiceDocuments = new List <object>(), bolSignature = null, podSignature = null, legacyAxAccountNumber = "", axAccountNumber = null, legacyBillToId = null, increasedCreditAmount = 0, cityStateZipSearch = "WOODCLIFF,NJ,07047", isPrevious = false, invoiceSettings = null, availableCreditOld = 9000000 }, customerTagsData = new List <object>() }); }
public IActionResult UpdateCustomer([FromBody] CustomerReq req) { var result = _svc.UpdateCustomer(req); return(Ok(result)); }