ttpos-recharge

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ttpos-recharge

ttpos-recharge

先读
ttpos-shared
。
First read
ttpos-shared
.

能回答的问题

Questions this skill can answer

问题命令
最近的充值记录
ttpos recharge list
一笔充值的详情
ttpos recharge get <uuid>
这笔充值还能退多少
ttpos recharge refund-info <uuid>
QuestionCommand
Recent recharge records
ttpos recharge list
Details of a recharge
ttpos recharge get <uuid>
How much can this recharge still be refunded for
ttpos recharge refund-info <uuid>

ttpos recharge list

ttpos recharge list

bash
ttpos recharge list                                     # 最近 7 天
ttpos recharge list --from YYYY-MM-DD --to YYYY-MM-DD --page 2 --size 100
ttpos recharge list --order-no <订单号> --from YYYY-MM-DD --to YYYY-MM-DD
  • 查询上限:每页最多 100 条,
    --from/--to
    跨度最长 31 天。
  • 不传日期默认最近 7 天。
    --order-no
    不会放宽时间范围,更早的订单要同时传日期;"没查到"先看
    notice
    。
  • 只传
    --from
    时
    --to
    补到现在,日期太早会超 31 天;只传
    --to
    时
    --from
    补为往前 7 天。
  • 日期按创建时间过滤,不能按支付时间过滤。输出的
    payment_time
    可能与创建时间差好几天,查不到预期单据就放宽
    --from
    。
  • status
    取 0 待付款、1 已完成、2 已取消;
    status_text
    是中文含义,直接用。
  • 每项取
    uuid
    (字符串)给
    get
    和
    refund-info
    用;金额看
    recharge_amount
    、
    gift_amount
    ;
    payment_methods
    是字符串数组。
bash
ttpos recharge list                                     # 最近 7 天
ttpos recharge list --from YYYY-MM-DD --to YYYY-MM-DD --page 2 --size 100
ttpos recharge list --order-no <订单号> --from YYYY-MM-DD --to YYYY-MM-DD
  • Query limits: up to 100 records per page, with a maximum
    --from/--to
    date range of 31 days.
  • If no dates are provided, the default is the most recent 7 days.
    --order-no
    does not extend the time range; older orders require dates as well. If "not found" appears, check
    notice
    first.
  • If only
    --from
    is provided,
    --to
    defaults to the current date; a date that is too early will exceed 31 days. If only
    --to
    is provided,
    --from
    defaults to 7 days earlier.
  • Dates are filtered by creation time and cannot be filtered by payment time. The output
    payment_time
    may differ from the creation time by several days; if the expected order is not found, widen
    --from
    .
  • status
    values are 0 for pending payment, 1 for completed, and 2 for canceled;
    status_text
    contains the Chinese description and should be used directly.
  • Use each item's
    uuid
    (string) with
    get
    and
    refund-info
    . For amounts, use
    recharge_amount
    and
    gift_amount
    ;
    payment_methods
    is an array of strings.

ttpos recharge get <uuid>

ttpos recharge get <uuid>

data
是未建模的原始详情,
--format table
也输出 JSON。常见字段:
uuid
order_no
member
status
cashier
recharge_amount
amount
charge_due
payment_time
create_time
gift_amount
gift_point
payment_methods
operation_log
extra
。
data
contains unmodeled raw details, and
--format table
also outputs JSON. Common fields include:
uuid
order_no
member
status
cashier
recharge_amount
amount
charge_due
payment_time
create_time
gift_amount
gift_point
payment_methods
operation_log
extra
.

ttpos recharge refund-info <uuid>

ttpos recharge refund-info <uuid>

只查询,不会退款;本 CLI 没有退款命令。返回
refundable_amount
recharge_amount
gift_amount
gift_point
recharge_member_info
payment_records
。
  • <uuid>
    是
    recharge list
    的
    uuid
    。不能传订单号,也不能传销售订单的 id。
  • 只覆盖充值订单。销售订单、会员订单的可退金额本版不提供,不要拿这条命令代替。
退出码见
ttpos help exit-codes
。
This only queries information and does not process refunds; this CLI has no refund command. It returns
refundable_amount
recharge_amount
gift_amount
gift_point
recharge_member_info
payment_records
.
  • <uuid>
    is the
    uuid
    from
    recharge list
    . An order number or a sales order id cannot be used.
  • This command only covers recharge orders. Refundable amounts for sales orders and member orders are not provided in this version; do not substitute this command for them.
See
ttpos help exit-codes
for exit codes.