OptionalstatusCode: numberOptionaldetails: unknownReadonlycodeNormalized error code. Each provider defines its own union.
Optional ReadonlydetailsThe raw error body or other context, if any.
Optional ReadonlystatusHTTP status of the response that caused the error, if any.
Static[hasMakes value instanceof PaymentsError true for an error from any copy of
this package, not only this one. It looks for a brand that every copy puts
on PaymentsError.prototype, so the prototype itself is not counted as an
instance. On a subclass, such as SquareError, it is the usual
prototype-chain check.
It returns a plain boolean rather than a type predicate, so TypeScript
keeps narrowing instanceof SquareError to SquareError.
Base Square error class. It extends core's
PaymentsError, soerror instanceof PaymentsErrorcatches any provider's error, even when the providers install different copies of@bates-solutions/payments-core.