예제 #1
0
        public bool Invalidate(InvalidateRequest request)
        {
            var result = base.Delete("apps/{{APPKEY}}/purchases", request);

            if (result.status.code == 200)
            {
                return(true);
            }
            return(false);
        }
예제 #2
0
        public bool Invalidate(string order_id, IEnumerable <string> skus)
        {
            var request = new InvalidateRequest();

            request.Add(order_id, skus);
            var result = base.Delete("apps/{{APPKEY}}/purchases", request);

            if (result.status.code == 200)
            {
                return(true);
            }
            return(false);
        }
예제 #3
0
        private static bool Invalidate(string accessToken, string clientToken)
        {
            InvalidateRequest invalidateRequest =
                new InvalidateRequest(accessToken, clientToken);

            invalidateRequest = invalidateRequest.SendRequest() as InvalidateRequest;
            if (invalidateRequest != null && invalidateRequest.WasSuccessful == true)
            {
                return(invalidateRequest.WasSuccessful ?? false);
            }

            return(false);
        }
예제 #4
0
        public bool Invalidate(IEnumerable <string> order_ids)
        {
            var request = new InvalidateRequest();

            foreach (var order_id in order_ids)
            {
                request.Add(order_id);
            }
            var result = base.Delete("apps/{{APPKEY}}/purchases", request);

            if (result.status.code == 200)
            {
                return(true);
            }
            return(false);
        }
예제 #5
0
 public void Invalidate()
 {
     InvalidateRequest?.Invoke(this, new EventArgs());
 }