@riocrypto/common 1.0.2104 → 1.0.2106

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,7 +1,9 @@
1
+ import { BankPayoutFailureReason } from "../types/bank-payout-failure-reason";
1
2
  import { Subjects } from "./subjects";
2
3
  export interface STPWithdrawalFailedEvent {
3
4
  subject: Subjects.STPWithdrawalFailed;
4
5
  data: {
5
6
  orderId: string;
7
+ reason: BankPayoutFailureReason;
6
8
  };
7
9
  }
@@ -1,7 +1,9 @@
1
+ import { BankPayoutFailureReason } from "../types/bank-payout-failure-reason";
1
2
  import { Subjects } from "./subjects";
2
3
  export interface AsyncBankPayoutFailedEvent {
3
4
  subject: Subjects.AsyncBankPayoutFailed;
4
5
  data: {
5
6
  orderId: string;
7
+ reason: BankPayoutFailureReason;
6
8
  };
7
9
  }
@@ -1,7 +1,9 @@
1
+ import { BankPayoutFailureReason } from "../types/bank-payout-failure-reason";
1
2
  import { Subjects } from "./subjects";
2
3
  export interface BankPayoutFailedEvent {
3
4
  subject: Subjects.BankPayoutFailed;
4
5
  data: {
5
6
  orderId: string;
7
+ reason: BankPayoutFailureReason;
6
8
  };
7
9
  }
@@ -1,7 +1,9 @@
1
+ import { BankPayoutFailureReason } from "../types/bank-payout-failure-reason";
1
2
  import { Subjects } from "./subjects";
2
3
  export interface BitsoWithdrawalFailedEvent {
3
4
  subject: Subjects.BitsoWithdrawalFailed;
4
5
  data: {
5
6
  orderId: string;
7
+ reason: BankPayoutFailureReason;
6
8
  };
7
9
  }
@@ -0,0 +1,4 @@
1
+ export declare enum BankPayoutFailureReason {
2
+ InsufficientFunds = "insufficientFunds",
3
+ Other = "other"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BankPayoutFailureReason = void 0;
4
+ var BankPayoutFailureReason;
5
+ (function (BankPayoutFailureReason) {
6
+ BankPayoutFailureReason["InsufficientFunds"] = "insufficientFunds";
7
+ BankPayoutFailureReason["Other"] = "other";
8
+ })(BankPayoutFailureReason = exports.BankPayoutFailureReason || (exports.BankPayoutFailureReason = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2104",
3
+ "version": "1.0.2106",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",