Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-purchase

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-purchase - npm Package Compare versions

Comparing version 13.10.4 to 13.11.0

2

package.json
{
"name": "cordova-plugin-purchase",
"version": "13.10.4",
"version": "13.11.0",
"description": "Cordova Purchase plugin for iOS, Android, Windows (AppStore, Play, UWP)",

@@ -5,0 +5,0 @@ "cordova": {

# Release Notes - Cordova Plugin Purchase
## 13.11
### 13.11.0
#### Upgrade to Google Play Billing library 7.0.0
It's a backward compatible update, main visible change is the ProrationMode being renamed ReplacementMode (but the plugin kept the old enum and fields for compatibility).
## 13.10

@@ -4,0 +12,0 @@

@@ -11,5 +11,9 @@ /*

/** Replace SKU ProrationMode.
/**
* Replace SKU ProrationMode.
*
* See https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode */
* See https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode
*
* @deprecated Use {@link ReplacementMode}
*/
export enum ProrationMode {

@@ -28,2 +32,20 @@ /** Replacement takes effect immediately, and the remaining time will be prorated and credited to the user. */

/**
* Supported replacement modes to replace an existing subscription with a new one.
*
* @see {@link https://developer.android.com/google/play/billing/subscriptions#replacement-modes}
*/
export enum ReplacementMode {
/** Replacement takes effect immediately, and the remaining time will be prorated and credited to the user. */
WITH_TIME_PRORATION = 'IMMEDIATE_WITH_TIME_PRORATION',
/** Replacement takes effect immediately, and the billing cycle remains the same. */
CHARGE_PRORATED_PRICE = 'IMMEDIATE_AND_CHARGE_PRORATED_PRICE',
/** Replacement takes effect immediately, and the new price will be charged on next recurrence time. */
WITHOUT_PRORATION = 'IMMEDIATE_WITHOUT_PRORATION',
/** Replacement takes effect when the old plan expires, and the new price will be charged at the same time. */
DEFERRED = 'DEFERRED',
/** Replacement takes effect immediately, and the user is charged full price of new plan and is given a full billing cycle of subscription, plus remaining prorated time from the old plan. */
CHARGE_FULL_PRICE = 'IMMEDIATE_AND_CHARGE_FULL_PRICE',
}
export interface AdditionalData {

@@ -53,4 +75,11 @@

/**
* Same as replacementMode, for backward compatibility
*
* @deprecated Use {@link replacementMode} instead
*/
prorationMode?: ProrationMode;
/** See https://github.com/j3k0/cordova-plugin-purchase/blob/master/doc/api.md#storeorderproduct-additionaldata for details */
prorationMode?: ProrationMode;
replacementMode?: ReplacementMode;
}

@@ -57,0 +86,0 @@

@@ -35,3 +35,3 @@ /// <reference path="types.ts" />

*/
export const PLUGIN_VERSION = '13.10.4';
export const PLUGIN_VERSION = '13.11.0';

@@ -38,0 +38,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc