Skip to content

Commit

Permalink
fix(purchases): changed optional parameter oldSku (#3238)
Browse files Browse the repository at this point in the history
changed optional parameter oldSkus to comply with the updated plugin code
  • Loading branch information
akshaydwivedi29 authored and danielsogl committed Nov 26, 2019
1 parent b280ef4 commit bb77620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/@ionic-native/plugins/purchases/index.ts
Expand Up @@ -268,7 +268,7 @@ export class Purchases extends IonicNativePlugin {
/**
* Make a 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
*
* @return {Observable<MakePurchaseResponse>} An [RCError] is thrown when user cancels. On error `usercancelled` will be true if user cancelled
Expand All @@ -280,7 +280,7 @@ export class Purchases extends IonicNativePlugin {
})
makePurchase(
productIdentifier: string,
oldSkus: string[] = [],
oldSku?: string = null,
type: ProductType = ProductType.SUBS
): Observable<RCMakePurchaseResponse> {
return;
Expand Down

0 comments on commit bb77620

Please sign in to comment.