File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
// IAPAPIClient is an interface to call validation API in App Store Server API
9
9
type IAPAPIClient interface {
10
- Verify (ctx context.Context , transactionId string ) (interface {} , error )
10
+ Verify (ctx context.Context , transactionId string ) (* TransactionInfoResponse , error )
11
11
}
12
12
13
13
type APIClient struct {
@@ -23,7 +23,7 @@ func NewAPIClient(config StoreConfig) *APIClient {
23
23
return & APIClient {productionCli : NewStoreClient (& prodConf ), sandboxCli : NewStoreClient (& sandboxConf )}
24
24
}
25
25
26
- func (c * APIClient ) Verify (ctx context.Context , transactionId string ) (interface {} , error ) {
26
+ func (c * APIClient ) Verify (ctx context.Context , transactionId string ) (* TransactionInfoResponse , error ) {
27
27
result , err := c .productionCli .GetTransactionInfo (ctx , transactionId )
28
28
if err != nil && errors .Is (err , TransactionIdNotFoundError ) {
29
29
result , err = c .sandboxCli .GetTransactionInfo (ctx , transactionId )
You can’t perform that action at this time.
0 commit comments