Add stripeAccount entity to proptypes

This commit is contained in:
Vesa Luusua 2019-03-22 00:12:51 +02:00
parent 905c3ee129
commit b8b919ca11

View file

@ -283,6 +283,15 @@ propTypes.review = shape({
subject: propTypes.user,
});
// A Stripe account entity
propTypes.stripeAccount = shape({
id: propTypes.uuid.isRequired,
type: propTypes.value('stripeAccount').isRequired,
attributes: shape({
stripeAccountId: string.isRequired,
}),
});
export const LINE_ITEM_NIGHT = 'line-item/night';
export const LINE_ITEM_DAY = 'line-item/day';
export const LINE_ITEM_UNITS = 'line-item/units';