@tec.pet/tecpet-sdk 0.0.130 → 0.0.132

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.
@@ -220,6 +220,7 @@ export interface InfoCollectionMenuJson {
220
220
  message: string;
221
221
  aiInstruction?: string;
222
222
  minAdvanceHours: number;
223
+ behavior?: ChatbotInfoCollectionBehaviorEnum;
223
224
  };
224
225
  };
225
226
  timeSelection?: {
@@ -1,4 +1,8 @@
1
1
  export declare enum ChatbotInfoCollectionBehaviorEnum {
2
2
  SELECT_ON_BOT = "SELECT_ON_BOT",
3
- SEND_TO_ATTENDANT = "SEND_TO_ATTENDANT"
3
+ SEND_TO_ATTENDANT = "SEND_TO_ATTENDANT",
4
+ OFFER_AND_SCHEDULE = "OFFER_AND_SCHEDULE",
5
+ OFFER_AND_SEND_TO_ATTENDANT = "OFFER_AND_SEND_TO_ATTENDANT",
6
+ DONT_OFFER_AND_SCHEDULE = "DONT_OFFER_AND_SCHEDULE",
7
+ DONT_OFFER_AND_SEND_TO_ATTENDANT = "DONT_OFFER_AND_SEND_TO_ATTENDANT"
4
8
  }
@@ -5,4 +5,8 @@ var ChatbotInfoCollectionBehaviorEnum;
5
5
  (function (ChatbotInfoCollectionBehaviorEnum) {
6
6
  ChatbotInfoCollectionBehaviorEnum["SELECT_ON_BOT"] = "SELECT_ON_BOT";
7
7
  ChatbotInfoCollectionBehaviorEnum["SEND_TO_ATTENDANT"] = "SEND_TO_ATTENDANT";
8
+ ChatbotInfoCollectionBehaviorEnum["OFFER_AND_SCHEDULE"] = "OFFER_AND_SCHEDULE";
9
+ ChatbotInfoCollectionBehaviorEnum["OFFER_AND_SEND_TO_ATTENDANT"] = "OFFER_AND_SEND_TO_ATTENDANT";
10
+ ChatbotInfoCollectionBehaviorEnum["DONT_OFFER_AND_SCHEDULE"] = "DONT_OFFER_AND_SCHEDULE";
11
+ ChatbotInfoCollectionBehaviorEnum["DONT_OFFER_AND_SEND_TO_ATTENDANT"] = "DONT_OFFER_AND_SEND_TO_ATTENDANT";
8
12
  })(ChatbotInfoCollectionBehaviorEnum || (exports.ChatbotInfoCollectionBehaviorEnum = ChatbotInfoCollectionBehaviorEnum = {}));
@@ -0,0 +1,10 @@
1
+ export interface PaGetFiscalInvoiceByPendingPaymentIdRequest {
2
+ pendingPaymentId: string;
3
+ shopId: number;
4
+ }
5
+ export interface PaGetFiscalInvoiceByPendingPaymentIdResponse {
6
+ fiscal_invoice_id: string;
7
+ fiscal_invoice_extern_id: string;
8
+ invoice_id: string;
9
+ shop_id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,6 +7,7 @@ import { PaChangeFiscalInvoiceTransactionsRequest, PaChangeFiscalInvoiceTransact
7
7
  import { PaGetOpenedFiscalInvoicesRequest, PaGetOpenedFiscalInvoicesResponse } from "./dto/pa.get-opened-fiscal-invoices.dto";
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
+ import { PaGetFiscalInvoiceByPendingPaymentIdRequest, PaGetFiscalInvoiceByPendingPaymentIdResponse } from "./dto/pa.get-fiscal-invoice-by-pending-payment-id.dto";
10
11
  export declare class FiscalInvoiceService {
11
12
  private readonly api;
12
13
  constructor(api: HttpClient);
@@ -18,4 +19,5 @@ export declare class FiscalInvoiceService {
18
19
  changePendingPaymentId(fiscalInvoiceId: string, body: PaChangeFiscalInvoicePendingPaymentRequest, shopId: number): Promise<PaChangeFiscalInvoicePendingPaymentResponse>;
19
20
  changeTransactions(fiscalInvoiceId: string, body: PaChangeFiscalInvoiceTransactionsRequest, shopId: number): Promise<PaChangeFiscalInvoiceTransactionsResponse>;
20
21
  changeNfId(fiscalInvoiceId: string, body: PaChangeFiscalInvoiceNfIdRequest, shopId: number): Promise<PaChangeFiscalInvoiceNfIdResponse>;
22
+ getByPendingPaymentId(query: PaGetFiscalInvoiceByPendingPaymentIdRequest): Promise<PaGetFiscalInvoiceByPendingPaymentIdResponse | null>;
21
23
  }
@@ -30,5 +30,8 @@ class FiscalInvoiceService {
30
30
  async changeNfId(fiscalInvoiceId, body, shopId) {
31
31
  return await this.api.patch(`/fiscalInvoice/${fiscalInvoiceId}/nfId`, body, shopId);
32
32
  }
33
+ async getByPendingPaymentId(query) {
34
+ return await this.api.post(`/fiscalInvoice/byPendingPaymentId`, query);
35
+ }
33
36
  }
34
37
  exports.FiscalInvoiceService = FiscalInvoiceService;
@@ -7,3 +7,4 @@ export * from './dto/pa.change-fiscal-invoice-pending-payment.dto';
7
7
  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
+ export * from './dto/pa.get-fiscal-invoice-by-pending-payment-id.dto';
@@ -23,3 +23,4 @@ __exportStar(require("./dto/pa.change-fiscal-invoice-pending-payment.dto"), expo
23
23
  __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
+ __exportStar(require("./dto/pa.get-fiscal-invoice-by-pending-payment-id.dto"), exports);
@@ -0,0 +1,6 @@
1
+ export interface PaRegisterInvoiceReceivablePaymentRequest {
2
+ amount: number;
3
+ }
4
+ export interface PaRegisterInvoiceReceivablePaymentResponse {
5
+ success: boolean;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
1
  export * from './invoice.service';
2
2
  export * from './dto/pa.edit-invoice-extern-id.dto';
3
3
  export * from './dto/pa.register-invoice-pdv-payment.dto';
4
+ export * from './dto/pa.register-invoice-receivable-payment.dto';
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./invoice.service"), exports);
18
18
  __exportStar(require("./dto/pa.edit-invoice-extern-id.dto"), exports);
19
19
  __exportStar(require("./dto/pa.register-invoice-pdv-payment.dto"), exports);
20
+ __exportStar(require("./dto/pa.register-invoice-receivable-payment.dto"), exports);
@@ -1,9 +1,11 @@
1
1
  import { HttpClient } from "../../infra/http/client.http";
2
2
  import { PaEditInvoiceExternIdRequest, PaEditInvoiceExternIdResponse } from "./dto/pa.edit-invoice-extern-id.dto";
3
3
  import { PaRegisterInvoicePdvPaymentResponse } from "./dto/pa.register-invoice-pdv-payment.dto";
4
+ import { PaRegisterInvoiceReceivablePaymentRequest, PaRegisterInvoiceReceivablePaymentResponse } from "./dto/pa.register-invoice-receivable-payment.dto";
4
5
  export declare class InvoiceService {
5
6
  private readonly api;
6
7
  constructor(api: HttpClient);
7
8
  editExternId(invoiceId: string, body: PaEditInvoiceExternIdRequest, shopId: number): Promise<PaEditInvoiceExternIdResponse>;
8
9
  registerPdvPayment(invoiceId: string, fiscalInvoiceId: string): Promise<PaRegisterInvoicePdvPaymentResponse>;
10
+ registerReceivablePayment(invoiceId: string, fiscalInvoiceId: string, body: PaRegisterInvoiceReceivablePaymentRequest): Promise<PaRegisterInvoiceReceivablePaymentResponse>;
9
11
  }
@@ -12,5 +12,8 @@ class InvoiceService {
12
12
  async registerPdvPayment(invoiceId, fiscalInvoiceId) {
13
13
  return await this.api.post(`/invoice/${invoiceId}/pdvPay/${fiscalInvoiceId}`, {});
14
14
  }
15
+ async registerReceivablePayment(invoiceId, fiscalInvoiceId, body) {
16
+ return await this.api.post(`/invoice/${invoiceId}/receivablePay/${fiscalInvoiceId}`, body);
17
+ }
15
18
  }
16
19
  exports.InvoiceService = InvoiceService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.130",
3
+ "version": "0.0.132",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",