From b8b919ca11a39a204cb9dcd3242deff4f63143e9 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Fri, 22 Mar 2019 00:12:51 +0200 Subject: [PATCH] Add stripeAccount entity to proptypes --- src/util/types.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/util/types.js b/src/util/types.js index 20291d61..9570322c 100644 --- a/src/util/types.js +++ b/src/util/types.js @@ -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';