UNPKG

@adyen/adyen-web

Version:

[![npm](https://img.shields.io/npm/v/@adyen/adyen-web.svg)](https://www.npmjs.com/package/@adyen/adyen-web)

3 lines (2 loc) 782 B
import{httpPost as t}from"../http.js";import{API_VERSION as e}from"./constants.js";function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(r,o){const a=`${e}/sessions/${o.id}/paymentMethodBalance?clientKey=${o.clientKey}`,c=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),o.forEach(function(e){n(t,e,r[e])})}return t}({sessionData:o.data},r);return t({loadingContext:o.loadingContext,path:a,errorLevel:"fatal"},c)}export{r as default}; //# sourceMappingURL=check-balance.js.map