Beispiel #1
0
        /// <summary>
        /// Updates an existing checkout based on the token id.
        /// </summary>
        public virtual async Task <Checkout> UpdateAsync(string token, Checkout updatedCheckout)
        {
            var req = PrepareRequest($"checkouts/{token}.json");

            return(await ExecuteRequestAsync <Checkout>(req, HttpMethod.Put, new JsonContent(updatedCheckout), rootElement : "checkout"));
        }