public bool Invalidate(InvalidateRequest request) { var result = base.Delete("apps/{{APPKEY}}/purchases", request); if (result.status.code == 200) { return(true); } return(false); }
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); }
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); }
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); }
public void Invalidate() { InvalidateRequest?.Invoke(this, new EventArgs()); }