Exemple #1
0
        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);
        }
Exemple #2
0
        public async Task CreateNewPaymentRequest()
        {
            ApiResponse response = await PaymentRequestApi.CreateNewPaymentRequest("abc", 10000, "test");

            Assert.IsFalse(response.HasError);
            PayRequest result = response.GetResult <PayRequest>();

            Assert.IsNotNull(result);
        }
Exemple #3
0
        public async Task GetAllPaymentRequests()
        {
            ApiResponse response = await PaymentRequestApi.GetAllPaymentRequests();

            Assert.IsFalse(response.HasError);
            List <PayRequest> result = response.GetResult <List <PayRequest> >();

            Assert.IsNotNull(result);
        }
Exemple #4
0
        public Result <PayRequest> CreateNewPaymentRequest(ReceiveInfo receiveInfo)
        {
            ApiResponse response = PaymentRequestApi.CreateNewPaymentRequest(receiveInfo.Tag, receiveInfo.Amount, receiveInfo.Comment).Result;

            return(GetResult <PayRequest>(response));
        }