homologacion #3

Merged
ncoronel merged 23 commits from homologacion into main 2026-08-31 11:36:15 +00:00
30 changed files with 911 additions and 126 deletions
Showing only changes of commit dbfadf417a - Show all commits

View File

@@ -199,23 +199,6 @@ export class CheckoutService extends BaseApiService {
return purchase;
}
async completePurchase(tenantCode: string, purchaseId: number): Promise<PurchaseStatusResponse> {
const response = await firstValueFrom(
this.http.post<{ data?: PurchaseStatusResponse } | PurchaseStatusResponse>(
`${environment.url}tenants/${tenantCode}/compras/${purchaseId}/complete`,
{},
),
);
const purchase = this.extractResponseData<PurchaseStatusResponse>(response);
if (!purchase) {
throw new Error('Error al finalizar la compra.');
}
return purchase;
}
async submitPurchaseForReview(
tenantCode: string,
purchaseId: number,