public Result <PaymentMethod> Delete(string token, PaymentMethodDeleteRequest request)
        {
            string queryString = (request == null ? "" : "?" + request.ToQueryString());

            var response = new NodeWrapper(service.Delete(service.MerchantPath() + "/payment_methods/any/" + token + queryString));

            return(new ResultImpl <UnknownPaymentMethod>(response, gateway));
        }
Exemplo n.º 2
0
        public virtual Result <Dispute> RemoveEvidence(string disputeId, string evidenceId)
        {
            NotFoundException notFoundException = new NotFoundException(String.Format("evidence with id '{0}' for dispute with id '{1}' not found", evidenceId, disputeId));

            if (disputeId == null || disputeId.Trim().Equals("") || evidenceId == null || evidenceId.Trim().Equals(""))
            {
                throw notFoundException;
            }

            try {
                XmlNode disputeXML = Service.Delete(Service.MerchantPath() + "/disputes/" + disputeId + "/evidence/" + evidenceId);

                return(new ResultImpl <Dispute>(new NodeWrapper(disputeXML), Gateway));
            } catch (NotFoundException) {
                throw notFoundException;
            }
        }
Exemplo n.º 3
0
 public virtual void Delete(string token)
 {
     service.Delete(service.MerchantPath() + "/payment_methods/credit_card/" + token);
 }
Exemplo n.º 4
0
        public virtual Result <Customer> Delete(string Id)
        {
            XmlNode customerXML = service.Delete(service.MerchantPath() + "/customers/" + Id);

            return(new ResultImpl <Customer>(new NodeWrapper(customerXML), gateway));
        }
 public void Delete(string token)
 {
     service.Delete(service.MerchantPath() + "/payment_methods/paypal_account/" + token);
 }
Exemplo n.º 6
0
        public virtual Result <Address> Delete(string customerId, string id)
        {
            XmlNode addressXML = Service.Delete(Service.MerchantPath() + "/customers/" + customerId + "/addresses/" + id);

            return(new ResultImpl <Address>(new NodeWrapper(addressXML), Gateway));
        }
Exemplo n.º 7
0
        public Result <PaymentMethod> Delete(string token)
        {
            var response = new NodeWrapper(service.Delete(service.MerchantPath() + "/payment_methods/any/" + token));

            return(new ResultImpl <UnknownPaymentMethod>(response, gateway));
        }
Exemplo n.º 8
0
 public virtual void Delete(string Id)
 {
     service.Delete(service.MerchantPath() + "/customers/" + Id);
 }
Exemplo n.º 9
0
 public virtual void Delete(String customerId, String id)
 {
     Service.Delete("/customers/" + customerId + "/addresses/" + id);
 }
Exemplo n.º 10
0
 public virtual void Delete(String token)
 {
     Service.Delete("/payment_methods/credit_card/" + token);
 }
Exemplo n.º 11
0
 public void Delete(String token)
 {
     Service.Delete("/payment_methods/paypal_account/" + token);
 }
Exemplo n.º 12
0
 public virtual void Delete(String Id)
 {
     Service.Delete("/customers/" + Id);
 }
Exemplo n.º 13
0
 public void Delete(String token)
 {
     service.Delete("/payment_methods/any/" + token);
 }
Exemplo n.º 14
0
 public virtual void Delete(string customerId, string id)
 {
     Service.Delete(Service.MerchantPath() + "/customers/" + customerId + "/addresses/" + id);
 }