@riocrypto/common 1.0.876 → 1.0.877

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.
@@ -0,0 +1,6 @@
1
+ import { Partner } from "../types/partner";
2
+ export declare class PartnerClass {
3
+ private key;
4
+ constructor(key: Partner);
5
+ getName(): "ERR" | "KillB";
6
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PartnerClass = void 0;
4
+ const partner_1 = require("../types/partner");
5
+ class PartnerClass {
6
+ constructor(key) {
7
+ this.key = key;
8
+ }
9
+ getName() {
10
+ if (this.key === partner_1.Partner.KillB) {
11
+ return "KillB";
12
+ }
13
+ else
14
+ return "ERR";
15
+ }
16
+ }
17
+ exports.PartnerClass = PartnerClass;
@@ -2,5 +2,5 @@ import { Processor } from "../types/processor";
2
2
  export declare class ProcessorClass {
3
3
  private key;
4
4
  constructor(key: Processor);
5
- getTaskLabel(): "ERR" | "SPEI" | "SPID" | "Kapstar" | "Interbank" | "Bridge" | "SWIFT";
5
+ getName(): "ERR" | "SPEI" | "SPID" | "Kapstar" | "Interbank" | "Bridge" | "SWIFT";
6
6
  }
@@ -6,7 +6,7 @@ class ProcessorClass {
6
6
  constructor(key) {
7
7
  this.key = key;
8
8
  }
9
- getTaskLabel() {
9
+ getName() {
10
10
  if (this.key === processor_1.Processor.SPEI) {
11
11
  return "SPEI";
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.876",
3
+ "version": "1.0.877",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",