回执核对
原能力
把服务方回执与日期、人数和选定服务逐项核对,登记差异或未确认状态。(细化版 p.10–11)
首选项目
Amadeus Node SDK(MIT(SDK,服务另约))。 Amadeus Node SDK
匹配范围
Orders GET 读取适用订单,schema 对日期人数做字段对照。
源码
Amadeus Node SDK · get() {
src/amadeus/namespaces/booking/flight_order.js · 31–44 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
get() {
if (this._orderId)
return this.client.get('/v1/booking/flight-orders/' + this._orderId);
else
throw new Error('MISSING_REQUIRED_PARAMETER');
}
/**
* To cancel a flight order based on its id.
*
* @return {Promise.<Response,ResponseError>} a Promise
*
* To cancel a flight order with ID 'XXX'
*
Pandera · def validate(
pandera/api/pandas/container.py · 127–140 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def validate(
self,
check_obj: pd.DataFrame,
head: int | None = None,
tail: int | None = None,
sample: int | None = None,
random_state: int | None = None,
lazy: bool = False,
inplace: bool = False,
) -> pd.DataFrame:
"""Validate a DataFrame based on the schema specification.
:param pd.DataFrame check_obj: the dataframe to be validated.
:param head: validate the first n rows. Rows overlapping with `tail` or
实现与验收要点
确认出票与支付、非航班回执、身份及状态查证。