@a-cube-io/ereceipts-js-sdk 2.2.4 → 2.2.5

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.
package/dist/index.d.ts CHANGED
@@ -254,7 +254,7 @@ interface ICashierRepository {
254
254
  findMe(): Promise<Cashier>;
255
255
  findById(uuid: string): Promise<Cashier>;
256
256
  findAll(params?: CashierListParams): Promise<Page<Cashier>>;
257
- delete(uuid: string): Promise<void>;
257
+ disable(uuid: string): Promise<Cashier>;
258
258
  }
259
259
 
260
260
  type DailyReportStatus = 'pending' | 'sent' | 'error';
package/dist/index.esm.js CHANGED
@@ -4673,8 +4673,9 @@ class CashierRepositoryImpl {
4673
4673
  });
4674
4674
  return CashierMapper.pageFromApi(response.data);
4675
4675
  }
4676
- async delete(uuid) {
4677
- await this.http.delete(`/mf1/cashiers/${uuid}`);
4676
+ async disable(uuid) {
4677
+ const response = await this.http.put(`/mf1/cashiers/${uuid}/disable`);
4678
+ return CashierMapper.fromApiOutput(response.data);
4678
4679
  }
4679
4680
  }
4680
4681