@riocrypto/common 1.0.2050 → 1.0.2053

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,69 @@
1
+ import { Country } from "../types/country";
2
+ import { Fiat } from "../types/fiat";
3
+ import { FXProvider } from "../types/fx-provider";
4
+ import { Processor } from "../types/processor";
5
+ import { Side } from "../types/side";
6
+ import { TVFXDataProvider } from "../types/TV-FX-data-provider";
1
7
  import { Subjects } from "./subjects";
2
8
  export interface RioSettingsUpdatedEvent {
3
9
  subject: Subjects.RioSettingsUpdated;
4
10
  data: {
5
11
  id: string;
6
12
  platformFee?: number;
13
+ buyOrderNextDaySettlementFee?: number;
14
+ sellOrderNextDaySettlementFee?: number;
15
+ isAfterHours?: {
16
+ [key: string]: {
17
+ value: boolean;
18
+ frozen: boolean;
19
+ };
20
+ };
21
+ nextDaySettlementDateOffset?: {
22
+ [key: string]: number;
23
+ };
24
+ buyOrderAutomaticFXTradeLimit?: {
25
+ [key: string]: number;
26
+ };
27
+ sellOrderAutomaticFXTradeLimit?: {
28
+ [key: string]: number;
29
+ };
30
+ buyOrderAfterHoursExchangeRateMarkup?: {
31
+ [key: string]: number;
32
+ };
33
+ sellOrderAfterHoursExchangeRateMarkup?: {
34
+ [key: string]: number;
35
+ };
36
+ buyOrderGeneralExchangeRateMarkup?: {
37
+ [key: string]: number;
38
+ };
39
+ sellOrderGeneralExchangeRateMarkup?: {
40
+ [key: string]: number;
41
+ };
42
+ additionalBuyOrderLiquidityUSD?: number;
43
+ additionalSellOrderLiquidityUSD?: number;
44
+ previousDayUSDMXNConversionRate?: number;
45
+ fxProviders?: {
46
+ [key in FXProvider]: {
47
+ enabled: boolean;
48
+ defaultOrderType?: {
49
+ buy: "TOD" | "SPT" | "TOM";
50
+ sell: "TOD" | "SPT" | "TOM";
51
+ };
52
+ };
53
+ };
54
+ fxExecutionThreshold?: number;
55
+ defaultServiceFee?: {
56
+ [key in Country]?: {
57
+ [key in Side]?: number;
58
+ };
59
+ };
60
+ activeFiatPaymentProcessors?: {
61
+ [Side.Buy]: Processor[];
62
+ [Side.Sell]: Processor[];
63
+ bankAccountVerifications: Processor[];
64
+ };
65
+ TVFXDataProvider?: {
66
+ [key in Fiat]?: TVFXDataProvider;
67
+ };
7
68
  };
8
69
  }
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const side_1 = require("../types/side");
@@ -1,7 +1,9 @@
1
1
  import { Country } from "./country";
2
+ import { Fiat } from "./fiat";
2
3
  import { FXProvider } from "./fx-provider";
3
4
  import { Processor } from "./processor";
4
5
  import { Side } from "./side";
6
+ import { TVFXDataProvider } from "./TV-FX-data-provider";
5
7
  export interface RioSettingsUpdate {
6
8
  platformFee?: number;
7
9
  afterHoursExchangeRateMarkup?: {
@@ -53,4 +55,7 @@ export interface RioSettingsUpdate {
53
55
  [Side.Sell]: Processor[];
54
56
  bankAccountVerifications: Processor[];
55
57
  };
58
+ TVFXDataProvider?: {
59
+ [key in Fiat]: TVFXDataProvider;
60
+ };
56
61
  }
@@ -60,8 +60,6 @@ export interface RioSettings {
60
60
  bankAccountVerifications: Processor[];
61
61
  };
62
62
  TVFXDataProvider: {
63
- [key in Fiat]?: {
64
- [key in Side]?: TVFXDataProvider;
65
- };
63
+ [key in Fiat]?: TVFXDataProvider;
66
64
  };
67
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2050",
3
+ "version": "1.0.2053",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",