New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

starling-developer-sdk

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

starling-developer-sdk - npm Package Compare versions

Comparing version

to
0.0.9

12

dist/components/starling.js

@@ -126,5 +126,6 @@ (function (global, factory) {

value: function getTransactions(fromDate, toDate) {
var accessToken = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.config.accessToken;
var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
var accessToken = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : this.config.accessToken;
return this.transaction.getTransactions(fromDate, toDate, accessToken);
return this.transaction.getTransactions(fromDate, toDate, source, accessToken);
}

@@ -134,5 +135,6 @@ }, {

value: function getTransaction(transactionID) {
var accessToken = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.config.accessToken;
var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
var accessToken = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.config.accessToken;
return this.transaction.getTransaction(transactionID, accessToken);
return this.transaction.getTransaction(transactionID, source, accessToken);
}

@@ -170,3 +172,3 @@ }, {

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0YXJsaW5nLmpzIl0sIm5hbWVzIjpbIlN0YXJsaW5nIiwib3B0aW9ucyIsImRlZmF1bHRzIiwiYXBpVXJsIiwib2F1dGhVcmwiLCJjbGllbnRJZCIsImNsaWVudFNlY3JldCIsImNvbmZpZyIsIk9iamVjdCIsImFzc2lnbiIsImN1c3RvbWVyIiwiYWNjb3VudCIsImFkZHJlc3MiLCJ0cmFuc2FjdGlvbiIsImNvbnRhY3QiLCJjYXJkIiwib0F1dGgiLCJhY2Nlc3NUb2tlbiIsImdldEN1c3RvbWVyIiwiZ2V0QWNjb3VudCIsImdldEJhbG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kIGZyb20gdGhlIHVzZXIgYWdlbnQgYWZ0ZXIgdGhlXG4gICAqIHVzZXIgYXV0aGVudGljYXRlcyB3aXRoIHN0YXJsaW5nXG4gICAqIEByZXR1cm4ge1Byb21pc2V9IC0gdGhlIGh0dHAgcmVxdWVzdCBwcm9taXNlXG4gICAqL1xuICBnZXRBY2Nlc3NUb2tlbiAoYXV0aG9yaXphdGlvbkNvZGUpIHtcbiAgICByZXR1cm4gdGhpcy5vQXV0aC5nZXRBY2Nlc3NUb2tlbihhdXRob3JpemF0aW9uQ29kZSk7XG4gIH1cblxuICAvKipcbiAgICogRXhjaGFuZ2VzIHRoZSBhdXRob3JpemF0aW9uIGNvZGUgZm9yIGFuIGFjY2VzcyB0b2tlblxuICAgKiBAcGFyYW0ge3N0cmluZ30gcmVmcmVzaFRva2VuIC0gdGhlIG9hdXRoIHJlZnJlc2ggdG9rZW4sIHVzZWQgdG8gY2xhaW0gYSBuZXcgYWNjZXNzIHRva2VuIHdoZW4gdGhlIGFjY2VzcyB0b2tlblxuICAgKiBleHBpcmVzLiBBIG5ldyByZWZyZXNoIHRva2VuIGlzIGFsc28gcmV0dXJuZWQuXG4gICAqIEByZXR1cm4ge1Byb21pc2V9IC0gdGhlIGh0dHAgcmVxdWVzdCBwcm9taXNlXG4gICAqL1xuICByZWZyZXNoQWNjZXNzVG9rZW4gKHJlZnJlc2hUb2tlbikge1xuICAgIHJldHVybiB0aGlzLm9BdXRoLnJlZnJlc2hBY2Nlc3NUb2tlbihyZWZyZXNoVG9rZW4pO1xuICB9XG59XG5cbm1vZHVsZS5leHBvcnRzID0gU3Rhcmxpbmc7XG4iXX0=
//# sourceMappingURL=starling.js.map

@@ -52,2 +52,16 @@ (function (global, factory) {

var transactionSource = function transactionSource(source) {
if (source === 'MASTER_CARD') {
return '/mastercard';
} else if (source === 'FASTER_PAYMENTS_IN') {
return '/fps/in';
} else if (source === 'FASTER_PAYMENTS_OUT') {
return '/fps/out';
} else if (source === 'DIRECT_DEBIT') {
return '/direct-debit';
} else {
return '';
}
};
/**

@@ -72,2 +86,4 @@ * Service to interact with a customer's transactions

* @param {string} toDate - filter transactions before this date. Format: YYYY-MM-DD
* @param {string=} source - the transaction type (e.g. faster payments, mastercard).
* If not specified, results are not filtered by source.
* @param {string} accessToken - the oauth bearer token.

@@ -80,4 +96,4 @@ * @return {Promise} - the http request promise

key: 'getTransactions',
value: function getTransactions(fromDate, toDate, accessToken) {
var url = this.options.apiUrl + '/api/v1/transactions';
value: function getTransactions(fromDate, toDate, source, accessToken) {
var url = this.options.apiUrl + '/api/v1/transactions' + transactionSource(source);
log('GET ' + url + ' from=' + fromDate + ' to=' + toDate);

@@ -97,6 +113,5 @@

key: 'getTransaction',
value: function getTransaction(transactionID, accessToken) {
var url = this.options.apiUrl + '/api/v1/transactions/' + transactionID;
value: function getTransaction(transactionID, source, accessToken) {
var url = this.options.apiUrl + '/api/v1/transactions' + transactionSource(source) + '/' + transactionID;
log('GET ' + url);
return (0, _axios2.default)({

@@ -115,3 +130,3 @@ method: 'GET',

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRyYW5zYWN0aW9uLmpzIl0sIm5hbWVzIjpbImxvZyIsIlRyYW5zYWN0aW9uIiwib3B0aW9ucyIsImZyb21EYXRlIiwidG9EYXRlIiwiYWNjZXNzVG9rZW4iLCJ1cmwiLCJhcGlVcmwiLCJtZXRob2QiLCJwYXJhbXMiLCJmcm9tIiwidG8iLCJoZWFkZXJzIiwidHJhbnNhY3Rpb25JRCIsIm1vZHVsZSIsImV4cG9ydHMiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFJQSxNQUFNQSxNQUFNLHFCQUFNLDhCQUFOLENBQVo7O0FBRUE7Ozs7TUFHTUMsVztBQUNKOzs7O0FBSUEseUJBQWFDLE9BQWIsRUFB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uZWQuXG4gICAqIEBwYXJhbSB7c3RyaW5nfSBhY2Nlc3NUb2tlbiAtIHRoZSBvYXV0aCBiZWFyZXIgdG9rZW5cbiAgICogQHJldHVybiB7UHJvbWlzZX0gLSB0aGUgaHR0cCByZXF1ZXN0IHByb21pc2VcbiAgICovXG4gIGdldFRyYW5zYWN0aW9uICh0cmFuc2FjdGlvbklELCBzb3VyY2UsIGFjY2Vzc1Rva2VuKSB7XG4gICAgY29uc3QgdXJsID0gYCR7dGhpcy5vcHRpb25zLmFwaVVybH0vYXBpL3YxL3RyYW5zYWN0aW9ucyR7dHJhbnNhY3Rpb25Tb3VyY2Uoc291cmNlKX0vJHt0cmFuc2FjdGlvbklEfWA7XG4gICAgbG9nKGBHRVQgJHt1cmx9YCk7XG4gICAgcmV0dXJuIGF4aW9zKHtcbiAgICAgIG1ldGhvZDogJ0dFVCcsXG4gICAgICB1cmwsXG4gICAgICBoZWFkZXJzOiBkZWZhdWx0SGVhZGVycyhhY2Nlc3NUb2tlbilcbiAgICB9KTtcbiAgfVxufVxuXG5tb2R1bGUuZXhwb3J0cyA9IFRyYW5zYWN0aW9uO1xuIl19
//# sourceMappingURL=transaction.js.map

@@ -1,2 +0,2 @@

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.starling=e()}}(function(){var e;return function t(e,n,r){function o(s,a){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){var n=e[s][1][t];return o(n?n:t)},f,f.exports,t,e,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,n){t.exports=e("./lib/axios")},{"./lib/axios":3}],2:[function(e,t,n){(function(n){"use strict";var r=e("./../utils"),o=e("./../helpers/buildURL"),i=e("./../helpers/parseHeaders"),s=e("./../helpers/transformData"),a=e("./../helpers/isURLSameOrigin"),u="undefined"!=typeof window&&window.btoa||e("./../helpers/btoa");t.exports=function(t,c,f){var l=f.data,p=f.headers;r.isFormData(l)&&delete p["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",g=!1;if("test"===n.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||a(f.url)||(d=new window.XDomainRequest,h="onload",g=!0),f.auth){var m=f.auth.username||"",y=f.auth.password||"";p.Authorization="Basic "+u(m+":"+y)}if(d.open(f.method.toUpperCase(),o(f.url,f.params,f.paramsSerializer),!0),d.timeout=f.timeout,d.onprogress=function(){},d.ontimeout=function(){},d[h]=function(){if(d&&(4===d.readyState||g)&&0!==d.status){var e="getAllResponseHeaders"in d?i(d.getAllResponseHeaders()):null,n=f.responseType&&"text"!==f.responseType?d.response:d.responseText,r={data:s(n,e,f.transformResponse),status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:e,config:f,request:d};(r.status>=200&&r.status<300||!("status"in d)&&d.responseText?t:c)(r),d=null}},d.onerror=function(){c(new Error("Network Error")),d=null},d.ontimeout=function(){var e=new Error("timeout of "+f.timeout+"ms exceeded");e.timeout=f.timeout,e.code="ECONNABORTED",c(e),d=null},r.isStandardBrowserEnv()){var v=e("./../helpers/cookies"),b=f.withCredentials||a(f.url)?v.read(f.xsrfCookieName):void 0;b&&(p[f.xsrfHeaderName]=b)}if("setRequestHeader"in d&&r.forEach(p,function(e,t){"undefined"==typeof l&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),f.withCredentials&&(d.withCredentials=!0),f.responseType)try{d.responseType=f.responseType}catch(w){if("json"!==d.responseType)throw w}f.progress&&("post"===f.method||"put"===f.method?d.upload.addEventListener("progress",f.progress):"get"===f.method&&d.addEventListener("progress",f.progress)),r.isArrayBuffer(l)&&(l=new DataView(l)),void 0===l&&(l=null),d.send(l)}}).call(this,e("_process"))},{"./../helpers/btoa":8,"./../helpers/buildURL":9,"./../helpers/cookies":11,"./../helpers/isURLSameOrigin":13,"./../helpers/parseHeaders":14,"./../helpers/transformData":16,"./../utils":17,_process:21}],3:[function(e,t,n){"use strict";function r(e){this.defaults=i.merge({},e),this.interceptors={request:new a,response:new a}}var o=e("./defaults"),i=e("./utils"),s=e("./core/dispatchRequest"),a=e("./core/InterceptorManager"),u=e("./helpers/isAbsoluteURL"),c=e("./helpers/combineURLs"),f=e("./helpers/bind"),l=e("./helpers/transformData");r.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,this.defaults,{method:"get"},e),e.baseURL&&!u(e.url)&&(e.url=c(e.baseURL,e.url)),e.withCredentials=e.withCredentials||this.defaults.withCredentials,e.data=l(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n};var p=new r(o),d=t.exports=f(r.prototype.request,p);d.defaults=p.defaults,d.interceptors=p.interceptors,d.create=function(e){return new r(e)},d.all=function(e){return Promise.all(e)},d.spread=e("./helpers/spread"),i.forEach(["delete","get","head"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))},d[e]=f(r.prototype[e],p)}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))},d[e]=f(r.prototype[e],p)})},{"./core/InterceptorManager":4,"./core/dispatchRequest":5,"./defaults":6,"./helpers/bind":7,"./helpers/combineURLs":10,"./helpers/isAbsoluteURL":12,"./helpers/spread":15,"./helpers/transformData":16,"./utils":17}],4:[function(e,t,n){"use strict";function r(){this.handlers=[]}var o=e("./../utils");r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},t.exports=r},{"./../utils":17}],5:[function(e,t,n){(function(n){"use strict";t.exports=function(t){return new Promise(function(r,o){try{var i;"function"==typeof t.adapter?i=t.adapter:"undefined"!=typeof XMLHttpRequest?i=e("../adapters/xhr"):"undefined"!=typeof n&&(i=e("../adapters/http")),"function"==typeof i&&i(r,o,t)}catch(s){o(s)}})}}).call(this,e("_process"))},{"../adapters/http":2,"../adapters/xhr":2,_process:21}],6:[function(e,t,n){"use strict";var r=e("./utils"),o=/^\)\]\}',?\n/,i={"Content-Type":"application/x-www-form-urlencoded"};t.exports={transformRequest:[function(e,t){return r.isFormData(e)?e:r.isArrayBuffer(e)?e:r.isArrayBufferView(e)?e.buffer:!r.isObject(e)||r.isFile(e)||r.isBlob(e)?e:(r.isUndefined(t)||(r.forEach(t,function(e,n){"content-type"===n.toLowerCase()&&(t["Content-Type"]=e)}),r.isUndefined(t["Content-Type"])&&(t["Content-Type"]="application/json;charset=utf-8")),JSON.stringify(e))}],transformResponse:[function(e){if("string"==typeof e){e=e.replace(o,"");try{e=JSON.parse(e)}catch(t){}}return e}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(i),post:r.merge(i),put:r.merge(i)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1}},{"./utils":17}],7:[function(e,t,n){"use strict";t.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},{}],8:[function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function o(e){for(var t,n,o=String(e),s="",a=0,u=i;o.charAt(0|a)||(u="=",a%1);s+=u.charAt(63&t>>8-a%1*8)){if(n=o.charCodeAt(a+=.75),n>255)throw new r;t=t<<8|n}return s}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",t.exports=o},{}],9:[function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=e("./../utils");t.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else{var s=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)&&(t+="[]"),o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))}))}),i=s.join("&")}return i&&(e+=(e.indexOf("?")===-1?"?":"&")+i),e}},{"./../utils":17}],10:[function(e,t,n){"use strict";t.exports=function(e,t){return e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")}},{}],11:[function(e,t,n){"use strict";var r=e("./../utils");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},{"./../utils":17}],12:[function(e,t,n){"use strict";t.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},{}],13:[function(e,t,n){"use strict";var r=e("./../utils");t.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},{"./../utils":17}],14:[function(e,t,n){"use strict";var r=e("./../utils");t.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}},{"./../utils":17}],15:[function(e,t,n){"use strict";t.exports=function(e){return function(t){return e.apply(null,t)}}},{}],16:[function(e,t,n){"use strict";var r=e("./../utils");t.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},{"./../utils":17}],17:[function(e,t,n){"use strict";function r(e){return"[object Array]"===v.call(e)}function o(e){return"[object ArrayBuffer]"===v.call(e)}function i(e){return"[object FormData]"===v.call(e)}function s(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function a(e){return"string"==typeof e}function u(e){return"number"==typeof e}function c(e){return"undefined"==typeof e}function f(e){return null!==e&&"object"==typeof e}function l(e){return"[object Date]"===v.call(e)}function p(e){return"[object File]"===v.call(e)}function d(e){return"[object Blob]"===v.call(e)}function h(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function g(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function m(e,t){if(null!==e&&"undefined"!=typeof e)if("object"==typeof e||r(e)||(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(null,e[i],i,e)}function y(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=y(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)m(arguments[n],e);return t}var v=Object.prototype.toString;t.exports={isArray:r,isArrayBuffer:o,isFormData:i,isArrayBufferView:s,isString:a,isNumber:u,isObject:f,isUndefined:c,isDate:l,isFile:p,isBlob:d,isStandardBrowserEnv:g,forEach:m,merge:y,trim:h}},{}],18:[function(e,t,n){(function(r){function o(){return"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function i(){var e=arguments,t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),!t)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var o=0,i=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r),e}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(t){}}function u(){try{return n.storage.debug}catch(e){}if("undefined"!=typeof r&&"env"in r)return r.env.DEBUG}function c(){try{return window.localStorage}catch(e){}}n=t.exports=e("./debug"),n.log=s,n.formatArgs=i,n.save=a,n.load=u,n.useColors=o,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:c(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},n.enable(u())}).call(this,e("_process"))},{"./debug":19,_process:21}],19:[function(e,t,n){function r(){return n.colors[f++%n.colors.length]}function o(e){function t(){}function o(){var e=o,t=+new Date,i=t-(c||t);e.diff=i,e.prev=c,e.curr=t,c=t,null==e.useColors&&(e.useColors=n.useColors()),null==e.color&&e.useColors&&(e.color=r());for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=n.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var u=0;s[0]=s[0].replace(/%([a-z%])/g,function(t,r){if("%%"===t)return t;u++;var o=n.formatters[r];if("function"==typeof o){var i=s[u];t=o.call(e,i),s.splice(u,1),u--}return t}),s=n.formatArgs.apply(e,s);var f=o.log||n.log||console.log.bind(console);f.apply(e,s)}t.enabled=!1,o.enabled=!0;var i=n.enabled(e)?o:t;return i.namespace=e,i}function i(e){n.save(e);for(var t=(e||"").split(/[\s,]+/),r=t.length,o=0;o<r;o++)t[o]&&(e=t[o].replace(/[\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))}function s(){n.enable("")}function a(e){var t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=o.debug=o,n.coerce=u,n.disable=s,n.enable=i,n.enabled=a,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var c,f=0},{ms:20}],20:[function(e,t,n){function r(e){if(e=String(e),!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*f;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*u;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function o(e){return e>=f?Math.round(e/f)+"d":e>=c?Math.round(e/c)+"h":e>=u?Math.round(e/u)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function i(e){return s(e,f,"day")||s(e,c,"hour")||s(e,u,"minute")||s(e,a,"second")||e+" ms"}function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var a=1e3,u=60*a,c=60*u,f=24*c,l=365.25*f;t.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return r(e);if("number"===n&&isNaN(e)===!1)return t["long"]?i(e):o(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],21:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function s(e){if(p===clearTimeout)return clearTimeout(e);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){m&&h&&(m=!1,h.length?g=h.concat(g):y=-1,g.length&&u())}function u(){if(!m){var e=i(a);m=!0;for(var t=g.length;t;){for(h=g,g=[];++y<t;)h&&h[y].run();y=-1,t=g.length}h=null,m=!1,s(e)}}function c(e,t){this.fun=e,this.array=t}function f(){}var l,p,d=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(e){l=r}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(e){p=o}}();var h,g=[],m=!1,y=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];g.push(new c(e,t)),1!==g.length||m||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=f,d.addListener=f,d.once=f,d.off=f,d.removeListener=f,d.removeAllListeners=f,d.emit=f,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],22:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.account=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:account-service"),f=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getAccount",value:function(e){var t=this.options.apiUrl+"/api/v1/accounts";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}},{key:"getBalance",value:function(e){var t=this.options.apiUrl+"/api/v1/accounts/balance";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":27,axios:1,debug:18}],23:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.address=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:address-service"),f=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getAddresses",value:function(e){var t=this.options.apiUrl+"/api/v1/addresses";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":27,axios:1,debug:18}],24:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.card=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:card-service"),f=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getCard",value:function(e){var t=this.options.apiUrl+"/api/v1/cards";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":27,axios:1,debug:18}],25:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.contact=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:contact-service"),f=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getContacts",value:function(e){var t=this.options.apiUrl+"/api/v1/contacts";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":27,axios:1,debug:18}],26:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.customer=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:customer-service"),f=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getCustomer",value:function(e){var t=this.options.apiUrl+"/api/v1/customers";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":27,axios:1,debug:18}],27:[function(t,n,r){!function(t,n){if("function"==typeof e&&e.amd)e(["exports"],n);else if("undefined"!=typeof r)n(r);else{var o={exports:{}};n(o.exports),t.http=o.exports}}(this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.defaultHeaders=function(e){return{Accept:"application/json",Authorization:"Bearer "+e}}})},{}],28:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"));else{var s={exports:{}};i(s,o.axios,o.debug),o.oauth=s.exports}}(this,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=r(t),s=r(n),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u="authorization_code",c="refresh_token",f=(0,s["default"])("starling:oauth-service"),l=function(){function e(t){o(this,e),this.options=t}return a(e,[{key:"getAccessToken",value:function(e){return this.getOAuthToken({code:e,grant_type:u,client_id:this.options.clientId,client_secret:this.options.clientSecret,redirect_uri:this.options.redirectUri})}},{key:"refreshAccessToken",value:function(e){return this.getOAuthToken({refresh_token:e,grant_type:c,client_id:this.options.clientId,client_secret:this.options.clientSecret})}},{key:"getOAuthToken",value:function(e){if(!this.options.clientId)throw Error("clientId is not configured");if(!this.options.clientSecret)throw Error("clientSecret is not configured");var t=this.options.oauthUrl+"/oauth/access-token";return f("GET "+t+" queryParams:"+JSON.stringify(e)),(0,i["default"])({url:t,method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},params:e})}}]),e}();e.exports=l})},{axios:1,debug:18}],29:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","./customer","./account","./address","./transaction","./card","./oauth","./contact"],i);else if("undefined"!=typeof r)i(n,t("./customer"),t("./account"),t("./address"),t("./transaction"),t("./card"),t("./oauth"),t("./contact"));else{var s={exports:{}};i(s,o.customer,o.account,o.address,o.transaction,o.card,o.oauth,o.contact),o.starling=s.exports}}(this,function(e,t,n,r,o,i,s,a){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=u(t),l=u(n),p=u(r),d=u(o),h=u(i),g=u(s),m=u(a),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=function(){function e(t){c(this,e);var n={apiUrl:"https://api.starlingbank.com",oauthUrl:"https://oauth.starlingbank.com",clientId:"",clientSecret:""};this.config=Object.assign({},n,t),this.customer=new f["default"](this.config),this.account=new l["default"](this.config),this.address=new p["default"](this.config),this.transaction=new d["default"](this.config),this.contact=new m["default"](this.config),this.card=new h["default"](this.config),this.oAuth=new g["default"](this.config)}return y(e,[{key:"getCustomer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.customer.getCustomer(e)}},{key:"getAccount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.account.getAccount(e)}},{key:"getBalance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.account.getBalance(e)}},{key:"getAddresses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.address.getAddresses(e)}},{key:"getTransactions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.config.accessToken;return this.transaction.getTransactions(e,t,n)}},{key:"getTransaction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config.accessToken;return this.transaction.getTransaction(e,t)}},{key:"getContacts",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.contact.getContacts(e)}},{key:"getCard",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.card.getCard(e)}},{key:"getAccessToken",value:function(e){return this.oAuth.getAccessToken(e)}},{key:"refreshAccessToken",value:function(e){return this.oAuth.refreshAccessToken(e)}}]),e}();e.exports=v})},{"./account":22,"./address":23,"./card":24,"./contact":25,"./customer":26,"./oauth":28,"./transaction":30}],30:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.transaction=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:transaction-service"),f=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getTransactions",value:function(e,t,n){var o=this.options.apiUrl+"/api/v1/transactions";return c("GET "+o+" from="+e+" to="+t),(0,s["default"])({method:"GET",url:o,params:{from:e,to:t},headers:(0,r.defaultHeaders)(n)})}},{key:"getTransaction",value:function(e,t){var n=this.options.apiUrl+"/api/v1/transactions/"+e;return c("GET "+n),(0,s["default"])({method:"GET",url:n,headers:(0,r.defaultHeaders)(t)})}}]),e}();e.exports=f})},{"./http":27,axios:1,debug:18}]},{},[29])(29)});
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.starling=e()}}(function(){var e;return function t(e,n,r){function o(s,a){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){var n=e[s][1][t];return o(n?n:t)},f,f.exports,t,e,n,r)}return n[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(e,t,n){t.exports=e("./lib/axios")},{"./lib/axios":3}],2:[function(e,t,n){(function(n){"use strict";var r=e("./../utils"),o=e("./../helpers/buildURL"),i=e("./../helpers/parseHeaders"),s=e("./../helpers/transformData"),a=e("./../helpers/isURLSameOrigin"),u="undefined"!=typeof window&&window.btoa||e("./../helpers/btoa");t.exports=function(t,c,f){var l=f.data,d=f.headers;r.isFormData(l)&&delete d["Content-Type"];var p=new XMLHttpRequest,h="onreadystatechange",g=!1;if("test"===n.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||a(f.url)||(p=new window.XDomainRequest,h="onload",g=!0),f.auth){var m=f.auth.username||"",y=f.auth.password||"";d.Authorization="Basic "+u(m+":"+y)}if(p.open(f.method.toUpperCase(),o(f.url,f.params,f.paramsSerializer),!0),p.timeout=f.timeout,p.onprogress=function(){},p.ontimeout=function(){},p[h]=function(){if(p&&(4===p.readyState||g)&&0!==p.status){var e="getAllResponseHeaders"in p?i(p.getAllResponseHeaders()):null,n=f.responseType&&"text"!==f.responseType?p.response:p.responseText,r={data:s(n,e,f.transformResponse),status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:e,config:f,request:p};(r.status>=200&&r.status<300||!("status"in p)&&p.responseText?t:c)(r),p=null}},p.onerror=function(){c(new Error("Network Error")),p=null},p.ontimeout=function(){var e=new Error("timeout of "+f.timeout+"ms exceeded");e.timeout=f.timeout,e.code="ECONNABORTED",c(e),p=null},r.isStandardBrowserEnv()){var v=e("./../helpers/cookies"),b=f.withCredentials||a(f.url)?v.read(f.xsrfCookieName):void 0;b&&(d[f.xsrfHeaderName]=b)}if("setRequestHeader"in p&&r.forEach(d,function(e,t){"undefined"==typeof l&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),f.withCredentials&&(p.withCredentials=!0),f.responseType)try{p.responseType=f.responseType}catch(w){if("json"!==p.responseType)throw w}f.progress&&("post"===f.method||"put"===f.method?p.upload.addEventListener("progress",f.progress):"get"===f.method&&p.addEventListener("progress",f.progress)),r.isArrayBuffer(l)&&(l=new DataView(l)),void 0===l&&(l=null),p.send(l)}}).call(this,e("_process"))},{"./../helpers/btoa":8,"./../helpers/buildURL":9,"./../helpers/cookies":11,"./../helpers/isURLSameOrigin":13,"./../helpers/parseHeaders":14,"./../helpers/transformData":16,"./../utils":17,_process:21}],3:[function(e,t,n){"use strict";function r(e){this.defaults=i.merge({},e),this.interceptors={request:new a,response:new a}}var o=e("./defaults"),i=e("./utils"),s=e("./core/dispatchRequest"),a=e("./core/InterceptorManager"),u=e("./helpers/isAbsoluteURL"),c=e("./helpers/combineURLs"),f=e("./helpers/bind"),l=e("./helpers/transformData");r.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,this.defaults,{method:"get"},e),e.baseURL&&!u(e.url)&&(e.url=c(e.baseURL,e.url)),e.withCredentials=e.withCredentials||this.defaults.withCredentials,e.data=l(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n};var d=new r(o),p=t.exports=f(r.prototype.request,d);p.defaults=d.defaults,p.interceptors=d.interceptors,p.create=function(e){return new r(e)},p.all=function(e){return Promise.all(e)},p.spread=e("./helpers/spread"),i.forEach(["delete","get","head"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))},p[e]=f(r.prototype[e],d)}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))},p[e]=f(r.prototype[e],d)})},{"./core/InterceptorManager":4,"./core/dispatchRequest":5,"./defaults":6,"./helpers/bind":7,"./helpers/combineURLs":10,"./helpers/isAbsoluteURL":12,"./helpers/spread":15,"./helpers/transformData":16,"./utils":17}],4:[function(e,t,n){"use strict";function r(){this.handlers=[]}var o=e("./../utils");r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},t.exports=r},{"./../utils":17}],5:[function(e,t,n){(function(n){"use strict";t.exports=function(t){return new Promise(function(r,o){try{var i;"function"==typeof t.adapter?i=t.adapter:"undefined"!=typeof XMLHttpRequest?i=e("../adapters/xhr"):"undefined"!=typeof n&&(i=e("../adapters/http")),"function"==typeof i&&i(r,o,t)}catch(s){o(s)}})}}).call(this,e("_process"))},{"../adapters/http":2,"../adapters/xhr":2,_process:21}],6:[function(e,t,n){"use strict";var r=e("./utils"),o=/^\)\]\}',?\n/,i={"Content-Type":"application/x-www-form-urlencoded"};t.exports={transformRequest:[function(e,t){return r.isFormData(e)?e:r.isArrayBuffer(e)?e:r.isArrayBufferView(e)?e.buffer:!r.isObject(e)||r.isFile(e)||r.isBlob(e)?e:(r.isUndefined(t)||(r.forEach(t,function(e,n){"content-type"===n.toLowerCase()&&(t["Content-Type"]=e)}),r.isUndefined(t["Content-Type"])&&(t["Content-Type"]="application/json;charset=utf-8")),JSON.stringify(e))}],transformResponse:[function(e){if("string"==typeof e){e=e.replace(o,"");try{e=JSON.parse(e)}catch(t){}}return e}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(i),post:r.merge(i),put:r.merge(i)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1}},{"./utils":17}],7:[function(e,t,n){"use strict";t.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},{}],8:[function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function o(e){for(var t,n,o=String(e),s="",a=0,u=i;o.charAt(0|a)||(u="=",a%1);s+=u.charAt(63&t>>8-a%1*8)){if(n=o.charCodeAt(a+=.75),n>255)throw new r;t=t<<8|n}return s}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",t.exports=o},{}],9:[function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=e("./../utils");t.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else{var s=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)&&(t+="[]"),o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))}))}),i=s.join("&")}return i&&(e+=(e.indexOf("?")===-1?"?":"&")+i),e}},{"./../utils":17}],10:[function(e,t,n){"use strict";t.exports=function(e,t){return e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")}},{}],11:[function(e,t,n){"use strict";var r=e("./../utils");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},{"./../utils":17}],12:[function(e,t,n){"use strict";t.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},{}],13:[function(e,t,n){"use strict";var r=e("./../utils");t.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},{"./../utils":17}],14:[function(e,t,n){"use strict";var r=e("./../utils");t.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}},{"./../utils":17}],15:[function(e,t,n){"use strict";t.exports=function(e){return function(t){return e.apply(null,t)}}},{}],16:[function(e,t,n){"use strict";var r=e("./../utils");t.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},{"./../utils":17}],17:[function(e,t,n){"use strict";function r(e){return"[object Array]"===v.call(e)}function o(e){return"[object ArrayBuffer]"===v.call(e)}function i(e){return"[object FormData]"===v.call(e)}function s(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function a(e){return"string"==typeof e}function u(e){return"number"==typeof e}function c(e){return"undefined"==typeof e}function f(e){return null!==e&&"object"==typeof e}function l(e){return"[object Date]"===v.call(e)}function d(e){return"[object File]"===v.call(e)}function p(e){return"[object Blob]"===v.call(e)}function h(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function g(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function m(e,t){if(null!==e&&"undefined"!=typeof e)if("object"==typeof e||r(e)||(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(null,e[i],i,e)}function y(){function e(e,n){"object"==typeof t[n]&&"object"==typeof e?t[n]=y(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;n<r;n++)m(arguments[n],e);return t}var v=Object.prototype.toString;t.exports={isArray:r,isArrayBuffer:o,isFormData:i,isArrayBufferView:s,isString:a,isNumber:u,isObject:f,isUndefined:c,isDate:l,isFile:d,isBlob:p,isStandardBrowserEnv:g,forEach:m,merge:y,trim:h}},{}],18:[function(e,t,n){(function(r){function o(){return"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function i(){var e=arguments,t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),!t)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var o=0,i=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r),e}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(t){}}function u(){try{return n.storage.debug}catch(e){}if("undefined"!=typeof r&&"env"in r)return r.env.DEBUG}function c(){try{return window.localStorage}catch(e){}}n=t.exports=e("./debug"),n.log=s,n.formatArgs=i,n.save=a,n.load=u,n.useColors=o,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:c(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},n.enable(u())}).call(this,e("_process"))},{"./debug":19,_process:21}],19:[function(e,t,n){function r(){return n.colors[f++%n.colors.length]}function o(e){function t(){}function o(){var e=o,t=+new Date,i=t-(c||t);e.diff=i,e.prev=c,e.curr=t,c=t,null==e.useColors&&(e.useColors=n.useColors()),null==e.color&&e.useColors&&(e.color=r());for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=n.coerce(s[0]),"string"!=typeof s[0]&&(s=["%o"].concat(s));var u=0;s[0]=s[0].replace(/%([a-z%])/g,function(t,r){if("%%"===t)return t;u++;var o=n.formatters[r];if("function"==typeof o){var i=s[u];t=o.call(e,i),s.splice(u,1),u--}return t}),s=n.formatArgs.apply(e,s);var f=o.log||n.log||console.log.bind(console);f.apply(e,s)}t.enabled=!1,o.enabled=!0;var i=n.enabled(e)?o:t;return i.namespace=e,i}function i(e){n.save(e);for(var t=(e||"").split(/[\s,]+/),r=t.length,o=0;o<r;o++)t[o]&&(e=t[o].replace(/[\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))}function s(){n.enable("")}function a(e){var t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=o.debug=o,n.coerce=u,n.disable=s,n.enable=i,n.enabled=a,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var c,f=0},{ms:20}],20:[function(e,t,n){function r(e){if(e=String(e),!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*f;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*u;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function o(e){return e>=f?Math.round(e/f)+"d":e>=c?Math.round(e/c)+"h":e>=u?Math.round(e/u)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function i(e){return s(e,f,"day")||s(e,c,"hour")||s(e,u,"minute")||s(e,a,"second")||e+" ms"}function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var a=1e3,u=60*a,c=60*u,f=24*c,l=365.25*f;t.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return r(e);if("number"===n&&isNaN(e)===!1)return t["long"]?i(e):o(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],21:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function s(e){if(d===clearTimeout)return clearTimeout(e);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&h&&(m=!1,h.length?g=h.concat(g):y=-1,g.length&&u())}function u(){if(!m){var e=i(a);m=!0;for(var t=g.length;t;){for(h=g,g=[];++y<t;)h&&h[y].run();y=-1,t=g.length}h=null,m=!1,s(e)}}function c(e,t){this.fun=e,this.array=t}function f(){}var l,d,p=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(e){l=r}try{d="function"==typeof clearTimeout?clearTimeout:o}catch(e){d=o}}();var h,g=[],m=!1,y=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];g.push(new c(e,t)),1!==g.length||m||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=f,p.addListener=f,p.once=f,p.off=f,p.removeListener=f,p.removeAllListeners=f,p.emit=f,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],22:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.account=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:account-service"),f=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getAccount",value:function(e){var t=this.options.apiUrl+"/api/v1/accounts";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}},{key:"getBalance",value:function(e){var t=this.options.apiUrl+"/api/v1/accounts/balance";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":27,axios:1,debug:18}],23:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.address=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:address-service"),f=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getAddresses",value:function(e){var t=this.options.apiUrl+"/api/v1/addresses";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":27,axios:1,debug:18}],24:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.card=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:card-service"),f=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getCard",value:function(e){var t=this.options.apiUrl+"/api/v1/cards";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":27,axios:1,debug:18}],25:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.contact=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:contact-service"),f=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getContacts",value:function(e){var t=this.options.apiUrl+"/api/v1/contacts";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":27,axios:1,debug:18}],26:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.customer=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:customer-service"),f=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getCustomer",value:function(e){var t=this.options.apiUrl+"/api/v1/customers";return c("GET "+t),(0,s["default"])({method:"GET",url:t,headers:(0,r.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":27,axios:1,debug:18}],27:[function(t,n,r){!function(t,n){if("function"==typeof e&&e.amd)e(["exports"],n);else if("undefined"!=typeof r)n(r);else{var o={exports:{}};n(o.exports),t.http=o.exports}}(this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.defaultHeaders=function(e){return{Accept:"application/json",Authorization:"Bearer "+e}}})},{}],28:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"));else{var s={exports:{}};i(s,o.axios,o.debug),o.oauth=s.exports}}(this,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=r(t),s=r(n),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u="authorization_code",c="refresh_token",f=(0,s["default"])("starling:oauth-service"),l=function(){function e(t){o(this,e),this.options=t}return a(e,[{key:"getAccessToken",value:function(e){return this.getOAuthToken({code:e,grant_type:u,client_id:this.options.clientId,client_secret:this.options.clientSecret,redirect_uri:this.options.redirectUri})}},{key:"refreshAccessToken",value:function(e){return this.getOAuthToken({refresh_token:e,grant_type:c,client_id:this.options.clientId,client_secret:this.options.clientSecret})}},{key:"getOAuthToken",value:function(e){if(!this.options.clientId)throw Error("clientId is not configured");if(!this.options.clientSecret)throw Error("clientSecret is not configured");var t=this.options.oauthUrl+"/oauth/access-token";return f("GET "+t+" queryParams:"+JSON.stringify(e)),(0,i["default"])({url:t,method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},params:e})}}]),e}();e.exports=l})},{axios:1,debug:18}],29:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","./customer","./account","./address","./transaction","./card","./oauth","./contact"],i);else if("undefined"!=typeof r)i(n,t("./customer"),t("./account"),t("./address"),t("./transaction"),t("./card"),t("./oauth"),t("./contact"));else{var s={exports:{}};i(s,o.customer,o.account,o.address,o.transaction,o.card,o.oauth,o.contact),o.starling=s.exports}}(this,function(e,t,n,r,o,i,s,a){"use strict";function u(e){return e&&e.__esModule?e:{"default":e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=u(t),l=u(n),d=u(r),p=u(o),h=u(i),g=u(s),m=u(a),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=function(){function e(t){c(this,e);var n={apiUrl:"https://api.starlingbank.com",oauthUrl:"https://oauth.starlingbank.com",clientId:"",clientSecret:""};this.config=Object.assign({},n,t),this.customer=new f["default"](this.config),this.account=new l["default"](this.config),this.address=new d["default"](this.config),this.transaction=new p["default"](this.config),this.contact=new m["default"](this.config),this.card=new h["default"](this.config),this.oAuth=new g["default"](this.config)}return y(e,[{key:"getCustomer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.customer.getCustomer(e)}},{key:"getAccount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.account.getAccount(e)}},{key:"getBalance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.account.getBalance(e)}},{key:"getAddresses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.address.getAddresses(e)}},{key:"getTransactions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.config.accessToken;return this.transaction.getTransactions(e,t,n,r)}},{key:"getTransaction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.config.accessToken;return this.transaction.getTransaction(e,t,n)}},{key:"getContacts",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.contact.getContacts(e)}},{key:"getCard",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.card.getCard(e)}},{key:"getAccessToken",value:function(e){return this.oAuth.getAccessToken(e)}},{key:"refreshAccessToken",value:function(e){return this.oAuth.refreshAccessToken(e)}}]),e}();e.exports=v})},{"./account":22,"./address":23,"./card":24,"./contact":25,"./customer":26,"./oauth":28,"./transaction":30}],30:[function(t,n,r){!function(o,i){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],i);else if("undefined"!=typeof r)i(n,t("axios"),t("debug"),t("./http"));else{var s={exports:{}};i(s,o.axios,o.debug,o.http),o.transaction=s.exports}}(this,function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var s=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=(0,a["default"])("starling:transaction-service"),f=function(e){return"MASTER_CARD"===e?"/mastercard":"FASTER_PAYMENTS_IN"===e?"/fps/in":"FASTER_PAYMENTS_OUT"===e?"/fps/out":"DIRECT_DEBIT"===e?"/direct-debit":""},l=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getTransactions",value:function(e,t,n,o){var i=this.options.apiUrl+"/api/v1/transactions"+f(n);return c("GET "+i+" from="+e+" to="+t),(0,s["default"])({method:"GET",url:i,params:{from:e,to:t},headers:(0,r.defaultHeaders)(o)})}},{key:"getTransaction",value:function(e,t,n){var o=this.options.apiUrl+"/api/v1/transactions"+f(t)+"/"+e;return c("GET "+o),(0,s["default"])({method:"GET",url:o,headers:(0,r.defaultHeaders)(n)})}}]),e}();e.exports=l})},{"./http":27,axios:1,debug:18}]},{},[29])(29)});
//# sourceMappingURL=starling.bundle.min.js.map

@@ -773,5 +773,6 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.starling = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

value: function getTransactions(fromDate, toDate) {
var accessToken = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.config.accessToken;
var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
var accessToken = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : this.config.accessToken;
return this.transaction.getTransactions(fromDate, toDate, accessToken);
return this.transaction.getTransactions(fromDate, toDate, source, accessToken);
}

@@ -781,5 +782,6 @@ }, {

value: function getTransaction(transactionID) {
var accessToken = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.config.accessToken;
var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
var accessToken = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.config.accessToken;
return this.transaction.getTransaction(transactionID, accessToken);
return this.transaction.getTransaction(transactionID, source, accessToken);
}

@@ -870,2 +872,16 @@ }, {

var transactionSource = function transactionSource(source) {
if (source === 'MASTER_CARD') {
return '/mastercard';
} else if (source === 'FASTER_PAYMENTS_IN') {
return '/fps/in';
} else if (source === 'FASTER_PAYMENTS_OUT') {
return '/fps/out';
} else if (source === 'DIRECT_DEBIT') {
return '/direct-debit';
} else {
return '';
}
};
/**

@@ -890,2 +906,4 @@ * Service to interact with a customer's transactions

* @param {string} toDate - filter transactions before this date. Format: YYYY-MM-DD
* @param {string=} source - the transaction type (e.g. faster payments, mastercard).
* If not specified, results are not filtered by source.
* @param {string} accessToken - the oauth bearer token.

@@ -898,4 +916,4 @@ * @return {Promise} - the http request promise

key: 'getTransactions',
value: function getTransactions(fromDate, toDate, accessToken) {
var url = this.options.apiUrl + '/api/v1/transactions';
value: function getTransactions(fromDate, toDate, source, accessToken) {
var url = this.options.apiUrl + '/api/v1/transactions' + transactionSource(source);
log('GET ' + url + ' from=' + fromDate + ' to=' + toDate);

@@ -915,6 +933,5 @@

key: 'getTransaction',
value: function getTransaction(transactionID, accessToken) {
var url = this.options.apiUrl + '/api/v1/transactions/' + transactionID;
value: function getTransaction(transactionID, source, accessToken) {
var url = this.options.apiUrl + '/api/v1/transactions' + transactionSource(source) + '/' + transactionID;
log('GET ' + url);
return (0, _axios2.default)({

@@ -921,0 +938,0 @@ method: 'GET',

@@ -1,2 +0,2 @@

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.starling=e()}}(function(){var e;return function t(e,n,o){function i(a,u){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(r)return r(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[a]={exports:{}};e[a][0].call(f.exports,function(t){var n=e[a][1][t];return i(n?n:t)},f,f.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,n,o){!function(i,r){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,t("axios"),t("debug"),t("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.account=a.exports}}(this,function(e,t,n,o){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(t),u=i(n),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=(0,u["default"])("starling:account-service"),f=function(){function e(t){r(this,e),this.options=t}return s(e,[{key:"getAccount",value:function(e){var t=this.options.apiUrl+"/api/v1/accounts";return c("GET "+t),(0,a["default"])({method:"GET",url:t,headers:(0,o.defaultHeaders)(e)})}},{key:"getBalance",value:function(e){var t=this.options.apiUrl+"/api/v1/accounts/balance";return c("GET "+t),(0,a["default"])({method:"GET",url:t,headers:(0,o.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":6,axios:void 0,debug:void 0}],2:[function(t,n,o){!function(i,r){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,t("axios"),t("debug"),t("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.address=a.exports}}(this,function(e,t,n,o){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(t),u=i(n),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=(0,u["default"])("starling:address-service"),f=function(){function e(t){r(this,e),this.options=t}return s(e,[{key:"getAddresses",value:function(e){var t=this.options.apiUrl+"/api/v1/addresses";return c("GET "+t),(0,a["default"])({method:"GET",url:t,headers:(0,o.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":6,axios:void 0,debug:void 0}],3:[function(t,n,o){!function(i,r){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,t("axios"),t("debug"),t("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.card=a.exports}}(this,function(e,t,n,o){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(t),u=i(n),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=(0,u["default"])("starling:card-service"),f=function(){function e(t){r(this,e),this.options=t}return s(e,[{key:"getCard",value:function(e){var t=this.options.apiUrl+"/api/v1/cards";return c("GET "+t),(0,a["default"])({method:"GET",url:t,headers:(0,o.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":6,axios:void 0,debug:void 0}],4:[function(t,n,o){!function(i,r){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,t("axios"),t("debug"),t("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.contact=a.exports}}(this,function(e,t,n,o){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(t),u=i(n),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=(0,u["default"])("starling:contact-service"),f=function(){function e(t){r(this,e),this.options=t}return s(e,[{key:"getContacts",value:function(e){var t=this.options.apiUrl+"/api/v1/contacts";return c("GET "+t),(0,a["default"])({method:"GET",url:t,headers:(0,o.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":6,axios:void 0,debug:void 0}],5:[function(t,n,o){!function(i,r){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,t("axios"),t("debug"),t("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.customer=a.exports}}(this,function(e,t,n,o){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(t),u=i(n),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=(0,u["default"])("starling:customer-service"),f=function(){function e(t){r(this,e),this.options=t}return s(e,[{key:"getCustomer",value:function(e){var t=this.options.apiUrl+"/api/v1/customers";return c("GET "+t),(0,a["default"])({method:"GET",url:t,headers:(0,o.defaultHeaders)(e)})}}]),e}();e.exports=f})},{"./http":6,axios:void 0,debug:void 0}],6:[function(t,n,o){!function(t,n){if("function"==typeof e&&e.amd)e(["exports"],n);else if("undefined"!=typeof o)n(o);else{var i={exports:{}};n(i.exports),t.http=i.exports}}(this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.defaultHeaders=function(e){return{Accept:"application/json",Authorization:"Bearer "+e}}})},{}],7:[function(t,n,o){!function(i,r){if("function"==typeof e&&e.amd)e(["module","axios","debug"],r);else if("undefined"!=typeof o)r(n,t("axios"),t("debug"));else{var a={exports:{}};r(a,i.axios,i.debug),i.oauth=a.exports}}(this,function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=o(t),a=o(n),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s="authorization_code",c="refresh_token",f=(0,a["default"])("starling:oauth-service"),l=function(){function e(t){i(this,e),this.options=t}return u(e,[{key:"getAccessToken",value:function(e){return this.getOAuthToken({code:e,grant_type:s,client_id:this.options.clientId,client_secret:this.options.clientSecret,redirect_uri:this.options.redirectUri})}},{key:"refreshAccessToken",value:function(e){return this.getOAuthToken({refresh_token:e,grant_type:c,client_id:this.options.clientId,client_secret:this.options.clientSecret})}},{key:"getOAuthToken",value:function(e){if(!this.options.clientId)throw Error("clientId is not configured");if(!this.options.clientSecret)throw Error("clientSecret is not configured");var t=this.options.oauthUrl+"/oauth/access-token";return f("GET "+t+" queryParams:"+JSON.stringify(e)),(0,r["default"])({url:t,method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},params:e})}}]),e}();e.exports=l})},{axios:void 0,debug:void 0}],8:[function(t,n,o){!function(i,r){if("function"==typeof e&&e.amd)e(["module","./customer","./account","./address","./transaction","./card","./oauth","./contact"],r);else if("undefined"!=typeof o)r(n,t("./customer"),t("./account"),t("./address"),t("./transaction"),t("./card"),t("./oauth"),t("./contact"));else{var a={exports:{}};r(a,i.customer,i.account,i.address,i.transaction,i.card,i.oauth,i.contact),i.starling=a.exports}}(this,function(e,t,n,o,i,r,a,u){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=s(t),l=s(n),d=s(o),p=s(i),h=s(r),v=s(a),g=s(u),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),b=function(){function e(t){c(this,e);var n={apiUrl:"https://api.starlingbank.com",oauthUrl:"https://oauth.starlingbank.com",clientId:"",clientSecret:""};this.config=Object.assign({},n,t),this.customer=new f["default"](this.config),this.account=new l["default"](this.config),this.address=new d["default"](this.config),this.transaction=new p["default"](this.config),this.contact=new g["default"](this.config),this.card=new h["default"](this.config),this.oAuth=new v["default"](this.config)}return y(e,[{key:"getCustomer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.customer.getCustomer(e)}},{key:"getAccount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.account.getAccount(e)}},{key:"getBalance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.account.getBalance(e)}},{key:"getAddresses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.address.getAddresses(e)}},{key:"getTransactions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.config.accessToken;return this.transaction.getTransactions(e,t,n)}},{key:"getTransaction",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config.accessToken;return this.transaction.getTransaction(e,t)}},{key:"getContacts",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.contact.getContacts(e)}},{key:"getCard",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.card.getCard(e)}},{key:"getAccessToken",value:function(e){return this.oAuth.getAccessToken(e)}},{key:"refreshAccessToken",value:function(e){return this.oAuth.refreshAccessToken(e)}}]),e}();e.exports=b})},{"./account":1,"./address":2,"./card":3,"./contact":4,"./customer":5,"./oauth":7,"./transaction":9}],9:[function(t,n,o){!function(i,r){if("function"==typeof e&&e.amd)e(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,t("axios"),t("debug"),t("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.transaction=a.exports}}(this,function(e,t,n,o){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=i(t),u=i(n),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),c=(0,u["default"])("starling:transaction-service"),f=function(){function e(t){r(this,e),this.options=t}return s(e,[{key:"getTransactions",value:function(e,t,n){var i=this.options.apiUrl+"/api/v1/transactions";return c("GET "+i+" from="+e+" to="+t),(0,a["default"])({method:"GET",url:i,params:{from:e,to:t},headers:(0,o.defaultHeaders)(n)})}},{key:"getTransaction",value:function(e,t){var n=this.options.apiUrl+"/api/v1/transactions/"+e;return c("GET "+n),(0,a["default"])({method:"GET",url:n,headers:(0,o.defaultHeaders)(t)})}}]),e}();e.exports=f})},{"./http":6,axios:void 0,debug:void 0}]},{},[8])(8)});
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.starling=t()}}(function(){var t;return function e(t,n,o){function i(a,u){if(!n[a]){if(!t[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(r)return r(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[a]={exports:{}};t[a][0].call(f.exports,function(e){var n=t[a][1][e];return i(n?n:e)},f,f.exports,e,t,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,e("axios"),e("debug"),e("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.account=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=i(e),u=i(n),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=(0,u["default"])("starling:account-service"),f=function(){function t(e){r(this,t),this.options=e}return s(t,[{key:"getAccount",value:function(t){var e=this.options.apiUrl+"/api/v1/accounts";return c("GET "+e),(0,a["default"])({method:"GET",url:e,headers:(0,o.defaultHeaders)(t)})}},{key:"getBalance",value:function(t){var e=this.options.apiUrl+"/api/v1/accounts/balance";return c("GET "+e),(0,a["default"])({method:"GET",url:e,headers:(0,o.defaultHeaders)(t)})}}]),t}();t.exports=f})},{"./http":6,axios:void 0,debug:void 0}],2:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,e("axios"),e("debug"),e("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.address=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=i(e),u=i(n),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=(0,u["default"])("starling:address-service"),f=function(){function t(e){r(this,t),this.options=e}return s(t,[{key:"getAddresses",value:function(t){var e=this.options.apiUrl+"/api/v1/addresses";return c("GET "+e),(0,a["default"])({method:"GET",url:e,headers:(0,o.defaultHeaders)(t)})}}]),t}();t.exports=f})},{"./http":6,axios:void 0,debug:void 0}],3:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,e("axios"),e("debug"),e("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.card=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=i(e),u=i(n),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=(0,u["default"])("starling:card-service"),f=function(){function t(e){r(this,t),this.options=e}return s(t,[{key:"getCard",value:function(t){var e=this.options.apiUrl+"/api/v1/cards";return c("GET "+e),(0,a["default"])({method:"GET",url:e,headers:(0,o.defaultHeaders)(t)})}}]),t}();t.exports=f})},{"./http":6,axios:void 0,debug:void 0}],4:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,e("axios"),e("debug"),e("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.contact=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=i(e),u=i(n),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=(0,u["default"])("starling:contact-service"),f=function(){function t(e){r(this,t),this.options=e}return s(t,[{key:"getContacts",value:function(t){var e=this.options.apiUrl+"/api/v1/contacts";return c("GET "+e),(0,a["default"])({method:"GET",url:e,headers:(0,o.defaultHeaders)(t)})}}]),t}();t.exports=f})},{"./http":6,axios:void 0,debug:void 0}],5:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,e("axios"),e("debug"),e("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.customer=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=i(e),u=i(n),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=(0,u["default"])("starling:customer-service"),f=function(){function t(e){r(this,t),this.options=e}return s(t,[{key:"getCustomer",value:function(t){var e=this.options.apiUrl+"/api/v1/customers";return c("GET "+e),(0,a["default"])({method:"GET",url:e,headers:(0,o.defaultHeaders)(t)})}}]),t}();t.exports=f})},{"./http":6,axios:void 0,debug:void 0}],6:[function(e,n,o){!function(e,n){if("function"==typeof t&&t.amd)t(["exports"],n);else if("undefined"!=typeof o)n(o);else{var i={exports:{}};n(i.exports),e.http=i.exports}}(this,function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.defaultHeaders=function(t){return{Accept:"application/json",Authorization:"Bearer "+t}}})},{}],7:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","axios","debug"],r);else if("undefined"!=typeof o)r(n,e("axios"),e("debug"));else{var a={exports:{}};r(a,i.axios,i.debug),i.oauth=a.exports}}(this,function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=o(e),a=o(n),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),s="authorization_code",c="refresh_token",f=(0,a["default"])("starling:oauth-service"),l=function(){function t(e){i(this,t),this.options=e}return u(t,[{key:"getAccessToken",value:function(t){return this.getOAuthToken({code:t,grant_type:s,client_id:this.options.clientId,client_secret:this.options.clientSecret,redirect_uri:this.options.redirectUri})}},{key:"refreshAccessToken",value:function(t){return this.getOAuthToken({refresh_token:t,grant_type:c,client_id:this.options.clientId,client_secret:this.options.clientSecret})}},{key:"getOAuthToken",value:function(t){if(!this.options.clientId)throw Error("clientId is not configured");if(!this.options.clientSecret)throw Error("clientSecret is not configured");var e=this.options.oauthUrl+"/oauth/access-token";return f("GET "+e+" queryParams:"+JSON.stringify(t)),(0,r["default"])({url:e,method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},params:t})}}]),t}();t.exports=l})},{axios:void 0,debug:void 0}],8:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","./customer","./account","./address","./transaction","./card","./oauth","./contact"],r);else if("undefined"!=typeof o)r(n,e("./customer"),e("./account"),e("./address"),e("./transaction"),e("./card"),e("./oauth"),e("./contact"));else{var a={exports:{}};r(a,i.customer,i.account,i.address,i.transaction,i.card,i.oauth,i.contact),i.starling=a.exports}}(this,function(t,e,n,o,i,r,a,u){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f=s(e),l=s(n),d=s(o),p=s(i),h=s(r),v=s(a),g=s(u),y=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),b=function(){function t(e){c(this,t);var n={apiUrl:"https://api.starlingbank.com",oauthUrl:"https://oauth.starlingbank.com",clientId:"",clientSecret:""};this.config=Object.assign({},n,e),this.customer=new f["default"](this.config),this.account=new l["default"](this.config),this.address=new d["default"](this.config),this.transaction=new p["default"](this.config),this.contact=new g["default"](this.config),this.card=new h["default"](this.config),this.oAuth=new v["default"](this.config)}return y(t,[{key:"getCustomer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.customer.getCustomer(t)}},{key:"getAccount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.account.getAccount(t)}},{key:"getBalance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.account.getBalance(t)}},{key:"getAddresses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.address.getAddresses(t)}},{key:"getTransactions",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.config.accessToken;return this.transaction.getTransactions(t,e,n,o)}},{key:"getTransaction",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.config.accessToken;return this.transaction.getTransaction(t,e,n)}},{key:"getContacts",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.contact.getContacts(t)}},{key:"getCard",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.accessToken;return this.card.getCard(t)}},{key:"getAccessToken",value:function(t){return this.oAuth.getAccessToken(t)}},{key:"refreshAccessToken",value:function(t){return this.oAuth.refreshAccessToken(t)}}]),t}();t.exports=b})},{"./account":1,"./address":2,"./card":3,"./contact":4,"./customer":5,"./oauth":7,"./transaction":9}],9:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","axios","debug","./http"],r);else if("undefined"!=typeof o)r(n,e("axios"),e("debug"),e("./http"));else{var a={exports:{}};r(a,i.axios,i.debug,i.http),i.transaction=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=i(e),u=i(n),s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=(0,u["default"])("starling:transaction-service"),f=function(t){return"MASTER_CARD"===t?"/mastercard":"FASTER_PAYMENTS_IN"===t?"/fps/in":"FASTER_PAYMENTS_OUT"===t?"/fps/out":"DIRECT_DEBIT"===t?"/direct-debit":""},l=function(){function t(e){r(this,t),this.options=e}return s(t,[{key:"getTransactions",value:function(t,e,n,i){var r=this.options.apiUrl+"/api/v1/transactions"+f(n);return c("GET "+r+" from="+t+" to="+e),(0,a["default"])({method:"GET",url:r,params:{from:t,to:e},headers:(0,o.defaultHeaders)(i)})}},{key:"getTransaction",value:function(t,e,n){var i=this.options.apiUrl+"/api/v1/transactions"+f(e)+"/"+t;return c("GET "+i),(0,a["default"])({method:"GET",url:i,headers:(0,o.defaultHeaders)(n)})}}]),t}();t.exports=l})},{"./http":6,axios:void 0,debug:void 0}]},{},[8])(8)});
//# sourceMappingURL=starling.min.js.map
{
"name": "starling-developer-sdk",
"version": "0.0.8",
"version": "0.0.9",
"description": "Starling Bank Developer SDK",

@@ -19,3 +19,3 @@ "main": "dist/components/starling.js",

"keywords": [
"starlingbank"
"starlingbank, starling, bank, open, API, SDK"
],

@@ -22,0 +22,0 @@ "babel": {

@@ -33,3 +33,3 @@ # Starling Javascript SDK

```bash
$ yarn install
$ yarn install --save
```

@@ -36,0 +36,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 not supported yet

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 not supported yet