Vulcan/packages/vulcan-payments/lib/modules/fragments.js

36 lines
570 B
JavaScript
Raw Normal View History

import { registerFragment } from 'meteor/vulcan:core';
registerFragment(`
fragment ChargeFragment on Charge {
_id
createdAt
createdAtFormatted
2018-02-24 18:26:56 +09:00
createdAtFormattedShort
user{
_id
slug
username
displayName
pageUrl
emailHash
avatarUrl
}
type
source
productKey
test
associatedCollection
associatedId
# doesn't work with unions, maybe try interface?
# associatedDocument{
# _id
# pageUrl
# }
2018-02-24 18:26:56 +09:00
amount
properties
2018-02-24 18:26:56 +09:00
stripeId
stripeChargeUrl
}
`);