File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,20 @@ export const CARD_VERIFICATION_STATUS = {
92
92
*
93
93
* @tag Cards
94
94
*/
95
+
96
+ /** @template T
97
+ * @template K {extends keyof T}
98
+ * @typedef {Pick<Partial<T>, K> & Omit<T, K> } Optional
99
+ */
100
+
95
101
/**
96
102
* Card information collected for acquisition.
97
103
* @typedef LinkCard
98
104
* @property {string } cardNumber - All digits of the card
99
105
* @property {CardExpiration } expiration - Card expiration date
100
106
* @property {string } cardCvv - 3-4 digit card verification value
101
107
* @property {string } holderName - Full name of the card holder
102
- * @property {Partial<Pick< CardBillingAddress, 'addressLine1' | 'addressLine2' | 'city' | 'stateOrProvince' | 'country'> > } billingAddress - The billing address of the card
108
+ * @property {Optional< CardBillingAddress, 'addressLine1' | 'addressLine2' | 'city' | 'stateOrProvince' | 'country'> } billingAddress - The billing address of the card
103
109
*
104
110
* @tag Cards
105
111
*/
You can’t perform that action at this time.
0 commit comments