Exemplo n.º 1
0
        public async Task <ApiResponse <Merchant> > UpdateMerchant(MerchantUpdateOptions options)
        {
            var response = await PostHttp <Merchant>("merchants", options);

            return(new ApiResponse <Merchant>()
            {
                Data = response.Data,
                Errors = response.Errors
            });
        }
Exemplo n.º 2
0
        /// <summary>
        /// Update your merchant information. If you want to update a Managed Merchant's information,
        /// you must use their MerchantID and SecretKey. These can be found by calling <see cref="GetAllManagedMerchants"/>.
        /// </summary>
        /// <param name="options">The updated values to set. All values will be used, so be sure to set all fields.</param>
        /// <returns></returns>
        public async Task <ApiResponse <Merchant> > UpdateMerchant(MerchantUpdateOptions options)
        {
            var response = await PostHttp <Merchant>("merchants/update", options);

            return(response.ToApiResponse());
        }