From fc1eb3503385ea077213a791ad2e8bae1fca484f Mon Sep 17 00:00:00 2001 From: Vijayasingam Thanasekaran <100207323+vijayasingam-paddle@users.noreply.github.com> Date: Thu, 6 Jun 2024 17:13:46 +0100 Subject: [PATCH] feat(types): Added a new property(`allowDiscountRemoval`) (#47) --- CHANGELOG.md | 8 ++++++++ package.json | 5 +---- types/checkout/checkout.d.ts | 1 + 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd24e97..52fd414 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), Check our main [developer changelog](https://developer.paddle.com/?utm_source=dx&utm_medium=paddle-js-wrapper) for information about changes to the Paddle Billing platform, the Paddle API, and other developer tools. +## 1.2.0 - 2024-06-06 + +### Added + +- Added a new property(`allowDiscountRemoval`) to restrict users from removing discounts. + +--- + ## 1.1.1 - 2024-05-28 ### Fixed diff --git a/package.json b/package.json index f29a111..2b79146 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paddle/paddle-js", - "version": "1.1.1", + "version": "1.2.0", "description": "Wrapper to load Paddle.js as a module and use TypeScript definitions when working with methods.", "main": "dist/index.js", "module": "dist/index.esm.js", @@ -13,9 +13,6 @@ "lint": "eslint '{src,types}/**/*.ts'", "prettier": "prettier --check {src,types}/**/*.ts", "prettier:fix": "prettier --check {src,types}/**/*.ts --write", - "patch": "yarn version --patch --no-git-tag-version --no-commit-hooks", - "minor": "yarn version --minor --no-git-tag-version --no-commit-hooks", - "major": "yarn version --major --no-git-tag-version --no-commit-hooks", "release:next": "yarn version --prerelease --preid next --no-git-tag-version --no-commit-hooks", "publish:next": "yarn publish --tag next --access public", "publish:latest": "yarn publish --access public", diff --git a/types/checkout/checkout.d.ts b/types/checkout/checkout.d.ts index 18eb3e9..30cf1ab 100644 --- a/types/checkout/checkout.d.ts +++ b/types/checkout/checkout.d.ts @@ -20,6 +20,7 @@ export interface CheckoutSettings { frameInitialHeight?: number; successUrl?: string; allowedPaymentMethods?: AvailablePaymentMethod[]; + allowDiscountRemoval?: boolean; } export interface PaddleSetupPwCustomer {