@portone/server-sdk
Version:
PortOne JavaScript SDK for server-side usage
4 lines (3 loc) • 746 B
JavaScript
export function isUnrecognizedWebhook(entity) {
return entity.type !== "Transaction.Ready" && entity.type !== "Transaction.Paid" && entity.type !== "Transaction.VirtualAccountIssued" && entity.type !== "Transaction.PartialCancelled" && entity.type !== "Transaction.Cancelled" && entity.type !== "Transaction.Failed" && entity.type !== "Transaction.PayPending" && entity.type !== "Transaction.DisputeCreated" && entity.type !== "Transaction.DisputeResolved" && entity.type !== "Transaction.CancelPending" && entity.type !== "Transaction.Confirm" && entity.type !== "BillingKey.Ready" && entity.type !== "BillingKey.Issued" && entity.type !== "BillingKey.Failed" && entity.type !== "BillingKey.Deleted" && entity.type !== "BillingKey.Updated";
}