public void Ent_CreateCase_GetCaseNumber_ReturnCaseNumber() { //arrange CaseFiling caseFilling = new CaseFiling(apiController); CaseDetailRequest caseDetail = new CaseDetailRequest(); caseDetail.caseType = "4"; caseDetail.chargebackRefNum.Add("1111423456"); caseDetail.chargebackRefNum.Add("2222123456"); caseDetail.customerFilingNumber = "5482"; caseDetail.violationCode = "D.2"; caseDetail.violationDate = "2017-11-13"; caseDetail.disputeAmount = "200.00"; caseDetail.currencyCode = "USD"; caseDetail.fileAttachment.filename = "test.tif"; caseDetail.fileAttachment.file = "sample file"; caseDetail.filedAgainstIca = "004321"; caseDetail.filingAs = "A"; caseDetail.filingIca = "001234"; caseDetail.memo = "This is a test memo"; //act CaseIdRequestResponse caseNumber = caseFilling.CreateCase(caseDetail); //assert Assert.AreEqual(caseNumber.caseId, "536092"); }
public void Ent_UpdateCase_GetCaseNumber_ReturnCaseNumber() { //arrange CaseFiling caseFilling = new CaseFiling(apiController); CaseDetailRequest caseDetail = new CaseDetailRequest(); caseDetail.fileAttachment.filename = "test.tif"; caseDetail.fileAttachment.file = "sample file"; caseDetail.memo = "This is a test memo"; caseDetail.action = "REJECT"; //act CaseIdRequestResponse caseNumber = caseFilling.UpdateCase(caseId, caseDetail); //assert Assert.AreEqual(caseNumber.caseId, "536092"); }
/// <summary> /// updates a Case Filing record /// </summary> /// <param name="caseId">Case Filing Id. max length...9</param> /// <param name="caseDetail">Action to be performed on case. The following values are valid - ACCEPT, REJECT, REBUT, ESCALATE, WITHDRAW. Note : ESCALATE is applicable on pre compliance and pre arbitration cases.</param> /// <returns>The case filing id</returns> public CaseIdRequestResponse UpdateCase(long refKey, String caseId, CaseDetailRequest caseDetail) { return(_apiController.Update <CaseIdRequestResponse>(refKey, String.Format("cases/{0}", caseId), null, caseDetail)); }
/// <summary> /// generate a new Case Filing /// </summary> /// <param name="caseDetail"></param> /// <returns>The case filing id</returns> public CaseIdRequestResponse CreateCase(long refKey, CaseDetailRequest caseDetail) { return(_apiController.Create <CaseIdRequestResponse>(refKey, "cases", caseDetail)); }
public void Create(MscMcomPool mscMcomPool) { CaseDetailRequest caseDetailRequest = new CaseDetailRequest(); _iClaims.CreateCase(mscMcomPool.ClearingRefKey, caseDetailRequest); }