flight-helper 0.1.3__py3-none-any.whl → 0.1.7__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.
@@ -9,7 +9,7 @@
9
9
  # Copyright ©2011-2026. Hunan xxxxxxx Company limited. All rights reserved.
10
10
  # ---------------------------------------------------------------------------------------------------------
11
11
  """
12
- from typing import Optional
12
+ from typing import Optional, List, Literal
13
13
  from pydantic import BaseModel, PositiveInt, NegativeFloat, Field
14
14
 
15
15
 
@@ -18,17 +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: int = Field(..., description="出票平台类型ID")
21
22
  out_ticket_platform: str = Field(..., description="出票平台")
22
- out_ticket_account: str = Field(..., description="出票账号")
23
- purchase_account_type: str = Field(..., description="采购账号类型")
24
- purchase_account: str = Field(..., description="采购账号")
23
+ account_number: str = Field(..., description="出票账号", alias="out_ticket_account")
24
+
25
+ type_name: str = Field(..., description="采购账号类型", alias="purchase_account_type")
26
+ account_id: str = Field(..., description="采购账号ID", alias="purchase_account_id")
27
+ account_name: str = Field(..., description="采购账号", alias="purchase_account")
28
+
25
29
  remark: str = Field(..., description="备注,一般是由采购平台账号 + 账号密码拼接而成")
30
+
31
+ out_ticket_account: str = Field(..., description="账号", alias="account")
32
+ out_ticket_account_id: int = Field(..., description="账号ID")
33
+ out_ticket_account_pawword: str = Field(..., description="密码", alias="pawword")
34
+
26
35
  out_ticket_mobile: str = Field(..., description="出票手机,退改业务需要根据此手机号码来进行操作")
27
36
 
28
37
 
29
38
  class ProcurementReusltDTO(BaseModel):
30
39
  # 平台信息
31
40
  order_no: PositiveInt = Field(..., description="订单号")
32
- pay_transaction: Optional[str] = Field(default=None, description="支付流水")
33
- pre_order_no: str = Field(..., description="采购平台订单号")
34
- purchase_amount: NegativeFloat = Field(..., description="采购金额")
41
+ transaction_amount: NegativeFloat = Field(..., description="采购金额", alias="purchase_amount")
42
+ segment_index: Optional[int] = Field(default=None, description="采购航段")
43
+ passenger_names: Optional[List[str]] = Field(default=None, description="采购乘客")
44
+ passenger_type: Literal["成人", "儿童", "婴儿"] = Field(
45
+ ..., description="乘客类型,必须是:成人、儿童 或 婴儿"
46
+ )
47
+ flight_ids: Optional[List[str]] = Field(default=None, description="航班ID列表")
48
+ passenger_ids: Optional[List[str]] = Field(default=None, description="乘客ID列表")
49
+ pay_transaction: Optional[str] = Field(default=None, description="对账标识")
50
+ air_co_order_id: str = Field(..., description="官网订单号")
51
+
52
+
53
+ class FillProcurementInputDTO(ProcurementInputDTO, ProcurementReusltDTO):
54
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flight_helper
3
- Version: 0.1.3
3
+ Version: 0.1.7
4
4
  Summary: flight helper python package
5
5
  Author-email: ckf10000 <ckf10000@sina.com>
6
6
  License: Apache License
@@ -5,11 +5,11 @@ flight_helper/models/dto/booking.py,sha256=cgWlB-0q3szAjEBHYLqxSehchAXWnGyFBEpGU
5
5
  flight_helper/models/dto/itinerary.py,sha256=-BaymWWSO6Ukra2P-DzOn1tv4djx2ewYoSdytnPAOT8,2979
6
6
  flight_helper/models/dto/passenger.py,sha256=KXCDjdagIY6e_J7EidVlYtBXg66P3J28gq5oqG1NErk,1759
7
7
  flight_helper/models/dto/payment.py,sha256=bM2FoE9k5gPInz_xyot8JKEUrrr_N2r12oJx1TDtCbM,4249
8
- flight_helper/models/dto/procurement.py,sha256=OyoWIr2lQkO6UsyN3I9dPWYUKEy-LAXthReJ40308Rw,1797
8
+ flight_helper/models/dto/procurement.py,sha256=k_c5wOxPyWsxB3NUvXnuBYD0_P7Ehb9yInDSHNjvO7M,2932
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.1.3.dist-info/licenses/LICENSE,sha256=WtjCEwlcVzkh1ziO35P2qfVEkLjr87Flro7xlHz3CEY,11556
12
- flight_helper-0.1.3.dist-info/METADATA,sha256=rpI0bnDfWGlr1m9mSes0Nkk1HA2oIz4AezDlgKqPR_M,14323
13
- flight_helper-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- flight_helper-0.1.3.dist-info/top_level.txt,sha256=UcuL9Tgenq0in0bIdaANexg1HVpkOnRuvBN0iSaB2Nc,14
15
- flight_helper-0.1.3.dist-info/RECORD,,
11
+ flight_helper-0.1.7.dist-info/licenses/LICENSE,sha256=WtjCEwlcVzkh1ziO35P2qfVEkLjr87Flro7xlHz3CEY,11556
12
+ flight_helper-0.1.7.dist-info/METADATA,sha256=6hDKwrIOgjmR1QRm747HQbp_rGS_EcFcFy7pbrdNdTo,14323
13
+ flight_helper-0.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ flight_helper-0.1.7.dist-info/top_level.txt,sha256=UcuL9Tgenq0in0bIdaANexg1HVpkOnRuvBN0iSaB2Nc,14
15
+ flight_helper-0.1.7.dist-info/RECORD,,