@misiki/gocommerce-connector 0.11.0 → 0.13.0

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/README.md CHANGED
@@ -127,13 +127,18 @@ down stays best-effort: the storefront renders from its static record.
127
127
  | category pages and tree | `/api/categories`, `/api/categories/{slug}` — a category sells its descendants |
128
128
  | collections | `/api/collections`, `/api/collections/{slug}` |
129
129
  | featured / trending shelves | the collection with slug `featured` / `trending`; newest products when there is none |
130
+ | product page extras | on the product from `/api/products/slug/{slug}` (D134): `highlights` and `freeGift` from the product's own metadata, `soldAtLeast` when the shop shows sold counts (null otherwise, never zero), and the product's videos after its pictures in `images` (and alone in `videos`), so the gallery plays them |
130
131
  | bag | `/api/carts…`, `/api/carts/{token}/discount` |
132
+ | Complete the set (add-ons) | `/api/add-ons?product_id=` — `productService.listAddOns({ product })`, each at the price ticking it adds (`price`) beside its own (`regularPrice`); `cartService.addAddOn({ addOnId })` after the product is in the bag. The engine keeps the offer price only while the product is in the bag, one for each |
133
+ | You may also like | `/api/cross-sells?product_id=` — `productService.listCrossSells({ product })`, curated only; the bag's `/api/carts/{token}/cross-sells` — `cartService.listCrossSells()`, which includes the collection the shop chose for every basket (D134), falling back to the first item's related products |
134
+ | the bag's offers and free delivery | `/api/carts/{token}/offers` — `cartService.getOffers()` and the coupon drawer's `couponService.listCoupons()`: only the codes the shop chose to show; `/api/carts/{token}/free-shipping` — `cartService.getFreeShipping()`, from the store's own rates, null when it cannot say |
131
135
  | delivery options | `/api/checkout/rates` |
132
136
  | payment methods | `/api/checkout` — cash on delivery, Razorpay, and the first hosted-page gateway (see below) |
133
137
  | place order | `POST /api/checkout/{code}` with an `Idempotency-Key` |
134
138
  | order lookup | `/api/orders/{number}?token=` (guest), `/x/identity/me/orders` (account) |
135
139
  | sign-in, sign-up, profile, password reset | `/x/identity/*` |
136
- | address book | `/x/identity/me/addresses` |
140
+ | address book | `/x/identity/me/addresses`, with its `label` (Home, Work, Other) |
141
+ | PIN code autofill | `/api/postcodes/IN/{pin}` — `addressService.lookupPostcode({ country, postcode })`: city and state, or null when the engine has no directory or the PIN is unknown (D134) |
137
142
  | wishlist | `/x/wishlist` |
138
143
  | reviews | `/x/reviews` |
139
144
  | content pages (`/p/…`, legal pages) | `/x/cms/pages` |