Skip to content

v0.1.11 — Maystro track, list, cancel and PDF labels

Choose a tag to compare

@developing-off developing-off released this 01 Nov 09:22
· 3 commits to main since this release
978ff93

Added

  • Maystro: track (order + status history from history_order), listParcels (GET /api/stores/orders/, 20 per page, status / orderId / keyword / updatedSince filtered client-side) and cancelParcel (PATCH /api/shared/status/{id}/, status 50), in TypeScript and PHP. track and cancelParcel take the order id (Parcel.id) or the tracking number (the order display_id). They used to throw NOT_SUPPORTED: these endpoints are in Maystro's docs. Checked live on a test account (create → track → cancel → track, list, unknown references).
  • Maystro extra getLabels(references) on MaystroProvider: the shipping labels (bordereaux) of up to 100 orders as one PDF (starter_bordureau, by tracking number or by order id), with labelCount; no order found → NOT_FOUND. Checked live.
  • HttpClient can return a binary body: responseType: 'binary' (TS) and requestBinary() (PHP).
  • README: feature matrix (which function each carrier supports).

Upgrading

Additive release: Maystro's track, listParcels and cancelParcel no longer throw NOT_SUPPORTED; everything else behaves as before. ^0.1.x (npm / Composer) picks it up.

Install

npm install @dz-delivery/core      # TypeScript / Node.js
composer require dz-delivery/sdk   # PHP / Laravel

📖 Docs: https://developing-off.github.io/dz-delivery/ · Guide: Maystro