@tec.pet/tecpet-sdk 0.0.111 → 0.0.112

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.
@@ -7,28 +7,28 @@ class FiscalInvoiceService {
7
7
  this.api = api;
8
8
  }
9
9
  async create(body, shopId) {
10
- return await this.api.post(`/v1/fiscalInvoice`, body, shopId);
10
+ return await this.api.post(`/fiscalInvoice`, body, shopId);
11
11
  }
12
12
  async getOpened(query) {
13
- return await this.api.post(`/v1/fiscalInvoice/opened`, query);
13
+ return await this.api.post(`/fiscalInvoice/opened`, query);
14
14
  }
15
15
  async changeStatus(fiscalInvoiceId, body, shopId) {
16
- return await this.api.patch(`/v1/fiscalInvoice/${fiscalInvoiceId}/status`, body, shopId);
16
+ return await this.api.patch(`/fiscalInvoice/${fiscalInvoiceId}/status`, body, shopId);
17
17
  }
18
18
  async changeReference(fiscalInvoiceId, body, shopId) {
19
- return await this.api.patch(`/v1/fiscalInvoice/${fiscalInvoiceId}/reference`, body, shopId);
19
+ return await this.api.patch(`/fiscalInvoice/${fiscalInvoiceId}/reference`, body, shopId);
20
20
  }
21
21
  async changeExternId(fiscalInvoiceId, body, shopId) {
22
- return await this.api.patch(`/v1/fiscalInvoice/${fiscalInvoiceId}/externId`, body, shopId);
22
+ return await this.api.patch(`/fiscalInvoice/${fiscalInvoiceId}/externId`, body, shopId);
23
23
  }
24
24
  async changePendingPaymentId(fiscalInvoiceId, body, shopId) {
25
- return await this.api.patch(`/v1/fiscalInvoice/${fiscalInvoiceId}/pendingPaymentId`, body, shopId);
25
+ return await this.api.patch(`/fiscalInvoice/${fiscalInvoiceId}/pendingPaymentId`, body, shopId);
26
26
  }
27
27
  async changeTransactions(fiscalInvoiceId, body, shopId) {
28
- return await this.api.patch(`/v1/fiscalInvoice/${fiscalInvoiceId}/transactions`, body, shopId);
28
+ return await this.api.patch(`/fiscalInvoice/${fiscalInvoiceId}/transactions`, body, shopId);
29
29
  }
30
30
  async changeNfId(fiscalInvoiceId, body, shopId) {
31
- return await this.api.patch(`/v1/fiscalInvoice/${fiscalInvoiceId}/nfId`, body, shopId);
31
+ return await this.api.patch(`/fiscalInvoice/${fiscalInvoiceId}/nfId`, body, shopId);
32
32
  }
33
33
  }
34
34
  exports.FiscalInvoiceService = FiscalInvoiceService;
@@ -10,13 +10,13 @@ class IntegrationClientService {
10
10
  return await this.api.post(`/integrationClient/editOrCreate`, body);
11
11
  }
12
12
  async edit(body, shopId) {
13
- return await this.api.patch(`/v1/integrationClient`, body, shopId);
13
+ return await this.api.patch(`/integrationClient`, body, shopId);
14
14
  }
15
15
  async get(query, shopId) {
16
- return await this.api.get(`/v1/integrationClient`, query, shopId);
16
+ return await this.api.get(`/integrationClient`, query, shopId);
17
17
  }
18
18
  async getByExternId(query, shopId) {
19
- return await this.api.get(`/v1/integrationClient/byExternId`, query, shopId);
19
+ return await this.api.get(`/integrationClient/byExternId`, query, shopId);
20
20
  }
21
21
  }
22
22
  exports.IntegrationClientService = IntegrationClientService;
@@ -12,7 +12,7 @@ class IntegrationShopService {
12
12
  return response;
13
13
  }
14
14
  async edit(body, shopId) {
15
- return await this.api.post(`/v1/integrationShop`, body, shopId);
15
+ return await this.api.post(`/integrationShop`, body, shopId);
16
16
  }
17
17
  }
18
18
  exports.IntegrationShopService = IntegrationShopService;
@@ -7,10 +7,10 @@ class InvoiceService {
7
7
  this.api = api;
8
8
  }
9
9
  async editExternId(invoiceId, body, shopId) {
10
- return await this.api.patch(`/v1/invoice/${invoiceId}/externId`, body, shopId);
10
+ return await this.api.patch(`/invoice/${invoiceId}/externId`, body, shopId);
11
11
  }
12
12
  async registerPdvPayment(invoiceId, fiscalInvoiceId) {
13
- return await this.api.post(`/v1/invoice/${invoiceId}/pdvPay/${fiscalInvoiceId}`, {});
13
+ return await this.api.post(`/invoice/${invoiceId}/pdvPay/${fiscalInvoiceId}`, {});
14
14
  }
15
15
  }
16
16
  exports.InvoiceService = InvoiceService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.111",
3
+ "version": "0.0.112",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",