Shopify / Shopify/shopify_python_api

prerequisite_customer_ids array is ignored

未关闭
#233 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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.

  1. I can add a PriceRule, just fine.

  2. I can add prerequisite_saved_search_ids, just fine.

Is there no support for prerequisite_customer_ids yet in the python API (yet)?

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。