@agenzo/merchant-cli 0.8.9 → 0.8.11

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
@@ -2450,6 +2450,9 @@ function registerBookCommand(parent, deps) {
2450
2450
  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(
2451
2451
  "--payment-method-id <id>",
2452
2452
  "Bound payment method id to charge (pay_per_call mode only)"
2453
+ ).option(
2454
+ "--authorized-merchant-trans-id <id>",
2455
+ "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)."
2453
2456
  ).option("--passenger-name <name>", "Passenger full name").option("--passenger-phone <phone>", "Passenger phone").option("--passenger-email <email>", "Passenger email").option("--luggage-count <n>", "Luggage count").option("--special-requests <text>", "Free-text special requests").option("--pickup-lat <lat>", "Pickup latitude").option("--pickup-lng <lng>", "Pickup longitude").option("--pickup-name <name>", "Pickup location name").option("--dropoff-lat <lat>", "Dropoff latitude").option("--dropoff-lng <lng>", "Dropoff longitude").option("--dropoff-name <name>", "Dropoff location name").option("--pickup-time <time>", 'Pickup time: epoch seconds, or "now"').option("--meet-and-greet", "Enable meet & greet service").option("--meet-and-greet-price <amount>", "Meet & greet surcharge").option("--welcome-sign <text>", "Welcome sign text").option("--child-seat-count <n>", "Number of child seats needed (0-5)").option("--infant-seat-count <n>", "Number of infant seats needed (0-5)").option("--toddler-seat-count <n>", "Number of toddler seats needed (0-5)").option("--arrival-flight-no <no>", "Arrival flight number").option("--arrival-airline <airline>", "Arrival airline").option("--departure-flight-no <no>", "Departure flight number").option("--departure-airline <airline>", "Departure airline").option("--member <id>", MEMBER_OPTION_DESCRIPTION).option(
2454
2457
  "--idempotency-key <key>",
2455
2458
  "Idempotency key forwarded verbatim as the Idempotency-Key header"
@@ -2474,6 +2477,9 @@ function registerBookCommand(parent, deps) {
2474
2477
  };
2475
2478
  if (opts.paymentOrderId) body.payment_order_id = opts.paymentOrderId;
2476
2479
  if (opts.paymentMethodId) body.payment_method_id = opts.paymentMethodId;
2480
+ if (opts.authorizedMerchantTransId) {
2481
+ body.authorized_merchant_trans_id = opts.authorizedMerchantTransId;
2482
+ }
2477
2483
  const member = memberIdOf(opts);
2478
2484
  if (member !== void 0) body.member_id = member;
2479
2485
  if (opts.passengerEmail) body.passenger_email = opts.passengerEmail;
@@ -3582,6 +3588,9 @@ function registerHotelCreateOrderCommand(parent, deps) {
3582
3588
  ).option(
3583
3589
  "--payment-token-id <id>",
3584
3590
  "UPI Agent Pay: payment token id from an already-completed UnionPay network-token capture. When set, the platform skips EVO preauth/capture and only locks the order + records this credential (funds already charged)."
3591
+ ).option(
3592
+ "--authorized-merchant-trans-id <id>",
3593
+ "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)."
3585
3594
  ).option("--member <id>", MEMBER_OPTION_DESCRIPTION).option(
3586
3595
  "--idempotency-key <key>",
3587
3596
  "Idempotency key forwarded verbatim as the Idempotency-Key header"
@@ -3633,6 +3642,9 @@ function registerHotelCreateOrderCommand(parent, deps) {
3633
3642
  if (opts.bedType !== void 0) body.bed_type = opts.bedType;
3634
3643
  if (opts.paymentMethodId !== void 0) body.payment_method_id = opts.paymentMethodId;
3635
3644
  if (opts.paymentTokenId !== void 0) body.payment_token_id = opts.paymentTokenId;
3645
+ if (opts.authorizedMerchantTransId) {
3646
+ body.authorized_merchant_trans_id = opts.authorizedMerchantTransId;
3647
+ }
3636
3648
  const member = memberIdOf(opts);
3637
3649
  if (member !== void 0) body.member_id = member;
3638
3650
  if (!isYes) {
@@ -5160,7 +5172,10 @@ function registerVerifyCommand(parent, deps) {
5160
5172
  // src/flight-flink/create-order.ts
5161
5173
  import { confirm as confirm6 } from "@inquirer/prompts";
5162
5174
  function registerCreateOrderCommand(parent, deps) {
5163
- const cmd = parent.command("create-order").description("Create a flight order without charging (locks the fare, await payment)").option("--api-key <key>", "API Key for authentication (X-Api-Key)").option("--product-token <token>", "Authoritative rate token from verify").option("--total-amount <amount>", "Verified total price in decimal units").option("--currency <currency>", "ISO 4217 currency code").option("--trip-type <n>", "1/2/3", "1").option("--contact-name <name>", "Booking contact name").option("--contact-region <code>", "Contact phone country code (no '+')").option("--contact-phone <phone>", "Booking contact phone").option("--contact-email <email>", "Booking contact email").option("--passengers <json>", "JSON array of passengers (gender/id_type are strings)").option("--payment-method-id <id>", "Optional bound-card id (pay_per_call only)").option("--payment-token-id <id>", "Optional UPI network-token id (unionpay charge path)").option("--member <id>", MEMBER_OPTION_DESCRIPTION).option("--idempotency-key <key>", "Forwarded verbatim as the Idempotency-Key header");
5175
+ const cmd = parent.command("create-order").description("Create a flight order without charging (locks the fare, await payment)").option("--api-key <key>", "API Key for authentication (X-Api-Key)").option("--product-token <token>", "Authoritative rate token from verify").option("--total-amount <amount>", "Verified total price in decimal units").option("--currency <currency>", "ISO 4217 currency code").option("--trip-type <n>", "1/2/3", "1").option("--contact-name <name>", "Booking contact name").option("--contact-region <code>", "Contact phone country code (no '+')").option("--contact-phone <phone>", "Booking contact phone").option("--contact-email <email>", "Booking contact email").option("--passengers <json>", "JSON array of passengers (gender/id_type are strings)").option("--payment-method-id <id>", "Optional bound-card id (pay_per_call only)").option("--payment-token-id <id>", "Optional UPI network-token id (unionpay charge path)").option(
5176
+ "--authorized-merchant-trans-id <id>",
5177
+ "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)."
5178
+ ).option("--member <id>", MEMBER_OPTION_DESCRIPTION).option("--idempotency-key <key>", "Forwarded verbatim as the Idempotency-Key header");
5164
5179
  attachSchemaHelp(cmd, flightCreateOrderSchema);
5165
5180
  cmd.action(async () => {
5166
5181
  const opts = cmd.optsWithGlobals();
@@ -5183,6 +5198,9 @@ function registerCreateOrderCommand(parent, deps) {
5183
5198
  };
5184
5199
  if (opts.paymentMethodId !== void 0) body.payment_method_id = opts.paymentMethodId;
5185
5200
  if (opts.paymentTokenId !== void 0) body.payment_token_id = opts.paymentTokenId;
5201
+ if (opts.authorizedMerchantTransId) {
5202
+ body.authorized_merchant_trans_id = opts.authorizedMerchantTransId;
5203
+ }
5186
5204
  const member = memberIdOf(opts);
5187
5205
  if (member !== void 0) body.member_id = member;
5188
5206
  if (!isYes) {