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) 847 B
import{httpPost as t}from"../http.js";import{API_VERSION as e,API_ERROR_CODE as n}from"./constants.js";function o(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){const a=`${e}/sessions/${r.id}/donationCampaigns?clientKey=${r.clientKey}`,i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}({},r.data&&{sessionData:r.data});return t({loadingContext:r.loadingContext,path:a,errorLevel:"fatal",errorCode:n.donationCampaigns},i)}export{r as default}; //# sourceMappingURL=fetch-donation-campaigns.js.map