@a-cube-io/ereceipts-js-sdk 2.2.3 → 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.cjs.js +4 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.esm.js +4 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.js +4 -2
- package/dist/index.native.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
257
|
+
disable(uuid: string): Promise<Cashier>;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
type DailyReportStatus = 'pending' | 'sent' | 'error';
|
|
@@ -557,7 +557,8 @@ interface Receipt {
|
|
|
557
557
|
documentDatetime?: string;
|
|
558
558
|
isReturnable: boolean;
|
|
559
559
|
isVoidable: boolean;
|
|
560
|
-
pdfUrl
|
|
560
|
+
pdfUrl: string;
|
|
561
|
+
status: ReceiptStatus;
|
|
561
562
|
parentReceiptUuid?: string;
|
|
562
563
|
}
|
|
563
564
|
interface ReceiptDetails extends Receipt {
|
|
@@ -1331,8 +1332,9 @@ interface ReceiptApiOutput {
|
|
|
1331
1332
|
document_datetime?: string;
|
|
1332
1333
|
is_returnable: boolean;
|
|
1333
1334
|
is_voidable: boolean;
|
|
1334
|
-
pdf_url
|
|
1335
|
+
pdf_url: string;
|
|
1335
1336
|
parent_receipt_uuid?: string;
|
|
1337
|
+
status: 'ready' | 'sent';
|
|
1336
1338
|
}
|
|
1337
1339
|
interface ReceiptDetailsApiOutput extends ReceiptApiOutput {
|
|
1338
1340
|
customer_lottery_code?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -4360,6 +4360,7 @@ class ReceiptMapper {
|
|
|
4360
4360
|
isReturnable: output.is_returnable,
|
|
4361
4361
|
isVoidable: output.is_voidable,
|
|
4362
4362
|
pdfUrl: output.pdf_url,
|
|
4363
|
+
status: output.status,
|
|
4363
4364
|
parentReceiptUuid: output.parent_receipt_uuid,
|
|
4364
4365
|
};
|
|
4365
4366
|
}
|
|
@@ -4672,8 +4673,9 @@ class CashierRepositoryImpl {
|
|
|
4672
4673
|
});
|
|
4673
4674
|
return CashierMapper.pageFromApi(response.data);
|
|
4674
4675
|
}
|
|
4675
|
-
async
|
|
4676
|
-
await this.http.
|
|
4676
|
+
async disable(uuid) {
|
|
4677
|
+
const response = await this.http.put(`/mf1/cashiers/${uuid}/disable`);
|
|
4678
|
+
return CashierMapper.fromApiOutput(response.data);
|
|
4677
4679
|
}
|
|
4678
4680
|
}
|
|
4679
4681
|
|