@tec.pet/tecpet-sdk 0.0.223 → 0.0.225
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/domain/chatbot/enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum.d.ts +3 -1
- package/dist/domain/chatbot/enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum.js +2 -0
- package/dist/domain/invoice/invoice.service.d.ts +1 -1
- package/dist/domain/invoice/invoice.service.js +8 -2
- package/package.json +1 -1
package/dist/domain/chatbot/enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum.js
CHANGED
|
@@ -6,4 +6,6 @@ var ChatbotTimeDisplayModeEnum;
|
|
|
6
6
|
ChatbotTimeDisplayModeEnum["ALL"] = "ALL";
|
|
7
7
|
ChatbotTimeDisplayModeEnum["THIRTY_MIN"] = "THIRTY_MIN";
|
|
8
8
|
ChatbotTimeDisplayModeEnum["ONE_HOUR"] = "ONE_HOUR";
|
|
9
|
+
/** Grade de 30 min em lista paginada de até 10 opções (limite da lista do WhatsApp na Meta). */
|
|
10
|
+
ChatbotTimeDisplayModeEnum["SMART"] = "SMART";
|
|
9
11
|
})(ChatbotTimeDisplayModeEnum || (exports.ChatbotTimeDisplayModeEnum = ChatbotTimeDisplayModeEnum = {}));
|
|
@@ -8,7 +8,7 @@ export declare class InvoiceService {
|
|
|
8
8
|
constructor(api: HttpClient);
|
|
9
9
|
editExternId(invoiceId: string, body: PaEditInvoiceExternIdRequest, shopId: number): Promise<PaEditInvoiceExternIdResponse>;
|
|
10
10
|
registerPdvPayment(invoiceId: string, fiscalInvoiceId: string): Promise<PaRegisterInvoicePdvPaymentResponse>;
|
|
11
|
-
registerPdvPartialPayment(invoiceId: string, fiscalInvoiceIds: string[], amount: number, externalPaymentId?: string): Promise<PaRegisterInvoicePdvPaymentResponse>;
|
|
11
|
+
registerPdvPartialPayment(invoiceId: string, fiscalInvoiceIds: string[], amount: number, externalPaymentId?: string, paidAt?: string): Promise<PaRegisterInvoicePdvPaymentResponse>;
|
|
12
12
|
registerReceivablePayment(invoiceId: string, fiscalInvoiceId: string, body: PaRegisterInvoiceReceivablePaymentRequest): Promise<PaRegisterInvoiceReceivablePaymentResponse>;
|
|
13
13
|
reverseReceivablePayment(externalId: string, body: PaReverseInvoiceReceivablePaymentRequest): Promise<PaReverseInvoiceReceivablePaymentResponse>;
|
|
14
14
|
}
|
|
@@ -12,8 +12,14 @@ class InvoiceService {
|
|
|
12
12
|
async registerPdvPayment(invoiceId, fiscalInvoiceId) {
|
|
13
13
|
return await this.api.post(`/invoice/${invoiceId}/pdvPay/${fiscalInvoiceId}`, {});
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
// paidAt: when the sale was paid in the ERP (ISO 8601 with offset). Without it the server dates the payment now.
|
|
16
|
+
async registerPdvPartialPayment(invoiceId, fiscalInvoiceIds, amount, externalPaymentId, paidAt) {
|
|
17
|
+
const body = {
|
|
18
|
+
fiscalInvoiceIds,
|
|
19
|
+
amount,
|
|
20
|
+
...(externalPaymentId ? { externalPaymentId } : {}),
|
|
21
|
+
...(paidAt ? { paidAt } : {}),
|
|
22
|
+
};
|
|
17
23
|
return await this.api.post(`/invoice/${invoiceId}/pdvPayPartial`, body);
|
|
18
24
|
}
|
|
19
25
|
async registerReceivablePayment(invoiceId, fiscalInvoiceId, body) {
|