Skip to content

Commit 8dd5916

Browse files
configure package to build exports when installed
1 parent 1724627 commit 8dd5916

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

lib/cards.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const CARD_VERIFICATION_STATUS = {
9999
* @property {CardExpiration} expiration - Card expiration date
100100
* @property {string} cardCvv - 3-4 digit card verification value
101101
* @property {string} holderName - Full name of the card holder
102-
* @property {CardBillingAddress} billingAddress - The billing address of the card
102+
* @property {Partial<Pick<CardBillingAddress, 'addressLine1' | 'addressLine2' | 'city' | 'stateOrProvince' | 'country'>>} billingAddress - The billing address of the card
103103
*
104104
* @tag Cards
105105
*/
@@ -141,7 +141,7 @@ export const CARD_VERIFICATION_STATUS = {
141141
* @property {CardVerficationStatuses} cardVerfication - The results of submitting cardholder data to a card network for verification
142142
* @property {string} issuer - The name of the issuer
143143
* @property {string} issuerCountry - The country of the issuer
144-
*
144+
*
145145
* @example
146146
* {
147147
"cardID": "ec7e1848-dc80-4ab0-8827-dd7fc0737b43",
@@ -171,7 +171,7 @@ export const CARD_VERIFICATION_STATUS = {
171171
"issuer": "GRINGOTTS BANK",
172172
"issuerCountry": "US"
173173
}
174-
*
174+
*
175175
* @tag Cards
176176
*/
177177

@@ -187,7 +187,7 @@ export class Cards {
187187
/**
188188
* Retrieves details for the card with the specified ID.
189189
* The `CARDS_READ` scope enum is required when making a request from the browser.
190-
*
190+
*
191191
* @param {string} accountID - Account to query
192192
* @param {string} cardID - Card to query
193193
* @returns {Promise<Card>}
@@ -210,7 +210,7 @@ export class Cards {
210210
/**
211211
* Lists all the cards associated with a particular Moov account.
212212
* The `CARDS_READ` scope enum is required when making a request from the browser.
213-
*
213+
*
214214
* @param {string} accountID - Account to query
215215
* @returns {Promise<Card[]>}
216216
* @tag Cards
@@ -232,7 +232,7 @@ export class Cards {
232232
* Links a card to a Moov account. Only use this endpoint if you have provided Moov with a
233233
* copy of your PCI attestation of compliance.
234234
* The `CARDS_WRITE` scope enum is required when making a request from the browser.
235-
*
235+
*
236236
* @param {string} accountID - Account to link
237237
* @param {LinkCard} card - Card information
238238
* @returns {Promise<Card>}
@@ -256,7 +256,7 @@ export class Cards {
256256
/**
257257
* Disables a card with the specified ID.
258258
* The `CARDS_WRITE` scope enum is required when making a request from the browser.
259-
*
259+
*
260260
* @param {string} accountID - Account to query
261261
* @param {string} cardID - Card to query
262262
* @returns {Promise<void>}

lib/types/cards.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export type LinkCard = {
187187
/**
188188
* - The billing address of the card
189189
*/
190-
billingAddress: Partial<Pick<CardBillingAddress, 'addressLine1' | 'addressLine2' | 'city' | 'stateOrProvince' | 'country'>>;
190+
billingAddress: CardBillingAddress;
191191
};
192192
/**
193193
* Card billing address
@@ -288,4 +288,4 @@ export type Card = {
288288
*/
289289
issuerCountry: string;
290290
};
291-
//# sourceMappingURL=cards.d.ts.map
291+
//# sourceMappingURL=cards.d.ts.map

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"docs": "node ./scripts/generateDocs.cjs",
4141
"docs-watch": "watch \"npm run docs\" ./docs/templates",
4242
"docs-clean": "rm ./docs/output/*.*",
43+
"prepare": "npm run build",
4344
"test": "ava ./lib/**/*.test.js",
4445
"generate-types": "tsc",
4546
"test-watch": "ava --watch ./lib/**/*.test.js"

0 commit comments

Comments
 (0)