Shopify / Shopify/shopify_python_api
prerequisite_customer_ids array is ignored
未关闭
还没有人认领这个 Issue。
feature request
- 主要语言
- Python
- 星标
- 1.4k
- 派生
- 388
- 平均合并
- 5 小时 39 分钟
- 30 天内合并 PR
- 1
描述
I'm using the shopify python api and cannot add prerequisite_customer_ids array to a price rule.
-
I can add a PriceRule, just fine.
-
I can add prerequisite_saved_search_ids, just fine.
Is there no support for prerequisite_customer_ids yet in the python API (yet)?
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 PriceRule 对 prerequisite_saved_search_ids 的处理,并将其与请求的 prerequisite_customer_ids 字段进行比较。检查创建时如何序列化 PriceRule 属性,然后验证客户 ID 数组能够被接受并正确发送。完成标准是可以使用 prerequisite_customer_ids 创建 PriceRule;如果 repository 中有相关测试,则添加 coverage。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100