@riocrypto/common 1.0.2156 → 1.0.2158

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,6 +1,6 @@
1
1
  import { Subjects } from "./subjects";
2
- export interface PayoutAdvanceCompleteEvent {
3
- subject: Subjects.PayoutAdvanceComplete;
2
+ export interface PayoutAdvancesUsedEvent {
3
+ subject: Subjects.PayoutAdvancesUsed;
4
4
  data: {
5
5
  orderId: string;
6
6
  payouts: {
@@ -1,13 +1,13 @@
1
- import { PayoutAdvanceTransactionType } from "../types/payout-advance-transaction-type";
1
+ import { PayoutAdvancesTransactionType } from "../types/payout-advance-transaction-type";
2
2
  import { Subjects } from "./subjects";
3
3
  import { Fiat } from "../types/fiat";
4
4
  import { Crypto } from "../types/crypto";
5
- export interface PayoutAdvanceTransactionCreatedEvent {
6
- subject: Subjects.PayoutAdvanceTransactionCreated;
5
+ export interface PayoutAdvancesTransactionCreatedEvent {
6
+ subject: Subjects.PayoutAdvancesTransactionCreated;
7
7
  data: {
8
8
  id: string;
9
9
  userId: string;
10
- type: PayoutAdvanceTransactionType;
10
+ type: PayoutAdvancesTransactionType;
11
11
  amount: number;
12
12
  currency: Fiat | Crypto;
13
13
  orderId?: string;
@@ -30,8 +30,8 @@ export declare enum Subjects {
30
30
  BankAccountCheckPassed = "bankAccountCheck:passed",
31
31
  CircleAddressReady = "circleAddress:ready",
32
32
  CircleAddressFailed = "circleAddress:failed",
33
- PayoutAdvanceTransactionCreated = "payoutAdvanceTransaction:created",
34
- PayoutAdvanceComplete = "payoutAdvance:complete",
33
+ PayoutAdvancesTransactionCreated = "payoutAdvancesTransaction:created",
34
+ PayoutAdvancesUsed = "payoutAdvances:used",
35
35
  UBOCreated = "ubo:created",
36
36
  UBOUpdated = "ubo:updated",
37
37
  BidApproved = "bid:approved",
@@ -34,8 +34,8 @@ var Subjects;
34
34
  Subjects["BankAccountCheckPassed"] = "bankAccountCheck:passed";
35
35
  Subjects["CircleAddressReady"] = "circleAddress:ready";
36
36
  Subjects["CircleAddressFailed"] = "circleAddress:failed";
37
- Subjects["PayoutAdvanceTransactionCreated"] = "payoutAdvanceTransaction:created";
38
- Subjects["PayoutAdvanceComplete"] = "payoutAdvance:complete";
37
+ Subjects["PayoutAdvancesTransactionCreated"] = "payoutAdvancesTransaction:created";
38
+ Subjects["PayoutAdvancesUsed"] = "payoutAdvances:used";
39
39
  Subjects["UBOCreated"] = "ubo:created";
40
40
  Subjects["UBOUpdated"] = "ubo:updated";
41
41
  Subjects["BidApproved"] = "bid:approved";
package/build/index.d.ts CHANGED
@@ -163,8 +163,8 @@ export * from "./events/emarkets-fx-trade-failed-event";
163
163
  export * from "./events/emarkets-fx-trade-completed-event";
164
164
  export * from "./events/arbitrage-trade-created-event";
165
165
  export * from "./events/order-status-reset-event";
166
- export * from "./events/payout-advance-transaction-created-event";
167
- export * from "./events/payout-advance-complete-event";
166
+ export * from "./events/payout-advances-transaction-created-event";
167
+ export * from "./events/payout-advances-complete-event";
168
168
  export * from "./events/bank-payout-updated-event";
169
169
  export * from "./events/bulk-crypto-payment-created-event";
170
170
  export * from "./events/bulk-bank-payment-created-event";
@@ -334,7 +334,7 @@ export * from "./types/arbitrage-provider-status";
334
334
  export * from "./types/arbitrage-trade";
335
335
  export * from "./types/arbitrage-trade-status";
336
336
  export * from "./types/arbitrage-trade-type";
337
- export * from "./types/payout-advance-transaction";
337
+ export * from "./types/payout-advances-transaction";
338
338
  export * from "./types/payout-advance-transaction-type";
339
339
  export * from "./types/currency-with-country";
340
340
  export * from "./types/CEP";
package/build/index.js CHANGED
@@ -179,8 +179,8 @@ __exportStar(require("./events/emarkets-fx-trade-failed-event"), exports);
179
179
  __exportStar(require("./events/emarkets-fx-trade-completed-event"), exports);
180
180
  __exportStar(require("./events/arbitrage-trade-created-event"), exports);
181
181
  __exportStar(require("./events/order-status-reset-event"), exports);
182
- __exportStar(require("./events/payout-advance-transaction-created-event"), exports);
183
- __exportStar(require("./events/payout-advance-complete-event"), exports);
182
+ __exportStar(require("./events/payout-advances-transaction-created-event"), exports);
183
+ __exportStar(require("./events/payout-advances-complete-event"), exports);
184
184
  __exportStar(require("./events/bank-payout-updated-event"), exports);
185
185
  __exportStar(require("./events/bulk-crypto-payment-created-event"), exports);
186
186
  __exportStar(require("./events/bulk-bank-payment-created-event"), exports);
@@ -350,7 +350,7 @@ __exportStar(require("./types/arbitrage-provider-status"), exports);
350
350
  __exportStar(require("./types/arbitrage-trade"), exports);
351
351
  __exportStar(require("./types/arbitrage-trade-status"), exports);
352
352
  __exportStar(require("./types/arbitrage-trade-type"), exports);
353
- __exportStar(require("./types/payout-advance-transaction"), exports);
353
+ __exportStar(require("./types/payout-advances-transaction"), exports);
354
354
  __exportStar(require("./types/payout-advance-transaction-type"), exports);
355
355
  __exportStar(require("./types/currency-with-country"), exports);
356
356
  __exportStar(require("./types/CEP"), exports);
@@ -17,7 +17,7 @@ export interface BankAccount {
17
17
  notes?: string;
18
18
  advancedVerificationStatus?: BankAccountVerificationStatus;
19
19
  bridgeExternalAccountId?: string;
20
- availablePayoutAdvanceAmount?: number;
20
+ availablePayoutAdvancesAmount?: number;
21
21
  email?: string;
22
22
  isBitsoBankAccount?: boolean;
23
23
  }
@@ -12,5 +12,5 @@ export interface CryptoAddress {
12
12
  advancedVerificationStatus?: AddressVerificationStatus;
13
13
  fireblocksExternalWalletId?: string;
14
14
  isFireblocksWhitelisted?: boolean;
15
- availablePayoutAdvanceAmount?: number;
15
+ availablePayoutAdvancesAmount?: number;
16
16
  }
@@ -1,7 +1,7 @@
1
1
  export declare enum OrderAttribute {
2
2
  DeferredPayment = "deferredPayment",
3
3
  FixedPrice = "fixedPrice",
4
- UsesPayoutAdvance = "usesPayoutAdvance",
4
+ UsesPayoutAdvances = "usesPayoutAdvances",
5
5
  BulkPaymentIsDefault = "bulkPaymentIsDefault",
6
6
  SkipInvoicing = "skipInvoicing",
7
7
  SkipEmails = "skipEmails",
@@ -5,7 +5,7 @@ var OrderAttribute;
5
5
  (function (OrderAttribute) {
6
6
  OrderAttribute["DeferredPayment"] = "deferredPayment";
7
7
  OrderAttribute["FixedPrice"] = "fixedPrice";
8
- OrderAttribute["UsesPayoutAdvance"] = "usesPayoutAdvance";
8
+ OrderAttribute["UsesPayoutAdvances"] = "usesPayoutAdvances";
9
9
  OrderAttribute["BulkPaymentIsDefault"] = "bulkPaymentIsDefault";
10
10
  OrderAttribute["SkipInvoicing"] = "skipInvoicing";
11
11
  OrderAttribute["SkipEmails"] = "skipEmails";
@@ -1,4 +1,4 @@
1
- export declare enum PayoutAdvanceTransactionType {
1
+ export declare enum PayoutAdvancesTransactionType {
2
2
  Credit = "credit",
3
3
  Debit = "debit"
4
4
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayoutAdvanceTransactionType = void 0;
4
- var PayoutAdvanceTransactionType;
5
- (function (PayoutAdvanceTransactionType) {
6
- PayoutAdvanceTransactionType["Credit"] = "credit";
7
- PayoutAdvanceTransactionType["Debit"] = "debit";
8
- })(PayoutAdvanceTransactionType = exports.PayoutAdvanceTransactionType || (exports.PayoutAdvanceTransactionType = {}));
3
+ exports.PayoutAdvancesTransactionType = void 0;
4
+ var PayoutAdvancesTransactionType;
5
+ (function (PayoutAdvancesTransactionType) {
6
+ PayoutAdvancesTransactionType["Credit"] = "credit";
7
+ PayoutAdvancesTransactionType["Debit"] = "debit";
8
+ })(PayoutAdvancesTransactionType = exports.PayoutAdvancesTransactionType || (exports.PayoutAdvancesTransactionType = {}));
@@ -1,13 +1,13 @@
1
- import { PayoutAdvanceTransactionType } from "./payout-advance-transaction-type";
1
+ import { PayoutAdvancesTransactionType } from "./payout-advance-transaction-type";
2
2
  import { Fiat } from "./fiat";
3
3
  import { Crypto } from "./crypto";
4
- export interface PayoutAdvanceTransaction {
4
+ export interface PayoutAdvancesTransaction {
5
5
  id: string;
6
6
  createdAt: Date;
7
7
  userId: string;
8
8
  bankAccountId?: string;
9
9
  cryptoAddressId?: string;
10
- type: PayoutAdvanceTransactionType;
10
+ type: PayoutAdvancesTransactionType;
11
11
  amount: number;
12
12
  currency: Fiat | Crypto;
13
13
  orderId?: string;
@@ -9,7 +9,7 @@ export declare enum UserAttribute {
9
9
  NoProcessingOrTransferFees = "noProcessingOrTransferFees",
10
10
  CanSpecifyNetPrice = "canSpecifyNetPrice",
11
11
  CanDeferPayment = "canDeferPayment",
12
- CanUsePayoutAdvance = "canUsePayoutAdvance",
12
+ CanUsePayoutAdvances = "canUsePayoutAdvances",
13
13
  AddToVolumeOnCreateOrder = "addToVolumeOnCreateOrder",
14
14
  DisburseMorningBuyOrdersWithoutCosigner = "disburseMorningBuyOrdersWithoutCosigner",
15
15
  DisburseMorningSellOrdersWithoutCosigner = "disburseMorningSellOrdersWithoutCosigner",
@@ -13,7 +13,7 @@ var UserAttribute;
13
13
  UserAttribute["NoProcessingOrTransferFees"] = "noProcessingOrTransferFees";
14
14
  UserAttribute["CanSpecifyNetPrice"] = "canSpecifyNetPrice";
15
15
  UserAttribute["CanDeferPayment"] = "canDeferPayment";
16
- UserAttribute["CanUsePayoutAdvance"] = "canUsePayoutAdvance";
16
+ UserAttribute["CanUsePayoutAdvances"] = "canUsePayoutAdvances";
17
17
  UserAttribute["AddToVolumeOnCreateOrder"] = "addToVolumeOnCreateOrder";
18
18
  UserAttribute["DisburseMorningBuyOrdersWithoutCosigner"] = "disburseMorningBuyOrdersWithoutCosigner";
19
19
  UserAttribute["DisburseMorningSellOrdersWithoutCosigner"] = "disburseMorningSellOrdersWithoutCosigner";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2156",
3
+ "version": "1.0.2158",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",