Stripe.StripeRefundService.UpdateAsync C# (CSharp) Method

UpdateAsync() public method

public UpdateAsync ( string refundId, Stripe.StripeRefundUpdateOptions updateOptions, Stripe.StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task
refundId string
updateOptions Stripe.StripeRefundUpdateOptions
requestOptions Stripe.StripeRequestOptions
cancellationToken CancellationToken
return Task
        public virtual async Task<StripeRefund> UpdateAsync(string refundId, StripeRefundUpdateOptions updateOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            return Mapper<StripeRefund>.MapFromJson(
                await Requestor.PostStringAsync(
                    this.ApplyAllParameters(updateOptions, $"{Urls.BaseUrl}/refunds/{refundId}"),
                    SetupRequestOptions(requestOptions),
                    cancellationToken
                )
            );
        }