From ef84b787291b25aeebf2714889bef4023800c12f Mon Sep 17 00:00:00 2001 From: Sum Xu Date: Fri, 8 Nov 2024 13:50:18 -0500 Subject: [PATCH] Add `disableEdit` parameter for offramp (#318) * add `disableEdit` offramp parameter * 2.4.0 --- CHANGELOG.md | 3 +++ package.json | 2 +- src/types/offramp.ts | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fd2182..423b5d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ All notable changes to this project will be documented in this file. +## [2.4.0] - 2024-11-08 +- Add `disableEdit` offramp parameter + ## [2.3.0] - 2024-10-21 - Add Offramp support with `generateOffRampURL` and `initOffRamp` functions diff --git a/package.json b/package.json index ec43c91..c5b41c0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@coinbase/cbpay-js", "repository": "https://github.com/coinbase/cbpay-js", - "version": "2.3.0", + "version": "2.4.0", "license": "MIT", "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/src/types/offramp.ts b/src/types/offramp.ts index 265b2a0..82ed078 100644 --- a/src/types/offramp.ts +++ b/src/types/offramp.ts @@ -48,6 +48,7 @@ export type OffRampAggregatorAppParams = { defaultCashoutMethod?: string; // "CRYPTO_WALLET" | "FIAT_WALLET" | "CARD" | "ACH_BANK_ACCOUNT" | "PAYPAL" presetFiatAmount?: number; fiatCurrency?: string; + disableEdit?: boolean; }; export type OffRampAppParams =