@antchain/ato 1.9.64 → 1.9.72

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antchain/ato",
3
- "version": "1.9.64",
3
+ "version": "1.9.72",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -107,16 +107,51 @@ export class SubRentRiskItem extends $tea.Model {
107
107
  }
108
108
  }
109
109
 
110
+ // 订单还款策略
111
+ export class OrderRepayStrategy extends $tea.Model {
112
+ // 还款期数
113
+ termIndex?: number;
114
+ // 每期应还租金(分)
115
+ rentalMoney?: number;
116
+ // 每期应付时间
117
+ payDay?: string;
118
+ static names(): { [key: string]: string } {
119
+ return {
120
+ termIndex: 'term_index',
121
+ rentalMoney: 'rental_money',
122
+ payDay: 'pay_day',
123
+ };
124
+ }
125
+
126
+ static types(): { [key: string]: any } {
127
+ return {
128
+ termIndex: 'number',
129
+ rentalMoney: 'number',
130
+ payDay: 'string',
131
+ };
132
+ }
133
+
134
+ constructor(map?: { [key: string]: any }) {
135
+ super(map);
136
+ }
137
+ }
138
+
110
139
  // 静态数据模块详情
111
140
  export class StaticDataModuleDetail extends $tea.Model {
112
141
  // 描述
113
142
  propertyText: string;
114
143
  // 商户类型
115
144
  propertyValue: string;
145
+ // 叶子结点,目前存的一级类目下的二级类目
146
+ childrenDetailList?: string;
147
+ // 是否有叶子结点
148
+ hasChildren?: boolean;
116
149
  static names(): { [key: string]: string } {
117
150
  return {
118
151
  propertyText: 'property_text',
119
152
  propertyValue: 'property_value',
153
+ childrenDetailList: 'children_detail_list',
154
+ hasChildren: 'has_children',
120
155
  };
121
156
  }
122
157
 
@@ -124,6 +159,8 @@ export class StaticDataModuleDetail extends $tea.Model {
124
159
  return {
125
160
  propertyText: 'string',
126
161
  propertyValue: 'string',
162
+ childrenDetailList: 'string',
163
+ hasChildren: 'boolean',
127
164
  };
128
165
  }
129
166
 
@@ -594,13 +631,90 @@ export class OrderMsgInfo extends $tea.Model {
594
631
 
595
632
  // 主订单信息
596
633
  export class OrderInfo extends $tea.Model {
634
+ // 订单id
635
+ orderId?: string;
636
+ // 订单创建时间
637
+ orderCreateTime?: string;
638
+ // 订单支付时间
639
+ orderPayTime?: string;
640
+ // 租金总额(分)
641
+ totalRentMoney?: number;
642
+ // 租期
643
+ rentTerm?: number;
644
+ // 租期单位
645
+ rentUnit?: string;
646
+ // 订单状态
647
+ orderStatus?: string;
648
+ // 订单子状态
649
+ orderSubStatus?: string;
650
+ // 免押金额(分)
651
+ depositPrice?: number;
652
+ // 到期买断价(分)
653
+ buyOutPrice?: number;
654
+ // 物流方案
655
+ logisticType?: string;
656
+ // 到期形式
657
+ // NA(0, "无意义"),
658
+ // BUYOUT(1, "到期买断或归还"),
659
+ // FREE_ON_RENT(2, "租满即送"),
660
+ // RENEW_LEASE(3, "续租"),;
661
+ dueMode?: number;
662
+ // 首付款金额(分)
663
+ downPayment?: number;
597
664
  static names(): { [key: string]: string } {
598
665
  return {
666
+ orderId: 'order_id',
667
+ orderCreateTime: 'order_create_time',
668
+ orderPayTime: 'order_pay_time',
669
+ totalRentMoney: 'total_rent_money',
670
+ rentTerm: 'rent_term',
671
+ rentUnit: 'rent_unit',
672
+ orderStatus: 'order_status',
673
+ orderSubStatus: 'order_sub_status',
674
+ depositPrice: 'deposit_price',
675
+ buyOutPrice: 'buy_out_price',
676
+ logisticType: 'logistic_type',
677
+ dueMode: 'due_mode',
678
+ downPayment: 'down_payment',
679
+ };
680
+ }
681
+
682
+ static types(): { [key: string]: any } {
683
+ return {
684
+ orderId: 'string',
685
+ orderCreateTime: 'string',
686
+ orderPayTime: 'string',
687
+ totalRentMoney: 'number',
688
+ rentTerm: 'number',
689
+ rentUnit: 'string',
690
+ orderStatus: 'string',
691
+ orderSubStatus: 'string',
692
+ depositPrice: 'number',
693
+ buyOutPrice: 'number',
694
+ logisticType: 'string',
695
+ dueMode: 'number',
696
+ downPayment: 'number',
697
+ };
698
+ }
699
+
700
+ constructor(map?: { [key: string]: any }) {
701
+ super(map);
702
+ }
703
+ }
704
+
705
+ // 订单还款承诺
706
+ export class OrderPromiseInfo extends $tea.Model {
707
+ // 订单还款策略
708
+ repayStrategyList?: OrderRepayStrategy[];
709
+ static names(): { [key: string]: string } {
710
+ return {
711
+ repayStrategyList: 'repay_strategy_list',
599
712
  };
600
713
  }
601
714
 
602
715
  static types(): { [key: string]: any } {
603
716
  return {
717
+ repayStrategyList: { 'type': 'array', 'itemType': OrderRepayStrategy },
604
718
  };
605
719
  }
606
720
 
@@ -724,6 +838,49 @@ export class AuditInfo extends $tea.Model {
724
838
  }
725
839
  }
726
840
 
841
+ // 订单用户信息
842
+ export class OrderUserInfo extends $tea.Model {
843
+ // 承租人名称
844
+ userName?: string;
845
+ // 承租人手机号
846
+ userPhoneNumber?: string;
847
+ // 地址
848
+ userAddress?: string;
849
+ // 支付宝账号
850
+ alipayUid?: string;
851
+ // 租赁类别
852
+ // 1:个人用户
853
+ // 2:企业用户
854
+ lesseeType?: number;
855
+ // 承租人身份证
856
+ userId?: string;
857
+ static names(): { [key: string]: string } {
858
+ return {
859
+ userName: 'user_name',
860
+ userPhoneNumber: 'user_phone_number',
861
+ userAddress: 'user_address',
862
+ alipayUid: 'alipay_uid',
863
+ lesseeType: 'lessee_type',
864
+ userId: 'user_id',
865
+ };
866
+ }
867
+
868
+ static types(): { [key: string]: any } {
869
+ return {
870
+ userName: 'string',
871
+ userPhoneNumber: 'string',
872
+ userAddress: 'string',
873
+ alipayUid: 'string',
874
+ lesseeType: 'number',
875
+ userId: 'string',
876
+ };
877
+ }
878
+
879
+ constructor(map?: { [key: string]: any }) {
880
+ super(map);
881
+ }
882
+ }
883
+
727
884
  // 商品信息
728
885
  export class ProductInfo extends $tea.Model {
729
886
  // 商家社会统一信用代码
@@ -963,6 +1120,43 @@ export class AgreementPage extends $tea.Model {
963
1120
  }
964
1121
  }
965
1122
 
1123
+ // 订单履约
1124
+ export class OrderFulfillmentInfo extends $tea.Model {
1125
+ // 租期编号
1126
+ leaseTermIndex?: number;
1127
+ // 租期归还状态
1128
+ rentalReturnState?: string;
1129
+ // 实际还款金额(分)
1130
+ realRepayMoney?: number;
1131
+ // 租金(分)
1132
+ rentalMoney?: number;
1133
+ // 每期实付时间
1134
+ returnTime?: string;
1135
+ static names(): { [key: string]: string } {
1136
+ return {
1137
+ leaseTermIndex: 'lease_term_index',
1138
+ rentalReturnState: 'rental_return_state',
1139
+ realRepayMoney: 'real_repay_money',
1140
+ rentalMoney: 'rental_money',
1141
+ returnTime: 'return_time',
1142
+ };
1143
+ }
1144
+
1145
+ static types(): { [key: string]: any } {
1146
+ return {
1147
+ leaseTermIndex: 'number',
1148
+ rentalReturnState: 'string',
1149
+ realRepayMoney: 'number',
1150
+ rentalMoney: 'number',
1151
+ returnTime: 'string',
1152
+ };
1153
+ }
1154
+
1155
+ constructor(map?: { [key: string]: any }) {
1156
+ super(map);
1157
+ }
1158
+ }
1159
+
966
1160
  // 风险场景的决策结果
967
1161
  export class RiskScene extends $tea.Model {
968
1162
  // 风险场景编码
@@ -1086,6 +1280,35 @@ export class CompanyInfoUpdate extends $tea.Model {
1086
1280
  }
1087
1281
  }
1088
1282
 
1283
+ // 订单商品
1284
+ export class OrderProductInfo extends $tea.Model {
1285
+ // 商品编码
1286
+ productId?: string;
1287
+ // 商品名称
1288
+ productName?: string;
1289
+ // 商品数量
1290
+ productNumber?: number;
1291
+ static names(): { [key: string]: string } {
1292
+ return {
1293
+ productId: 'product_id',
1294
+ productName: 'product_name',
1295
+ productNumber: 'product_number',
1296
+ };
1297
+ }
1298
+
1299
+ static types(): { [key: string]: any } {
1300
+ return {
1301
+ productId: 'string',
1302
+ productName: 'string',
1303
+ productNumber: 'number',
1304
+ };
1305
+ }
1306
+
1307
+ constructor(map?: { [key: string]: any }) {
1308
+ super(map);
1309
+ }
1310
+ }
1311
+
1089
1312
  // 主动支付单据
1090
1313
  export class ActivePayOrder extends $tea.Model {
1091
1314
  // 支付宝支付订单号,用于拉起主动支付页面
@@ -6926,6 +7149,8 @@ export class GetInnerHomepagenoticeResponse extends $tea.Model {
6926
7149
  title?: string;
6927
7150
  // 未读数量
6928
7151
  unreadCount?: number;
7152
+ // 是否未读
7153
+ unread?: boolean;
6929
7154
  static names(): { [key: string]: string } {
6930
7155
  return {
6931
7156
  reqMsgId: 'req_msg_id',
@@ -6934,6 +7159,7 @@ export class GetInnerHomepagenoticeResponse extends $tea.Model {
6934
7159
  noticeId: 'notice_id',
6935
7160
  title: 'title',
6936
7161
  unreadCount: 'unread_count',
7162
+ unread: 'unread',
6937
7163
  };
6938
7164
  }
6939
7165
 
@@ -6945,6 +7171,7 @@ export class GetInnerHomepagenoticeResponse extends $tea.Model {
6945
7171
  noticeId: 'number',
6946
7172
  title: 'string',
6947
7173
  unreadCount: 'number',
7174
+ unread: 'boolean',
6948
7175
  };
6949
7176
  }
6950
7177
 
@@ -7028,12 +7255,15 @@ export class DetailInnerNoticeRequest extends $tea.Model {
7028
7255
  tenantId: string;
7029
7256
  // 通知id
7030
7257
  noticeId: number;
7258
+ // 是否未读
7259
+ unread: boolean;
7031
7260
  static names(): { [key: string]: string } {
7032
7261
  return {
7033
7262
  authToken: 'auth_token',
7034
7263
  productInstanceId: 'product_instance_id',
7035
7264
  tenantId: 'tenant_id',
7036
7265
  noticeId: 'notice_id',
7266
+ unread: 'unread',
7037
7267
  };
7038
7268
  }
7039
7269
 
@@ -7043,6 +7273,7 @@ export class DetailInnerNoticeRequest extends $tea.Model {
7043
7273
  productInstanceId: 'string',
7044
7274
  tenantId: 'string',
7045
7275
  noticeId: 'number',
7276
+ unread: 'boolean',
7046
7277
  };
7047
7278
  }
7048
7279
 
@@ -7063,7 +7294,7 @@ export class DetailInnerNoticeResponse extends $tea.Model {
7063
7294
  // 通知内容
7064
7295
  content?: string;
7065
7296
  // 通知创建时间
7066
- noticCreateTime?: string;
7297
+ noticeCreateTime?: string;
7067
7298
  static names(): { [key: string]: string } {
7068
7299
  return {
7069
7300
  reqMsgId: 'req_msg_id',
@@ -7071,7 +7302,7 @@ export class DetailInnerNoticeResponse extends $tea.Model {
7071
7302
  resultMsg: 'result_msg',
7072
7303
  title: 'title',
7073
7304
  content: 'content',
7074
- noticCreateTime: 'notic_create_time',
7305
+ noticeCreateTime: 'notice_create_time',
7075
7306
  };
7076
7307
  }
7077
7308
 
@@ -7082,7 +7313,7 @@ export class DetailInnerNoticeResponse extends $tea.Model {
7082
7313
  resultMsg: 'string',
7083
7314
  title: 'string',
7084
7315
  content: 'string',
7085
- noticCreateTime: 'string',
7316
+ noticeCreateTime: 'string',
7086
7317
  };
7087
7318
  }
7088
7319
 
@@ -7178,6 +7409,97 @@ export class PagequeryInnerOrderResponse extends $tea.Model {
7178
7409
  }
7179
7410
  }
7180
7411
 
7412
+ export class DetailInnerOrderRequest extends $tea.Model {
7413
+ // OAuth模式下的授权token
7414
+ authToken?: string;
7415
+ productInstanceId?: string;
7416
+ // 商户租户id
7417
+ tenantId: string;
7418
+ // 订单id
7419
+ orderId: string;
7420
+ static names(): { [key: string]: string } {
7421
+ return {
7422
+ authToken: 'auth_token',
7423
+ productInstanceId: 'product_instance_id',
7424
+ tenantId: 'tenant_id',
7425
+ orderId: 'order_id',
7426
+ };
7427
+ }
7428
+
7429
+ static types(): { [key: string]: any } {
7430
+ return {
7431
+ authToken: 'string',
7432
+ productInstanceId: 'string',
7433
+ tenantId: 'string',
7434
+ orderId: 'string',
7435
+ };
7436
+ }
7437
+
7438
+ constructor(map?: { [key: string]: any }) {
7439
+ super(map);
7440
+ }
7441
+ }
7442
+
7443
+ export class DetailInnerOrderResponse extends $tea.Model {
7444
+ // 请求唯一ID,用于链路跟踪和问题排查
7445
+ reqMsgId?: string;
7446
+ // 结果码,一般OK表示调用成功
7447
+ resultCode?: string;
7448
+ // 异常信息的文本描述
7449
+ resultMsg?: string;
7450
+ // 订单id
7451
+ orderId?: string;
7452
+ // 支付宝代扣协议号
7453
+ agreementNo?: string;
7454
+ // 商品总数量
7455
+ productTotalCount?: number;
7456
+ // 订单基础信息
7457
+ orderInfo?: OrderInfo;
7458
+ // 用户信息
7459
+ orderUserInfo?: OrderUserInfo;
7460
+ // 订单履约
7461
+ orderFulfillmentInfoList?: OrderFulfillmentInfo[];
7462
+ // 订单还款承诺
7463
+ orderPromiseInfo?: OrderPromiseInfo;
7464
+ // 订单商品信息
7465
+ orderProductInfoList?: OrderProductInfo[];
7466
+ static names(): { [key: string]: string } {
7467
+ return {
7468
+ reqMsgId: 'req_msg_id',
7469
+ resultCode: 'result_code',
7470
+ resultMsg: 'result_msg',
7471
+ orderId: 'order_id',
7472
+ agreementNo: 'agreement_no',
7473
+ productTotalCount: 'product_total_count',
7474
+ orderInfo: 'order_info',
7475
+ orderUserInfo: 'order_user_info',
7476
+ orderFulfillmentInfoList: 'order_fulfillment_info_list',
7477
+ orderPromiseInfo: 'order_promise_info',
7478
+ orderProductInfoList: 'order_product_info_list',
7479
+ };
7480
+ }
7481
+
7482
+ static types(): { [key: string]: any } {
7483
+ return {
7484
+ reqMsgId: 'string',
7485
+ resultCode: 'string',
7486
+ resultMsg: 'string',
7487
+ orderId: 'string',
7488
+ agreementNo: 'string',
7489
+ productTotalCount: 'number',
7490
+ orderInfo: OrderInfo,
7491
+ orderUserInfo: OrderUserInfo,
7492
+ orderFulfillmentInfoList: { 'type': 'array', 'itemType': OrderFulfillmentInfo },
7493
+ orderPromiseInfo: OrderPromiseInfo,
7494
+ orderProductInfoList: { 'type': 'array', 'itemType': OrderProductInfo },
7495
+ };
7496
+ }
7497
+
7498
+ constructor(map?: { [key: string]: any }) {
7499
+ super(map);
7500
+ }
7501
+ }
7502
+
7181
7503
  export class CreateInsureRequest extends $tea.Model {
7182
7504
  // OAuth模式下的授权token
7183
7505
  authToken?: string;
@@ -7200,10 +7522,10 @@ export class CreateInsureRequest extends $tea.Model {
7200
7522
  contactName: string;
7201
7523
  // 公司联系人手机号,RSA 加密传输
7202
7524
  contactMobile: string;
7203
- // 物流单号
7204
- logisticsNumber: string;
7205
7525
  // 实人认证业务流水号
7206
7526
  facevrfFlowId?: string;
7527
+ // 物流单号,非必填参数。如果选择的物流发货方式为 EXPRESS(物流发货),则该字段必填。
7528
+ logisticsNumber?: string;
7207
7529
  // 交易时间,非必填参数。如果发货方式为 OFFLINE(线下交易),则该字段必填。
7208
7530
  tradeTime?: string;
7209
7531
  static names(): { [key: string]: string } {
@@ -7218,8 +7540,8 @@ export class CreateInsureRequest extends $tea.Model {
7218
7540
  deliveryType: 'delivery_type',
7219
7541
  contactName: 'contact_name',
7220
7542
  contactMobile: 'contact_mobile',
7221
- logisticsNumber: 'logistics_number',
7222
7543
  facevrfFlowId: 'facevrf_flow_id',
7544
+ logisticsNumber: 'logistics_number',
7223
7545
  tradeTime: 'trade_time',
7224
7546
  };
7225
7547
  }
@@ -7236,8 +7558,8 @@ export class CreateInsureRequest extends $tea.Model {
7236
7558
  deliveryType: 'string',
7237
7559
  contactName: 'string',
7238
7560
  contactMobile: 'string',
7239
- logisticsNumber: 'string',
7240
7561
  facevrfFlowId: 'string',
7562
+ logisticsNumber: 'string',
7241
7563
  tradeTime: 'string',
7242
7564
  };
7243
7565
  }
@@ -7254,17 +7576,11 @@ export class CreateInsureResponse extends $tea.Model {
7254
7576
  resultCode?: string;
7255
7577
  // 异常信息的文本描述
7256
7578
  resultMsg?: string;
7257
- // 创建结果,true 表示创建成功
7258
- result?: boolean;
7259
- // 创建操作描述信息
7260
- msg?: string;
7261
7579
  static names(): { [key: string]: string } {
7262
7580
  return {
7263
7581
  reqMsgId: 'req_msg_id',
7264
7582
  resultCode: 'result_code',
7265
7583
  resultMsg: 'result_msg',
7266
- result: 'result',
7267
- msg: 'msg',
7268
7584
  };
7269
7585
  }
7270
7586
 
@@ -7273,8 +7589,6 @@ export class CreateInsureResponse extends $tea.Model {
7273
7589
  reqMsgId: 'string',
7274
7590
  resultCode: 'string',
7275
7591
  resultMsg: 'string',
7276
- result: 'boolean',
7277
- msg: 'string',
7278
7592
  };
7279
7593
  }
7280
7594
 
@@ -10880,7 +11194,7 @@ export default class Client {
10880
11194
  req_msg_id: AntchainUtil.getNonce(),
10881
11195
  access_key: this._accessKeyId,
10882
11196
  base_sdk_version: "TeaSDK-2.0",
10883
- sdk_version: "1.9.64",
11197
+ sdk_version: "1.9.72",
10884
11198
  _prod_code: "ATO",
10885
11199
  _prod_channel: "undefined",
10886
11200
  };
@@ -12453,6 +12767,25 @@ export default class Client {
12453
12767
  return $tea.cast<PagequeryInnerOrderResponse>(await this.doRequest("1.0", "antchain.ato.inner.order.pagequery", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new PagequeryInnerOrderResponse({}));
12454
12768
  }
12455
12769
 
12770
+ /**
12771
+ * Description: 订单详情
12772
+ * Summary: 订单详情
12773
+ */
12774
+ async detailInnerOrder(request: DetailInnerOrderRequest): Promise<DetailInnerOrderResponse> {
12775
+ let runtime = new $Util.RuntimeOptions({ });
12776
+ let headers : {[key: string ]: string} = { };
12777
+ return await this.detailInnerOrderEx(request, headers, runtime);
12778
+ }
12779
+
12780
+ /**
12781
+ * Description: 订单详情
12782
+ * Summary: 订单详情
12783
+ */
12784
+ async detailInnerOrderEx(request: DetailInnerOrderRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DetailInnerOrderResponse> {
12785
+ Util.validateModel(request);
12786
+ return $tea.cast<DetailInnerOrderResponse>(await this.doRequest("1.0", "antchain.ato.inner.order.detail", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new DetailInnerOrderResponse({}));
12787
+ }
12788
+
12456
12789
  /**
12457
12790
  * Description: 一键投保
12458
12791
  * Summary: 投保