ti2-tourplan 1.0.140 → 1.0.141

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.
Files changed (2) hide show
  1. package/README.md +28 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,11 +4,34 @@
4
4
 
5
5
  ### Requirements
6
6
 
7
- Some environment variables are required for this plugin to run it's tests
8
-
9
- - apiKey
10
- - endpoint
11
- - DTD_DAYS (optional) - Number of days to cache DTD version detection results (default: 7). This helps reduce API calls by caching the correct DTD version for each endpoint.
7
+ Live integration tests use `ti2_tourplan_endpoint`, `ti2_tourplan_username`,
8
+ and `ti2_tourplan_password`; the test suite supplies fixture defaults when
9
+ they are absent. Plugin credentials use the `endpoint`, `username`, and
10
+ `password` token fields. The optional `DTD_DAYS` plugin setting controls how
11
+ many days DTD version detection results are cached per endpoint (default: 7).
12
+
13
+ ## Itinerary product catalog fields
14
+
15
+ Product search passes Ti2's itinerary product type definitions and query to
16
+ `translateTPOption`. The query now returns the existing `city`, `country`, and
17
+ `currency` values alongside these HostConnect fields:
18
+
19
+ | Ti2 field | HostConnect source |
20
+ | --- | --- |
21
+ | `city` | Enriched destination, then `OptGeneral.LocalityDescription` or `Address3` |
22
+ | `country` | Enriched destination country |
23
+ | `currency` | Agent currency, then `OptRates.Currency` |
24
+ | `description` | SupplierInfo notes or description, excluding the supplier name |
25
+ | `optionClass` | `OptGeneral.ClassDescription`, then `OptGeneral.Class` |
26
+ | `chargeUnit` | `OptGeneral.SCU`, lowercased |
27
+ | Room `maxPaxWithInfants` | `OptGeneral.<room>_Max_With_Infants` |
28
+ | `Other` room restriction | `OptGeneral.Other_*` fields, when present |
29
+
30
+ For accommodation and package options, an `Other` unit is included only when
31
+ the source has an `Other_*` value. If those fields are absent, the `Other`
32
+ restriction is omitted. Optional source values omitted by the plugin appear as
33
+ `null` in Ti2's shared query. Adult, Child, and Infant restrictions still
34
+ select only `allowed`, `minAge`, and `maxAge`.
12
35
 
13
36
  ## Contributing
14
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2-tourplan",
3
- "version": "1.0.140",
3
+ "version": "1.0.141",
4
4
  "description": "Tourplan's TI2 Plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {