import { InAppPurchase } from '@ionic-native/in-app-purchase' ; export class InAppPurchaseMock extends InAppPurchase { param { array < string > } productId returns { Promise < any > } getProducts ( productId ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; param { string } productId returns { Promise < { transactionId : string , receipt : string , signature : string , productType : string } > } buy ( productId ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param { string } productId returns { Promise < { transactionId : string , receipt : string , signature : string , productType : string } > } subscribe ( productId ) { let response ; return new Promise ( ( resolve , reject ) => { resolve ( response ) ; } ) ; } ; param { string } productType param { string } receipt param { string } signature returns { Promise < any > } consume ( productType , receipt , signature ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < any > } restorePurchases ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; returns { Promise < string > } getReceipt ( ) { return new Promise ( ( resolve , reject ) => { resolve ( ) ; } ) ; } ; }