@getvolume/volume-shared
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -95,3 +95,7 @@ interface IVolumeContext { | ||
AwaitingAuthorisation = "AWAITING_AUTHORISATION", | ||
BankLaunchedLoaded = "BANK_LAUNCHED_LOADED" | ||
BankLaunchedLoaded = "BANK_LAUNCHED_LOADED", | ||
/** | ||
* Called when Volume component rendered in a desktop mode and payment id is generated | ||
*/ | ||
PaymentIdGenerated = "PAYMENT_ID_GENERATED" | ||
} | ||
@@ -98,0 +102,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
var s=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var _=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var n in e)s(t,n,{get:e[n],enumerable:!0})},L=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of T(e))!_.call(t,o)&&o!==n&&s(t,o,{get:()=>e[o],enumerable:!(i=N(e,o))||i.enumerable});return t};var R=t=>L(s({},"__esModule",{value:!0}),t);var D={};l(D,{AgentType:()=>A,Endpoints:()=>P,INTEGRATION_API_URL:()=>m,LIVE_API_URL:()=>I,LOCAL_API_URL:()=>p,PaymentStatus:()=>d,SANDBOX_API_URL:()=>E,VolumeError:()=>c,VolumeErrorContextType:()=>g,VolumeEventType:()=>u,apiUrlFromVolumeEnvironment:()=>x,numberToCurrency:()=>O});module.exports=R(D);var u=(r=>(r.PaymentInitiated="PAYMENT_INITIATED",r.PaymentAuthorizedSDP="PAYMENT_AUTHORIZED_SDP",r.PaymentError="PAYMENT_ERROR",r.GenericError="GENERIC_ERROR",r.SetShoppedId="SET_SHOPPER_ID",r.SupportedDevice="SUPPORTED_DEVICE",r.InstitutionsFetched="INSTITUTIONS_FETCHED",r.CancelUrlFetched="CANCEL_URL_FETCHED",r.ConfirmPageLoaded="CONFIRM_PAGE_LOADED",r.BankSelectionLoaded="BANK_SELECTION_LOADED",r.AwaitingAuthorisation="AWAITING_AUTHORISATION",r.BankLaunchedLoaded="BANK_LAUNCHED_LOADED",r))(u||{}),A=(n=>(n.WEB_BROWSER="WEB_BROWSER",n.MOBILE_APPLICATION="MOBILE_APPLICATION",n))(A||{}),d=(a=>(a.NEW="NEW",a.AWAITING_AUTHORIZATION="AWAITING_AUTHORIZATION",a.AUTHORIZED="AUTHORIZED",a.PENDING="PENDING",a.COMPLETED="COMPLETED",a.SETTLED="SETTLED",a.FAILED="FAILED",a.UNDEFINED="UNDEFINED",a))(d||{}),c=class t extends Error{constructor(n,i,o){super(n);this.context=i;this.httpErrorMessage=o;Object.setPrototypeOf(this,t.prototype)}type="VolumeError"},g=(e=>(e.HTTP_CALL="HTTP_CALL",e))(g||{});var p="http://localhost:8080",I="https://api.volumepay.io",E="https://api.sandbox.volumepay.io",m="https://api.integration.volumepay.io",P={AUTHENTICATE:"/api/authenticate",INSTITUTIONS:"/api/institutions",CREATE_PAYMENT:"/api/payments",PAYMENT_STATUS:"/api/payments/{0}/status",CANCEL_URL:"/api/merchants/applications/{0}/cancel-url"};var x=t=>{switch(t){case"integration":return m;case"live":return I;case"sandbox":return E;case"local":return p;default:return t}};var O=t=>new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP",minimumFractionDigits:2}).format(t);0&&(module.exports={AgentType,Endpoints,INTEGRATION_API_URL,LIVE_API_URL,LOCAL_API_URL,PaymentStatus,SANDBOX_API_URL,VolumeError,VolumeErrorContextType,VolumeEventType,apiUrlFromVolumeEnvironment,numberToCurrency}); | ||
var s=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var _=Object.prototype.hasOwnProperty;var L=(t,r)=>{for(var n in r)s(t,n,{get:r[n],enumerable:!0})},l=(t,r,n,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of T(r))!_.call(t,o)&&o!==n&&s(t,o,{get:()=>r[o],enumerable:!(i=N(r,o))||i.enumerable});return t};var P=t=>l(s({},"__esModule",{value:!0}),t);var O={};L(O,{AgentType:()=>A,Endpoints:()=>R,INTEGRATION_API_URL:()=>m,LIVE_API_URL:()=>I,LOCAL_API_URL:()=>p,PaymentStatus:()=>d,SANDBOX_API_URL:()=>E,VolumeError:()=>c,VolumeErrorContextType:()=>g,VolumeEventType:()=>u,apiUrlFromVolumeEnvironment:()=>D,numberToCurrency:()=>x});module.exports=P(O);var u=(e=>(e.PaymentInitiated="PAYMENT_INITIATED",e.PaymentAuthorizedSDP="PAYMENT_AUTHORIZED_SDP",e.PaymentError="PAYMENT_ERROR",e.GenericError="GENERIC_ERROR",e.SetShoppedId="SET_SHOPPER_ID",e.SupportedDevice="SUPPORTED_DEVICE",e.InstitutionsFetched="INSTITUTIONS_FETCHED",e.CancelUrlFetched="CANCEL_URL_FETCHED",e.ConfirmPageLoaded="CONFIRM_PAGE_LOADED",e.BankSelectionLoaded="BANK_SELECTION_LOADED",e.AwaitingAuthorisation="AWAITING_AUTHORISATION",e.BankLaunchedLoaded="BANK_LAUNCHED_LOADED",e.PaymentIdGenerated="PAYMENT_ID_GENERATED",e))(u||{}),A=(n=>(n.WEB_BROWSER="WEB_BROWSER",n.MOBILE_APPLICATION="MOBILE_APPLICATION",n))(A||{}),d=(a=>(a.NEW="NEW",a.AWAITING_AUTHORIZATION="AWAITING_AUTHORIZATION",a.AUTHORIZED="AUTHORIZED",a.PENDING="PENDING",a.COMPLETED="COMPLETED",a.SETTLED="SETTLED",a.FAILED="FAILED",a.UNDEFINED="UNDEFINED",a))(d||{}),c=class t extends Error{constructor(n,i,o){super(n);this.context=i;this.httpErrorMessage=o;Object.setPrototypeOf(this,t.prototype)}type="VolumeError"},g=(r=>(r.HTTP_CALL="HTTP_CALL",r))(g||{});var p="http://localhost:8080",I="https://api.volumepay.io",E="https://api.sandbox.volumepay.io",m="https://api.integration.volumepay.io",R={AUTHENTICATE:"/api/authenticate",INSTITUTIONS:"/api/institutions",CREATE_PAYMENT:"/api/payments",PAYMENT_STATUS:"/api/payments/{0}/status",CANCEL_URL:"/api/merchants/applications/{0}/cancel-url"};var D=t=>{switch(t){case"integration":return m;case"live":return I;case"sandbox":return E;case"local":return p;default:return t}};var x=t=>new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP",minimumFractionDigits:2}).format(t);0&&(module.exports={AgentType,Endpoints,INTEGRATION_API_URL,LIVE_API_URL,LOCAL_API_URL,PaymentStatus,SANDBOX_API_URL,VolumeError,VolumeErrorContextType,VolumeEventType,apiUrlFromVolumeEnvironment,numberToCurrency}); |
{ | ||
"name": "@getvolume/volume-shared", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18434
231