@youzan-cloud/zan-saas-cli 0.0.0-stage → 0.1.0-beta.3
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/DEPENDENCIES.json +50 -0
- package/INSTALL.md +79 -0
- package/LICENSE +21 -0
- package/NOTICE +1 -0
- package/README.md +151 -2
- package/THIRD_PARTY_NOTICES.txt +162 -0
- package/bin/zan-saas-cli.js +28 -0
- package/internal/registry/index.js +123 -0
- package/internal/registry/manifest.json +424 -0
- package/npm-shrinkwrap.json +86 -0
- package/package.json +33 -4
- package/skills/README.md +30 -0
- package/skills/zan-saas/SKILL.md +54 -0
- package/skills/zan-saas/references/host-entry.md +25 -0
- package/skills/zan-saas-access/SKILL.md +37 -0
- package/skills/zan-saas-access/references/role-list.md +11 -0
- package/skills/zan-saas-access/references/staff-perms-get.md +11 -0
- package/skills/zan-saas-aftersale/SKILL.md +31 -0
- package/skills/zan-saas-aftersale/references/case-list.md +13 -0
- package/skills/zan-saas-aftersale/references/case-scan.md +31 -0
- package/skills/zan-saas-benefit/SKILL.md +46 -0
- package/skills/zan-saas-benefit/references/card-get.md +7 -0
- package/skills/zan-saas-benefit/references/card-grant-list.md +11 -0
- package/skills/zan-saas-benefit/references/card-list.md +7 -0
- package/skills/zan-saas-benefit/references/customer-card-get.md +7 -0
- package/skills/zan-saas-benefit/references/customer-card-list.md +7 -0
- package/skills/zan-saas-coupon/SKILL.md +41 -0
- package/skills/zan-saas-coupon/references/activity-get.md +11 -0
- package/skills/zan-saas-coupon/references/activity-list.md +15 -0
- package/skills/zan-saas-coupon/references/voucher-get.md +13 -0
- package/skills/zan-saas-coupon/references/voucher-list.md +25 -0
- package/skills/zan-saas-customer/SKILL.md +73 -0
- package/skills/zan-saas-customer/references/customer-scan.md +11 -0
- package/skills/zan-saas-customer/references/segment-list.md +22 -0
- package/skills/zan-saas-fulfillment/SKILL.md +36 -0
- package/skills/zan-saas-fulfillment/references/delivery-get.md +11 -0
- package/skills/zan-saas-fulfillment/references/shipment-list.md +11 -0
- package/skills/zan-saas-fulfillment/references/waybill-get.md +9 -0
- package/skills/zan-saas-interaction/SKILL.md +37 -0
- package/skills/zan-saas-interaction/references/lottery-get.md +11 -0
- package/skills/zan-saas-interaction/references/lottery-list.md +19 -0
- package/skills/zan-saas-item/SKILL.md +61 -0
- package/skills/zan-saas-item/references/attribute-list.md +11 -0
- package/skills/zan-saas-item/references/brand-list.md +7 -0
- package/skills/zan-saas-item/references/classification-get.md +7 -0
- package/skills/zan-saas-item/references/classification-list.md +7 -0
- package/skills/zan-saas-item/references/group-list.md +9 -0
- package/skills/zan-saas-item/references/item-content.md +9 -0
- package/skills/zan-saas-item/references/item-get.md +9 -0
- package/skills/zan-saas-item/references/item-search.md +23 -0
- package/skills/zan-saas-item/references/product-identity.md +11 -0
- package/skills/zan-saas-member/SKILL.md +41 -0
- package/skills/zan-saas-member/references/customer-level-get.md +7 -0
- package/skills/zan-saas-member/references/growth-log-list.md +17 -0
- package/skills/zan-saas-member/references/membership-get.md +7 -0
- package/skills/zan-saas-order/SKILL.md +56 -0
- package/skills/zan-saas-order/references/order-get.md +26 -0
- package/skills/zan-saas-order/references/order-list.md +25 -0
- package/skills/zan-saas-order/references/order-scan.md +35 -0
- package/skills/zan-saas-org/SKILL.md +37 -0
- package/skills/zan-saas-org/references/staff-get.md +15 -0
- package/skills/zan-saas-org/references/staff-role-get.md +11 -0
- package/skills/zan-saas-org/references/unit-get.md +11 -0
- package/skills/zan-saas-org/references/unit-list.md +15 -0
- package/skills/zan-saas-points/SKILL.md +42 -0
- package/skills/zan-saas-points/references/account-get.md +7 -0
- package/skills/zan-saas-points/references/log-list.md +17 -0
- package/skills/zan-saas-points/references/rule-list.md +2 -0
- package/skills/zan-saas-privacy/SKILL.md +30 -0
- package/skills/zan-saas-privacy/references/field-decrypt.md +19 -0
- package/skills/zan-saas-shared/SKILL.md +94 -0
- package/skills/zan-saas-shared/references/authentication.md +52 -0
- package/skills/zan-saas-shared/references/value-processing.md +27 -0
- package/skills/zan-saas-stock/SKILL.md +28 -0
- package/skills/zan-saas-stock/references/log-list.md +11 -0
- package/skills/zan-saas-valuecard/SKILL.md +37 -0
- package/skills/zan-saas-valuecard/references/card-get.md +13 -0
- package/skills/zan-saas-valuecard/references/card-list.md +11 -0
- package/src/auth/browser.js +28 -0
- package/src/auth/callback-server.js +99 -0
- package/src/auth/config.js +53 -0
- package/src/auth/credential-store.js +109 -0
- package/src/auth/oauth-client.js +105 -0
- package/src/auth/pkce.js +28 -0
- package/src/auth/session.js +178 -0
- package/src/auth/tool.js +25 -0
- package/src/cli/command-paths.js +126 -0
- package/src/cli/context-help.js +102 -0
- package/src/cli/diagnostic-command.js +57 -0
- package/src/cli/domain-catalog.js +42 -0
- package/src/cli/help-text.js +32 -0
- package/src/cli/native-loader.js +120 -0
- package/src/cli/native-path.js +22 -0
- package/src/cli/parser-policy.js +141 -0
- package/src/cli/program.js +134 -0
- package/src/cli/skill-catalog.js +241 -0
- package/src/commands/native/access/commands.index.json +24 -0
- package/src/commands/native/access/domain.json +3 -0
- package/src/commands/native/access/role/list/command.js +141 -0
- package/src/commands/native/access/role/list/schema.json +393 -0
- package/src/commands/native/access/staff-perms/get/command.js +119 -0
- package/src/commands/native/access/staff-perms/get/schema.json +703 -0
- package/src/commands/native/aftersale/case/get/command.js +104 -0
- package/src/commands/native/aftersale/case/get/exact-json.js +52 -0
- package/src/commands/native/aftersale/case/get/money.js +28 -0
- package/src/commands/native/aftersale/case/get/projection.js +120 -0
- package/src/commands/native/aftersale/case/get/query.js +72 -0
- package/src/commands/native/aftersale/case/get/schema.json +134 -0
- package/src/commands/native/aftersale/case/list/command.js +135 -0
- package/src/commands/native/aftersale/case/list/schema.json +1095 -0
- package/src/commands/native/aftersale/case/scan/command.js +110 -0
- package/src/commands/native/aftersale/case/scan/query.js +62 -0
- package/src/commands/native/aftersale/case/scan/scan.js +78 -0
- package/src/commands/native/aftersale/case/scan/schema.json +964 -0
- package/src/commands/native/aftersale/case/scan/search.js +108 -0
- package/src/commands/native/aftersale/commands.index.json +42 -0
- package/src/commands/native/aftersale/domain.json +3 -0
- package/src/commands/native/aftersale/refund/list/command.js +97 -0
- package/src/commands/native/aftersale/refund/list/money.js +25 -0
- package/src/commands/native/aftersale/refund/list/projection.js +50 -0
- package/src/commands/native/aftersale/refund/list/query.js +73 -0
- package/src/commands/native/aftersale/refund/list/schema.json +130 -0
- package/src/commands/native/aftersale/shared/query.js +58 -0
- package/src/commands/native/aftersale/shared/search.js +128 -0
- package/src/commands/native/benefit/card-definition/get/command.js +110 -0
- package/src/commands/native/benefit/card-definition/get/schema.json +545 -0
- package/src/commands/native/benefit/card-definition/list/command.js +105 -0
- package/src/commands/native/benefit/card-definition/list/schema.json +690 -0
- package/src/commands/native/benefit/card-grant/list/command.js +135 -0
- package/src/commands/native/benefit/card-grant/list/schema.json +758 -0
- package/src/commands/native/benefit/commands.index.json +51 -0
- package/src/commands/native/benefit/customer-card/get/command.js +110 -0
- package/src/commands/native/benefit/customer-card/get/schema.json +340 -0
- package/src/commands/native/benefit/customer-card/list/command.js +102 -0
- package/src/commands/native/benefit/customer-card/list/schema.json +731 -0
- package/src/commands/native/benefit/domain.json +3 -0
- package/src/commands/native/coupon/activity/get/command.js +183 -0
- package/src/commands/native/coupon/activity/get/schema.json +624 -0
- package/src/commands/native/coupon/activity/list/command.js +169 -0
- package/src/commands/native/coupon/activity/list/schema.json +845 -0
- package/src/commands/native/coupon/commands.index.json +42 -0
- package/src/commands/native/coupon/domain.json +3 -0
- package/src/commands/native/coupon/shared/query.js +15 -0
- package/src/commands/native/coupon/voucher/get/command.js +113 -0
- package/src/commands/native/coupon/voucher/get/schema.json +147 -0
- package/src/commands/native/coupon/voucher/list/command.js +155 -0
- package/src/commands/native/coupon/voucher/list/schema.json +772 -0
- package/src/commands/native/customer/commands.index.json +96 -0
- package/src/commands/native/customer/customer/get/adapter.js +82 -0
- package/src/commands/native/customer/customer/get/command.js +106 -0
- package/src/commands/native/customer/customer/get/schema.json +958 -0
- package/src/commands/native/customer/customer/list/command.js +78 -0
- package/src/commands/native/customer/customer/list/input.js +145 -0
- package/src/commands/native/customer/customer/list/query.js +103 -0
- package/src/commands/native/customer/customer/list/schema.json +969 -0
- package/src/commands/native/customer/customer/scan/command.js +80 -0
- package/src/commands/native/customer/customer/scan/scan.js +92 -0
- package/src/commands/native/customer/customer/scan/schema.json +211 -0
- package/src/commands/native/customer/customer-tag/get/command.js +166 -0
- package/src/commands/native/customer/customer-tag/get/schema.json +317 -0
- package/src/commands/native/customer/customer-tag/list/command.js +143 -0
- package/src/commands/native/customer/customer-tag/list/schema.json +259 -0
- package/src/commands/native/customer/domain.json +3 -0
- package/src/commands/native/customer/segment/list/command.js +96 -0
- package/src/commands/native/customer/segment/list/query.js +98 -0
- package/src/commands/native/customer/segment/list/schema.json +135 -0
- package/src/commands/native/customer/segment-customer/list/command.js +171 -0
- package/src/commands/native/customer/segment-customer/list/schema.json +123 -0
- package/src/commands/native/customer/shared/search-input.js +179 -0
- package/src/commands/native/customer/shared/search-page.js +54 -0
- package/src/commands/native/customer/tag/get/command.js +73 -0
- package/src/commands/native/customer/tag/get/schema.json +339 -0
- package/src/commands/native/customer/tagcategory/get/command.js +80 -0
- package/src/commands/native/customer/tagcategory/get/query.js +98 -0
- package/src/commands/native/customer/tagcategory/get/schema.json +339 -0
- package/src/commands/native/customer/tagcategory/list/command.js +127 -0
- package/src/commands/native/customer/tagcategory/list/schema.json +394 -0
- package/src/commands/native/fulfillment/commands.index.json +33 -0
- package/src/commands/native/fulfillment/delivery/get/command.js +107 -0
- package/src/commands/native/fulfillment/delivery/get/projection.js +142 -0
- package/src/commands/native/fulfillment/delivery/get/schema.json +173 -0
- package/src/commands/native/fulfillment/domain.json +3 -0
- package/src/commands/native/fulfillment/shipment/list/command.js +83 -0
- package/src/commands/native/fulfillment/shipment/list/projection.js +130 -0
- package/src/commands/native/fulfillment/shipment/list/schema.json +752 -0
- package/src/commands/native/fulfillment/waybill/get/command.js +193 -0
- package/src/commands/native/fulfillment/waybill/get/response.js +68 -0
- package/src/commands/native/fulfillment/waybill/get/schema.json +190 -0
- package/src/commands/native/interaction/commands.index.json +24 -0
- package/src/commands/native/interaction/domain.json +3 -0
- package/src/commands/native/interaction/lottery/get/command.js +61 -0
- package/src/commands/native/interaction/lottery/get/query.js +152 -0
- package/src/commands/native/interaction/lottery/get/schema.json +1004 -0
- package/src/commands/native/interaction/lottery/list/command.js +176 -0
- package/src/commands/native/interaction/lottery/list/schema.json +898 -0
- package/src/commands/native/item/attribute/list/command.js +122 -0
- package/src/commands/native/item/attribute/list/schema.json +727 -0
- package/src/commands/native/item/brand/list/command.js +114 -0
- package/src/commands/native/item/brand/list/schema.json +725 -0
- package/src/commands/native/item/classification/get/command.js +87 -0
- package/src/commands/native/item/classification/get/schema.json +596 -0
- package/src/commands/native/item/classification/list/command.js +105 -0
- package/src/commands/native/item/classification/list/schema.json +676 -0
- package/src/commands/native/item/commands.index.json +87 -0
- package/src/commands/native/item/domain.json +1 -0
- package/src/commands/native/item/group/list/command.js +122 -0
- package/src/commands/native/item/group/list/schema.json +809 -0
- package/src/commands/native/item/item/get/command.js +122 -0
- package/src/commands/native/item/item/get/schema.json +3799 -0
- package/src/commands/native/item/item/list/command.js +7 -0
- package/src/commands/native/item/item/list/schema.json +1118 -0
- package/src/commands/native/item/item/scan/command.js +7 -0
- package/src/commands/native/item/item/scan/schema.json +1046 -0
- package/src/commands/native/item/item-content/get/command.js +54 -0
- package/src/commands/native/item/item-content/get/schema.json +677 -0
- package/src/commands/native/item/shared/api.js +31 -0
- package/src/commands/native/item/shared/content.js +20 -0
- package/src/commands/native/item/shared/diagnostics.js +61 -0
- package/src/commands/native/item/shared/h5.js +63 -0
- package/src/commands/native/item/shared/identity.js +62 -0
- package/src/commands/native/item/shared/normalize.js +49 -0
- package/src/commands/native/item/shared/scope.js +22 -0
- package/src/commands/native/item/shared/search-command.js +61 -0
- package/src/commands/native/item/shared/search-options.js +150 -0
- package/src/commands/native/item/shared/search.js +158 -0
- package/src/commands/native/member/commands.index.json +60 -0
- package/src/commands/native/member/customer-level/get/command.js +122 -0
- package/src/commands/native/member/customer-level/get/schema.json +300 -0
- package/src/commands/native/member/domain.json +3 -0
- package/src/commands/native/member/growth/get/command.js +64 -0
- package/src/commands/native/member/growth/get/schema.json +283 -0
- package/src/commands/native/member/growth-log/list/command.js +203 -0
- package/src/commands/native/member/growth-log/list/schema.json +695 -0
- package/src/commands/native/member/level/get/command.js +70 -0
- package/src/commands/native/member/level/get/query.js +125 -0
- package/src/commands/native/member/level/get/schema.json +339 -0
- package/src/commands/native/member/level/list/command.js +50 -0
- package/src/commands/native/member/level/list/query.js +109 -0
- package/src/commands/native/member/level/list/schema.json +104 -0
- package/src/commands/native/member/membership/get/command.js +78 -0
- package/src/commands/native/member/membership/get/schema.json +283 -0
- package/src/commands/native/order/commands.index.json +33 -0
- package/src/commands/native/order/domain.json +3 -0
- package/src/commands/native/order/order/get/command.js +155 -0
- package/src/commands/native/order/order/get/schema.json +1167 -0
- package/src/commands/native/order/order/list/command.js +230 -0
- package/src/commands/native/order/order/list/schema.json +1363 -0
- package/src/commands/native/order/order/scan/command.js +148 -0
- package/src/commands/native/order/order/scan/scan.js +89 -0
- package/src/commands/native/order/order/scan/schema.json +1445 -0
- package/src/commands/native/order/shared/projection.js +183 -0
- package/src/commands/native/order/shared/query.js +84 -0
- package/src/commands/native/order/shared/search.js +112 -0
- package/src/commands/native/org/commands.index.json +42 -0
- package/src/commands/native/org/domain.json +3 -0
- package/src/commands/native/org/shared/single-staff.js +115 -0
- package/src/commands/native/org/staff/get/command.js +148 -0
- package/src/commands/native/org/staff/get/schema.json +114 -0
- package/src/commands/native/org/staff-role/get/command.js +45 -0
- package/src/commands/native/org/staff-role/get/schema.json +93 -0
- package/src/commands/native/org/unit/get/command.js +131 -0
- package/src/commands/native/org/unit/get/schema.json +478 -0
- package/src/commands/native/org/unit/list/command.js +187 -0
- package/src/commands/native/org/unit/list/schema.json +828 -0
- package/src/commands/native/points/account/get/command.js +65 -0
- package/src/commands/native/points/account/get/schema.json +303 -0
- package/src/commands/native/points/commands.index.json +33 -0
- package/src/commands/native/points/domain.json +3 -0
- package/src/commands/native/points/log/list/command.js +141 -0
- package/src/commands/native/points/log/list/schema.json +761 -0
- package/src/commands/native/points/rule/list/command.js +82 -0
- package/src/commands/native/points/rule/list/schema.json +294 -0
- package/src/commands/native/privacy/commands.index.json +15 -0
- package/src/commands/native/privacy/domain.json +3 -0
- package/src/commands/native/privacy/field/decrypt/command.js +185 -0
- package/src/commands/native/privacy/field/decrypt/schema.json +656 -0
- package/src/commands/native/privacy/shared/order-source.js +33 -0
- package/src/commands/native/stock/commands.index.json +15 -0
- package/src/commands/native/stock/domain.json +3 -0
- package/src/commands/native/stock/log/list/command.js +207 -0
- package/src/commands/native/stock/log/list/schema.json +922 -0
- package/src/commands/native/valuecard/card/get/command.js +107 -0
- package/src/commands/native/valuecard/card/get/schema.json +683 -0
- package/src/commands/native/valuecard/card/list/command.js +136 -0
- package/src/commands/native/valuecard/card/list/pagination.js +23 -0
- package/src/commands/native/valuecard/card/list/schema.json +780 -0
- package/src/commands/native/valuecard/commands.index.json +24 -0
- package/src/commands/native/valuecard/domain.json +3 -0
- package/src/commands/native/valuecard/shared/projection.js +57 -0
- package/src/commands/system/api.js +47 -0
- package/src/commands/system/auth.js +118 -0
- package/src/commands/system/contracts.js +373 -0
- package/src/commands/system/doctor.js +24 -0
- package/src/commands/system/install.js +41 -0
- package/src/commands/system/printer.js +16 -0
- package/src/commands/system/schema.js +162 -0
- package/src/commands/system/shop-guidance.js +9 -0
- package/src/commands/system/shop.js +237 -0
- package/src/commands/system/skills.js +49 -0
- package/src/execution/beijing-date-time.js +29 -0
- package/src/execution/beijing-time.js +21 -0
- package/src/execution/bounded-input.js +42 -0
- package/src/execution/command-io.js +137 -0
- package/src/execution/command-policy.js +41 -0
- package/src/execution/command-schema.js +131 -0
- package/src/execution/datetime.js +83 -0
- package/src/execution/error-details.js +399 -0
- package/src/execution/error-model.js +82 -0
- package/src/execution/exact-json.js +80 -0
- package/src/execution/list-total.js +10 -0
- package/src/execution/money.js +59 -0
- package/src/execution/parser-error.js +66 -0
- package/src/execution/privacy.js +197 -0
- package/src/execution/public-schema.js +52 -0
- package/src/execution/query-api.js +101 -0
- package/src/execution/range.js +84 -0
- package/src/execution/request-state.js +55 -0
- package/src/execution/schema-completeness.js +116 -0
- package/src/execution/shop-query.js +54 -0
- package/src/execution/target-shop-default.js +23 -0
- package/src/execution/target-shop.js +49 -0
- package/src/identity/context-store.js +54 -0
- package/src/identity/context.js +38 -0
- package/src/installation/install.js +158 -0
- package/src/installation/npm-error.js +93 -0
- package/src/installation/skill.js +113 -0
- package/src/transport/account-api.js +152 -0
- package/src/transport/api.js +199 -0
- package/src/transport/shop-app.js +63 -0
|
@@ -0,0 +1,1445 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"input": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"properties": {
|
|
7
|
+
"scope": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"kdtId": {
|
|
12
|
+
"$ref": "#/definitions/shopId"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"kdtId"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"filters": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"properties": {
|
|
23
|
+
"yzOpenId": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1,
|
|
26
|
+
"description": "客户统一标识,非员工ID或手机号,非空文本。"
|
|
27
|
+
},
|
|
28
|
+
"status": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 1,
|
|
31
|
+
"enum": [
|
|
32
|
+
"WAIT_BUYER_PAY",
|
|
33
|
+
"WAIT_SELLER_SEND_GOODS",
|
|
34
|
+
"WAIT_BUYER_CONFIRM_GOODS",
|
|
35
|
+
"TRADE_SUCCESS",
|
|
36
|
+
"TRADE_CLOSED",
|
|
37
|
+
"TRADE_REFUND"
|
|
38
|
+
],
|
|
39
|
+
"description": "WAIT_BUYER_PAY=等待买家付款,含适用预售定金或尾款;WAIT_SELLER_SEND_GOODS=等待卖家发货;WAIT_BUYER_CONFIRM_GOODS=等待买家确认收货;TRADE_SUCCESS=交易完成;TRADE_CLOSED=交易关闭;TRADE_REFUND=退款中,仅搜索条件,不是已知交易状态响应值。请求字符串,与响应字典分开,未知值拒绝。"
|
|
40
|
+
},
|
|
41
|
+
"type": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 1,
|
|
44
|
+
"enum": [
|
|
45
|
+
"NORMAL",
|
|
46
|
+
"PEERPAY",
|
|
47
|
+
"GIFT",
|
|
48
|
+
"FX_CAIGOUDAN",
|
|
49
|
+
"PRESENT",
|
|
50
|
+
"WISH",
|
|
51
|
+
"QRCODE",
|
|
52
|
+
"QRCODE_3RD",
|
|
53
|
+
"FX_MERGED",
|
|
54
|
+
"VERIFIED",
|
|
55
|
+
"PINJIAN",
|
|
56
|
+
"REBATE",
|
|
57
|
+
"FX_QUANYUANDIAN",
|
|
58
|
+
"FX_DEPOSIT",
|
|
59
|
+
"PF",
|
|
60
|
+
"GROUP",
|
|
61
|
+
"HOTEL",
|
|
62
|
+
"TAKE_AWAY",
|
|
63
|
+
"CATERING_OFFLINE",
|
|
64
|
+
"CATERING_QRCODE",
|
|
65
|
+
"BEAUTY_APPOINTMENT",
|
|
66
|
+
"BEAUTY_SERVICE",
|
|
67
|
+
"KNOWLEDGE_PAY",
|
|
68
|
+
"GIFT_CARD"
|
|
69
|
+
],
|
|
70
|
+
"description": "NORMAL=普通订单;PEERPAY=代付;GIFT=我要送人;FX_CAIGOUDAN=分销供货单;PRESENT=赠品;WISH=心愿单;QRCODE=二维码订单;QRCODE_3RD=线下收银台;FX_MERGED=合并付货款;VERIFIED=1分钱实名认证;PINJIAN=品鉴;REBATE=返利;FX_QUANYUANDIAN=全员开店;FX_DEPOSIT=分销保证金;PF=批发;GROUP=拼团;HOTEL=酒店;TAKE_AWAY=外卖;CATERING_OFFLINE=堂食点餐;CATERING_QRCODE=外卖买单;BEAUTY_APPOINTMENT=美业预约;BEAUTY_SERVICE=美业服务;KNOWLEDGE_PAY=知识付费;GIFT_CARD=礼品卡。请求字符串,与响应字典分开,未知值拒绝。"
|
|
71
|
+
},
|
|
72
|
+
"item_id": {
|
|
73
|
+
"$ref": "#/definitions/id",
|
|
74
|
+
"description": "OneID商品ID,沿用统一商品筛选;当前仅接受正安全整数范围。"
|
|
75
|
+
},
|
|
76
|
+
"itemTitle": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"minLength": 1,
|
|
79
|
+
"maxLength": 200,
|
|
80
|
+
"description": "商品名称模糊搜索,最长200字符为CLI预算。"
|
|
81
|
+
},
|
|
82
|
+
"receiverPhone": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"minLength": 1,
|
|
85
|
+
"maxLength": 20,
|
|
86
|
+
"description": "收货人电话,非买家手机号,最长20字符。"
|
|
87
|
+
},
|
|
88
|
+
"receiverName": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"minLength": 1,
|
|
91
|
+
"maxLength": 50,
|
|
92
|
+
"description": "收货人姓名,最长50字符。"
|
|
93
|
+
},
|
|
94
|
+
"deliveryType": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"minLength": 1,
|
|
97
|
+
"enum": [
|
|
98
|
+
"EXPRESS",
|
|
99
|
+
"SELF_FETCH",
|
|
100
|
+
"LOCAL_DELIVERY"
|
|
101
|
+
],
|
|
102
|
+
"description": "EXPRESS=快递发货;SELF_FETCH=到店自提;LOCAL_DELIVERY=同城配送。请求字符串,与响应字典分开,未知值拒绝。"
|
|
103
|
+
},
|
|
104
|
+
"keyword": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"minLength": 1,
|
|
107
|
+
"maxLength": 200,
|
|
108
|
+
"description": "订单号、收货人手机或后四位,最长200字符为CLI预算。"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"description": "可选非时间筛选,每个区间及翻页保持全部已指定条件,不补默认状态或类型。"
|
|
112
|
+
},
|
|
113
|
+
"range": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"additionalProperties": false,
|
|
116
|
+
"properties": {
|
|
117
|
+
"start": {
|
|
118
|
+
"$ref": "#/definitions/time"
|
|
119
|
+
},
|
|
120
|
+
"end": {
|
|
121
|
+
"$ref": "#/definitions/time"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": [
|
|
125
|
+
"start",
|
|
126
|
+
"end"
|
|
127
|
+
],
|
|
128
|
+
"description": "所选时间轴的显式范围,开始不早于2020年,结束严格晚于开始、不晚于固定当前时刻,跨度最多一日历年。仅接收秒精度,非零毫秒拒绝。--created-at 与 --paid-at 必须二选一,START..END 必须包含分隔符和两端,不补边界。"
|
|
129
|
+
},
|
|
130
|
+
"timeField": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"enum": [
|
|
133
|
+
"createdAt",
|
|
134
|
+
"paidAt"
|
|
135
|
+
],
|
|
136
|
+
"description": "由所选 --created-at 或 --paid-at 派生的时间轴,不是额外CLI参数。所有切窗、二分、翻页、预览与停止范围沿用此轴;支付轴不附加创建约束。"
|
|
137
|
+
},
|
|
138
|
+
"include": {
|
|
139
|
+
"type": "array",
|
|
140
|
+
"uniqueItems": true,
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "string",
|
|
143
|
+
"enum": [
|
|
144
|
+
"items",
|
|
145
|
+
"payment",
|
|
146
|
+
"buyer",
|
|
147
|
+
"address",
|
|
148
|
+
"remark",
|
|
149
|
+
"source",
|
|
150
|
+
"aftersale",
|
|
151
|
+
"fulfillment"
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"format": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"enum": [
|
|
158
|
+
"json",
|
|
159
|
+
"pretty"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"dryRun": {
|
|
163
|
+
"type": "boolean"
|
|
164
|
+
},
|
|
165
|
+
"limits": {
|
|
166
|
+
"type": "object",
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"properties": {
|
|
169
|
+
"maxItems": {
|
|
170
|
+
"type": "integer",
|
|
171
|
+
"minimum": 1,
|
|
172
|
+
"maximum": 10000,
|
|
173
|
+
"description": "去重结果上限,默认1000;剩余预算不足下一整页时不再发送,不裁切整页。"
|
|
174
|
+
},
|
|
175
|
+
"maxRequests": {
|
|
176
|
+
"type": "integer",
|
|
177
|
+
"minimum": 2,
|
|
178
|
+
"maximum": 500,
|
|
179
|
+
"description": "总请求上限,默认100;包括一次店铺核验、全部探测和翻页,不自动重试。"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"required": [
|
|
183
|
+
"maxItems",
|
|
184
|
+
"maxRequests"
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"required": [
|
|
189
|
+
"scope",
|
|
190
|
+
"filters",
|
|
191
|
+
"range",
|
|
192
|
+
"timeField",
|
|
193
|
+
"limits",
|
|
194
|
+
"include",
|
|
195
|
+
"format",
|
|
196
|
+
"dryRun"
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
"output": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"additionalProperties": false,
|
|
202
|
+
"properties": {
|
|
203
|
+
"data": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"additionalProperties": false,
|
|
206
|
+
"properties": {
|
|
207
|
+
"orders": {
|
|
208
|
+
"type": "array",
|
|
209
|
+
"items": {
|
|
210
|
+
"$ref": "#/definitions/orderRow"
|
|
211
|
+
},
|
|
212
|
+
"maxItems": 10000
|
|
213
|
+
},
|
|
214
|
+
"pagination": {
|
|
215
|
+
"$ref": "#/definitions/pagination"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"required": [
|
|
219
|
+
"orders",
|
|
220
|
+
"pagination"
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"required": [
|
|
225
|
+
"data"
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
"preview": {
|
|
229
|
+
"type": "object",
|
|
230
|
+
"description": "仅本地计划,不读取凭证或发送请求;requestTemplate.body 中 receiver_phone、receiver_name、keywords 全部遮盖为 ***,不修改规范化输入或真实请求筛选。",
|
|
231
|
+
"additionalProperties": false,
|
|
232
|
+
"properties": {
|
|
233
|
+
"requests": {
|
|
234
|
+
"type": "array",
|
|
235
|
+
"minItems": 1,
|
|
236
|
+
"maxItems": 1,
|
|
237
|
+
"items": {
|
|
238
|
+
"$ref": "#/definitions/bindingRequest"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"initialRanges": {
|
|
242
|
+
"type": "array",
|
|
243
|
+
"minItems": 1,
|
|
244
|
+
"maxItems": 5,
|
|
245
|
+
"items": {
|
|
246
|
+
"$ref": "#/definitions/timeRange"
|
|
247
|
+
},
|
|
248
|
+
"description": "全部本地初始区间,按开始时间升序,未执行远端探测。"
|
|
249
|
+
},
|
|
250
|
+
"requestTemplate": {
|
|
251
|
+
"$ref": "#/definitions/listRequest"
|
|
252
|
+
},
|
|
253
|
+
"limits": {
|
|
254
|
+
"type": "object",
|
|
255
|
+
"additionalProperties": false,
|
|
256
|
+
"properties": {
|
|
257
|
+
"maxItems": {
|
|
258
|
+
"type": "integer",
|
|
259
|
+
"minimum": 1,
|
|
260
|
+
"maximum": 10000,
|
|
261
|
+
"description": "去重结果上限,默认1000;剩余预算不足下一整页时不再发送,不裁切整页。"
|
|
262
|
+
},
|
|
263
|
+
"maxRequests": {
|
|
264
|
+
"type": "integer",
|
|
265
|
+
"minimum": 2,
|
|
266
|
+
"maximum": 500,
|
|
267
|
+
"description": "总请求上限,默认100;包括一次店铺核验、全部探测和翻页,不自动重试。"
|
|
268
|
+
},
|
|
269
|
+
"pageSize": {
|
|
270
|
+
"type": "integer",
|
|
271
|
+
"minimum": 1,
|
|
272
|
+
"maximum": 100,
|
|
273
|
+
"description": "整个扫描固定 min(100,maxItems)。"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"required": [
|
|
277
|
+
"maxItems",
|
|
278
|
+
"maxRequests",
|
|
279
|
+
"pageSize"
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"required": [
|
|
284
|
+
"requests",
|
|
285
|
+
"initialRanges",
|
|
286
|
+
"requestTemplate",
|
|
287
|
+
"limits"
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
"error": {
|
|
291
|
+
"type": "object",
|
|
292
|
+
"required": [
|
|
293
|
+
"success",
|
|
294
|
+
"code",
|
|
295
|
+
"message",
|
|
296
|
+
"details"
|
|
297
|
+
],
|
|
298
|
+
"additionalProperties": false,
|
|
299
|
+
"properties": {
|
|
300
|
+
"success": {
|
|
301
|
+
"const": false
|
|
302
|
+
},
|
|
303
|
+
"code": {
|
|
304
|
+
"const": -10001
|
|
305
|
+
},
|
|
306
|
+
"message": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"minLength": 1
|
|
309
|
+
},
|
|
310
|
+
"details": {
|
|
311
|
+
"type": "object",
|
|
312
|
+
"required": [
|
|
313
|
+
"category",
|
|
314
|
+
"stage",
|
|
315
|
+
"command",
|
|
316
|
+
"targetScope",
|
|
317
|
+
"requestState",
|
|
318
|
+
"nextStep",
|
|
319
|
+
"errorVersion",
|
|
320
|
+
"recovery",
|
|
321
|
+
"execution"
|
|
322
|
+
],
|
|
323
|
+
"additionalProperties": false,
|
|
324
|
+
"properties": {
|
|
325
|
+
"category": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"enum": [
|
|
328
|
+
"validation",
|
|
329
|
+
"configuration",
|
|
330
|
+
"authentication",
|
|
331
|
+
"permission",
|
|
332
|
+
"scope_unresolved",
|
|
333
|
+
"http",
|
|
334
|
+
"business_rejected",
|
|
335
|
+
"transport",
|
|
336
|
+
"protocol",
|
|
337
|
+
"limit"
|
|
338
|
+
]
|
|
339
|
+
},
|
|
340
|
+
"stage": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"enum": [
|
|
343
|
+
"input",
|
|
344
|
+
"context",
|
|
345
|
+
"configuration",
|
|
346
|
+
"shop-binding",
|
|
347
|
+
"order",
|
|
348
|
+
"orders",
|
|
349
|
+
"scan",
|
|
350
|
+
"output-model"
|
|
351
|
+
]
|
|
352
|
+
},
|
|
353
|
+
"command": {
|
|
354
|
+
"const": "order.order.scan"
|
|
355
|
+
},
|
|
356
|
+
"targetScope": {
|
|
357
|
+
"type": "object",
|
|
358
|
+
"additionalProperties": false,
|
|
359
|
+
"properties": {
|
|
360
|
+
"kdtId": {
|
|
361
|
+
"$ref": "#/definitions/shopId"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"required": []
|
|
365
|
+
},
|
|
366
|
+
"requestState": {
|
|
367
|
+
"enum": [
|
|
368
|
+
"not_sent",
|
|
369
|
+
"sent",
|
|
370
|
+
"unknown"
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
"nextStep": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"minLength": 1
|
|
376
|
+
},
|
|
377
|
+
"api": {
|
|
378
|
+
"type": "string"
|
|
379
|
+
},
|
|
380
|
+
"httpStatus": {
|
|
381
|
+
"type": "integer"
|
|
382
|
+
},
|
|
383
|
+
"businessCode": {
|
|
384
|
+
"anyOf": [
|
|
385
|
+
{
|
|
386
|
+
"type": "integer",
|
|
387
|
+
"minimum": -9007199254740991,
|
|
388
|
+
"maximum": 9007199254740991
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"type": "string",
|
|
392
|
+
"pattern": "^-?\\d{1,12}$"
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
"gatewayCode": {
|
|
397
|
+
"anyOf": [
|
|
398
|
+
{
|
|
399
|
+
"type": "integer",
|
|
400
|
+
"minimum": -9007199254740991,
|
|
401
|
+
"maximum": 9007199254740991
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"type": "string",
|
|
405
|
+
"pattern": "^-?\\d{1,12}$"
|
|
406
|
+
}
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
"trace_id": {
|
|
410
|
+
"type": "string",
|
|
411
|
+
"pattern": "^[a-zA-Z0-9_-]{1,128}$"
|
|
412
|
+
},
|
|
413
|
+
"request_id": {
|
|
414
|
+
"type": "string",
|
|
415
|
+
"pattern": "^[a-zA-Z0-9_-]{1,128}$"
|
|
416
|
+
},
|
|
417
|
+
"errorVersion": {
|
|
418
|
+
"const": 2,
|
|
419
|
+
"description": "本命令采用错误诊断协议第二版。"
|
|
420
|
+
},
|
|
421
|
+
"issues": {
|
|
422
|
+
"type": "array",
|
|
423
|
+
"minItems": 1,
|
|
424
|
+
"maxItems": 16,
|
|
425
|
+
"items": {
|
|
426
|
+
"$ref": "#/definitions/diagnosticIssue"
|
|
427
|
+
},
|
|
428
|
+
"description": "最多十六个已定位问题,不包含收到的原值。"
|
|
429
|
+
},
|
|
430
|
+
"issuesTruncated": {
|
|
431
|
+
"const": true,
|
|
432
|
+
"description": "问题超过返回上限,当前列表没有穷尽全部问题。"
|
|
433
|
+
},
|
|
434
|
+
"recovery": {
|
|
435
|
+
"$ref": "#/definitions/diagnosticRecovery",
|
|
436
|
+
"description": "受限的恢复说明,不会自动执行。"
|
|
437
|
+
},
|
|
438
|
+
"execution": {
|
|
439
|
+
"$ref": "#/definitions/diagnosticExecution",
|
|
440
|
+
"description": "整次调用的请求观察,独立于失败阶段的 requestState。"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"definitions": {
|
|
447
|
+
"id": {
|
|
448
|
+
"type": "string",
|
|
449
|
+
"pattern": "^(?=.*[1-9])\\d+$",
|
|
450
|
+
"description": "十进制正整数 ID 字符串;上游 number 仅接受安全整数,字符串不经浮点转换。"
|
|
451
|
+
},
|
|
452
|
+
"shopId": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"pattern": "^[1-9]\\d*$",
|
|
455
|
+
"description": "显式目标店铺 ID,输入仅正安全整数;成功输出为实际订单所属店铺。"
|
|
456
|
+
},
|
|
457
|
+
"orderNo": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"minLength": 1,
|
|
460
|
+
"pattern": "^[^\\s\\u0000-\\u001f\\u007f-\\u009f]+$(?![\\s\\S])",
|
|
461
|
+
"maxLength": 128,
|
|
462
|
+
"description": "原始交易订单号,最多 128 字符,不含空白或控制字符;不按前缀或位数判断有效性,不改写原值。"
|
|
463
|
+
},
|
|
464
|
+
"time": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"format": "beijing-date-time-ms",
|
|
467
|
+
"$comment": "upstream-time:text",
|
|
468
|
+
"description": "固定北京时间 YYYY-MM-DD HH:mm:ss.SSS;来源为文本且仅秒精度,拒绝非零毫秒、非法日历、时区及数字时间戳。"
|
|
469
|
+
},
|
|
470
|
+
"timeRange": {
|
|
471
|
+
"type": "object",
|
|
472
|
+
"additionalProperties": false,
|
|
473
|
+
"properties": {
|
|
474
|
+
"start": {
|
|
475
|
+
"$ref": "#/definitions/time"
|
|
476
|
+
},
|
|
477
|
+
"end": {
|
|
478
|
+
"$ref": "#/definitions/time"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
"required": [
|
|
482
|
+
"start",
|
|
483
|
+
"end"
|
|
484
|
+
],
|
|
485
|
+
"description": "北京时间区间,按 input.timeField 解释为创建或支付时间。结束严格晚于开始,初始分片最多三日历月,相邻分片共享端点;未核实端点开闭。"
|
|
486
|
+
},
|
|
487
|
+
"money": {
|
|
488
|
+
"type": "string",
|
|
489
|
+
"pattern": "^\\d+\\.\\d{2}$",
|
|
490
|
+
"$comment": "upstream-money:yuan",
|
|
491
|
+
"description": "元金额字符串,无损补齐两位,不再次除以100;不接受负数、科学计数法、非零额外小数位或非字符串。不计算汇总;本命令默认以 CNY 计价,不新增币种字段或作汇率换算。"
|
|
492
|
+
},
|
|
493
|
+
"order": {
|
|
494
|
+
"type": "object",
|
|
495
|
+
"additionalProperties": false,
|
|
496
|
+
"properties": {
|
|
497
|
+
"orderNo": {
|
|
498
|
+
"$ref": "#/definitions/nonemptyText",
|
|
499
|
+
"description": "交易订单号,不是退款单号或支付流水号。"
|
|
500
|
+
},
|
|
501
|
+
"kdtId": {
|
|
502
|
+
"$ref": "#/definitions/shopId"
|
|
503
|
+
},
|
|
504
|
+
"rootKdtId": {
|
|
505
|
+
"$ref": "#/definitions/id",
|
|
506
|
+
"description": "订单所属总部 ID;返回时须等于本次 context.hq,不以本地值补造。"
|
|
507
|
+
},
|
|
508
|
+
"status": {
|
|
509
|
+
"$ref": "#/definitions/nonemptyText",
|
|
510
|
+
"description": "状态字符串。WAIT_BUYER_PAY=待支付,TRADE_PAID=支付成功瞬态,WAIT_CONFIRM=待确认,WAIT_SELLER_SEND_GOODS=待发货,WAIT_BUYER_CONFIRM_GOODS=待收货,TRADE_SUCCESS=交易完成,TRADE_CLOSED=关闭;未来非空字符串原样保留,不编造标签。"
|
|
511
|
+
},
|
|
512
|
+
"statusText": {
|
|
513
|
+
"type": "string",
|
|
514
|
+
"description": "上游展示状态文案,不反推状态码。"
|
|
515
|
+
},
|
|
516
|
+
"type": {
|
|
517
|
+
"type": "integer",
|
|
518
|
+
"minimum": -9007199254740991,
|
|
519
|
+
"maximum": 9007199254740991,
|
|
520
|
+
"description": "业务类型。0普通、1老送礼、2代付、3分销供货、4赠品、5心愿、6二维码、7合并付货款、8一分钱实名、9品鉴、10拼团、15返利、35酒店、40外卖、41堂食、46外卖买单、51全员开店、61线下收银、71美业预约、72美业服务、75知识付费、81礼品卡、85爱逛直播、89样品、100批发。未知安全整数保留。"
|
|
521
|
+
},
|
|
522
|
+
"createdAt": {
|
|
523
|
+
"$ref": "#/definitions/time"
|
|
524
|
+
},
|
|
525
|
+
"paidAt": {
|
|
526
|
+
"$ref": "#/definitions/time",
|
|
527
|
+
"description": "可选订单支付时间,北京时间三位毫秒;未取得时省略,不证明未支付。不保证首笔、末笔或结清时间,也不是逐笔资金事件。"
|
|
528
|
+
},
|
|
529
|
+
"isPaid": {
|
|
530
|
+
"type": "boolean",
|
|
531
|
+
"description": "可选订单支付标记;true 表示已支付,false 表示未支付,未知时省略。不从状态、金额或支付时间推算。"
|
|
532
|
+
},
|
|
533
|
+
"updatedAt": {
|
|
534
|
+
"$ref": "#/definitions/time",
|
|
535
|
+
"description": "可选更新时间,不是快照版本。"
|
|
536
|
+
},
|
|
537
|
+
"shopName": {
|
|
538
|
+
"type": "string",
|
|
539
|
+
"description": "订单记录的店铺名,不作店铺归属锚点。"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"required": [
|
|
543
|
+
"orderNo",
|
|
544
|
+
"kdtId",
|
|
545
|
+
"status",
|
|
546
|
+
"type",
|
|
547
|
+
"createdAt"
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
"orderItem": {
|
|
551
|
+
"type": "object",
|
|
552
|
+
"additionalProperties": false,
|
|
553
|
+
"properties": {
|
|
554
|
+
"oid": {
|
|
555
|
+
"$ref": "#/definitions/nonemptyText",
|
|
556
|
+
"description": "交易明细 ID,不是商品或 SKU ID。"
|
|
557
|
+
},
|
|
558
|
+
"title": {
|
|
559
|
+
"type": "string",
|
|
560
|
+
"description": "成交商品名称,允许空文本。"
|
|
561
|
+
},
|
|
562
|
+
"quantity": {
|
|
563
|
+
"type": "integer",
|
|
564
|
+
"minimum": 0,
|
|
565
|
+
"maximum": 9007199254740991,
|
|
566
|
+
"description": "本交易行商品数量,不是库存。"
|
|
567
|
+
},
|
|
568
|
+
"item_id": {
|
|
569
|
+
"$ref": "#/definitions/id",
|
|
570
|
+
"description": "OneID商品 ID;同一商品在分店及渠道间保持一致。"
|
|
571
|
+
},
|
|
572
|
+
"sku_id": {
|
|
573
|
+
"$ref": "#/definitions/sku_id",
|
|
574
|
+
"description": "OneID商品规格 ID,与所属商品一起解释。"
|
|
575
|
+
},
|
|
576
|
+
"channel_item_id": {
|
|
577
|
+
"$ref": "#/definitions/id",
|
|
578
|
+
"description": "历史交易的店铺渠道商品 ID,不能代替OneID。"
|
|
579
|
+
},
|
|
580
|
+
"channel_sku_id": {
|
|
581
|
+
"$ref": "#/definitions/sku_id",
|
|
582
|
+
"description": "历史交易的店铺渠道规格 ID,不能代替统一规格。"
|
|
583
|
+
},
|
|
584
|
+
"unitPrice": {
|
|
585
|
+
"$ref": "#/definitions/money"
|
|
586
|
+
},
|
|
587
|
+
"payment": {
|
|
588
|
+
"$ref": "#/definitions/money",
|
|
589
|
+
"description": "交易明细分摊应付/支付价格,不推导到账。"
|
|
590
|
+
},
|
|
591
|
+
"isPresent": {
|
|
592
|
+
"type": "boolean",
|
|
593
|
+
"description": "true 为赠品,false 为非赠品,缺失不补 false。"
|
|
594
|
+
},
|
|
595
|
+
"isCombo": {
|
|
596
|
+
"type": "boolean",
|
|
597
|
+
"description": "true 是套餐主行,false 不是;不表示已取得全部套餐子品。"
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
"required": [
|
|
601
|
+
"oid",
|
|
602
|
+
"title",
|
|
603
|
+
"quantity"
|
|
604
|
+
]
|
|
605
|
+
},
|
|
606
|
+
"payment": {
|
|
607
|
+
"type": "object",
|
|
608
|
+
"additionalProperties": false,
|
|
609
|
+
"properties": {
|
|
610
|
+
"totalFee": {
|
|
611
|
+
"$ref": "#/definitions/money",
|
|
612
|
+
"description": "商品总价,元;不从其他金额推算。"
|
|
613
|
+
},
|
|
614
|
+
"postFee": {
|
|
615
|
+
"$ref": "#/definitions/money",
|
|
616
|
+
"description": "运费,元。"
|
|
617
|
+
},
|
|
618
|
+
"payment": {
|
|
619
|
+
"$ref": "#/definitions/money",
|
|
620
|
+
"description": "列表返回的应付/支付价格,元;不补成详情 realPayment,不推导到账、净收入或退款。"
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
"required": [
|
|
624
|
+
"totalFee",
|
|
625
|
+
"postFee",
|
|
626
|
+
"payment"
|
|
627
|
+
]
|
|
628
|
+
},
|
|
629
|
+
"buyer": {
|
|
630
|
+
"type": "object",
|
|
631
|
+
"additionalProperties": false,
|
|
632
|
+
"properties": {
|
|
633
|
+
"yzOpenId": {
|
|
634
|
+
"type": "string",
|
|
635
|
+
"description": "有赞客户开放标识,不是手机号、微信 openId 或员工 ID。"
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
"required": [],
|
|
639
|
+
"minProperties": 1
|
|
640
|
+
},
|
|
641
|
+
"address": {
|
|
642
|
+
"type": "object",
|
|
643
|
+
"additionalProperties": false,
|
|
644
|
+
"properties": {
|
|
645
|
+
"receiverName": {
|
|
646
|
+
"type": "string",
|
|
647
|
+
"description": "接口实际返回的收货人姓名,不主动解密。"
|
|
648
|
+
},
|
|
649
|
+
"receiverPhone": {
|
|
650
|
+
"type": "string",
|
|
651
|
+
"description": "接口实际返回的收货电话,不保证明文。"
|
|
652
|
+
},
|
|
653
|
+
"province": {
|
|
654
|
+
"type": "string",
|
|
655
|
+
"description": "省。"
|
|
656
|
+
},
|
|
657
|
+
"city": {
|
|
658
|
+
"type": "string",
|
|
659
|
+
"description": "市。"
|
|
660
|
+
},
|
|
661
|
+
"district": {
|
|
662
|
+
"type": "string",
|
|
663
|
+
"description": "区。"
|
|
664
|
+
},
|
|
665
|
+
"address": {
|
|
666
|
+
"type": "string",
|
|
667
|
+
"description": "订单收货要求中的详细地址,不是运单实时目的地。"
|
|
668
|
+
},
|
|
669
|
+
"postalCode": {
|
|
670
|
+
"type": "string",
|
|
671
|
+
"description": "邮政编码。"
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"required": [],
|
|
675
|
+
"minProperties": 1
|
|
676
|
+
},
|
|
677
|
+
"remark": {
|
|
678
|
+
"type": "object",
|
|
679
|
+
"additionalProperties": false,
|
|
680
|
+
"properties": {
|
|
681
|
+
"buyerMessage": {
|
|
682
|
+
"type": "string",
|
|
683
|
+
"description": "买家留言,空文本保留。"
|
|
684
|
+
},
|
|
685
|
+
"tradeMemo": {
|
|
686
|
+
"type": "string",
|
|
687
|
+
"description": "商家备注,空文本保留。"
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
"required": [],
|
|
691
|
+
"minProperties": 1
|
|
692
|
+
},
|
|
693
|
+
"source": {
|
|
694
|
+
"type": "object",
|
|
695
|
+
"additionalProperties": false,
|
|
696
|
+
"properties": {
|
|
697
|
+
"isOfflineOrder": {
|
|
698
|
+
"type": "boolean",
|
|
699
|
+
"description": "true 是线下来源,false 是非线下来源。"
|
|
700
|
+
},
|
|
701
|
+
"bookKey": {
|
|
702
|
+
"type": "string",
|
|
703
|
+
"description": "订单识别码,与交易订单号不同。"
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
"required": [],
|
|
707
|
+
"minProperties": 1
|
|
708
|
+
},
|
|
709
|
+
"aftersale": {
|
|
710
|
+
"type": "object",
|
|
711
|
+
"additionalProperties": false,
|
|
712
|
+
"properties": {
|
|
713
|
+
"refundState": {
|
|
714
|
+
"type": "integer",
|
|
715
|
+
"minimum": -9007199254740991,
|
|
716
|
+
"maximum": 9007199254740991,
|
|
717
|
+
"description": "订单退款金额状态:0未退款、1部分退款中瞬态、2部分退款成功、11全额退款中瞬态、12全额退款成功;未知安全整数保留,不表示售后处理状态。"
|
|
718
|
+
}
|
|
719
|
+
},
|
|
720
|
+
"required": [
|
|
721
|
+
"refundState"
|
|
722
|
+
]
|
|
723
|
+
},
|
|
724
|
+
"fulfillment": {
|
|
725
|
+
"type": "object",
|
|
726
|
+
"additionalProperties": false,
|
|
727
|
+
"properties": {
|
|
728
|
+
"deliveryType": {
|
|
729
|
+
"type": "string",
|
|
730
|
+
"enum": [
|
|
731
|
+
"EXPRESS",
|
|
732
|
+
"SELF_FETCH",
|
|
733
|
+
"LOCAL_DELIVERY",
|
|
734
|
+
"VIRTUAL"
|
|
735
|
+
],
|
|
736
|
+
"description": "EXPRESS=快递、SELF_FETCH=自提、LOCAL_DELIVERY=同城配送、VIRTUAL=无需发货;无法识别的配送方式整体失败。"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
"required": [
|
|
740
|
+
"deliveryType"
|
|
741
|
+
]
|
|
742
|
+
},
|
|
743
|
+
"orderRow": {
|
|
744
|
+
"type": "object",
|
|
745
|
+
"additionalProperties": false,
|
|
746
|
+
"properties": {
|
|
747
|
+
"order": {
|
|
748
|
+
"$ref": "#/definitions/order"
|
|
749
|
+
},
|
|
750
|
+
"items": {
|
|
751
|
+
"type": "array",
|
|
752
|
+
"items": {
|
|
753
|
+
"$ref": "#/definitions/orderItem"
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
"payment": {
|
|
757
|
+
"$ref": "#/definitions/payment"
|
|
758
|
+
},
|
|
759
|
+
"buyer": {
|
|
760
|
+
"$ref": "#/definitions/buyer"
|
|
761
|
+
},
|
|
762
|
+
"address": {
|
|
763
|
+
"$ref": "#/definitions/address"
|
|
764
|
+
},
|
|
765
|
+
"remark": {
|
|
766
|
+
"$ref": "#/definitions/remark"
|
|
767
|
+
},
|
|
768
|
+
"source": {
|
|
769
|
+
"$ref": "#/definitions/source"
|
|
770
|
+
},
|
|
771
|
+
"aftersale": {
|
|
772
|
+
"$ref": "#/definitions/aftersale"
|
|
773
|
+
},
|
|
774
|
+
"fulfillment": {
|
|
775
|
+
"$ref": "#/definitions/fulfillment"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
"required": [
|
|
779
|
+
"order"
|
|
780
|
+
]
|
|
781
|
+
},
|
|
782
|
+
"pagination": {
|
|
783
|
+
"type": "object",
|
|
784
|
+
"additionalProperties": false,
|
|
785
|
+
"required": [
|
|
786
|
+
"stopReason"
|
|
787
|
+
],
|
|
788
|
+
"properties": {
|
|
789
|
+
"stopReason": {
|
|
790
|
+
"type": "string",
|
|
791
|
+
"enum": [
|
|
792
|
+
"range_exhausted",
|
|
793
|
+
"max_items",
|
|
794
|
+
"max_requests",
|
|
795
|
+
"density_limit",
|
|
796
|
+
"page_window"
|
|
797
|
+
],
|
|
798
|
+
"description": "range_exhausted=本次声明范围队列走完;max_items=剩余结果预算不足下一整页;max_requests=请求预算耗尽;density_limit=最小时间片仍超过页窗口;page_window=翻页中总数超过当前页窗口。"
|
|
799
|
+
},
|
|
800
|
+
"pendingRanges": {
|
|
801
|
+
"type": "array",
|
|
802
|
+
"minItems": 1,
|
|
803
|
+
"maxItems": 512,
|
|
804
|
+
"items": {
|
|
805
|
+
"$ref": "#/definitions/pendingRange"
|
|
806
|
+
},
|
|
807
|
+
"description": "仅在提前成功停止时返回的未完成范围;不是稳定恢复游标。"
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
"allOf": [
|
|
811
|
+
{
|
|
812
|
+
"if": {
|
|
813
|
+
"properties": {
|
|
814
|
+
"stopReason": {
|
|
815
|
+
"const": "range_exhausted"
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"required": [
|
|
819
|
+
"stopReason"
|
|
820
|
+
]
|
|
821
|
+
},
|
|
822
|
+
"then": {
|
|
823
|
+
"properties": {
|
|
824
|
+
"pendingRanges": false
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"if": {
|
|
830
|
+
"properties": {
|
|
831
|
+
"stopReason": {
|
|
832
|
+
"enum": [
|
|
833
|
+
"max_items",
|
|
834
|
+
"max_requests",
|
|
835
|
+
"density_limit",
|
|
836
|
+
"page_window"
|
|
837
|
+
]
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
"required": [
|
|
841
|
+
"stopReason"
|
|
842
|
+
]
|
|
843
|
+
},
|
|
844
|
+
"then": {
|
|
845
|
+
"required": [
|
|
846
|
+
"pendingRanges"
|
|
847
|
+
],
|
|
848
|
+
"properties": {
|
|
849
|
+
"pendingRanges": true
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
]
|
|
854
|
+
},
|
|
855
|
+
"bindingRequest": {
|
|
856
|
+
"type": "object",
|
|
857
|
+
"additionalProperties": false,
|
|
858
|
+
"properties": {
|
|
859
|
+
"method": {
|
|
860
|
+
"const": "POST"
|
|
861
|
+
},
|
|
862
|
+
"path": {
|
|
863
|
+
"const": "youzan.shop.basic.get/3.0.0"
|
|
864
|
+
},
|
|
865
|
+
"body": {
|
|
866
|
+
"type": "object",
|
|
867
|
+
"additionalProperties": false,
|
|
868
|
+
"properties": {},
|
|
869
|
+
"required": []
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
"required": [
|
|
873
|
+
"method",
|
|
874
|
+
"path",
|
|
875
|
+
"body"
|
|
876
|
+
]
|
|
877
|
+
},
|
|
878
|
+
"listRequest": {
|
|
879
|
+
"type": "object",
|
|
880
|
+
"additionalProperties": false,
|
|
881
|
+
"properties": {
|
|
882
|
+
"method": {
|
|
883
|
+
"const": "POST"
|
|
884
|
+
},
|
|
885
|
+
"path": {
|
|
886
|
+
"const": "youzan.trades.sold.get/4.0.4"
|
|
887
|
+
},
|
|
888
|
+
"body": {
|
|
889
|
+
"type": "object",
|
|
890
|
+
"additionalProperties": false,
|
|
891
|
+
"properties": {
|
|
892
|
+
"node_kdt_id": {
|
|
893
|
+
"type": "integer"
|
|
894
|
+
},
|
|
895
|
+
"page_no": {
|
|
896
|
+
"type": "integer"
|
|
897
|
+
},
|
|
898
|
+
"page_size": {
|
|
899
|
+
"type": "integer"
|
|
900
|
+
},
|
|
901
|
+
"yz_open_id": {
|
|
902
|
+
"type": "string",
|
|
903
|
+
"minLength": 1,
|
|
904
|
+
"description": "客户统一标识,非员工ID或手机号,非空文本。"
|
|
905
|
+
},
|
|
906
|
+
"status": {
|
|
907
|
+
"type": "string",
|
|
908
|
+
"minLength": 1,
|
|
909
|
+
"enum": [
|
|
910
|
+
"WAIT_BUYER_PAY",
|
|
911
|
+
"WAIT_SELLER_SEND_GOODS",
|
|
912
|
+
"WAIT_BUYER_CONFIRM_GOODS",
|
|
913
|
+
"TRADE_SUCCESS",
|
|
914
|
+
"TRADE_CLOSED",
|
|
915
|
+
"TRADE_REFUND"
|
|
916
|
+
],
|
|
917
|
+
"description": "WAIT_BUYER_PAY=等待买家付款,含适用预售定金或尾款;WAIT_SELLER_SEND_GOODS=等待卖家发货;WAIT_BUYER_CONFIRM_GOODS=等待买家确认收货;TRADE_SUCCESS=交易完成;TRADE_CLOSED=交易关闭;TRADE_REFUND=退款中,仅搜索条件,不是已知交易状态响应值。请求字符串,与响应字典分开,未知值拒绝。"
|
|
918
|
+
},
|
|
919
|
+
"type": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
"minLength": 1,
|
|
922
|
+
"enum": [
|
|
923
|
+
"NORMAL",
|
|
924
|
+
"PEERPAY",
|
|
925
|
+
"GIFT",
|
|
926
|
+
"FX_CAIGOUDAN",
|
|
927
|
+
"PRESENT",
|
|
928
|
+
"WISH",
|
|
929
|
+
"QRCODE",
|
|
930
|
+
"QRCODE_3RD",
|
|
931
|
+
"FX_MERGED",
|
|
932
|
+
"VERIFIED",
|
|
933
|
+
"PINJIAN",
|
|
934
|
+
"REBATE",
|
|
935
|
+
"FX_QUANYUANDIAN",
|
|
936
|
+
"FX_DEPOSIT",
|
|
937
|
+
"PF",
|
|
938
|
+
"GROUP",
|
|
939
|
+
"HOTEL",
|
|
940
|
+
"TAKE_AWAY",
|
|
941
|
+
"CATERING_OFFLINE",
|
|
942
|
+
"CATERING_QRCODE",
|
|
943
|
+
"BEAUTY_APPOINTMENT",
|
|
944
|
+
"BEAUTY_SERVICE",
|
|
945
|
+
"KNOWLEDGE_PAY",
|
|
946
|
+
"GIFT_CARD"
|
|
947
|
+
],
|
|
948
|
+
"description": "NORMAL=普通订单;PEERPAY=代付;GIFT=我要送人;FX_CAIGOUDAN=分销供货单;PRESENT=赠品;WISH=心愿单;QRCODE=二维码订单;QRCODE_3RD=线下收银台;FX_MERGED=合并付货款;VERIFIED=1分钱实名认证;PINJIAN=品鉴;REBATE=返利;FX_QUANYUANDIAN=全员开店;FX_DEPOSIT=分销保证金;PF=批发;GROUP=拼团;HOTEL=酒店;TAKE_AWAY=外卖;CATERING_OFFLINE=堂食点餐;CATERING_QRCODE=外卖买单;BEAUTY_APPOINTMENT=美业预约;BEAUTY_SERVICE=美业服务;KNOWLEDGE_PAY=知识付费;GIFT_CARD=礼品卡。请求字符串,与响应字典分开,未知值拒绝。"
|
|
949
|
+
},
|
|
950
|
+
"goods_id": {
|
|
951
|
+
"type": "integer",
|
|
952
|
+
"minimum": 1,
|
|
953
|
+
"maximum": 9007199254740991
|
|
954
|
+
},
|
|
955
|
+
"goods_title": {
|
|
956
|
+
"type": "string",
|
|
957
|
+
"minLength": 1,
|
|
958
|
+
"maxLength": 200,
|
|
959
|
+
"description": "商品名称模糊搜索,最长200字符为CLI预算。"
|
|
960
|
+
},
|
|
961
|
+
"receiver_phone": {
|
|
962
|
+
"type": "string",
|
|
963
|
+
"minLength": 1,
|
|
964
|
+
"maxLength": 20,
|
|
965
|
+
"description": "收货人电话,非买家手机号,最长20字符。"
|
|
966
|
+
},
|
|
967
|
+
"receiver_name": {
|
|
968
|
+
"type": "string",
|
|
969
|
+
"minLength": 1,
|
|
970
|
+
"maxLength": 50,
|
|
971
|
+
"description": "收货人姓名,最长50字符。"
|
|
972
|
+
},
|
|
973
|
+
"express_type": {
|
|
974
|
+
"type": "string",
|
|
975
|
+
"minLength": 1,
|
|
976
|
+
"enum": [
|
|
977
|
+
"EXPRESS",
|
|
978
|
+
"SELF_FETCH",
|
|
979
|
+
"LOCAL_DELIVERY"
|
|
980
|
+
],
|
|
981
|
+
"description": "EXPRESS=快递发货;SELF_FETCH=到店自提;LOCAL_DELIVERY=同城配送。请求字符串,与响应字典分开,未知值拒绝。"
|
|
982
|
+
},
|
|
983
|
+
"keywords": {
|
|
984
|
+
"type": "string",
|
|
985
|
+
"minLength": 1,
|
|
986
|
+
"maxLength": 200,
|
|
987
|
+
"description": "订单号、收货人手机或后四位,最长200字符为CLI预算。"
|
|
988
|
+
},
|
|
989
|
+
"start_created": {
|
|
990
|
+
"type": "string",
|
|
991
|
+
"format": "beijing-date-time",
|
|
992
|
+
"description": "秒精度北京时间文本。"
|
|
993
|
+
},
|
|
994
|
+
"end_created": {
|
|
995
|
+
"type": "string",
|
|
996
|
+
"format": "beijing-date-time",
|
|
997
|
+
"description": "秒精度北京时间文本。"
|
|
998
|
+
},
|
|
999
|
+
"start_pay": {
|
|
1000
|
+
"type": "string",
|
|
1001
|
+
"format": "beijing-date-time",
|
|
1002
|
+
"description": "支付轴开始,秒精度北京时间文本。"
|
|
1003
|
+
},
|
|
1004
|
+
"end_pay": {
|
|
1005
|
+
"type": "string",
|
|
1006
|
+
"format": "beijing-date-time",
|
|
1007
|
+
"description": "支付轴结束,秒精度北京时间文本。"
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
"required": [
|
|
1011
|
+
"node_kdt_id",
|
|
1012
|
+
"page_no",
|
|
1013
|
+
"page_size"
|
|
1014
|
+
],
|
|
1015
|
+
"oneOf": [
|
|
1016
|
+
{
|
|
1017
|
+
"properties": {
|
|
1018
|
+
"start_created": true,
|
|
1019
|
+
"end_created": true,
|
|
1020
|
+
"start_pay": false,
|
|
1021
|
+
"end_pay": false
|
|
1022
|
+
},
|
|
1023
|
+
"required": [
|
|
1024
|
+
"start_created",
|
|
1025
|
+
"end_created"
|
|
1026
|
+
]
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"properties": {
|
|
1030
|
+
"start_pay": true,
|
|
1031
|
+
"end_pay": true,
|
|
1032
|
+
"start_created": false,
|
|
1033
|
+
"end_created": false
|
|
1034
|
+
},
|
|
1035
|
+
"required": [
|
|
1036
|
+
"start_pay",
|
|
1037
|
+
"end_pay"
|
|
1038
|
+
]
|
|
1039
|
+
}
|
|
1040
|
+
]
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
"required": [
|
|
1044
|
+
"method",
|
|
1045
|
+
"path",
|
|
1046
|
+
"body"
|
|
1047
|
+
]
|
|
1048
|
+
},
|
|
1049
|
+
"nonemptyText": {
|
|
1050
|
+
"type": "string",
|
|
1051
|
+
"minLength": 1,
|
|
1052
|
+
"pattern": "\\S",
|
|
1053
|
+
"description": "非空文本标识或状态;保留业务空格,不解密。"
|
|
1054
|
+
},
|
|
1055
|
+
"sku_id": {
|
|
1056
|
+
"type": "string",
|
|
1057
|
+
"pattern": "^\\d+$",
|
|
1058
|
+
"description": "规格 ID 字符串,可为 0;统一规格与渠道规格不可互换。"
|
|
1059
|
+
},
|
|
1060
|
+
"pendingRange": {
|
|
1061
|
+
"type": "object",
|
|
1062
|
+
"additionalProperties": false,
|
|
1063
|
+
"properties": {
|
|
1064
|
+
"start": {
|
|
1065
|
+
"$ref": "#/definitions/time"
|
|
1066
|
+
},
|
|
1067
|
+
"end": {
|
|
1068
|
+
"$ref": "#/definitions/time"
|
|
1069
|
+
},
|
|
1070
|
+
"pageNo": {
|
|
1071
|
+
"type": "integer",
|
|
1072
|
+
"minimum": 1,
|
|
1073
|
+
"maximum": 100,
|
|
1074
|
+
"description": "下一未读页;密度或分页窗口停止时为1,须缩小范围重新读取,不是恢复游标。"
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
"required": [
|
|
1078
|
+
"start",
|
|
1079
|
+
"end",
|
|
1080
|
+
"pageNo"
|
|
1081
|
+
]
|
|
1082
|
+
},
|
|
1083
|
+
"diagnosticExpected": {
|
|
1084
|
+
"type": "object",
|
|
1085
|
+
"additionalProperties": false,
|
|
1086
|
+
"required": [],
|
|
1087
|
+
"properties": {
|
|
1088
|
+
"type": {
|
|
1089
|
+
"anyOf": [
|
|
1090
|
+
{
|
|
1091
|
+
"type": "string",
|
|
1092
|
+
"description": "预期的 JSON 类型。"
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"type": "array",
|
|
1096
|
+
"items": {
|
|
1097
|
+
"type": "string",
|
|
1098
|
+
"description": "预期的 JSON 类型。"
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
],
|
|
1102
|
+
"description": "同版模型允许的类型。"
|
|
1103
|
+
},
|
|
1104
|
+
"enum": {
|
|
1105
|
+
"type": "array",
|
|
1106
|
+
"items": {
|
|
1107
|
+
"anyOf": [
|
|
1108
|
+
{
|
|
1109
|
+
"type": "string"
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"type": "number"
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"type": "boolean"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"type": "null"
|
|
1119
|
+
}
|
|
1120
|
+
],
|
|
1121
|
+
"description": "契约声明的静态标量约束。"
|
|
1122
|
+
},
|
|
1123
|
+
"description": "同版模型允许的静态值。"
|
|
1124
|
+
},
|
|
1125
|
+
"const": {
|
|
1126
|
+
"anyOf": [
|
|
1127
|
+
{
|
|
1128
|
+
"type": "string"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"type": "number"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"type": "boolean"
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"type": "null"
|
|
1138
|
+
}
|
|
1139
|
+
],
|
|
1140
|
+
"description": "契约声明的静态标量约束。"
|
|
1141
|
+
},
|
|
1142
|
+
"minimum": {
|
|
1143
|
+
"type": "number",
|
|
1144
|
+
"description": "包含的最小值。"
|
|
1145
|
+
},
|
|
1146
|
+
"maximum": {
|
|
1147
|
+
"type": "number",
|
|
1148
|
+
"description": "包含的最大值。"
|
|
1149
|
+
},
|
|
1150
|
+
"exclusiveMinimum": {
|
|
1151
|
+
"type": "number",
|
|
1152
|
+
"description": "不包含的最小值。"
|
|
1153
|
+
},
|
|
1154
|
+
"exclusiveMaximum": {
|
|
1155
|
+
"type": "number",
|
|
1156
|
+
"description": "不包含的最大值。"
|
|
1157
|
+
},
|
|
1158
|
+
"minLength": {
|
|
1159
|
+
"type": "integer",
|
|
1160
|
+
"description": "最少字符数。"
|
|
1161
|
+
},
|
|
1162
|
+
"maxLength": {
|
|
1163
|
+
"type": "integer",
|
|
1164
|
+
"description": "最多字符数。"
|
|
1165
|
+
},
|
|
1166
|
+
"minItems": {
|
|
1167
|
+
"type": "integer",
|
|
1168
|
+
"description": "最少元素数。"
|
|
1169
|
+
},
|
|
1170
|
+
"maxItems": {
|
|
1171
|
+
"type": "integer",
|
|
1172
|
+
"description": "最多元素数。"
|
|
1173
|
+
},
|
|
1174
|
+
"format": {
|
|
1175
|
+
"type": "string",
|
|
1176
|
+
"description": "同版模型声明的格式。"
|
|
1177
|
+
},
|
|
1178
|
+
"pattern": {
|
|
1179
|
+
"type": "string",
|
|
1180
|
+
"description": "同版模型声明的字符约束。"
|
|
1181
|
+
},
|
|
1182
|
+
"additionalProperties": {
|
|
1183
|
+
"const": false,
|
|
1184
|
+
"description": "对象拒绝契约以外的属性。"
|
|
1185
|
+
},
|
|
1186
|
+
"contains": {
|
|
1187
|
+
"type": "object",
|
|
1188
|
+
"additionalProperties": false,
|
|
1189
|
+
"required": [
|
|
1190
|
+
"const"
|
|
1191
|
+
],
|
|
1192
|
+
"properties": {
|
|
1193
|
+
"const": {
|
|
1194
|
+
"anyOf": [
|
|
1195
|
+
{
|
|
1196
|
+
"type": "string"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"type": "number"
|
|
1200
|
+
},
|
|
1201
|
+
{
|
|
1202
|
+
"type": "boolean"
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"type": "null"
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
"description": "契约声明的静态标量约束。"
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
"items": {
|
|
1213
|
+
"type": "object",
|
|
1214
|
+
"additionalProperties": false,
|
|
1215
|
+
"required": [
|
|
1216
|
+
"enum"
|
|
1217
|
+
],
|
|
1218
|
+
"properties": {
|
|
1219
|
+
"enum": {
|
|
1220
|
+
"type": "array",
|
|
1221
|
+
"items": {
|
|
1222
|
+
"anyOf": [
|
|
1223
|
+
{
|
|
1224
|
+
"type": "string"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"type": "number"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"type": "boolean"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"type": "null"
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
1236
|
+
"description": "契约声明的静态标量约束。"
|
|
1237
|
+
},
|
|
1238
|
+
"description": "元素允许的静态值。"
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
"diagnosticIssue": {
|
|
1245
|
+
"type": "object",
|
|
1246
|
+
"additionalProperties": false,
|
|
1247
|
+
"required": [
|
|
1248
|
+
"source",
|
|
1249
|
+
"reason"
|
|
1250
|
+
],
|
|
1251
|
+
"properties": {
|
|
1252
|
+
"source": {
|
|
1253
|
+
"enum": [
|
|
1254
|
+
"argv",
|
|
1255
|
+
"input",
|
|
1256
|
+
"context",
|
|
1257
|
+
"output",
|
|
1258
|
+
"preview"
|
|
1259
|
+
],
|
|
1260
|
+
"description": "问题所属的参数、输入、上下文、结果或预览模型。"
|
|
1261
|
+
},
|
|
1262
|
+
"path": {
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"description": "对应模型中的 JSON Pointer;不含原始输入或动态字典键。"
|
|
1265
|
+
},
|
|
1266
|
+
"option": {
|
|
1267
|
+
"type": "string",
|
|
1268
|
+
"description": "可定位时给出的已注册 CLI 选项。"
|
|
1269
|
+
},
|
|
1270
|
+
"reason": {
|
|
1271
|
+
"enum": [
|
|
1272
|
+
"required",
|
|
1273
|
+
"invalid_type",
|
|
1274
|
+
"invalid_choice",
|
|
1275
|
+
"out_of_range",
|
|
1276
|
+
"invalid_format",
|
|
1277
|
+
"conditional_required",
|
|
1278
|
+
"constraint",
|
|
1279
|
+
"unexpected_property",
|
|
1280
|
+
"unknown_option",
|
|
1281
|
+
"unknown_command",
|
|
1282
|
+
"excess_arguments",
|
|
1283
|
+
"missing_value"
|
|
1284
|
+
],
|
|
1285
|
+
"description": "字段违反的约束类型,原始值不回显。"
|
|
1286
|
+
},
|
|
1287
|
+
"expected": {
|
|
1288
|
+
"$ref": "#/definitions/diagnosticExpected",
|
|
1289
|
+
"description": "同版契约的静态预期。"
|
|
1290
|
+
},
|
|
1291
|
+
"relatedPaths": {
|
|
1292
|
+
"type": "array",
|
|
1293
|
+
"items": {
|
|
1294
|
+
"type": "string",
|
|
1295
|
+
"description": "关联字段的 JSON Pointer。"
|
|
1296
|
+
},
|
|
1297
|
+
"description": "触发条件约束的关联字段。"
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
"diagnosticRecovery": {
|
|
1302
|
+
"type": "object",
|
|
1303
|
+
"additionalProperties": false,
|
|
1304
|
+
"required": [
|
|
1305
|
+
"action",
|
|
1306
|
+
"automaticBusinessRetry"
|
|
1307
|
+
],
|
|
1308
|
+
"properties": {
|
|
1309
|
+
"action": {
|
|
1310
|
+
"enum": [
|
|
1311
|
+
"correct_input",
|
|
1312
|
+
"complete_authentication",
|
|
1313
|
+
"request_access_review",
|
|
1314
|
+
"stop_and_inspect"
|
|
1315
|
+
],
|
|
1316
|
+
"description": "依次表示修正本地输入、补认证、核对权限或停止核查;仅是说明,不执行操作或授予权限。"
|
|
1317
|
+
},
|
|
1318
|
+
"automaticBusinessRetry": {
|
|
1319
|
+
"const": false,
|
|
1320
|
+
"description": "不据此自动重放业务请求。"
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
"diagnosticExecution": {
|
|
1325
|
+
"type": "object",
|
|
1326
|
+
"additionalProperties": false,
|
|
1327
|
+
"required": [
|
|
1328
|
+
"requestState",
|
|
1329
|
+
"coverage",
|
|
1330
|
+
"observedAttempts"
|
|
1331
|
+
],
|
|
1332
|
+
"properties": {
|
|
1333
|
+
"requestState": {
|
|
1334
|
+
"enum": [
|
|
1335
|
+
"not_sent",
|
|
1336
|
+
"sent",
|
|
1337
|
+
"unknown"
|
|
1338
|
+
],
|
|
1339
|
+
"description": "整次调用尚未发送、已有发送记录或无法排除未知请求;不代表业务完成。"
|
|
1340
|
+
},
|
|
1341
|
+
"coverage": {
|
|
1342
|
+
"enum": [
|
|
1343
|
+
"complete",
|
|
1344
|
+
"partial"
|
|
1345
|
+
],
|
|
1346
|
+
"description": "请求观察覆盖全部已接入路径,或存在未观测路径;部分覆盖不能声明零请求。"
|
|
1347
|
+
},
|
|
1348
|
+
"observedAttempts": {
|
|
1349
|
+
"type": "integer",
|
|
1350
|
+
"minimum": 0,
|
|
1351
|
+
"maximum": 9007199254740991,
|
|
1352
|
+
"description": "本地已进入发送边界的观测次数下界,不是服务端执行次数。"
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1357
|
+
"modules": {
|
|
1358
|
+
"order": {
|
|
1359
|
+
"base": true,
|
|
1360
|
+
"upstreamPath": "full_order_info_list[].full_order_info.order_info",
|
|
1361
|
+
"required": true,
|
|
1362
|
+
"description": "订单锚点、状态、业务类型与时间。"
|
|
1363
|
+
},
|
|
1364
|
+
"items": {
|
|
1365
|
+
"base": false,
|
|
1366
|
+
"upstreamPath": "full_order_info_list[].full_order_info.orders",
|
|
1367
|
+
"required": false,
|
|
1368
|
+
"description": "交易商品行。"
|
|
1369
|
+
},
|
|
1370
|
+
"payment": {
|
|
1371
|
+
"base": false,
|
|
1372
|
+
"upstreamPath": "full_order_info_list[].full_order_info.pay_info",
|
|
1373
|
+
"required": false,
|
|
1374
|
+
"description": "列表金额有限视图。"
|
|
1375
|
+
},
|
|
1376
|
+
"buyer": {
|
|
1377
|
+
"base": false,
|
|
1378
|
+
"upstreamPath": "full_order_info_list[].full_order_info.buyer_info",
|
|
1379
|
+
"required": false,
|
|
1380
|
+
"description": "客户统一标识。"
|
|
1381
|
+
},
|
|
1382
|
+
"address": {
|
|
1383
|
+
"base": false,
|
|
1384
|
+
"upstreamPath": "full_order_info_list[].full_order_info.address_info",
|
|
1385
|
+
"required": false,
|
|
1386
|
+
"description": "订单收货要求。"
|
|
1387
|
+
},
|
|
1388
|
+
"remark": {
|
|
1389
|
+
"base": false,
|
|
1390
|
+
"upstreamPath": "full_order_info_list[].full_order_info.remark_info",
|
|
1391
|
+
"required": false,
|
|
1392
|
+
"description": "买家留言与商家备注。"
|
|
1393
|
+
},
|
|
1394
|
+
"source": {
|
|
1395
|
+
"base": false,
|
|
1396
|
+
"upstreamPath": "full_order_info_list[].full_order_info.source_info",
|
|
1397
|
+
"required": false,
|
|
1398
|
+
"description": "线下来源标记。"
|
|
1399
|
+
},
|
|
1400
|
+
"aftersale": {
|
|
1401
|
+
"base": false,
|
|
1402
|
+
"upstreamPath": "full_order_info_list[].full_order_info.order_info.refund_state",
|
|
1403
|
+
"required": false,
|
|
1404
|
+
"description": "有限退款状态摘要。"
|
|
1405
|
+
},
|
|
1406
|
+
"fulfillment": {
|
|
1407
|
+
"base": false,
|
|
1408
|
+
"upstreamPath": "full_order_info_list[].full_order_info.order_info.express_type",
|
|
1409
|
+
"required": false,
|
|
1410
|
+
"description": "交付方式。"
|
|
1411
|
+
}
|
|
1412
|
+
},
|
|
1413
|
+
"api": {
|
|
1414
|
+
"method": "POST",
|
|
1415
|
+
"path": "youzan.trades.sold.get/4.0.4"
|
|
1416
|
+
},
|
|
1417
|
+
"success": {
|
|
1418
|
+
"description": "同一凭证核验目标店铺后在显式创建或支付时间和预算内串行扫描;全部已选行及锚点校验成功才一次性输出。预算和密度停止是成功但未读完。"
|
|
1419
|
+
},
|
|
1420
|
+
"errors": {
|
|
1421
|
+
"description": "任一请求、锚点、模块或字节限制错误整体失败,stdout为空,不将真实错误伪装成正常预算停止,不重试或换店。",
|
|
1422
|
+
"diagnosticsVersion": 2
|
|
1423
|
+
},
|
|
1424
|
+
"notes": [
|
|
1425
|
+
"--kdt-id 省略时使用本次有效上下文 shopId;显式提供的非法值不回退。两者都缺失时拒绝;目标范围、同店核验和服务端权限仍按本命令校验。",
|
|
1426
|
+
"基础 order 可返回 paidAt、isPaid。paidAt 未取得、空文本或 null 时省略,不证明未支付;非空错型、非法日期或非零毫秒失败。isPaid 未取得时省略,false 原样保留,非 boolean 失败;两者不从状态或金额推算。",
|
|
1427
|
+
"订单号通常为 E/V/C 开头加 23 位数字,仅供核对,不限定前缀、数字组合或 24 位长度;按原值传递。仅保留非空、无空白或控制字符和最多 128 字符的文本保护;服务端仍判断支持范围和对象归属。",
|
|
1428
|
+
"必须显式目标,--created-at 与 --paid-at 完整范围二选一,缺轴或同时两轴为 validation/input 且零请求。不提供 time-axis、单号精确查询、页码参数、旧分片参数或恢复游标。",
|
|
1429
|
+
"支付轴的初始窗口、二分、后续页、预览及 pendingRanges 始终是支付时间,不附加创建约束。不从窗口补造 paidAt/isPaid;缺失只表示未取得,不能静默排除后宣称全集。支付索引延迟和非快照响应仍可能遗漏。",
|
|
1430
|
+
"payment 模块仍为列表金额,不含 realPayment,不逐单读取详情,不用 payment 求实付、扣退款净额或商家到账。paidAt 不是逐笔资金事件时间。",
|
|
1431
|
+
"并发1,固定每页 min(100,maxItems)。本地先按三日历月拆分;第1页total超过100页容量时不提交父页,按整数秒二分并共享端点,所有非时间筛选保持。",
|
|
1432
|
+
"请求预算包括一次店铺核验、所有探测和翻页。发送前检查预算,剩余结果预算不足下一整页时停止;可能少于maxItems。成功结果只公开 stopReason,提前停止时附带 pendingRanges。",
|
|
1433
|
+
"去重键为店铺和订单号,保留首次提交版本。不相加各区间total、不输出全集total或服务端cursor;不发送第101页。",
|
|
1434
|
+
"后续页total越窗时保留此前已提交结果,但不提交越窗页,pendingRanges当前区间pageNo重置1;缩小范围后由调用方重读及去重。pendingRanges 不是恢复游标。",
|
|
1435
|
+
"range_exhausted仅表示本次观测的队列走完。时间端点开闭、同秒唯一次序和快照均未保证;可能受索引延迟与动态分页影响,不承诺无遗漏。",
|
|
1436
|
+
"累计响应20MiB,扫描请求适配边界逐块有界读取;最终UTF-8输出含换行10MiB。超限整体失败,不裁切模块或订单。",
|
|
1437
|
+
"本批默认以 CNY 计价,源为元的金额无损补齐两位十进制字符串,不新增币种字段、不换汇或跨币种汇总;这是用户确认的批次约定,不是官方币种保证。",
|
|
1438
|
+
"payment保留列表应付/支付价格含义,不提供详情realPayment、优惠或独立退款集合。",
|
|
1439
|
+
"未知字段不扩大模型;未请求模块不校验;请求模块缺失、null或错型整体失败,合法零、false、空文本及实际空数组保留。",
|
|
1440
|
+
"应用凭证实测不证明店铺员工身份授权与权限隔离。",
|
|
1441
|
+
"商品行 item_id/sku_id 为OneID,channel_item_id/channel_sku_id 为历史渠道身份;oid仍为交易行,不用当前档案重写历史。",
|
|
1442
|
+
"历史统一商品或规格字段为空字符串时,省略对应OneID并保留明确渠道身份,不用渠道ID补造;null和其他错型仍失败。",
|
|
1443
|
+
"时间区间必须包含 .. 并显式两端;不接受旧成对参数或裸时间等值,非零毫秒在请求前拒绝。"
|
|
1444
|
+
]
|
|
1445
|
+
}
|