internal static string CreateChargePreAuth(IMundiAPIClient client)
        {
            var request = ChargeBuilders.BuildCreateChargeRequest(capture: false);

            try
            {
                var response = client.Charges.CreateCharge(request);

                FileHelper.SaveResponse(response, "CreateChargePreAuth");

                return(response.Id);
            }
            catch (ErrorException e)
            {
                FileHelper.SaveApiError(e, "CreateChargePreAuth");
                return(null);
            }
            catch (Exception e)
            {
                FileHelper.SaveException(e, "CreateChargePreAuth");
                return(null);
            }
        }
        internal static string CreateCardNotAuthorizedCharge(IMundiAPIClient client)
        {
            var request = ChargeBuilders.BuildCreateChargeRequest("credit_card", 1000000);

            return(CreateCharge(client, request));
        }
        internal static string CreateCardCharge(IMundiAPIClient client)
        {
            var request = ChargeBuilders.BuildCreateChargeRequest();

            return(CreateCharge(client, request));
        }