Skip to content

Commit

Permalink
feat(purchases): update plugin to v0.0.5 (#2988)
Browse files Browse the repository at this point in the history
* Updates to Cordova plugin 0.0.5

* Makes underlyingErrorMessage optional
  • Loading branch information
vegaro authored and danielsogl committed Apr 19, 2019
1 parent c063652 commit 7ea51fc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/@ionic-native/plugins/purchases/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import { Observable } from 'rxjs';
*
* ```typescript
* this.purchases.getEntitlements()
* .subscribe(entitlements => )
* .subscribe(entitlements => ,
* error => );
* ```
*
Expand All @@ -67,7 +67,7 @@ import { Observable } from 'rxjs';
* // Unlock content
* }
* },
* error => // Error making purchase. You can check error.userCancelled to check if user cancelled the purchase
* ({ error, userCancelled }) => // Error making purchase. You can check error.userCancelled to check if user cancelled the purchase
* );
*
* ```
Expand Down Expand Up @@ -271,7 +271,7 @@ export class Purchases extends IonicNativePlugin {
* @param oldSkus {string[]} Optional array of skus 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. 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
*/
@Cordova({
successIndex: 1,
Expand Down Expand Up @@ -413,7 +413,6 @@ export interface RCMakePurchaseResponse {

export interface RCError {
code: number;
domain: string;
message: string;
userCancelled?: string;
underlyingErrorMessage?: string;
}

0 comments on commit 7ea51fc

Please sign in to comment.