@riocrypto/common 1.0.736 → 1.0.738

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.
@@ -41,6 +41,7 @@ export declare class RioClient {
41
41
  confirmBankPayout(orderId: string): Promise<any>;
42
42
  getUser(): Promise<User>;
43
43
  createUser(user: UserInput): Promise<User>;
44
+ uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
44
45
  getBankPayment(orderId: string): Promise<BankPayment>;
45
46
  verifyBankPayment(orderId: string): Promise<any>;
46
47
  sendPhoneAuthCode(phoneNumber: string): Promise<void>;
@@ -115,6 +115,12 @@ class RioClient {
115
115
  return data;
116
116
  });
117
117
  }
118
+ uploadProofOfAddress(id, formData) {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ const { data } = yield this.axios.post(`/api/users/${id}/proof-of-address`, formData);
121
+ return data;
122
+ });
123
+ }
118
124
  getBankPayment(orderId) {
119
125
  return __awaiter(this, void 0, void 0, function* () {
120
126
  const { data } = yield this.axios.get("/api/payments/bank?orderId=" + orderId);
package/build/index.d.ts CHANGED
@@ -131,6 +131,7 @@ export * from "./types/order-query";
131
131
  export * from "./types/user-query";
132
132
  export * from "./types/bank-account-query";
133
133
  export * from "./types/mexico-fiscal-regimen";
134
+ export * from "./types/bridge-customer";
134
135
  export * from "./classes/Asset";
135
136
  export * from "./classes/CountryAsset";
136
137
  export * from "./classes/CryptoAsset";
package/build/index.js CHANGED
@@ -147,6 +147,7 @@ __exportStar(require("./types/order-query"), exports);
147
147
  __exportStar(require("./types/user-query"), exports);
148
148
  __exportStar(require("./types/bank-account-query"), exports);
149
149
  __exportStar(require("./types/mexico-fiscal-regimen"), exports);
150
+ __exportStar(require("./types/bridge-customer"), exports);
150
151
  __exportStar(require("./classes/Asset"), exports);
151
152
  __exportStar(require("./classes/CountryAsset"), exports);
152
153
  __exportStar(require("./classes/CryptoAsset"), exports);
@@ -0,0 +1,21 @@
1
+ export interface BridgeCustomer {
2
+ id: string;
3
+ type: "individual" | "business";
4
+ first_name: string;
5
+ last_name: string;
6
+ email: string;
7
+ phone: string;
8
+ address: {
9
+ street_line_1: string;
10
+ street_line_2: string;
11
+ city: string;
12
+ state: string;
13
+ postal_code: string;
14
+ country: string;
15
+ };
16
+ signed_agreement_id: string;
17
+ dob: string;
18
+ ssn: string;
19
+ requirements_due?: string[];
20
+ future_requirements_due?: string[];
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.736",
3
+ "version": "1.0.738",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",