@tec.pet/tecpet-sdk 0.0.139 → 0.0.145
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/dto/pa.stop-ai-interaction.dto.d.ts +4 -0
- package/dist/domain/fiscalInvoice/dto/pa.get-opened-fiscal-invoices.dto.d.ts +1 -0
- package/dist/domain/invoice/invoice.service.d.ts +1 -0
- package/dist/domain/invoice/invoice.service.js +3 -0
- package/dist/domain/pet/dto/pa.create-pet.dto.d.ts +1 -1
- package/dist/domain/pet/dto/pa.edit-pet.dto.d.ts +2 -2
- package/dist/domain/pet/dto/pa.get-pet.dto.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8,6 +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): Promise<PaRegisterInvoicePdvPaymentResponse>;
|
|
11
12
|
registerReceivablePayment(invoiceId: string, fiscalInvoiceId: string, body: PaRegisterInvoiceReceivablePaymentRequest): Promise<PaRegisterInvoiceReceivablePaymentResponse>;
|
|
12
13
|
reverseReceivablePayment(externalId: string, body: PaReverseInvoiceReceivablePaymentRequest): Promise<PaReverseInvoiceReceivablePaymentResponse>;
|
|
13
14
|
}
|
|
@@ -12,6 +12,9 @@ class InvoiceService {
|
|
|
12
12
|
async registerPdvPayment(invoiceId, fiscalInvoiceId) {
|
|
13
13
|
return await this.api.post(`/invoice/${invoiceId}/pdvPay/${fiscalInvoiceId}`, {});
|
|
14
14
|
}
|
|
15
|
+
async registerPdvPartialPayment(invoiceId, fiscalInvoiceIds, amount) {
|
|
16
|
+
return await this.api.post(`/invoice/${invoiceId}/pdvPayPartial`, { fiscalInvoiceIds, amount });
|
|
17
|
+
}
|
|
15
18
|
async registerReceivablePayment(invoiceId, fiscalInvoiceId, body) {
|
|
16
19
|
return await this.api.post(`/invoice/${invoiceId}/receivablePay/${fiscalInvoiceId}`, body);
|
|
17
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BillingItemType } from "../../billingMethod
|
|
2
|
-
import { SpecieType } from "../../specie
|
|
1
|
+
import { BillingItemType } from "../../billingMethod";
|
|
2
|
+
import { SpecieType } from "../../specie";
|
|
3
3
|
import { GenderType } from "./pa.get-pet.dto";
|
|
4
4
|
export declare class PaEditPetInput {
|
|
5
5
|
name?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BillingItemType } from "../../billingMethod";
|
|
2
|
-
import { SpecieType, SpecieTypeEnum } from "../../specie
|
|
2
|
+
import { SpecieType, SpecieTypeEnum } from "../../specie";
|
|
3
3
|
export declare enum GenderType {
|
|
4
4
|
MALE = "MALE",
|
|
5
5
|
FEMALE = "FEMALE"
|