@riocrypto/common 1.0.1997 → 1.0.1999

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.
@@ -33,4 +33,8 @@ export interface ChainedOrder {
33
33
  markup?: number;
34
34
  discount?: number;
35
35
  expiredQuotes?: string[];
36
+ informationalFees?: {
37
+ serviceFeeFiat?: number;
38
+ serviceFeeFiatTax?: number;
39
+ };
36
40
  }
@@ -122,6 +122,10 @@ export interface Order {
122
122
  feeCurrency?: Crypto | Fiat;
123
123
  sentAt: Date;
124
124
  }[];
125
+ informationalFees?: {
126
+ serviceFeeFiat?: number;
127
+ serviceFeeFiatTax?: number;
128
+ };
125
129
  payoutTransferLimit?: number;
126
130
  paymentReceivedAt?: Date;
127
131
  version: number;
@@ -1,4 +1,6 @@
1
+ import { Country } from "./country";
1
2
  import { FXProvider } from "./fx-provider";
3
+ import { Side } from "./side";
2
4
  export interface RioSettingsUpdate {
3
5
  platformFee?: number;
4
6
  afterHoursExchangeRateMarkup?: {
@@ -40,4 +42,9 @@ export interface RioSettingsUpdate {
40
42
  };
41
43
  };
42
44
  fxExecutionThreshold?: number;
45
+ defaultServiceFee?: {
46
+ [key in Country]?: {
47
+ [key in Side]?: number;
48
+ };
49
+ };
43
50
  }
@@ -1,4 +1,6 @@
1
+ import { Country } from "./country";
1
2
  import { FXProvider } from "./fx-provider";
3
+ import { Side } from "./side";
2
4
  export interface RioSettings {
3
5
  id: string;
4
6
  platformFee: number;
@@ -44,4 +46,9 @@ export interface RioSettings {
44
46
  };
45
47
  };
46
48
  fxExecutionThreshold: number;
49
+ defaultServiceFee: {
50
+ [key in Country]?: {
51
+ [key in Side]?: number;
52
+ };
53
+ };
47
54
  }
@@ -7,6 +7,7 @@ import { UserType } from "./user-type";
7
7
  import { ImmigrationStatus } from "./immigration-status";
8
8
  import { Country } from "./country";
9
9
  import { Fiat } from "./fiat";
10
+ import { Side } from "./side";
10
11
  declare type IndividualUser = {
11
12
  id: string;
12
13
  individualData?: {
@@ -126,5 +127,10 @@ export declare type User = {
126
127
  sell?: number;
127
128
  };
128
129
  };
130
+ serviceFee?: {
131
+ [country in Country]?: {
132
+ [side in Side]?: number;
133
+ };
134
+ };
129
135
  } & (UserType.Individual extends UserType ? IndividualUser : {}) & (UserType.Business extends UserType ? BusinessUser : {});
130
136
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1997",
3
+ "version": "1.0.1999",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",