Booking-class letters for a cabin or fare brand
resolve_booking_classHelps turn a fare as sold (carrier, cabin, brand name) into the input the earning rules key on. Returns the airline's own published letters per cabin where Status Lark holds them (else the representative letters its calculators assume), the fare brands the engine recognises for that carrier, and whether the carrier's own programme needs the fare paid. Where fareTypes is returned, the fare type printed on the booking confirmation IS the input that carrier's own programme keys on — British Airways prices its own metal on cabin and fare type and never on the letter, and so (since 0.9.0, migration 330) does Air Canada's Aeroplan: Basic, Standard, Flex, Comfort, Latitude, Premium Economy, Business — so pass it as fareBrand and the letter becomes optional. When calculating, pass cabin when you know it; add fareBrand or bookingClass when the confirmation shows one — a cabin on its own is answered with that cabin's published range rather than an assumed letter. The letter on the ticket or fare rules always governs; treat the answer as a guide and say so.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"carrier": "<carrier>"
},
"name": "resolve_booking_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cabin | No | ||
| carrier | Yes | Marketing carrier. |