Added interface method for playstore

This commit is contained in:
Jumpei Tsuji
2016-06-08 17:47:51 +09:00
parent 537b7a8388
commit 428a2131dc
2 changed files with 6 additions and 0 deletions

View File

@@ -15,3 +15,6 @@ cover:
go test -v -coverprofile=playstore.txt -covermode=count ./playstore
cat playstore.txt | grep -v "mode: count" >> coverage.txt
rm playstore.txt
go test -v -coverprofile=amazon.txt -covermode=count ./amazon
cat amazon.txt | grep -v "mode: count" >> coverage.txt
rm amazon.txt

View File

@@ -31,6 +31,9 @@ func SetTimeout(t time.Duration) {
type IABClient interface {
VerifySubscription(string, string, string) (*androidpublisher.SubscriptionPurchase, error)
VerifyProduct(string, string, string) (*androidpublisher.ProductPurchase, error)
CancelSubscription(string, string, string) error
RefundSubscription(string, string, string) error
RevokeSubscription(string, string, string) error
}
// The Client type implements VerifySubscription method