Merge in v5 code

This commit is contained in:
Ibby Hadeed
2017-12-28 07:28:44 -05:00
parent d43fe72f7b
commit 0f9c21ab42
255 changed files with 11473 additions and 6501 deletions
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
/**
@@ -71,7 +71,9 @@ export class InAppPurchase extends IonicNativePlugin {
@Cordova({
otherPromise: true
})
getProducts(productId: string[]): Promise<any> { return; }
getProducts(productId: string[]): Promise<any> {
return;
}
/**
* Buy a product that matches the productId.
@@ -81,7 +83,9 @@ export class InAppPurchase extends IonicNativePlugin {
@Cordova({
otherPromise: true
})
buy(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> { return; }
buy(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> {
return;
}
/**
* Same as buy, but for subscription based products.
@@ -91,7 +95,9 @@ export class InAppPurchase extends IonicNativePlugin {
@Cordova({
otherPromise: true
})
subscribe(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> { return; }
subscribe(productId: string): Promise<{ transactionId: string, receipt: string, signature: string, productType: string }> {
return;
}
/**
* Call this function after purchasing a "consumable" product to mark it as consumed. On Android, you must consume products that you want to let the user purchase multiple times. If you will not consume the product after a purchase, the next time you will attempt to purchase it you will get the error message:
@@ -103,7 +109,9 @@ export class InAppPurchase extends IonicNativePlugin {
@Cordova({
otherPromise: true
})
consume(productType: string, receipt: string, signature: string): Promise<any> { return; }
consume(productType: string, receipt: string, signature: string): Promise<any> {
return;
}
/**
* Restore all purchases from the store
@@ -112,7 +120,9 @@ export class InAppPurchase extends IonicNativePlugin {
@Cordova({
otherPromise: true
})
restorePurchases(): Promise<any> { return; }
restorePurchases(): Promise<any> {
return;
}
/**
* Get the receipt.
@@ -122,6 +132,8 @@ export class InAppPurchase extends IonicNativePlugin {
otherPromise: true,
platforms: ['iOS']
})
getReceipt(): Promise<string> { return; }
getReceipt(): Promise<string> {
return;
}
}