1
0
mirror of https://github.com/bitwarden/server synced 2025-12-20 18:23:44 +00:00

apple iap service

This commit is contained in:
Kyle Spearrin
2019-09-17 19:48:40 -04:00
parent 7a2e86c2ba
commit 8290ddbb94
2 changed files with 72 additions and 2 deletions

View File

@@ -1,9 +1,15 @@
using System.Threading.Tasks;
using System;
using System.Threading.Tasks;
namespace Bit.Core.Services
{
public interface IAppleIapService
{
Task<bool> VerifyReceiptAsync(string receiptData);
Task<string> GetVerifiedLastTransactionIdAsync(string receiptData);
Task<DateTime?> GetVerifiedLastExpiresDateAsync(string receiptData);
string HashReceipt(string receiptData);
Task SaveReceiptAsync(string receiptData);
Task<string> GetReceiptAsync(string hash);
}
}