public virtual async Task <Result <Subscription> > UpdateAsync(string id, SubscriptionRequest request)
        {
            XmlNode subscriptionXML = await service.PutAsync(service.MerchantPath() + "/subscriptions/" + id, request);

            return(new ResultImpl <Subscription>(new NodeWrapper(subscriptionXML), gateway));
        }
Exemple #2
0
        public async Task <Result <PaymentMethod> > UpdateAsync(string token, PaymentMethodRequest request)
        {
            var response = new NodeWrapper(await service.PutAsync(service.MerchantPath() + "/payment_methods/any/" + token, request));

            return(ExtractResultFromResponse(response));
        }
Exemple #3
0
        public virtual async Task <Result <CreditCard> > UpdateAsync(string token, CreditCardRequest request)
        {
            XmlNode creditCardXML = await service.PutAsync(service.MerchantPath() + "/payment_methods/credit_card/" + token, request);

            return(new ResultImpl <CreditCard>(new NodeWrapper(creditCardXML), gateway));
        }
Exemple #4
0
        public virtual async Task <Result <MerchantAccount> > UpdateAsync(string id, MerchantAccountRequest request)
        {
            XmlNode merchantAccountXML = await service.PutAsync(service.MerchantPath() + "/merchant_accounts/" + id + "/update_via_api", request);

            return(new ResultImpl <MerchantAccount>(new NodeWrapper(merchantAccountXML), gateway));
        }
Exemple #5
0
        public virtual async Task <Result <Customer> > UpdateAsync(string Id, CustomerRequest request)
        {
            XmlNode customerXML = await service.PutAsync(service.MerchantPath() + "/customers/" + Id, request).ConfigureAwait(false);

            return(new ResultImpl <Customer>(new NodeWrapper(customerXML), gateway));
        }
Exemple #6
0
        public virtual async Task <Result <Address> > UpdateAsync(string customerId, string id, AddressRequest request)
        {
            XmlNode addressXML = await Service.PutAsync(Service.MerchantPath() + "/customers/" + customerId + "/addresses/" + id, request).ConfigureAwait(false);

            return(new ResultImpl <Address>(new NodeWrapper(addressXML), Gateway));
        }