feat(sync): synchronize customer adresses and orders from Hiboutik sales (#1)

This commit is contained in:
2026-11-07 09:56:53 +00:00
parent 358e99c1ba
commit c91a510c56
16 changed files with 755 additions and 17 deletions

View File

@@ -60,6 +60,18 @@ export interface CustomerAddressHiboutikDto {
other: string;
}
/**
* Address as returned by Hiboutik `GET /customers_addresses/:address_id`: the embedded address plus the company
* details and its last update. One API call per address, so only fetched for addresses with a company.
*/
export interface CustomerAddressDetailsHiboutikDto extends CustomerAddressHiboutikDto {
tax_number: string;
company_number: string;
legal_status: string;
/** Local time, "YYYY-MM-DD HH:mm:ss". */
updated_at: string;
}
/** Sale header embedded in {@link FullCustomerHiboutikDto}: no sale lines, they come from `GET /sales/:sale_id`. */
export interface CustomerSaleHiboutikDto {
sale_id: number;