From 4c4cf76f7aa2a1ce24599a34919e489477a42455 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Tue, 11 Jul 2017 09:37:32 -0400 Subject: [PATCH] docs(): hide IAPError class --- .../plugins/in-app-purchase-2/index.ts | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/@ionic-native/plugins/in-app-purchase-2/index.ts b/src/@ionic-native/plugins/in-app-purchase-2/index.ts index 4fd5d68fe..6780e92e9 100644 --- a/src/@ionic-native/plugins/in-app-purchase-2/index.ts +++ b/src/@ionic-native/plugins/in-app-purchase-2/index.ts @@ -13,9 +13,9 @@ import { Injectable } from '@angular/core'; * constructor(private store: InAppPurchase2) { } * * ... - * + * * * @advanced - * + * * ```typescript * // After Platform Ready * this.store.verbosity = this.store.DEBUG; @@ -34,12 +34,12 @@ import { Injectable } from '@angular/core'; * this.store.when(productId).updated( (product: IAPProduct) => { * console.log('Loaded' + JSON.stringify(product)); * }); - * + * * // Issue with buying * this.store.when(productId).cancelled( (product) => { * alert('Purchase was Cancelled'); * }); - * + * * // Track All Store Errors * this.store.error( (err) => { * alert('Store Error ' + JSON.stringify(err)); @@ -54,15 +54,15 @@ import { Injectable } from '@angular/core'; * * // Errors * this.store.when(productId).error( (error) => { - * this.loader.dismiss(); + * this.loader.dismiss(); * alert('An Error Occured' + JSON.stringify(error)); * }); - * // Refresh Starts Handlers + * // Refresh Starts Handlers * console.log('Refresh Store'); * this.store.refresh(); - * + * * ... - * + * * // To Purchase * this.store.order(productId); * @@ -168,6 +168,9 @@ export interface IAPProductEvents { downloaded: (callback: IAPQueryCallback) => void; } +/** + * @hidden + */ export class IAPError { code: number; message: string;