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
                    )
                ));
 }
Beispiel #2
0
        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,
            };
        }
Beispiel #3
0
 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))));
 }