TaxRate
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
在向用户收取服务费用时适用的税率,可以按商家或服务设置。
JSON 表示法 |
{
"microPercent": integer
} |
字段 |
microPercent |
integer
一种税率,以百万分之一计,精确到小数点后 6 位。例如,如果税率为 7.253%,则应将该字段应设置为 7253000。 如果未设置或将该字段设置为 0,对于由此商家提供的任何服务,向用户收取的总费用为 Service.price 所指定的确切价格。该服务价格被视为无需缴纳税费或已包含适用税费。系统不会将税费作为单独的订单项向用户显示。 如果将该字段设置为任何非零值,对于由此商家提供的任何服务,向用户收取的总费用将包含服务价格以及使用此处提供的税率计算得出的税费。最小货币单位的小数部分(例如,1 美分的小数部分)将四舍五入为最接近的偶数。系统会将税费作为单独的订单项向用户显示。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eTax rate is represented in millionths of a percent, allowing for six decimal places of precision (e.g., 7.253% is represented as 7253000).\u003c/p\u003e\n"],["\u003cp\u003eIf \u003ccode\u003emicroPercent\u003c/code\u003e is 0 or not set, the service price is considered tax-inclusive or exempt, and no separate tax is charged or displayed.\u003c/p\u003e\n"],["\u003cp\u003eWhen \u003ccode\u003emicroPercent\u003c/code\u003e is any non-zero value, the total price includes the service price plus calculated tax, displayed as a separate line item to the user.\u003c/p\u003e\n"],["\u003cp\u003eTaxes are calculated using the provided \u003ccode\u003emicroPercent\u003c/code\u003e and rounded to the nearest even value in the smallest currency unit.\u003c/p\u003e\n"]]],[],null,["# TaxRate\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA tax rate applied when charging the user for a service, and which can be set on either a per merchant, or per service basis.\n\n| JSON representation |\n|-------------------------------------|\n| ``` { \"microPercent\": integer } ``` |\n\n| Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `micro``Percent` | `integer` A tax rate in millionths of one percent, effectively giving 6 decimals of precision. For example, if the tax rate is 7.253%, this field should be set to 7253000. If this field is left unset or set to 0, the total price charged to a user for any service provided by this merchant is the exact price specified by Service.price. The service price is assumed to be exempt from or already inclusive of applicable taxes. Taxes will not be shown to the user as a separate line item. If this field is set to any nonzero value, the total price charged to a user for any service provided by this merchant will include the service price plus the tax assessed using the tax rate provided here. Fractions of the smallest currency unit (for example, fractions of one cent) will be rounded using nearest even rounding. Taxes will be shown to the user as a separate line item. |"]]