Skip to content

Commit 4c6090b

Browse files
Fix units type
This is a string in the response
1 parent df2a3c5 commit 4c6090b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/Money.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export type Money = {
1010
/**
1111
* The whole units of the amount. For example if currencyCode is "USD", then 1 unit is one US dollar.
1212
*/
13-
units: number;
13+
units: string;
1414

1515
/**
1616
* Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If units is positive, nanos must be positive or zero. If units is zero, nanos can be positive, zero, or negative. If units is negative, nanos must be negative or zero. For example $-1.75 is represented as units=-1 and nanos=-750,000,000.

0 commit comments

Comments
 (0)