@agenzo/merchant-cli 0.8.12 → 0.8.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1047,6 +1047,11 @@ var bookSchema = {
1047
1047
  required: false,
1048
1048
  description: "Bound payment method id to charge (pay_per_call only). Opaque id from `token payment-methods list`; ignored for monthly_settlement"
1049
1049
  },
1050
+ "payment-token-id": {
1051
+ type: "string",
1052
+ required: false,
1053
+ description: "UPI Agent Pay: network-token id from an already-completed UnionPay/Visa capture. When set, the platform skips EVO preauth/capture and only books the ride + records this credential (funds already charged)"
1054
+ },
1050
1055
  member: MEMBER_FLAG_SCHEMA,
1051
1056
  "passenger-name": { type: "string", required: true, description: "Passenger full name" },
1052
1057
  "passenger-phone": { type: "string", required: true, description: "Passenger phone in E.164 format (e.g. +14155551234)" },
@@ -2538,6 +2543,9 @@ function registerBookCommand(parent, deps) {
2538
2543
  const cmd = parent.command("book").description("Book a ride using a quote_id returned by quote").option("--api-key <key>", "API Key for authentication (X-Api-Key)").option("--quote-id <id>", "Quote id from `ride-elife quote`").option("--vehicle-class <class>", "Chosen vehicle class").option("--price-amount <amount>", "Fare in decimal currency units (not cents)").option("--price-currency <currency>", "Currency code (default USD)").option("--payment-order-id <id>", "Paid payment order id (pay_per_call mode only)").option(
2539
2544
  "--payment-method-id <id>",
2540
2545
  "Bound payment method id to charge (pay_per_call mode only)"
2546
+ ).option(
2547
+ "--payment-token-id <id>",
2548
+ "UPI Agent Pay: payment token id from an already-completed UnionPay/Visa network-token capture. When set, the platform skips EVO preauth/capture and only books the ride + records this credential (funds already charged)."
2541
2549
  ).option(
2542
2550
  "--authorized-merchant-trans-id <id>",
2543
2551
  "EVO merchant transaction id of an already-authorised preauth (3DS challenge resume). When set, the server reuses that authorization instead of creating a new one, avoiding a second hold on the card (pay_per_call mode only)."
@@ -2565,6 +2573,7 @@ function registerBookCommand(parent, deps) {
2565
2573
  };
2566
2574
  if (opts.paymentOrderId) body.payment_order_id = opts.paymentOrderId;
2567
2575
  if (opts.paymentMethodId) body.payment_method_id = opts.paymentMethodId;
2576
+ if (opts.paymentTokenId) body.payment_token_id = opts.paymentTokenId;
2568
2577
  if (opts.authorizedMerchantTransId) {
2569
2578
  body.authorized_merchant_trans_id = opts.authorizedMerchantTransId;
2570
2579
  }