设置 App 内购买项目的税务类别
让智能体显示 Apple 为 App 内购买项目提供的税务类别,为某个购买项目设置它自己的类别,或者让它重新使用 App 的类别。
你的 App 在 App Store Connect 中有一个税务类别,每个 App 内购买项目都使用它,除非你为该购买项目选择了另一个类别。Apple 在 Set a tax category for In-App Purchases ↗ 中介绍了这一点。当某个购买项目需要与 App 不同的类别时,智能体可以向你显示各个类别、设置你选择的类别,或者让该购买项目重新使用 App 的类别。
购买项目一开始使用什么
帮助中说“An In-App Purchase without an explicit selection inherits the parent app’s tax category”(没有明确选择的 App 内购买项目会继承其父 App 的税务类别)。智能体读取这样的购买项目时,会显示“Inherited from parent app”,而该命令不会说明那是哪个类别。要知道这一点,请同时询问 App 的类别:智能体会用 asc web apps tax-category view 读取,帮助说对于没有自行选择的 App,它会报告为“App Store Software”。
提出请求
在项目的聊天中提出请求,例如:
Our "Recipe Pack" in-app purchase is a downloadable e-book. Show me its tax category now and the categories that could fit, and set the one I pick.- 智能体找到该购买项目,并用
asc web iap tax-category view读取它的类别:它自己的类别,或者“Inherited from parent app”。 - 它用
asc web iap tax-category list读取 Apple 为 App 内购买项目提供的类别,也就是 Apple 的 App 内购买项目税务类别选择器中的类别和条件,并向你显示可能适合的名称。有些类别有子类别,有些类别需要进一步描述产品的条件。 - 你选择类别,如果有子类别或条件,也一并选择。智能体可以给出建议,但哪个类别正确由你决定。
- 设置类别的命令需要
--confirm,所以智能体会告诉你它将要设置什么,并先询问你。 - 它运行
asc web iap tax-category set。帮助说类别和每个条件“are validated against the ADDON catalog before any write”(在任何写入之前都会对照 ADDON 目录进行验证),并且“The result is re-read and verified.”(结果会重新读取并验证)。 - 智能体会告诉你结果:类别、条件、是否有任何更改或原本就已一致,以及 Apple 已确认。
请说出你想要的每一个条件。帮助称条件集是“declarative”(声明式的):智能体发送的条件会替换购买项目原有的条件,不发送任何条件则会清除它们。
购买项目一旦有了自己的类别,就不再继承 App 的类别。要随时查看,请问“Recipe Pack 的税务类别是什么?”
重新使用 App 的类别
提出请求,例如:
Make Recipe Pack use the app's tax category again.智能体会运行 asc web iap tax-category reset。帮助说它“removes the explicit selection so the purchase inherits its parent app’s tax category.”(移除明确的选择,使购买项目继承其父 App 的税务类别)。它需要 --confirm,所以智能体会先询问你。Apple 的页面称之为“Match to parent app”。