和顺 / 明行 返回所属 Agent
MX-06.02

费用明细

原能力

将票价、税费、行李和接驳列到具体行程段,标清币种与报价时点。(细化版 p.10–11)

首选项目

Amadeus Node SDK(MIT(SDK,服务另约))。 Amadeus Node SDK

接入说明

Amadeus SDK 负责接收已授权的结构化报价,费用归一和可比性由业务层处理。

匹配范围

报价对象和按段 SQL 聚合票款、税费和附加项。

源码

Amadeus Node SDK · post(params

src/amadeus/namespaces/shopping/flight_offers/pricing.js · 41–54 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
  post(params = {}, additionalParams = {}) {
    // Convert additionalParams object to query string
    const queryString = Object.keys(additionalParams).map(key => key + '=' + additionalParams[key]).join('&');

    // Check if queryString is empty before appending it to the URL
    let url = '/v1/shopping/flight-offers/pricing';
    if (queryString !== '') {
      url += '?' + queryString;
    }

    return this.client.post(url, params);
  }
}

DuckDB · SinkResultType PhysicalHashAggregate::Sink(

src/execution/operator/aggregate/physical_hash_aggregate.cpp · 396–409 行。 在 GitHub 查看源码 · 许可证与声明

源码片段
SinkResultType PhysicalHashAggregate::Sink(ExecutionContext &context, DataChunk &chunk,
                                           OperatorSinkInput &input) const {
	auto &local_state = input.local_state.Cast<HashAggregateLocalSinkState>();
	auto &global_state = input.global_state.Cast<HashAggregateGlobalSinkState>();

	if (distinct_collection_info) {
		SinkDistinct(context, chunk, input);
	}

	if (CanSkipRegularSink()) {
		return SinkResultType::NEED_MORE_INPUT;
	}

	DataChunk &aggregate_input_chunk = local_state.aggregate_input_chunk;

实现与验收要点

非同渠道费用信息、实际报价时点和附费核实。