diff --git a/CHANGELOG.md b/CHANGELOG.md index a6e54c85..d18a4846 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # CHANGELOG +## 3.112.0 + +- Local Payment + - Remove support of `bic` field for iDeal payments + - Update documentation for redirectUrl +- Utility Functions + - Ensure camelCaseToSnakeCase handles null values correctly + ## 3.111.1 - Node.js diff --git a/package-lock.json b/package-lock.json index 99de7cd8..67807f54 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "braintree-web", - "version": "3.111.1", + "version": "3.112.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "braintree-web", - "version": "3.111.1", + "version": "3.112.0", "license": "MIT", "dependencies": { "@braintree/asset-loader": "2.0.1", diff --git a/package.json b/package.json index 74054d80..892e5e11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "braintree-web", - "version": "3.111.1", + "version": "3.112.0", "license": "MIT", "main": "src/index.js", "private": true, diff --git a/scripts/release b/scripts/release index 33203f76..940ff555 100755 --- a/scripts/release +++ b/scripts/release @@ -123,7 +123,7 @@ release_source() { local CP_CMD="cp" if [[ "$(uname)"="Darwin" ]]; then # Coreutils version of cp supports --parents, mac default one doesn't - CP_CMD="cp" + CP_CMD="gcp" fi git ls-files | egrep -v "$(join '|' $SOURCE_IGNORES)" | xargs "$CP_CMD" --parents -t "$BRAINTREE_JS_SOURCE_DEST" diff --git a/src/lib/camel-case-to-snake-case.js b/src/lib/camel-case-to-snake-case.js index 365eb074..834ce3ff 100644 --- a/src/lib/camel-case-to-snake-case.js +++ b/src/lib/camel-case-to-snake-case.js @@ -11,7 +11,9 @@ function transformKey(key) { function camelCaseToSnakeCase(input) { var converted; - if (Array.isArray(input)) { + if (input === null) { + converted = null; + } else if (Array.isArray(input)) { converted = []; input.forEach(function (x) { diff --git a/src/local-payment/external/local-payment.js b/src/local-payment/external/local-payment.js index 4b7897bb..7242e3ea 100644 --- a/src/local-payment/external/local-payment.js +++ b/src/local-payment/external/local-payment.js @@ -98,7 +98,6 @@ LocalPayment.prototype._initialize = function () { * @property {string} givenName First name of the customer. * @property {string} surname Last name of the customer. * @property {string} phone Phone number of the customer. - * @property {string} bic Bank Identification Code of the customer (specific to iDEAL transactions). * @property {boolean} recurrent Enable recurrent payment. * @property {string} customerId The customer's id in merchant's system (required for recurrent payments). * @property {boolean} shippingAddressRequired Indicates whether or not the payment needs to be shipped. For digital goods, this should be false. Defaults to false. @@ -449,7 +448,6 @@ LocalPayment.prototype.startPayment = function (options) { billingAddress = options.billingAddress || {}; params = { amount: options.amount, - bic: options.bic, billingAddress: { line1: billingAddress.streetAddress, line2: billingAddress.extendedAddress, diff --git a/src/local-payment/index.js b/src/local-payment/index.js index e1d12bf7..e28bcf56 100644 --- a/src/local-payment/index.js +++ b/src/local-payment/index.js @@ -22,7 +22,7 @@ var parse = require("../lib/querystring").parse; * @param {Client} [options.client] A {@link Client} instance. * @param {string} [options.authorization] A tokenizationKey or clientToken. Can be used in place of `options.client`. * @param {string} [options.merchantAccountId] A non-default merchant account ID to use for tokenization and creation of the authorizing transaction. Braintree strongly recommends specifying this parameter. - * @param {redirectUrl} When provided, triggers full page redirect flow instead of popup flow. + * @param {string} [options.redirectUrl] When provided, triggers full page redirect flow instead of popup flow. * @param {callback} callback The second argument, `data`, is the {@link LocalPayment} instance. * @example