mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-07 14:53:17 +08:00
fix(purchases): changed optional parameter oldSku (#3238)
changed optional parameter oldSkus to comply with the updated plugin code
This commit is contained in:
parent
b280ef4c55
commit
bb77620d0d
@ -268,7 +268,7 @@ export class Purchases extends IonicNativePlugin {
|
|||||||
/**
|
/**
|
||||||
* Make a purchase
|
* Make a purchase
|
||||||
* @param productIdentifier {string} The product identifier of the product you want to purchase.
|
* @param productIdentifier {string} The product identifier of the product you want to purchase.
|
||||||
* @param oldSkus {string[]} Optional array of skus you wish to upgrade from.
|
* @param oldSku {string} Optional sku you wish to upgrade from.
|
||||||
* @param type {String} Optional type of product, can be inapp or subs. Subs by default
|
* @param type {String} Optional type of product, can be inapp or subs. Subs by default
|
||||||
*
|
*
|
||||||
* @return {Observable<MakePurchaseResponse>} An [RCError] is thrown when user cancels. On error `usercancelled` will be true if user cancelled
|
* @return {Observable<MakePurchaseResponse>} An [RCError] is thrown when user cancels. On error `usercancelled` will be true if user cancelled
|
||||||
@ -280,7 +280,7 @@ export class Purchases extends IonicNativePlugin {
|
|||||||
})
|
})
|
||||||
makePurchase(
|
makePurchase(
|
||||||
productIdentifier: string,
|
productIdentifier: string,
|
||||||
oldSkus: string[] = [],
|
oldSku?: string = null,
|
||||||
type: ProductType = ProductType.SUBS
|
type: ProductType = ProductType.SUBS
|
||||||
): Observable<RCMakePurchaseResponse> {
|
): Observable<RCMakePurchaseResponse> {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user