ttpos-payment-method
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesettpos-payment-method
ttpos-payment-method
先读 。本版不提供 LianLianPay 支付配置查询,被问到直接说没有。
ttpos-sharedFirst read . This version does not support querying LianLianPay payment configurations; if asked, say that it is unavailable.
ttpos-shared能回答的问题
Questions that can be answered
| 问题 | 命令 |
|---|---|
| 这家店开了哪些支付方式、是否启用 | |
| 还能添加哪些系统支付方式 | |
bash
ttpos payment-method list --page 2 --size 100
ttpos payment-method get <uuid>
ttpos payment-method default查询上限: 每页最多 100 条。
list| Question | Command |
|---|---|
| Which payment methods has this store enabled, and are they active? | |
| Which system payment methods can still be added? | |
bash
ttpos payment-method list --page 2 --size 100
ttpos payment-method get <uuid>
ttpos payment-method defaultQuery limit: supports up to 100 records per page.
listlist
listlist
list- 是总数,大于本页条数就要翻页。
count - 列表已被过滤,不是全部记录:外卖平台(Grab、LINE MAN)和免单类恒不出现;未开通会员时没有余额支付;未配置 LianLianPay 时没有 LianLianPay。所以列表里没有,不代表商户没配。
- 字段:(字符串)、
uuid(普通字符串)、name(source系统,0手动,1LianLianPay,2Kbank)、3(status禁用,0启用,1草稿)、2、sort。logo_file
- is the total number of records. If it is greater than the number of records on the current page, paginate.
count - The list is filtered and does not contain all records: delivery platforms (Grab, LINE MAN) and free-order types never appear; balance payment is unavailable when membership is not enabled; LianLianPay is absent when it has not been configured. Therefore, an item being absent from the list does not mean the merchant has not configured it.
- Fields: (string),
uuid(plain string),name(sourcesystem,0manual,1LianLianPay,2Kbank),3(statusdisabled,0enabled,1draft),2, andsort.logo_file
get <uuid>
get <uuid>get <uuid>
get <uuid>- 只输出 JSON。多一层壳:
data。{"payment_method":{...}} - 、
uuid、logo_file_uuid是 number 且超过 2^53,与qrcode_file_uuid的字符串list类型不同,不要转 double。uuid - 已是百分数,
fee_percent就是 2.5%,不要再乘 100。2.5 is_show_cashieris_show_assistantis_show_kioskis_show_member_rechargeis_show_tablet(各终端结账是否显示)和is_show_mobile(是否计入外卖统计)都是整数is_takeaway。0/1- 和
name是两个字段,值可能不同。payment_name - 、
logo_file可能是空串。qrcode_file - uuid 不存在时 exit 1。
- Outputs JSON only. The field has one additional wrapper layer:
data.{"payment_method":{...}} - ,
uuid, andlogo_file_uuidare numbers greater than 2^53. Their type differs from the stringqrcode_file_uuidinuuid; do not convert them to double.list - is already expressed as a percentage. A value of
fee_percentmeans 2.5%; do not multiply it by 100 again.2.5 - ,
is_show_cashier,is_show_assistant,is_show_kiosk,is_show_member_recharge, andis_show_tablet(whether the payment method is displayed during checkout on each terminal), as well asis_show_mobile(whether it is included in takeaway statistics), are integeris_takeawayvalues.0/1 - and
nameare separate fields, and their values may differ.payment_name - and
logo_filemay be empty strings.qrcode_file - The command exits with code 1 when the uuid does not exist.
default
defaultdefault
default系统内置清单,没有分页, 是条数。
countcan_addfalsetruetruelist退出码见 。
ttpos help exit-codesThis is a built-in list with no pagination, and is the number of entries.
countcan_addfalsetruetruelistFor exit codes, see .
ttpos help exit-codes