Skip to content

Commit

Permalink
feat(types): Added a new property(allowDiscountRemoval) (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayasingam-paddle authored Jun 6, 2024
1 parent 8cdc469 commit fc1eb35
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions types/checkout/checkout.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface CheckoutSettings {
frameInitialHeight?: number;
successUrl?: string;
allowedPaymentMethods?: AvailablePaymentMethod[];
allowDiscountRemoval?: boolean;
}

export interface PaddleSetupPwCustomer {
Expand Down

0 comments on commit fc1eb35

Please sign in to comment.