public async Task DeletePaymentRequestsByIds() { ApiResponse response = await PaymentRequestApi.DeletePaymentRequestsByIds(new long[] { 5, 6 }); Assert.IsFalse(response.HasError); bool result = response.GetResult <bool>(); Assert.IsNotNull(result); }
public async Task CreateNewPaymentRequest() { ApiResponse response = await PaymentRequestApi.CreateNewPaymentRequest("abc", 10000, "test"); Assert.IsFalse(response.HasError); PayRequest result = response.GetResult <PayRequest>(); Assert.IsNotNull(result); }
public async Task GetAllPaymentRequests() { ApiResponse response = await PaymentRequestApi.GetAllPaymentRequests(); Assert.IsFalse(response.HasError); List <PayRequest> result = response.GetResult <List <PayRequest> >(); Assert.IsNotNull(result); }
public Result <PayRequest> CreateNewPaymentRequest(ReceiveInfo receiveInfo) { ApiResponse response = PaymentRequestApi.CreateNewPaymentRequest(receiveInfo.Tag, receiveInfo.Amount, receiveInfo.Comment).Result; return(GetResult <PayRequest>(response)); }