public virtual async Task <StripeRefund> UpdateAsync(string refundId, StripeRefundUpdateOptions updateOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(Mapper <StripeRefund> .MapFromJson( await Requestor.PostStringAsync( this.ApplyAllParameters(updateOptions, $"{Urls.BaseUrl}/refunds/{refundId}"), SetupRequestOptions(requestOptions), cancellationToken ) )); }
public StripeRefundServiceTest() { this.service = new StripeRefundService(); this.createOptions = new StripeRefundCreateOptions() { Amount = 123, }; this.updateOptions = new StripeRefundUpdateOptions() { Metadata = new Dictionary <string, string>() { { "key", "value" }, }, }; this.listOptions = new StripeRefundListOptions() { Limit = 1, }; }
public virtual StripeRefund Update(string refundId, StripeRefundUpdateOptions updateOptions, StripeRequestOptions requestOptions = null) { return(Mapper <StripeRefund> .MapFromJson(Requestor.PostString(this.ApplyAllParameters(updateOptions, Urls.BaseUrl + "/refunds/" + refundId), SetupRequestOptions(requestOptions)))); }