Comparing version
@@ -145,2 +145,3 @@ export interface AccountCryptoPropertiesJSON { | ||
amount: string; | ||
fiatAmount: Record<string, number> | null; | ||
} | ||
@@ -147,0 +148,0 @@ export interface TransactionJSON { |
import { Decimal } from 'decimal.js'; | ||
import { InternalTransactionJSON } from '../interfaces'; | ||
import { InternalTransactionJSON, Dictionary, CurrencyCode } from '../interfaces'; | ||
/** | ||
@@ -29,4 +29,6 @@ * Internal transaction details. | ||
amount: Decimal | null; | ||
/** Fee in fiat currencies at the time of the transaction submission. */ | ||
fiatAmount: Dictionary<CurrencyCode, number> | null; | ||
/** @internal */ | ||
constructor(json: InternalTransactionJSON); | ||
} |
@@ -23,2 +23,3 @@ "use strict"; | ||
this.amount = json.amount ? new decimal_js_1.Decimal(json.amount) : null; | ||
this.fiatAmount = json.fiatAmount; | ||
} | ||
@@ -25,0 +26,0 @@ return InternalTransaction; |
@@ -6,3 +6,3 @@ "use strict"; | ||
var script = document.createElement('script'); | ||
script.src = 'https://js.zumo.money/4.0.0-beta.2/zumocore.js'; | ||
script.src = 'https://js.zumo.money/4.0.0-beta.3/zumocore.js'; | ||
var headOrBody = document.head || document.body; | ||
@@ -9,0 +9,0 @@ if (!headOrBody) { |
{ | ||
"name": "zumokit", | ||
"version": "4.0.0-beta.2", | ||
"version": "4.0.0-beta.3", | ||
"description": "ZumoKit is a Wallet as a Service SDK", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -20,4 +20,4 @@ # ZumoKit Web SDK | ||
```html | ||
<script src="https://js.zumo.money/4.0.0-beta.2/decimal.js"></script> | ||
<script src="https://js.zumo.money/4.0.0-beta.2/zumokit.js"></script> | ||
<script src="https://js.zumo.money/4.0.0-beta.3/decimal.js"></script> | ||
<script src="https://js.zumo.money/4.0.0-beta.3/zumokit.js"></script> | ||
``` | ||
@@ -66,4 +66,4 @@ | ||
<p>Check console output!</p> | ||
<script src="https://js.zumo.money/4.0.0-beta.2/decimal.js"></script> | ||
<script src="https://js.zumo.money/4.0.0-beta.2/zumokit.js"></script> | ||
<script src="https://js.zumo.money/4.0.0-beta.3/decimal.js"></script> | ||
<script src="https://js.zumo.money/4.0.0-beta.3/zumokit.js"></script> | ||
</body> | ||
@@ -70,0 +70,0 @@ </html> |
@@ -159,2 +159,3 @@ export interface AccountCryptoPropertiesJSON { | ||
amount: string; | ||
fiatAmount: Record<string, number> | null; | ||
} | ||
@@ -161,0 +162,0 @@ |
import { Decimal } from 'decimal.js'; | ||
import { InternalTransactionJSON } from '../interfaces'; | ||
import { | ||
InternalTransactionJSON, | ||
Dictionary, | ||
CurrencyCode, | ||
} from '../interfaces'; | ||
@@ -40,2 +44,5 @@ /** | ||
/** Fee in fiat currencies at the time of the transaction submission. */ | ||
fiatAmount: Dictionary<CurrencyCode, number> | null; | ||
/** @internal */ | ||
@@ -53,3 +60,4 @@ constructor(json: InternalTransactionJSON) { | ||
this.amount = json.amount ? new Decimal(json.amount) : null; | ||
this.fiatAmount = json.fiatAmount; | ||
} | ||
} |
222077
0.22%5565
0.22%