@agenzo/merchant-cli 0.8.10 → 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 +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3588,6 +3588,9 @@ function registerHotelCreateOrderCommand(parent, deps) {
|
|
|
3588
3588
|
).option(
|
|
3589
3589
|
"--payment-token-id <id>",
|
|
3590
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)."
|
|
3591
3594
|
).option("--member <id>", MEMBER_OPTION_DESCRIPTION).option(
|
|
3592
3595
|
"--idempotency-key <key>",
|
|
3593
3596
|
"Idempotency key forwarded verbatim as the Idempotency-Key header"
|
|
@@ -3639,6 +3642,9 @@ function registerHotelCreateOrderCommand(parent, deps) {
|
|
|
3639
3642
|
if (opts.bedType !== void 0) body.bed_type = opts.bedType;
|
|
3640
3643
|
if (opts.paymentMethodId !== void 0) body.payment_method_id = opts.paymentMethodId;
|
|
3641
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
|
+
}
|
|
3642
3648
|
const member = memberIdOf(opts);
|
|
3643
3649
|
if (member !== void 0) body.member_id = member;
|
|
3644
3650
|
if (!isYes) {
|
|
@@ -5166,7 +5172,10 @@ function registerVerifyCommand(parent, deps) {
|
|
|
5166
5172
|
// src/flight-flink/create-order.ts
|
|
5167
5173
|
import { confirm as confirm6 } from "@inquirer/prompts";
|
|
5168
5174
|
function registerCreateOrderCommand(parent, deps) {
|
|
5169
|
-
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(
|
|
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");
|
|
5170
5179
|
attachSchemaHelp(cmd, flightCreateOrderSchema);
|
|
5171
5180
|
cmd.action(async () => {
|
|
5172
5181
|
const opts = cmd.optsWithGlobals();
|
|
@@ -5189,6 +5198,9 @@ function registerCreateOrderCommand(parent, deps) {
|
|
|
5189
5198
|
};
|
|
5190
5199
|
if (opts.paymentMethodId !== void 0) body.payment_method_id = opts.paymentMethodId;
|
|
5191
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
|
+
}
|
|
5192
5204
|
const member = memberIdOf(opts);
|
|
5193
5205
|
if (member !== void 0) body.member_id = member;
|
|
5194
5206
|
if (!isYes) {
|