@tec.pet/tecpet-sdk 0.0.134 → 0.0.136

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.
@@ -12,6 +12,7 @@ import { ChatbotPriceDisplayModeEnum } from "../enum/chatbotInfoCollectionEnums/
12
12
  import { ChatbotSizeDisplayModeEnum } from "../enum/chatbotInfoCollectionEnums/chatbot-size_display-mode.enum";
13
13
  import { ChatbotTimeDisplayModeEnum } from "../enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum";
14
14
  import { ChatbotInfoCollectionBehaviorEnum } from "../enum/chatbotInfoCollectionEnums/chatbot-time-selection-behavior.enum";
15
+ import { InfoCollectionModeEnum } from "../enum/chatbotInfoCollectionEnums/info-collection-mode.enum";
15
16
  import { ChatbotSendingInfoItemTypeEnum } from "../enum/chatbotSendingInfoItemEnums/chatbot-sending-info-item-type.enum";
16
17
  import { ChatbotAIVoiceEnum } from "../enum/chatbotSettingsEnums/chatbot-ai-voice.enum";
17
18
  import { ChatbotChannelTypeEnum } from "../enum/chatbotSettingsEnums/chatbot-channel-type.enum";
@@ -155,6 +156,7 @@ export interface ChatbotGuidanceOptionDto {
155
156
  }
156
157
  export interface InfoCollectionMenuJson {
157
158
  petInfo?: {
159
+ collectionMode?: InfoCollectionModeEnum;
158
160
  petName: {
159
161
  enabled: boolean;
160
162
  message: string;
@@ -0,0 +1,4 @@
1
+ export declare enum InfoCollectionModeEnum {
2
+ ASK_ALL_AT_ONCE = "ASK_ALL_AT_ONCE",
3
+ ASK_SEPARATELY = "ASK_SEPARATELY"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InfoCollectionModeEnum = void 0;
4
+ var InfoCollectionModeEnum;
5
+ (function (InfoCollectionModeEnum) {
6
+ InfoCollectionModeEnum["ASK_ALL_AT_ONCE"] = "ASK_ALL_AT_ONCE";
7
+ InfoCollectionModeEnum["ASK_SEPARATELY"] = "ASK_SEPARATELY";
8
+ })(InfoCollectionModeEnum || (exports.InfoCollectionModeEnum = InfoCollectionModeEnum = {}));
@@ -15,6 +15,7 @@ export * from './enum/chatbotInfoCollectionEnums/chatbot-price-display-mode.enum
15
15
  export * from './enum/chatbotInfoCollectionEnums/chatbot-size_display-mode.enum';
16
16
  export * from './enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum';
17
17
  export * from './enum/chatbotInfoCollectionEnums/chatbot-time-selection-behavior.enum';
18
+ export * from './enum/chatbotInfoCollectionEnums/info-collection-mode.enum';
18
19
  export * from './enum/chatbotSendingInfoItemEnums/chatbot-sending-info-item-type.enum';
19
20
  export * from './enum/chatbotSettingsEnums/chatbot-ai-voice.enum';
20
21
  export * from './enum/chatbotSettingsEnums/chatbot-mode.enum';
@@ -31,6 +31,7 @@ __exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-price-display-mo
31
31
  __exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-size_display-mode.enum"), exports);
32
32
  __exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum"), exports);
33
33
  __exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-time-selection-behavior.enum"), exports);
34
+ __exportStar(require("./enum/chatbotInfoCollectionEnums/info-collection-mode.enum"), exports);
34
35
  __exportStar(require("./enum/chatbotSendingInfoItemEnums/chatbot-sending-info-item-type.enum"), exports);
35
36
  __exportStar(require("./enum/chatbotSettingsEnums/chatbot-ai-voice.enum"), exports);
36
37
  __exportStar(require("./enum/chatbotSettingsEnums/chatbot-mode.enum"), exports);
@@ -9,5 +9,5 @@ export declare class InvoiceService {
9
9
  editExternId(invoiceId: string, body: PaEditInvoiceExternIdRequest, shopId: number): Promise<PaEditInvoiceExternIdResponse>;
10
10
  registerPdvPayment(invoiceId: string, fiscalInvoiceId: string): Promise<PaRegisterInvoicePdvPaymentResponse>;
11
11
  registerReceivablePayment(invoiceId: string, fiscalInvoiceId: string, body: PaRegisterInvoiceReceivablePaymentRequest): Promise<PaRegisterInvoiceReceivablePaymentResponse>;
12
- reverseReceivablePayment(invoiceId: string, fiscalInvoiceId: string, body: PaReverseInvoiceReceivablePaymentRequest): Promise<PaReverseInvoiceReceivablePaymentResponse>;
12
+ reverseReceivablePayment(externalId: string, body: PaReverseInvoiceReceivablePaymentRequest): Promise<PaReverseInvoiceReceivablePaymentResponse>;
13
13
  }
@@ -15,8 +15,8 @@ class InvoiceService {
15
15
  async registerReceivablePayment(invoiceId, fiscalInvoiceId, body) {
16
16
  return await this.api.post(`/invoice/${invoiceId}/receivablePay/${fiscalInvoiceId}`, body);
17
17
  }
18
- async reverseReceivablePayment(invoiceId, fiscalInvoiceId, body) {
19
- return await this.api.post(`/invoice/${invoiceId}/receivableReverse/${fiscalInvoiceId}`, body);
18
+ async reverseReceivablePayment(externalId, body) {
19
+ return await this.api.post(`/invoice/receivableReverse/${externalId}`, body);
20
20
  }
21
21
  }
22
22
  exports.InvoiceService = InvoiceService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.134",
3
+ "version": "0.0.136",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",