washday-sdk 0.0.185 → 0.0.186

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.
@@ -10,13 +10,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import axiosInstance from "../axiosInstance";
11
11
  const GET_PUBLIC = '/api/public';
12
12
  const GET_PUBLIC_ORDERS_ROUTES = '/api/public/orders';
13
- export const getOrderPublicReceipt = function (orderId) {
13
+ export const getOrderPublicReceipt = function (orderPublicToken) {
14
14
  return __awaiter(this, void 0, void 0, function* () {
15
15
  try {
16
16
  const config = {
17
17
  headers: { Authorization: `Bearer ${this.apiToken}` }
18
18
  };
19
- return yield axiosInstance.get(`${GET_PUBLIC_ORDERS_ROUTES}/${orderId}/receipt`, config);
19
+ return yield axiosInstance.get(`${GET_PUBLIC_ORDERS_ROUTES}/${orderPublicToken}/receipt`, config);
20
20
  }
21
21
  catch (error) {
22
22
  console.error('Error fetching getOrderPublicReceipt:', error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "0.0.185",
3
+ "version": "0.0.186",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -3,12 +3,12 @@ import axiosInstance from "../axiosInstance";
3
3
  const GET_PUBLIC = '/api/public';
4
4
  const GET_PUBLIC_ORDERS_ROUTES = '/api/public/orders';
5
5
 
6
- export const getOrderPublicReceipt = async function (this: WashdayClientInstance, orderId: string): Promise<any> {
6
+ export const getOrderPublicReceipt = async function (this: WashdayClientInstance, orderPublicToken: string): Promise<any> {
7
7
  try {
8
8
  const config = {
9
9
  headers: { Authorization: `Bearer ${this.apiToken}` }
10
10
  };
11
- return await axiosInstance.get(`${GET_PUBLIC_ORDERS_ROUTES}/${orderId}/receipt`, config);
11
+ return await axiosInstance.get(`${GET_PUBLIC_ORDERS_ROUTES}/${orderPublicToken}/receipt`, config);
12
12
  } catch (error) {
13
13
  console.error('Error fetching getOrderPublicReceipt:', error);
14
14
  throw error;