mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Add new type: defaultPaymentMethod
This commit is contained in:
parent
72b4f342d9
commit
dc34e4463d
1 changed files with 15 additions and 0 deletions
|
|
@ -308,6 +308,21 @@ propTypes.stripeAccount = shape({
|
|||
}),
|
||||
});
|
||||
|
||||
propTypes.defaultPaymentMethod = shape({
|
||||
id: propTypes.uuid.isRequired,
|
||||
type: propTypes.value('stripePaymentMethod').isRequired,
|
||||
attributes: shape({
|
||||
type: propTypes.value('stripe-payment-method/card').isRequired,
|
||||
stripePaymentMethodId: string.isRequired,
|
||||
card: shape({
|
||||
brand: string.isRequired,
|
||||
expirationMonth: number.isRequired,
|
||||
expirationYear: number.isRequired,
|
||||
last4Digits: string.isRequired,
|
||||
}).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';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue