2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 6169
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 55426
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getOrders
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [5, 4114, 653, 3, 507, 3792, 686, 5625, 2]
|
2026-07-24 07:16:23 +00:00
|
|
|
// Exports: cancelSigningAndDiscardOrder, getOrCreateOrder, markOrderAsSigningInProgress, patchOrder, patchOrderLineItem, updateOrder
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 6169 (getOrders)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _createGatewayCheckoutContext from "_createGatewayCheckoutContext";
|
|
|
|
|
import { OrderStatus } from "CustomCheckoutFlow";
|
|
|
|
|
import { Endpoints } from "ME";
|
|
|
|
|
import importDefaultResult from "timestamp";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function getOrders(arg0) {
|
|
|
|
|
return _getOrders(...arguments);
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
async function _getOrders(arg0, arg1) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
let status;
|
|
|
|
|
if (null != arg0) {
|
|
|
|
|
status = arg0.status;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (null != status) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const items = [arg0.status];
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.statuses = items;
|
|
|
|
|
}
|
|
|
|
|
let skuId;
|
2026-07-23 10:11:24 +00:00
|
|
|
if (null != arg0) {
|
|
|
|
|
skuId = arg0.skuId;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (null != skuId) {
|
2026-07-23 10:11:24 +00:00
|
|
|
obj.sku_id = arg0.skuId;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let createdAfter;
|
2026-07-23 10:11:24 +00:00
|
|
|
if (null != arg0) {
|
|
|
|
|
createdAfter = arg0.createdAfter;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (null != createdAfter) {
|
2026-07-23 10:11:24 +00:00
|
|
|
obj.created_after = arg0.createdAfter;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let isGift;
|
2026-07-23 10:11:24 +00:00
|
|
|
if (null != arg0) {
|
|
|
|
|
isGift = arg0.isGift;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (null != isGift) {
|
2026-07-23 10:11:24 +00:00
|
|
|
obj.is_gift = arg0.isGift;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
let paymentGateway;
|
2026-07-23 10:11:24 +00:00
|
|
|
if (null != arg0) {
|
|
|
|
|
paymentGateway = arg0.paymentGateway;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (null != paymentGateway) {
|
2026-07-23 10:11:24 +00:00
|
|
|
obj.payment_gateway = arg0.paymentGateway;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const HTTP = outer2_0(outer2_2[4]).HTTP;
|
|
|
|
|
obj = { url: outer2_5.ORDER_LIST, query: obj, rejectWithError: true };
|
2026-07-20 16:05:17 +00:00
|
|
|
const body = yield HTTP.get(obj).body;
|
|
|
|
|
let items1 = body;
|
|
|
|
|
if (!body) {
|
|
|
|
|
items1 = [];
|
|
|
|
|
}
|
|
|
|
|
return items1;
|
|
|
|
|
}
|
|
|
|
|
function createOrder(arg0) {
|
|
|
|
|
return _createOrder(...arguments);
|
|
|
|
|
}
|
|
|
|
|
async function _createOrder(arg0, arg1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let iter = (function*(arg0) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let countryCode;
|
|
|
|
|
let externalGatewayFacet;
|
|
|
|
|
let giftInfo;
|
|
|
|
|
let isGift;
|
|
|
|
|
let orderLineItems;
|
|
|
|
|
let paymentGateway;
|
|
|
|
|
let recipientUserId;
|
|
|
|
|
let subscriptionFacet;
|
|
|
|
|
({ paymentGateway, isGift, giftInfo, externalGatewayFacet, countryCode } = arg0);
|
|
|
|
|
({ orderLineItems, recipientUserId, subscriptionFacet } = arg0);
|
|
|
|
|
yield undefined;
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = outer2_1(outer2_2[6]);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.dispatch({ type: "ORDER_CREATE_START" });
|
|
|
|
|
if (isGift) {
|
|
|
|
|
obj = { recipient_id: recipientUserId };
|
|
|
|
|
let gift_style;
|
|
|
|
|
if (null != giftInfo) {
|
|
|
|
|
gift_style = giftInfo.gift_style;
|
|
|
|
|
}
|
|
|
|
|
if (null != gift_style) {
|
|
|
|
|
tmp.gift_style = giftInfo.gift_style;
|
|
|
|
|
}
|
|
|
|
|
let emoji_id;
|
|
|
|
|
if (null != giftInfo) {
|
|
|
|
|
emoji_id = giftInfo.emoji_id;
|
|
|
|
|
}
|
|
|
|
|
if (null != emoji_id) {
|
|
|
|
|
tmp.emoji_id = giftInfo.emoji_id;
|
|
|
|
|
}
|
|
|
|
|
let emoji_name;
|
|
|
|
|
if (null != giftInfo) {
|
|
|
|
|
emoji_name = giftInfo.emoji_name;
|
|
|
|
|
}
|
|
|
|
|
if (null != emoji_name) {
|
|
|
|
|
tmp.emoji_name = giftInfo.emoji_name;
|
|
|
|
|
}
|
|
|
|
|
let sound_id;
|
|
|
|
|
if (null != giftInfo) {
|
|
|
|
|
sound_id = giftInfo.sound_id;
|
|
|
|
|
}
|
|
|
|
|
if (null != sound_id) {
|
|
|
|
|
tmp.sound_id = giftInfo.sound_id;
|
|
|
|
|
}
|
|
|
|
|
let reward_sku_ids;
|
|
|
|
|
if (null != giftInfo) {
|
|
|
|
|
reward_sku_ids = giftInfo.reward_sku_ids;
|
|
|
|
|
}
|
|
|
|
|
if (null != reward_sku_ids) {
|
|
|
|
|
tmp.reward_sku_ids = giftInfo.reward_sku_ids;
|
|
|
|
|
}
|
|
|
|
|
let prop;
|
|
|
|
|
if (null != giftInfo) {
|
|
|
|
|
prop = giftInfo.custom_message_contents;
|
|
|
|
|
}
|
|
|
|
|
if (null != prop) {
|
|
|
|
|
tmp.custom_message_contents = giftInfo.custom_message_contents;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
obj = { order_line_items: orderLineItems, billing_facet: { payment_gateway: paymentGateway }, subscription_facet: subscriptionFacet };
|
|
|
|
|
if (null != countryCode) {
|
|
|
|
|
const obj1 = { request_gateway_country_code: countryCode };
|
|
|
|
|
tmp34.location_facet = obj1;
|
|
|
|
|
}
|
|
|
|
|
if (isGift) {
|
|
|
|
|
const obj2 = { is_gift: isGift, gift_customization: tmp };
|
|
|
|
|
tmp34.gifting_facet = obj2;
|
|
|
|
|
}
|
|
|
|
|
if (null != externalGatewayFacet) {
|
|
|
|
|
tmp34.external_gateway_facet = externalGatewayFacet;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const HTTP = outer2_0(outer2_2[4]).HTTP;
|
|
|
|
|
const body = yield HTTP.post({ url: outer2_5.ORDER_CREATE, body: obj, rejectWithError: true, retries: 3 }).body;
|
|
|
|
|
outer2_6.info("created order", { orderId: body.id, paymentGateway, body: obj });
|
|
|
|
|
yield outer2_1(outer2_2[6]).dispatch({ type: "ORDER_CREATE_SUCCESS", orderId: body.id, order: body });
|
2026-07-20 16:05:17 +00:00
|
|
|
return body;
|
2026-07-23 10:11:24 +00:00
|
|
|
})();
|
|
|
|
|
iter.next();
|
|
|
|
|
return iter;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
async function _getOrCreateOrder(arg0, arg1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let iter = (function*(arg0) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let createdAfter;
|
|
|
|
|
let externalGatewayFacet;
|
|
|
|
|
let giftInfo;
|
|
|
|
|
let isGift;
|
|
|
|
|
let paymentGateway;
|
|
|
|
|
let purchaseType;
|
|
|
|
|
let recipientUserId;
|
|
|
|
|
let skuId;
|
|
|
|
|
let subscriptionPlanId;
|
|
|
|
|
({ skuId, isGift, paymentGateway, recipientUserId, purchaseType, giftInfo, createdAfter, subscriptionPlanId, externalGatewayFacet } = arg0);
|
|
|
|
|
yield undefined;
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = { isGift, status: outer2_4.DRAFT, skuId, createdAfter };
|
2026-07-24 07:16:23 +00:00
|
|
|
const arr = yield outer2_9(obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (arr.length > 0) {
|
|
|
|
|
const first = arr[0];
|
|
|
|
|
obj = { orderId: first.id, skuId, isGift };
|
2026-07-23 10:11:24 +00:00
|
|
|
outer2_6.info("reusing existing draft order", obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
return first;
|
|
|
|
|
} else {
|
|
|
|
|
obj = { paymentGateway, recipientUserId, isGift, giftInfo };
|
|
|
|
|
const obj1 = { sku_id: skuId, quantity: 1, purchase_type: purchaseType, subscription_plan_id: subscriptionPlanId };
|
|
|
|
|
const items = [obj1];
|
|
|
|
|
obj.orderLineItems = items;
|
|
|
|
|
obj.externalGatewayFacet = externalGatewayFacet;
|
2026-07-24 07:16:23 +00:00
|
|
|
return yield outer2_11(obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
})();
|
|
|
|
|
iter.next();
|
|
|
|
|
return iter;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
async function _patchOrderLineItem(arg0, arg1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let iter = (function*(expectedRevision) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let orderId;
|
|
|
|
|
let orderLineItemId;
|
|
|
|
|
let subscriptionPlanId;
|
|
|
|
|
({ orderId, orderLineItemId, subscriptionPlanId } = expectedRevision);
|
|
|
|
|
yield undefined;
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = outer2_1(outer2_2[6]);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.dispatch({ type: "ORDER_UPDATE_START" });
|
|
|
|
|
obj = { expected_revision: expectedRevision.expectedRevision, subscription_plan_id: subscriptionPlanId };
|
2026-07-23 10:11:24 +00:00
|
|
|
const HTTP = outer2_0(outer2_2[4]).HTTP;
|
|
|
|
|
obj = { url: outer2_5.ORDER_PATCH_LINE_ITEM(orderId, orderLineItemId), body: obj, rejectWithError: true };
|
|
|
|
|
outer2_6.info("updated order line item", { orderId, orderLineItemId, body: obj });
|
2026-07-20 16:05:17 +00:00
|
|
|
const tmp3 = yield HTTP.patch(obj);
|
2026-07-23 10:11:24 +00:00
|
|
|
yield outer2_1(outer2_2[6]).dispatch({ type: "ORDER_UPDATE_SUCCESS", orderId });
|
2026-07-20 16:05:17 +00:00
|
|
|
return tmp3.body.revision;
|
2026-07-23 10:11:24 +00:00
|
|
|
})();
|
|
|
|
|
iter.next();
|
|
|
|
|
return iter;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
async function _patchOrder(arg0, arg1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let iter = (function*(expectedRevision) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let externalGatewayFacet;
|
|
|
|
|
let orderId;
|
|
|
|
|
let orderLineItems;
|
|
|
|
|
let subscriptionFacet;
|
|
|
|
|
({ orderId, orderLineItems, subscriptionFacet, externalGatewayFacet } = expectedRevision);
|
|
|
|
|
yield undefined;
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = outer2_1(outer2_2[6]);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.dispatch({ type: "ORDER_UPDATE_START" });
|
|
|
|
|
obj = { expected_revision: expectedRevision.expectedRevision };
|
|
|
|
|
if (null != orderLineItems) {
|
|
|
|
|
tmp3.order_line_items = orderLineItems;
|
|
|
|
|
}
|
|
|
|
|
if (null != subscriptionFacet) {
|
|
|
|
|
tmp3.subscription_facet = subscriptionFacet;
|
|
|
|
|
}
|
|
|
|
|
if (null != externalGatewayFacet) {
|
|
|
|
|
tmp3.external_gateway_facet = externalGatewayFacet;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const HTTP = outer2_0(outer2_2[4]).HTTP;
|
|
|
|
|
obj = { url: outer2_5.ORDER_UPDATE(orderId), body: tmp3, rejectWithError: true };
|
|
|
|
|
outer2_6.info("patched order", { orderId, body: obj });
|
|
|
|
|
yield outer2_1(outer2_2[6]).dispatch({ type: "ORDER_UPDATE_SUCCESS", orderId });
|
2026-07-20 16:05:17 +00:00
|
|
|
return yield HTTP.patch(obj).body;
|
2026-07-23 10:11:24 +00:00
|
|
|
})();
|
|
|
|
|
iter.next();
|
|
|
|
|
return iter;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
async function _updateOrder(arg0, arg1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
let iter = (function*(expectedRevision) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let giftInfo;
|
|
|
|
|
let orderId;
|
|
|
|
|
({ orderId, giftInfo } = expectedRevision);
|
|
|
|
|
yield undefined;
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj = outer2_1(outer2_2[6]);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.dispatch({ type: "ORDER_UPDATE_START" });
|
|
|
|
|
obj = { expected_revision: expectedRevision.expectedRevision };
|
|
|
|
|
if (null != giftInfo) {
|
|
|
|
|
obj = {};
|
|
|
|
|
if (null != giftInfo.recipient_id) {
|
|
|
|
|
obj.recipient_id = giftInfo.recipient_id;
|
|
|
|
|
}
|
|
|
|
|
if (null != giftInfo.gift_style) {
|
|
|
|
|
obj.gift_style = giftInfo.gift_style;
|
|
|
|
|
}
|
|
|
|
|
if (null != giftInfo.emoji_id) {
|
|
|
|
|
obj.emoji_id = giftInfo.emoji_id;
|
|
|
|
|
}
|
|
|
|
|
if (null != giftInfo.emoji_name) {
|
|
|
|
|
obj.emoji_name = giftInfo.emoji_name;
|
|
|
|
|
}
|
|
|
|
|
if (null != giftInfo.sound_id) {
|
|
|
|
|
obj.sound_id = giftInfo.sound_id;
|
|
|
|
|
}
|
|
|
|
|
if (null != giftInfo.reward_sku_ids) {
|
|
|
|
|
obj.reward_sku_ids = giftInfo.reward_sku_ids;
|
|
|
|
|
}
|
|
|
|
|
if (null != giftInfo.custom_message_contents) {
|
|
|
|
|
obj.custom_message_contents = giftInfo.custom_message_contents;
|
|
|
|
|
}
|
|
|
|
|
const obj1 = { is_gift: true, gift_customization: obj };
|
|
|
|
|
tmp3.gifting_facet = obj1;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const HTTP = outer2_0(outer2_2[4]).HTTP;
|
|
|
|
|
const obj2 = { url: outer2_5.ORDER_UPDATE(orderId), body: obj, rejectWithError: true };
|
|
|
|
|
outer2_6.info("updated order with gift customization", { orderId, body: obj });
|
|
|
|
|
const tmp25 = yield HTTP.patch({ url: outer2_5.ORDER_UPDATE(orderId), body: obj, rejectWithError: true });
|
|
|
|
|
yield outer2_1(outer2_2[6]).dispatch({ type: "ORDER_UPDATE_SUCCESS", orderId });
|
2026-07-20 16:05:17 +00:00
|
|
|
return tmp25.body.revision;
|
2026-07-23 10:11:24 +00:00
|
|
|
})();
|
|
|
|
|
iter.next();
|
|
|
|
|
return iter;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-24 07:16:23 +00:00
|
|
|
function discardOrder(id) {
|
|
|
|
|
return _discardOrder(...arguments);
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
async function _discardOrder(arg0, arg1) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const HTTP = outer2_0(outer2_2[4]).HTTP;
|
|
|
|
|
const tmp = yield HTTP.post({ url: outer2_5.ORDER_DISCARD(arg0), rejectWithError: false });
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null == tmp.body) {
|
|
|
|
|
const _Error = Error;
|
|
|
|
|
const error = new Error("Invalid discard order response");
|
|
|
|
|
throw error;
|
|
|
|
|
} else {
|
|
|
|
|
return tmp.body;
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
const obj = { url: outer2_5.ORDER_DISCARD(arg0), rejectWithError: false };
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-24 07:16:23 +00:00
|
|
|
async function _cancelSigningAndDiscardOrder(arg0, arg1) {
|
|
|
|
|
yield outer2_21(arg0);
|
|
|
|
|
yield outer2_17(arg0);
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
async function _markOrderAsSigningInProgress(arg0, arg1) {
|
|
|
|
|
let closure_0 = arg0;
|
|
|
|
|
if (null != outer2_7) {
|
|
|
|
|
let obj = { orderId: arg0 };
|
|
|
|
|
outer2_6.info("signing already in progress, awaiting existing promise", obj);
|
|
|
|
|
yield outer2_7;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
let tmp2 = outer2_3(async () => {
|
|
|
|
|
let obj = outer4_1(outer4_2[6]);
|
|
|
|
|
obj = { type: "ORDER_MARK_SIGNING_START", orderId: outer1_0 };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.dispatch(obj);
|
2026-07-23 10:11:24 +00:00
|
|
|
let obj2 = outer4_0(outer4_2[7]);
|
|
|
|
|
const tmp2 = yield obj2.getOrder(outer1_0);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null == tmp2) {
|
|
|
|
|
const _Error = Error;
|
|
|
|
|
const _HermesInternal = HermesInternal;
|
2026-07-23 10:11:24 +00:00
|
|
|
const error = new Error("Order " + outer1_0 + " not found");
|
2026-07-20 16:05:17 +00:00
|
|
|
throw error;
|
|
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
const HTTP = outer4_0(outer4_2[4]).HTTP;
|
|
|
|
|
obj = { url: outer4_5.ORDER_SIGN(outer1_0) };
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj1 = { expected_revision: tmp3.revision };
|
|
|
|
|
obj.body = obj1;
|
|
|
|
|
obj.rejectWithError = true;
|
|
|
|
|
yield HTTP.post(obj);
|
2026-07-23 10:11:24 +00:00
|
|
|
obj2 = { orderId: outer1_0, revision: tmp2.revision };
|
|
|
|
|
outer4_6.info("marked order as signing in progress", obj2);
|
|
|
|
|
const obj3 = { type: "ORDER_MARK_SIGNING_SUCCESS", orderId: outer1_0 };
|
|
|
|
|
yield outer4_1(outer4_2[6]).dispatch(obj3);
|
|
|
|
|
const outer4_7 = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
})();
|
2026-07-23 10:11:24 +00:00
|
|
|
outer2_7 = tmp2;
|
2026-07-20 16:05:17 +00:00
|
|
|
yield tmp2;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-24 07:16:23 +00:00
|
|
|
function cancelOrderSigning(arg0) {
|
|
|
|
|
return _cancelOrderSigning(...arguments);
|
|
|
|
|
}
|
|
|
|
|
async function _cancelOrderSigning(arg0, arg1) {
|
|
|
|
|
let closure_0 = arg0;
|
|
|
|
|
const value = outer2_8.get(arg0);
|
|
|
|
|
if (null != value) {
|
|
|
|
|
let obj = { orderId: arg0 };
|
|
|
|
|
outer2_6.info("cancel signing already in progress for order, awaiting existing promise", obj);
|
|
|
|
|
return yield value;
|
|
|
|
|
} else {
|
|
|
|
|
const tmp3 = outer2_3(async () => {
|
|
|
|
|
let obj = outer4_1(outer4_2[6]);
|
|
|
|
|
obj = { type: "ORDER_CANCEL_SIGNING_START", orderId: outer1_0 };
|
|
|
|
|
obj.dispatch(obj);
|
|
|
|
|
const HTTP = outer4_0(outer4_2[4]).HTTP;
|
|
|
|
|
obj = { url: outer4_5.ORDER_CANCEL_SIGNING(outer1_0), rejectWithError: true };
|
|
|
|
|
const tmp2 = yield HTTP.post(obj);
|
|
|
|
|
if (null == tmp2.body) {
|
|
|
|
|
const _Error = Error;
|
|
|
|
|
const error = new Error("Invalid cancel signing response");
|
|
|
|
|
throw error;
|
|
|
|
|
} else {
|
|
|
|
|
const obj1 = { orderId: outer1_0 };
|
|
|
|
|
outer4_6.info("cancel order signing, transitioned back to DRAFT", obj1);
|
|
|
|
|
const obj2 = { type: "ORDER_CANCEL_SIGNING_SUCCESS", orderId: outer1_0 };
|
|
|
|
|
yield outer4_1(outer4_2[6]).dispatch(obj2);
|
|
|
|
|
outer4_8.delete(outer1_0);
|
|
|
|
|
return tmp2.body;
|
|
|
|
|
}
|
|
|
|
|
})();
|
|
|
|
|
const result = outer2_8.set(arg0, tmp3);
|
|
|
|
|
return yield tmp3;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
importDefaultResult = new importDefaultResult("OrderActionCreators");
|
2026-07-23 10:11:24 +00:00
|
|
|
let c7 = null;
|
2026-07-24 07:16:23 +00:00
|
|
|
const map = new Map();
|
|
|
|
|
let result = require("ME").fileFinishedImporting("modules/payments/native/OrderActionCreators.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const logger = importDefaultResult;
|
|
|
|
|
export const DRAFT_ORDER_LOOKBACK_DAYS = 3;
|
|
|
|
|
export { getOrders };
|
|
|
|
|
export { createOrder };
|
|
|
|
|
export const getOrCreateOrder = function getOrCreateOrder(arg0) {
|
|
|
|
|
return _getOrCreateOrder(...arguments);
|
|
|
|
|
};
|
|
|
|
|
export const patchOrderLineItem = function patchOrderLineItem(arg0) {
|
|
|
|
|
return _patchOrderLineItem(...arguments);
|
|
|
|
|
};
|
|
|
|
|
export const patchOrder = function patchOrder(arg0) {
|
|
|
|
|
return _patchOrder(...arguments);
|
|
|
|
|
};
|
|
|
|
|
export const updateOrder = function updateOrder(arg0) {
|
|
|
|
|
return _updateOrder(...arguments);
|
|
|
|
|
};
|
2026-07-24 07:16:23 +00:00
|
|
|
export { discardOrder };
|
|
|
|
|
export const cancelSigningAndDiscardOrder = function cancelSigningAndDiscardOrder() {
|
|
|
|
|
return _cancelSigningAndDiscardOrder(...arguments);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const markOrderAsSigningInProgress = function markOrderAsSigningInProgress(id) {
|
|
|
|
|
return _markOrderAsSigningInProgress(...arguments);
|
|
|
|
|
};
|
2026-07-24 07:16:23 +00:00
|
|
|
export { cancelOrderSigning };
|