flight-helper 0.2.2__py3-none-any.whl → 0.2.6__py3-none-any.whl
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.
- flight_helper/models/dto/passenger.py +8 -8
- flight_helper/models/dto/procurement.py +16 -18
- {flight_helper-0.2.2.dist-info → flight_helper-0.2.6.dist-info}/METADATA +1 -1
- {flight_helper-0.2.2.dist-info → flight_helper-0.2.6.dist-info}/RECORD +7 -7
- {flight_helper-0.2.2.dist-info → flight_helper-0.2.6.dist-info}/WHEEL +0 -0
- {flight_helper-0.2.2.dist-info → flight_helper-0.2.6.dist-info}/licenses/LICENSE +0 -0
- {flight_helper-0.2.2.dist-info → flight_helper-0.2.6.dist-info}/top_level.txt +0 -0
|
@@ -14,10 +14,7 @@ from pydantic import BaseModel, Field, PositiveInt
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class PassengerDTO(BaseModel):
|
|
17
|
-
passenger_id: Optional[str] = Field(default=None, description="乘客ID")
|
|
18
17
|
segment_index: PositiveInt = Field(..., description="航段索引")
|
|
19
|
-
flight_id: Optional[str] = Field(default=None, description="航班ID")
|
|
20
|
-
table_id: Optional[str] = Field(default=None, description="乘客制表ID")
|
|
21
18
|
# 乘客基本信息
|
|
22
19
|
passenger_type: Literal["成人", "儿童", "婴儿"] = Field(
|
|
23
20
|
..., description="乘客类型,必须是:成人、儿童 或 婴儿"
|
|
@@ -25,14 +22,17 @@ class PassengerDTO(BaseModel):
|
|
|
25
22
|
passenger_name: str = Field(
|
|
26
23
|
..., description="乘客法定姓名(按证件填写),如:Zhang San 或 张三"
|
|
27
24
|
)
|
|
28
|
-
passenger_alias: Optional[str] = Field(
|
|
29
|
-
default=None,
|
|
30
|
-
description="乘客中文常用名(仅外国人使用),如:汤姆(对应 Tom)"
|
|
31
|
-
)
|
|
32
|
-
|
|
33
25
|
# 性别与证件
|
|
34
26
|
gender: Literal["男", "女"] = Field(..., description='性别,只能是"男"或"女"')
|
|
35
27
|
id_type: Literal["身份证", "港澳通行证", "护照", "军官证", "回乡证"] = Field(
|
|
36
28
|
..., description='证件类型'
|
|
37
29
|
)
|
|
38
30
|
id_number: str = Field(..., description="证件号码(按证件如实填写)")
|
|
31
|
+
|
|
32
|
+
passenger_id: Optional[str] = Field(default=None, description="乘客ID")
|
|
33
|
+
flight_id: Optional[str] = Field(default=None, description="乘客航段ID")
|
|
34
|
+
table_id: Optional[str] = Field(default=None, description="乘客制表ID")
|
|
35
|
+
passenger_alias: Optional[str] = Field(
|
|
36
|
+
default=None,
|
|
37
|
+
description="乘客中文常用名(仅外国人使用),如:汤姆(对应 Tom)"
|
|
38
|
+
)
|
|
@@ -18,39 +18,37 @@ class ProcurementInputDTO(BaseModel):
|
|
|
18
18
|
pl_domain: str = Field(..., description="平台域名,例如:www.ceair.com")
|
|
19
19
|
pl_protocol: str = Field(..., description="平台协议,例如:https")
|
|
20
20
|
out_ticket_platform_type: str = Field(..., description="出票平台类型")
|
|
21
|
-
out_ticket_platform_type_id: Optional[int] = Field(default=None, description="出票平台类型ID")
|
|
22
21
|
out_ticket_platform: str = Field(..., description="出票平台")
|
|
23
|
-
account_number: str = Field(..., description="出票账号"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
account_name: str = Field(..., description="采购账号", alias="purchase_account")
|
|
22
|
+
account_number: str = Field(..., description="出票账号")
|
|
23
|
+
type_name: str = Field(..., description="采购账号类型")
|
|
24
|
+
purchase_account: str = Field(..., description="采购账号")
|
|
25
|
+
remark: str = Field(..., description="备注,一般是由采购平台账号 + 账号密码拼接而成")
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
out_ticket_account: Optional[str] = Field(default=None, description="账号", alias="account")
|
|
27
|
+
out_ticket_account: Optional[str] = Field(default=None, description="账号")
|
|
32
28
|
out_ticket_account_id: Optional[int] = Field(default=None, description="账号ID")
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
out_ticket_account_password: Optional[str] = Field(default=None, description="密码")
|
|
30
|
+
purchase_account_id: Optional[int] = Field(default=None, description="采购账号ID")
|
|
31
|
+
out_ticket_platform_type_id: Optional[int] = Field(default=None, description="出票平台类型ID")
|
|
35
32
|
out_ticket_mobile: Optional[str] = Field(default=None, description="出票手机,退改业务需要根据此手机号码来进行操作")
|
|
36
33
|
|
|
37
34
|
|
|
38
35
|
class ProcurementReusltDTO(BaseModel):
|
|
39
36
|
# 平台信息
|
|
40
37
|
order_no: PositiveInt = Field(..., description="订单号")
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
passenger_names: List[str] = Field(default=None, description="采购乘客")
|
|
38
|
+
air_co_order_id: str = Field(..., description="官网订单号")
|
|
39
|
+
transaction_amount: PositiveFloat = Field(..., description="采购金额")
|
|
44
40
|
passenger_type: Literal["成人", "儿童", "婴儿"] = Field(
|
|
45
41
|
..., description="乘客类型,必须是:成人、儿童 或 婴儿"
|
|
46
42
|
)
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
|
|
44
|
+
passenger_names: Optional[List[str]] = Field(default=None, description="采购乘客")
|
|
45
|
+
segment_index: Optional[PositiveInt] = Field(default=None, description="航段索引")
|
|
46
|
+
flight_ids: Optional[str] = Field(default=None, description="乘客航段ID")
|
|
47
|
+
passenger_ids: Optional[List[str]] = Field(default=None, description="乘客ID列表")
|
|
49
48
|
pay_transaction: Optional[str] = Field(default=None, description="对账标识")
|
|
50
|
-
air_co_order_id: str = Field(..., description="官网订单号")
|
|
51
49
|
|
|
52
50
|
|
|
53
51
|
class FillProcurementInputDTO(ProcurementInputDTO, ProcurementReusltDTO):
|
|
54
52
|
order_no: Optional[PositiveInt] = Field(default=None, description="订单号")
|
|
55
|
-
transaction_amount: Optional[PositiveFloat] = Field(default=None, description="采购金额"
|
|
53
|
+
transaction_amount: Optional[PositiveFloat] = Field(default=None, description="采购金额")
|
|
56
54
|
air_co_order_id: Optional[str] = Field(default=None, description="官网订单号")
|
|
@@ -3,13 +3,13 @@ flight_helper/models/__init__.py,sha256=58ly88YaKqeLEuPfKWB02-WZqxLaWHfqLGlH77Dr
|
|
|
3
3
|
flight_helper/models/dto/__init__.py,sha256=pCL0j7uw5uVeJOcdPos4Ax7Xr6B85rWHPVP8hQ3WxR4,484
|
|
4
4
|
flight_helper/models/dto/booking.py,sha256=3FesVrjErQlzBaIOpZ6FjmBT9DfjDhUGUD6QIrOcS_E,4287
|
|
5
5
|
flight_helper/models/dto/itinerary.py,sha256=cWBt4ZSUUvyaNRYPnRLyN5G76Ell8jlYysSbO6CDw0k,2948
|
|
6
|
-
flight_helper/models/dto/passenger.py,sha256=
|
|
6
|
+
flight_helper/models/dto/passenger.py,sha256=UkJ9abRXZ3WhwLC0-cxbQ8jAkh1dadd4rin2gZEb2G4,1765
|
|
7
7
|
flight_helper/models/dto/payment.py,sha256=soLXsVznzKDwcDtawPP-OtbLIUfSjmVPk4XfR25pZ-Y,4249
|
|
8
|
-
flight_helper/models/dto/procurement.py,sha256=
|
|
8
|
+
flight_helper/models/dto/procurement.py,sha256=JV6xOcvHwjX-ZVJiZTbzbfQfudjIfbo0o4BVOe3RD7U,3147
|
|
9
9
|
flight_helper/validator/__init__.py,sha256=Eh60SrFKSaYwcOwLEn3z2lbxfmLUTjWgZR2B7yC-34c,478
|
|
10
10
|
flight_helper/validator/type_validator.py,sha256=CmXMIENl_1hqzN27pmXnS6hniXrN_hjfWnDKobmowWc,1128
|
|
11
|
-
flight_helper-0.2.
|
|
12
|
-
flight_helper-0.2.
|
|
13
|
-
flight_helper-0.2.
|
|
14
|
-
flight_helper-0.2.
|
|
15
|
-
flight_helper-0.2.
|
|
11
|
+
flight_helper-0.2.6.dist-info/licenses/LICENSE,sha256=WtjCEwlcVzkh1ziO35P2qfVEkLjr87Flro7xlHz3CEY,11556
|
|
12
|
+
flight_helper-0.2.6.dist-info/METADATA,sha256=4DHcDDGPTR-vLQ_uk9LZpN1dDc72TH4Jz9qFfqU_U-s,14323
|
|
13
|
+
flight_helper-0.2.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
14
|
+
flight_helper-0.2.6.dist-info/top_level.txt,sha256=UcuL9Tgenq0in0bIdaANexg1HVpkOnRuvBN0iSaB2Nc,14
|
|
15
|
+
flight_helper-0.2.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|