private string GetPaymentMethodName(OrderTransaction transaction) { switch (transaction.Action) { case ActionType.CashReceived: case ActionType.CashReturned: return(LocalizationUtils.GetQuickbooksExportString("PayMethCash")); case ActionType.CheckReceived: case ActionType.CheckReturned: return(LocalizationUtils.GetQuickbooksExportString("PayMethCheck")); case ActionType.CompanyAccountAccepted: return(LocalizationUtils.GetQuickbooksExportString("PayMethCompanyAccount")); case ActionType.PurchaseOrderAccepted: return(LocalizationUtils.GetQuickbooksExportString("PayMethPurchaseOrder")); case ActionType.CreditCardCapture: case ActionType.CreditCardCharge: case ActionType.CreditCardRefund: return(LocalizationUtils.GetQuickbooksExportString("PayMethCreditCard")); case ActionType.PayPalCapture: case ActionType.PayPalCharge: case ActionType.PayPalRefund: return(LocalizationUtils.GetQuickbooksExportString("PayMethPayPal")); case ActionType.ThirdPartyPayMethodCapture: case ActionType.ThirdPartyPayMethodCharge: case ActionType.ThirdPartyPayMethodRefund: var payMeth = PaymentMethods.Find(transaction.MethodId); return(LocalizationUtils.GetPaymentMethodFriendlyName(payMeth.MethodName)); default: return(LocalizationUtils.GetQuickbooksExportString("PayMethUnknown")); } }