@agenzo/merchant-cli 0.8.9 → 0.8.10
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 +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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;
|