public static Group2AuthorizationModel NewG2AuthorizationMessageRequest(ReversalAndCancelDataIIModel reversalAndCancelData, string sharingGroup, long abaNumber, string settlmentAgent, uint agentBank, uint agentChain, uint batchNumber, ReimbursementAttributeTypeModel reimbursementAttribute, string purchaserData) { var result = new Group2AuthorizationModel(); if (string.IsNullOrEmpty(reversalAndCancelData.ToString())) { result.ReversalAndCancelData = ReversalAndCancelDataIIModel.NewReversalAndCancelDataII(UintExtensions.GenerateSystemTraceAuditNumber(), NetworkIdentificationTypeModel.SpaceOrEmptyNetworkId); } else { result.ReversalAndCancelData = reversalAndCancelData; } if (string.IsNullOrEmpty(sharingGroup)) { result.SharingGroup = "VNGK7F3EHYL8MIQZW"; } else { result.SharingGroup = sharingGroup; } result.MerchantABANumber = abaNumber; if (string.IsNullOrEmpty(settlmentAgent)) { result.MerchantSettlementAgentNo = "V040"; } else { result.MerchantSettlementAgentNo = settlmentAgent; } result.AgentBankNumber = agentBank; result.AgentChainNumber = agentChain; result.BatchNumber = batchNumber; result.ReimbursementAttribute = reimbursementAttribute; result.OriginalPurchaseData = purchaserData; return(result); }