forked from Mirrors/go-iap
Merge pull request #24 from jun06t/interface
Added interface method for playstore
This commit is contained in:
3
Makefile
3
Makefile
@@ -15,3 +15,6 @@ cover:
|
|||||||
go test -v -coverprofile=playstore.txt -covermode=count ./playstore
|
go test -v -coverprofile=playstore.txt -covermode=count ./playstore
|
||||||
cat playstore.txt | grep -v "mode: count" >> coverage.txt
|
cat playstore.txt | grep -v "mode: count" >> coverage.txt
|
||||||
rm playstore.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
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ func SetTimeout(t time.Duration) {
|
|||||||
type IABClient interface {
|
type IABClient interface {
|
||||||
VerifySubscription(string, string, string) (*androidpublisher.SubscriptionPurchase, error)
|
VerifySubscription(string, string, string) (*androidpublisher.SubscriptionPurchase, error)
|
||||||
VerifyProduct(string, string, string) (*androidpublisher.ProductPurchase, 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
|
// The Client type implements VerifySubscription method
|
||||||
|
|||||||
Reference in New Issue
Block a user