public async Task <PaymentDto> CreateFreePaymentAsync() { await _distributedEventBus.PublishAsync(new CreatePaymentEto( CurrentTenant.Id, CurrentUser.GetId(), "Free", "CNY", new List <CreatePaymentItemEto>(new[] { new CreatePaymentItemEto { ItemType = "Test", ItemKey = Guid.NewGuid().ToString(), OriginalPaymentAmount = 0 } }))); return((await _paymentAppService.GetListAsync(new PagedAndSortedResultRequestDto())).Items.FirstOrDefault()); }
public async Task <PaymentDto> CreateFreePaymentAsync() { await _distributedEventBus.PublishAsync(new CreatePaymentEto { Currency = "CNY", ExtraProperties = new Dictionary <string, object>(), PaymentItems = new List <CreatePaymentItemEto>(new [] { new CreatePaymentItemEto { ItemType = "Test", ItemKey = Guid.NewGuid().ToString(), OriginalPaymentAmount = 0 } }), PaymentMethod = "Free", TenantId = CurrentTenant.Id, UserId = CurrentUser.GetId() }); return((await _paymentAppService.GetListAsync(new PagedAndSortedResultRequestDto())).Items.FirstOrDefault()); }
public Task <PagedResultDto <PaymentDto> > GetListAsync(PagedAndSortedResultRequestDto input) { return(_service.GetListAsync(input)); }
public Task <PagedResultDto <PaymentDto> > GetListAsync(GetPaymentListDto input) { return(_service.GetListAsync(input)); }