ttpos-payment-method

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ttpos-payment-method

ttpos-payment-method

先读
ttpos-shared
。本版不提供 LianLianPay 支付配置查询,被问到直接说没有。
First read
ttpos-shared
. This version does not support querying LianLianPay payment configurations; if asked, say that it is unavailable.

能回答的问题

Questions that can be answered

问题命令
这家店开了哪些支付方式、是否启用
ttpos payment-method list
还能添加哪些系统支付方式
ttpos payment-method default
bash
ttpos payment-method list --page 2 --size 100
ttpos payment-method get <uuid>
ttpos payment-method default
查询上限:
list
每页最多 100 条。
QuestionCommand
Which payment methods has this store enabled, and are they active?
ttpos payment-method list
Which system payment methods can still be added?
ttpos payment-method default
bash
ttpos payment-method list --page 2 --size 100
ttpos payment-method get <uuid>
ttpos payment-method default
Query limit:
list
supports up to 100 records per page.

list

list

  • count
    是总数,大于本页条数就要翻页。
  • 列表已被过滤,不是全部记录:外卖平台(Grab、LINE MAN)和免单类恒不出现;未开通会员时没有余额支付;未配置 LianLianPay 时没有 LianLianPay。所以列表里没有,不代表商户没配。
  • 字段:
    uuid
    (字符串)、
    name
    (普通字符串)、
    source
    (
    0
    系统,
    1
    手动,
    2
    LianLianPay,
    3
    Kbank)、
    status
    (
    0
    禁用,
    1
    启用,
    2
    草稿)、
    sort
    、
    logo_file
    。
  • count
    is the total number of records. If it is greater than the number of records on the current page, paginate.
  • 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:
    uuid
    (string),
    name
    (plain string),
    source
    (
    0
    system,
    1
    manual,
    2
    LianLianPay,
    3
    Kbank),
    status
    (
    0
    disabled,
    1
    enabled,
    2
    draft),
    sort
    , and
    logo_file
    .

get <uuid>

get <uuid>

  • 只输出 JSON。
    data
    多一层壳:
    {"payment_method":{...}}
    。
  • uuid
    、
    logo_file_uuid
    、
    qrcode_file_uuid
    是 number 且超过 2^53,与
    list
    的字符串
    uuid
    类型不同,不要转 double。
  • fee_percent
    已是百分数,
    2.5
    就是 2.5%,不要再乘 100。
  • is_show_cashier
    is_show_assistant
    is_show_kiosk
    is_show_member_recharge
    is_show_tablet
    is_show_mobile
    (各终端结账是否显示)和
    is_takeaway
    (是否计入外卖统计)都是整数
    0/1
    。
  • name
    和
    payment_name
    是两个字段,值可能不同。
  • logo_file
    、
    qrcode_file
    可能是空串。
  • uuid 不存在时 exit 1。
  • Outputs JSON only. The
    data
    field has one additional wrapper layer:
    {"payment_method":{...}}
    .
  • uuid
    ,
    logo_file_uuid
    , and
    qrcode_file_uuid
    are numbers greater than 2^53. Their type differs from the string
    uuid
    in
    list
    ; do not convert them to double.
  • fee_percent
    is already expressed as a percentage. A value of
    2.5
    means 2.5%; do not multiply it by 100 again.
  • is_show_cashier
    ,
    is_show_assistant
    ,
    is_show_kiosk
    ,
    is_show_member_recharge
    ,
    is_show_tablet
    , and
    is_show_mobile
    (whether the payment method is displayed during checkout on each terminal), as well as
    is_takeaway
    (whether it is included in takeaway statistics), are integer
    0/1
    values.
  • name
    and
    payment_name
    are separate fields, and their values may differ.
  • logo_file
    and
    qrcode_file
    may be empty strings.
  • The command exits with code 1 when the uuid does not exist.

default

default

系统内置清单,没有分页,
count
是条数。
can_add
是原生 bool:Kbank 类已添加过时为
false
,其余恒为
true
。
true
不代表商户没添加过
,判断是否已开通看
list
。
退出码见
ttpos help exit-codes
。
This is a built-in list with no pagination, and
count
is the number of entries.
can_add
is a native bool: it is
false
when a Kbank method has already been added and
true
in all other cases.
true
does not mean the merchant has never added it
; use
list
to determine whether it has been enabled.
For exit codes, see
ttpos help exit-codes
.