@riocrypto/common 1.0.84 → 1.0.85

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.
@@ -11,6 +11,7 @@ declare class WyreClient {
11
11
  private environment;
12
12
  private wyreAccountId;
13
13
  constructor(apiSecret: string, environment: "testwyre" | "sendwyre", wyreAccountId: string);
14
+ getOrder(wyreOrderId: string): Promise<any>;
14
15
  setOrderWebhook(accountId: string, webhookUrl: string): Promise<void>;
15
16
  createWalletReservation(amount: string, currency: string, crypto: Crypto, address: string): Promise<any>;
16
17
  createWalletOrder(spreedlyToken: string, amount: string, currency: Fiat, crypto: Crypto, reservationId: string, cryptoAddress: string, firstName: string, lastName: string, email: string, phone: string, street1: string, city: string, state: string, country: string, postalCode: string): Promise<WyreApiCreateCardPaymentResponse>;
@@ -25,6 +25,18 @@ class WyreClient {
25
25
  this.environment = environment;
26
26
  this.wyreAccountId = wyreAccountId;
27
27
  }
28
+ getOrder(wyreOrderId) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ const response = yield (0, axios_1.default)({
31
+ method: "get",
32
+ url: `https://api.${this.environment}.com/v3/orders/${wyreOrderId}/full`,
33
+ headers: {
34
+ Authorization: `Bearer ${this.apiSecret}`,
35
+ },
36
+ });
37
+ return response.data;
38
+ });
39
+ }
28
40
  setOrderWebhook(accountId, webhookUrl) {
29
41
  return __awaiter(this, void 0, void 0, function* () {
30
42
  yield (0, axios_1.default)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",