@riocrypto/common 1.0.570 → 1.0.572

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.
@@ -44,6 +44,7 @@ export declare class RioClient {
44
44
  }): Promise<void>;
45
45
  updateRioSettings(update: RioSettingsUpdate): Promise<void>;
46
46
  confirmBankPayment(orderId: string): Promise<any>;
47
+ confirmBankPayout(orderId: string): Promise<any>;
47
48
  getUser(): Promise<User>;
48
49
  getBusinessUser(): Promise<BusinessUser>;
49
50
  createUser(user: UserInput): Promise<void>;
@@ -107,6 +107,14 @@ class RioClient {
107
107
  return data;
108
108
  });
109
109
  }
110
+ confirmBankPayout(orderId) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ const { data } = yield this.axios.post(`/api/payouts/bank/confirm`, {
113
+ orderId,
114
+ });
115
+ return data;
116
+ });
117
+ }
110
118
  getUser() {
111
119
  return __awaiter(this, void 0, void 0, function* () {
112
120
  const { data } = yield this.axios.get("/api/users");
@@ -1,6 +1,6 @@
1
1
  import { Subjects } from "./subjects";
2
2
  export interface PayoutCompletedEvent {
3
- subject: Subjects.PayoutCreated;
3
+ subject: Subjects.PayoutCompleted;
4
4
  data: {
5
5
  orderId: string;
6
6
  amount?: number;
@@ -16,7 +16,7 @@ export declare enum Subjects {
16
16
  PartnerUpdated = "partner:updated",
17
17
  AdminCreated = "admin:created",
18
18
  AdminDeleted = "admin:deleted",
19
- PayoutCreated = "payout:created",
19
+ PayoutCompleted = "payout:completed",
20
20
  PaymentCreated = "payment:created",
21
21
  PaymentCompleted = "payment:completed",
22
22
  PaymentFailed = "payment:failed",
@@ -20,7 +20,7 @@ var Subjects;
20
20
  Subjects["PartnerUpdated"] = "partner:updated";
21
21
  Subjects["AdminCreated"] = "admin:created";
22
22
  Subjects["AdminDeleted"] = "admin:deleted";
23
- Subjects["PayoutCreated"] = "payout:created";
23
+ Subjects["PayoutCompleted"] = "payout:completed";
24
24
  Subjects["PaymentCreated"] = "payment:created";
25
25
  Subjects["PaymentCompleted"] = "payment:completed";
26
26
  Subjects["PaymentFailed"] = "payment:failed";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.570",
3
+ "version": "1.0.572",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",