@tec.pet/tecpet-sdk 0.0.154 → 0.0.155

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.
@@ -0,0 +1,6 @@
1
+ export interface PaSetFiscalInvoiceItemStockMovementRequest {
2
+ stockMovementExternalId: string;
3
+ }
4
+ export interface PaSetFiscalInvoiceItemStockMovementResponse {
5
+ success: boolean;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,6 +8,7 @@ import { PaGetOpenedFiscalInvoicesRequest, PaGetOpenedFiscalInvoicesResponse } f
8
8
  import { PaChangeFiscalInvoiceReferenceRequest, PaChangeFiscalInvoiceReferenceResponse } from "./dto/pa.change-fiscal-invoice-reference.dto";
9
9
  import { PaChangeFiscalInvoiceNfIdRequest, PaChangeFiscalInvoiceNfIdResponse } from "./dto/pa.change-fiscal-invoice-nf-id.dto";
10
10
  import { PaGetFiscalInvoiceByPendingPaymentIdRequest, PaGetFiscalInvoiceByPendingPaymentIdResponse } from "./dto/pa.get-fiscal-invoice-by-pending-payment-id.dto";
11
+ import { PaSetFiscalInvoiceItemStockMovementRequest, PaSetFiscalInvoiceItemStockMovementResponse } from "./dto/pa.set-fiscal-invoice-item-stock-movement.dto";
11
12
  export declare class FiscalInvoiceService {
12
13
  private readonly api;
13
14
  constructor(api: HttpClient);
@@ -21,4 +22,5 @@ export declare class FiscalInvoiceService {
21
22
  changeNfId(fiscalInvoiceId: string, body: PaChangeFiscalInvoiceNfIdRequest, shopId: number): Promise<PaChangeFiscalInvoiceNfIdResponse>;
22
23
  clearNfId(fiscalInvoiceId: string, shopId: number): Promise<PaChangeFiscalInvoiceNfIdResponse>;
23
24
  getByPendingPaymentId(query: PaGetFiscalInvoiceByPendingPaymentIdRequest): Promise<PaGetFiscalInvoiceByPendingPaymentIdResponse | null>;
25
+ setItemStockMovement(fiscalInvoiceItemId: string, body: PaSetFiscalInvoiceItemStockMovementRequest, shopId: number): Promise<PaSetFiscalInvoiceItemStockMovementResponse>;
24
26
  }
@@ -36,5 +36,8 @@ class FiscalInvoiceService {
36
36
  async getByPendingPaymentId(query) {
37
37
  return await this.api.post(`/fiscalInvoice/byPendingPaymentId`, query);
38
38
  }
39
+ async setItemStockMovement(fiscalInvoiceItemId, body, shopId) {
40
+ return await this.api.patch(`/fiscalInvoice/items/${fiscalInvoiceItemId}/stockMovement`, body, shopId);
41
+ }
39
42
  }
40
43
  exports.FiscalInvoiceService = FiscalInvoiceService;
@@ -8,3 +8,4 @@ export * from './dto/pa.change-fiscal-invoice-transactions.dto';
8
8
  export * from './dto/pa.get-opened-fiscal-invoices.dto';
9
9
  export * from './dto/pa.change-fiscal-invoice-nf-id.dto';
10
10
  export * from './dto/pa.get-fiscal-invoice-by-pending-payment-id.dto';
11
+ export * from './dto/pa.set-fiscal-invoice-item-stock-movement.dto';
@@ -24,3 +24,4 @@ __exportStar(require("./dto/pa.change-fiscal-invoice-transactions.dto"), exports
24
24
  __exportStar(require("./dto/pa.get-opened-fiscal-invoices.dto"), exports);
25
25
  __exportStar(require("./dto/pa.change-fiscal-invoice-nf-id.dto"), exports);
26
26
  __exportStar(require("./dto/pa.get-fiscal-invoice-by-pending-payment-id.dto"), exports);
27
+ __exportStar(require("./dto/pa.set-fiscal-invoice-item-stock-movement.dto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.154",
3
+ "version": "0.0.155",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",