UNPKG

@hookflo/tern

Version:

A robust, scalable webhook verification framework supporting multiple platforms and signature algorithms

14 lines (13 loc) 609 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stripeDefaultMapping = void 0; exports.stripeDefaultMapping = { provider: 'stripe', fieldMappings: [ { schemaFieldId: 'event_type', providerPath: 'type' }, { schemaFieldId: 'amount', providerPath: 'data.object.amount_received' }, { schemaFieldId: 'currency', providerPath: 'data.object.currency', transform: 'toUpperCase' }, { schemaFieldId: 'transaction_id', providerPath: 'data.object.id' }, { schemaFieldId: 'customer_id', providerPath: 'data.object.customer' }, ], };