Ghost/ghost/members-api/lib/stripe/api/customers.js
2019-09-06 14:30:27 +08:00

13 lines
332 B
JavaScript

const createDeterministicApi = require('./createDeterministicApi');
const isNotDeleted = x => !x.deleted;
const getCustomerAttr = ({email}) => ({email});
const getCustomerHashSeed = member => member.email;
module.exports = createDeterministicApi(
'customers',
isNotDeleted,
getCustomerAttr,
getCustomerHashSeed
);