public async Task <StripeResponse <ApplicationFeeRefund> > UpdateApplicationFeeRefund( ApplicationFeeRefundUpdateArguments arguments, CancellationToken cancellationToken = default(CancellationToken)) { var request = new StripeRequest <ApplicationFeeRefundUpdateArguments, ApplicationFeeRefund> { UrlPath = PathHelper.GetPath(Paths.ApplicationFees, arguments.ApplicationFeeId, Paths.Refunds, arguments.ApplicationFeeRefundId), Model = arguments }; return(await _client.Post(request, cancellationToken)); }
public async Task UpdateApplicationFeeRefundTest() { // Arrange var args = new ApplicationFeeRefundUpdateArguments { ApplicationFeeId = "application-fee-id", ApplicationFeeRefundId = "refund-id" }; _stripe.Post( Arg.Is <StripeRequest <ApplicationFeeRefundUpdateArguments, ApplicationFeeRefund> >( a => a.UrlPath == "application_fees/" + args.ApplicationFeeId + "/refunds/" + args.ApplicationFeeRefundId), _cancellationToken).Returns(Task.FromResult(new StripeResponse <ApplicationFeeRefund>())); // Act var response = await _client.UpdateApplicationFeeRefund(args, _cancellationToken); // Assert response.Should().NotBeNull(); }
public void Init() { _args = GenFu.GenFu.New <ApplicationFeeRefundUpdateArguments>(); }