@riocrypto/common 1.0.537 → 1.0.539

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.
@@ -72,9 +72,6 @@ export declare class RioClient {
72
72
  paymentId: string;
73
73
  }>;
74
74
  createKushkiBankPayment(orderId: string): Promise<any>;
75
- createSPEIPayment(orderId: string): Promise<any>;
76
- createSPIDPayment(orderId: string): Promise<any>;
77
- createSWIFTPayment(orderId: string): Promise<any>;
78
- createInterbankPayment(orderId: string): Promise<any>;
75
+ createBankPayment(orderId: string): Promise<any>;
79
76
  updateAuth(update: AuthUpdate, id?: string): Promise<Auth>;
80
77
  }
@@ -246,33 +246,9 @@ class RioClient {
246
246
  return data;
247
247
  });
248
248
  }
249
- createSPEIPayment(orderId) {
249
+ createBankPayment(orderId) {
250
250
  return __awaiter(this, void 0, void 0, function* () {
251
- const { data } = yield this.axios.post(`/api/payments/bank/init/spei`, {
252
- orderId,
253
- });
254
- return data;
255
- });
256
- }
257
- createSPIDPayment(orderId) {
258
- return __awaiter(this, void 0, void 0, function* () {
259
- const { data } = yield this.axios.post(`/api/payments/bank/init/spid`, {
260
- orderId,
261
- });
262
- return data;
263
- });
264
- }
265
- createSWIFTPayment(orderId) {
266
- return __awaiter(this, void 0, void 0, function* () {
267
- const { data } = yield this.axios.post(`/api/payments/bank/init/swift`, {
268
- orderId,
269
- });
270
- return data;
271
- });
272
- }
273
- createInterbankPayment(orderId) {
274
- return __awaiter(this, void 0, void 0, function* () {
275
- const { data } = yield this.axios.post(`/api/payments/bank/init/interbank`, {
251
+ const { data } = yield this.axios.post(`/api/payments/bank/init`, {
276
252
  orderId,
277
253
  });
278
254
  return data;
@@ -2,20 +2,20 @@ export declare enum OrderStatus {
2
2
  Created = "created",
3
3
  Cancelled = "cancelled",
4
4
  Processing = "processing",
5
- DepositRegistered = "deposit_registered",
6
- DepositConfirmed = "deposit_confirmed",
5
+ DepositRegistered = "depositRegistered",
6
+ DepositConfirmed = "depositConfirmed",
7
7
  Paid = "paid",
8
8
  Filled = "filled",
9
9
  Complete = "complete",
10
- PaymentFailed = "failed_payment",
11
- AwaitingPayment = "awaiting_payment",
12
- FillFailed = "failed_fill",
13
- TransferFailed = "failed_transfer",
14
- QuoteFailed = "failed_quote",
15
- ProcessorRoutingFailed = "failed_processor_routing",
16
- LiquidityRoutingFailed = "failed_liquidity_routing",
17
- FeesFailed = "failed_fees",
18
- DepositAddressFailed = "deposit_address_failed",
19
- Failed = "failed_unknown",
10
+ PaymentFailed = "failedPayment",
11
+ AwaitingPayment = "awaitingPayment",
12
+ FillFailed = "failedFill",
13
+ TransferFailed = "failedTransfer",
14
+ QuoteFailed = "failedQuote",
15
+ ProcessorRoutingFailed = "failedProcessorRouting",
16
+ LiquidityRoutingFailed = "failedLiquidityRouting",
17
+ FeesFailed = "failedFees",
18
+ DepositAddressFailed = "depositAddressFailed",
19
+ Failed = "failedUnknown",
20
20
  Expired = "expired"
21
21
  }
@@ -12,9 +12,9 @@ var OrderStatus;
12
12
  // processor
13
13
  OrderStatus["Processing"] = "processing";
14
14
  // When the crypto deposit from a sell order is registereed by the block explorer
15
- OrderStatus["DepositRegistered"] = "deposit_registered";
15
+ OrderStatus["DepositRegistered"] = "depositRegistered";
16
16
  // When the crypto deposit from a sell order is confirmed by the liquidity provider
17
- OrderStatus["DepositConfirmed"] = "deposit_confirmed";
17
+ OrderStatus["DepositConfirmed"] = "depositConfirmed";
18
18
  // When order has been processed by the
19
19
  // payment processor but not yet filled
20
20
  // by a liquidity provider
@@ -27,25 +27,25 @@ var OrderStatus;
27
27
  // processor and filled by the liquidity provider
28
28
  OrderStatus["Complete"] = "complete";
29
29
  // When the payment fails
30
- OrderStatus["PaymentFailed"] = "failed_payment";
30
+ OrderStatus["PaymentFailed"] = "failedPayment";
31
31
  // When waiting for asynchronous payment
32
- OrderStatus["AwaitingPayment"] = "awaiting_payment";
32
+ OrderStatus["AwaitingPayment"] = "awaitingPayment";
33
33
  // When the liquidity provider fails to fill the order
34
- OrderStatus["FillFailed"] = "failed_fill";
34
+ OrderStatus["FillFailed"] = "failedFill";
35
35
  // When the transfer to the user fails
36
- OrderStatus["TransferFailed"] = "failed_transfer";
36
+ OrderStatus["TransferFailed"] = "failedTransfer";
37
37
  // When failed to get quote
38
- OrderStatus["QuoteFailed"] = "failed_quote";
38
+ OrderStatus["QuoteFailed"] = "failedQuote";
39
39
  // When failed to route to processor
40
- OrderStatus["ProcessorRoutingFailed"] = "failed_processor_routing";
40
+ OrderStatus["ProcessorRoutingFailed"] = "failedProcessorRouting";
41
41
  // When failed to route to liquidity provider
42
- OrderStatus["LiquidityRoutingFailed"] = "failed_liquidity_routing";
42
+ OrderStatus["LiquidityRoutingFailed"] = "failedLiquidityRouting";
43
43
  // When failed to get fees
44
- OrderStatus["FeesFailed"] = "failed_fees";
44
+ OrderStatus["FeesFailed"] = "failedFees";
45
45
  // When failed to get deposit address
46
- OrderStatus["DepositAddressFailed"] = "deposit_address_failed";
46
+ OrderStatus["DepositAddressFailed"] = "depositAddressFailed";
47
47
  // Unknown error(s)
48
- OrderStatus["Failed"] = "failed_unknown";
48
+ OrderStatus["Failed"] = "failedUnknown";
49
49
  // When the order is expireed
50
50
  OrderStatus["Expired"] = "expired";
51
51
  })(OrderStatus = exports.OrderStatus || (exports.OrderStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.537",
3
+ "version": "1.0.539",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",