@riocrypto/common 1.0.542 → 1.0.544

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.
@@ -19,6 +19,7 @@ import { RioSettingsUpdate } from "../types/rio-settings-update";
19
19
  import { User } from "../types/user";
20
20
  import { UserInput } from "../types/user-input";
21
21
  import { UserUpdate } from "../types/user-update";
22
+ import { BankPayment } from "../types/bank-payment";
22
23
  export declare class RioClient {
23
24
  private axios;
24
25
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -46,6 +47,8 @@ export declare class RioClient {
46
47
  getUser(): Promise<User>;
47
48
  getBusinessUser(): Promise<BusinessUser>;
48
49
  createUser(user: UserInput): Promise<void>;
50
+ getBankPayment(orderId: string): Promise<BankPayment>;
51
+ verifyBankPayment(orderId: string): Promise<any>;
49
52
  createBusinessUser(businessUser: BusinessUserInput): Promise<BusinessUser>;
50
53
  sendPhoneAuthCode(phoneNumber: string): Promise<void>;
51
54
  getAuth(phoneNumber?: string): Promise<{
@@ -124,6 +124,19 @@ class RioClient {
124
124
  yield this.axios.post("/api/users", user);
125
125
  });
126
126
  }
127
+ getBankPayment(orderId) {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ const { data } = yield this.axios.get("/api/payments/bank?orderId=" + orderId);
130
+ return data;
131
+ });
132
+ }
133
+ verifyBankPayment(orderId) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ yield this.axios.post("/api/payments/bank/check", {
136
+ orderId,
137
+ });
138
+ });
139
+ }
127
140
  createBusinessUser(businessUser) {
128
141
  return __awaiter(this, void 0, void 0, function* () {
129
142
  const response = yield this.axios.post("/api/business/users", businessUser);
@@ -9,5 +9,6 @@ export interface BankPayment {
9
9
  ruc?: string;
10
10
  rfc?: string;
11
11
  swiftCode?: string;
12
+ cci?: string;
12
13
  status: string;
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.542",
3
+ "version": "1.0.544",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",