5598 lines
250 KiB
TypeScript
5598 lines
250 KiB
TypeScript
/* Metro module 7299; source: modules/payments/native/OrderActionCreators.tsx; dependencies: [5, 4095, 661, 3, 507, 3817, 694, 7300, 2] */
|
|
import Logger from '../../debug/Logger.tsx'; /* Metro dependency 3 */
|
|
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as PaymentConstantsModule from '../PaymentConstants.tsx'; /* Metro dependency 4095 */
|
|
|
|
function _fun58930(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:6, offset: 0x016db389, size: 337 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const closure = function() {
|
|
return _getOrders.apply(this, arguments);
|
|
};
|
|
const closure2 = function() {
|
|
return _createOrder.apply(this, arguments);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = Logger;
|
|
value = new value('OrderActionCreators');
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/payments/native/OrderActionCreators.tsx');
|
|
exports.logger = value;
|
|
exports.DRAFT_ORDER_LOOKBACK_DAYS = 3;
|
|
exports.getOrders = closure;
|
|
exports.createOrder = closure2;
|
|
exports.getOrCreateOrder = function() {
|
|
return _getOrCreateOrder.apply(this, arguments);
|
|
};
|
|
exports.patchOrderLineItem = function() {
|
|
return _patchOrderLineItem.apply(this, arguments);
|
|
};
|
|
exports.updateOrder = function() {
|
|
return _updateOrder.apply(this, arguments);
|
|
};
|
|
exports.markOrderAsSigningInProgress = function() {
|
|
return _markOrderAsSigningInProgress.apply(this, arguments);
|
|
};
|
|
function _getOrders() { // fn#58932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:247, offset: 0x016db4da, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun58934).apply(this, arguments);
|
|
function* _fun58934(a0) { // fn#58934, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:290, offset: 0x016db513, size: 358 bytes, params: 2, frame: 18
|
|
var status;
|
|
var skuId;
|
|
var createdAfter;
|
|
var r2;
|
|
var object;
|
|
var value3;
|
|
var value4;
|
|
var items2;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value10;
|
|
var HTTP;
|
|
var get;
|
|
var object2;
|
|
var ORDER_LIST;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var body;
|
|
var error;
|
|
var value14;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value3 = a0 == null;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
if (value3) {
|
|
status = value;
|
|
} else {
|
|
try {
|
|
status = a0.status;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
value4 = status == null;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
if (!value4) {
|
|
try {
|
|
status = a0.status;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
items2[0] = status;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object.statuses = items2;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
value5 = a0 == null;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
if (value5) {
|
|
skuId = value;
|
|
} else {
|
|
try {
|
|
skuId = a0.skuId;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
value6 = skuId == null;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
if (!value6) {
|
|
try {
|
|
skuId = a0.skuId;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object.sku_id = skuId;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
value7 = a0 == null;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
if (value7) {
|
|
createdAfter = value;
|
|
} else {
|
|
try {
|
|
createdAfter = a0.createdAfter;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
value8 = createdAfter == null;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
if (!value8) {
|
|
try {
|
|
createdAfter = a0.createdAfter;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object.created_after = createdAfter;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
HTTP = value10.HTTP;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
get = HTTP.get;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
ORDER_LIST = binding.ORDER_LIST;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.url = ORDER_LIST;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.query = object;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.rejectWithError = true;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(get, HTTP, [object2]);
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
yield value11;
|
|
try {
|
|
value12 = undefined;
|
|
value13 = false;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
if (value13) {
|
|
return value12;
|
|
}
|
|
try {
|
|
body = value12.body;
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'}, extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
if (body) {
|
|
r2 = body;
|
|
} else {
|
|
try {
|
|
object = [];
|
|
} catch (error) {
|
|
value14 = environment.__proto__.__proto__;
|
|
binding = env2_6;
|
|
binding.error('failed to fetch orders', {error: error, options: a0});
|
|
binding = env2_0;
|
|
value = binding(env2_2[5]);
|
|
value.captureBillingException(error, {tags: {source: 'OrderActionCreators_getOrders'},
|
|
extra: {options: a0}});
|
|
throw error;
|
|
}
|
|
r2 = object;
|
|
}
|
|
return r2;
|
|
}
|
|
|
|
}
|
|
|
|
function _createOrder() { // fn#58936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:848, offset: 0x016db679, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun58938).apply(this, arguments);
|
|
async function _fun58938({orderLineItems, paymentGateway, recipientUserId, isGift, giftInfo}) { // fn#58938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:895, offset: 0x016db6bb, size: 782 bytes, params: 2, frame: 27
|
|
var gift_style;
|
|
var emoji_id;
|
|
var emoji_name;
|
|
var sound_id;
|
|
var reward_sku_ids;
|
|
var custom_message_contents;
|
|
var r10;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var object;
|
|
var object2;
|
|
var binding2;
|
|
var property;
|
|
var value19;
|
|
var HTTP;
|
|
var post;
|
|
var object3;
|
|
var ORDER_CREATE;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var body;
|
|
var info;
|
|
var object4;
|
|
var id;
|
|
var binding3;
|
|
var value23;
|
|
var value24;
|
|
var value25;
|
|
var value26;
|
|
var error;
|
|
var value27;
|
|
var Error;
|
|
var prototype;
|
|
var value28;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
let binding = env2_1;
|
|
const value6 = binding(env2_2[6]);
|
|
let object5 = {type: 'ORDER_CREATE_START'};
|
|
value6.dispatch(object5);
|
|
if (isGift) {
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.recipient_id = recipientUserId;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
value7 = giftInfo == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (value7) {
|
|
gift_style = value;
|
|
} else {
|
|
try {
|
|
gift_style = giftInfo.gift_style;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value8 = gift_style == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (!value8) {
|
|
try {
|
|
gift_style = giftInfo.gift_style;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.gift_style = gift_style;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value9 = giftInfo == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (value9) {
|
|
emoji_id = value;
|
|
} else {
|
|
try {
|
|
emoji_id = giftInfo.emoji_id;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value10 = emoji_id == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (!value10) {
|
|
try {
|
|
emoji_id = giftInfo.emoji_id;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.emoji_id = emoji_id;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value11 = giftInfo == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (value11) {
|
|
emoji_name = value;
|
|
} else {
|
|
try {
|
|
emoji_name = giftInfo.emoji_name;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value12 = emoji_name == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (!value12) {
|
|
try {
|
|
emoji_name = giftInfo.emoji_name;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.emoji_name = emoji_name;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value13 = giftInfo == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (value13) {
|
|
sound_id = value;
|
|
} else {
|
|
try {
|
|
sound_id = giftInfo.sound_id;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value14 = sound_id == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (!value14) {
|
|
try {
|
|
sound_id = giftInfo.sound_id;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.sound_id = sound_id;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value15 = giftInfo == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (value15) {
|
|
reward_sku_ids = value;
|
|
} else {
|
|
try {
|
|
reward_sku_ids = giftInfo.reward_sku_ids;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value16 = reward_sku_ids == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (!value16) {
|
|
try {
|
|
reward_sku_ids = giftInfo.reward_sku_ids;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.reward_sku_ids = reward_sku_ids;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value17 = giftInfo == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (value17) {
|
|
custom_message_contents = value;
|
|
} else {
|
|
try {
|
|
custom_message_contents = giftInfo.custom_message_contents;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
value18 = custom_message_contents == null;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (value18) {
|
|
r10 = object5;
|
|
} else {
|
|
try {
|
|
custom_message_contents = giftInfo.custom_message_contents;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.custom_message_contents = custom_message_contents;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
r10 = object5;
|
|
}
|
|
} else {
|
|
r10 = value;
|
|
}
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.order_line_items = orderLineItems;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object.payment_gateway = paymentGateway;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.billing_facet = object;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (isGift) {
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2.is_gift = isGift;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object2.gift_customization = r10;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.gifting_facet = object2;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
value19 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
HTTP = value19.HTTP;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
ORDER_CREATE = binding.ORDER_CREATE;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object3.url = ORDER_CREATE;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object3.body = object5;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object3.rejectWithError = true;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
value20 = Reflect.apply(post, HTTP, [object3]);
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
await value20;
|
|
try {
|
|
value21 = undefined;
|
|
value22 = false;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
if (value22) {
|
|
return value21;
|
|
}
|
|
try {
|
|
body = value21.body;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding = env2_6;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
info = binding.info;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
id = body.id;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object4.orderId = id;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object4.paymentGateway = paymentGateway;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object4.body = object5;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
Reflect.apply(info, binding, ['created order', object4]);
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
property = binding3[6];
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
value23 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
dispatch = value23.dispatch;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.type = 'ORDER_CREATE_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
id = body.id;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.orderId = id;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
object5.order = body;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
try {
|
|
value24 = Reflect.apply(dispatch, value23, [object5]);
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
await value24;
|
|
try {
|
|
value25 = undefined;
|
|
value26 = false;
|
|
} catch (error) {
|
|
binding = env2_6;
|
|
binding.error('failed to create order', {response: error});
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_CREATE_FAIL'}]);
|
|
value = undefined;
|
|
value27 = false;
|
|
if (value27) {
|
|
return value;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Failed to create order: ' + error;
|
|
prototype = Error.prototype;
|
|
value28 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value28;
|
|
throw value;
|
|
}
|
|
return value26 ? value25 : body;
|
|
}
|
|
|
|
}
|
|
|
|
function _getOrCreateOrder() { // fn#58939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:2031, offset: 0x016db9c9, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun58941).apply(this, arguments);
|
|
async function _fun58941({skuId, paymentGateway, recipientUserId, purchaseType, isGift, giftInfo, createdAfter, subscriptionPlanId}) { // fn#58941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:2088, offset: 0x016dba0b, size: 280 bytes, params: 2, frame: 24
|
|
var property;
|
|
if (true) {
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_8;
|
|
var DRAFT = env2_4.DRAFT;
|
|
await binding({status: DRAFT, skuId: skuId, createdAfter: createdAfter});
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (undefined.length > 0) {
|
|
property = undefined[0];
|
|
env2_6.info('reusing existing draft order', {orderId: property.id, skuId: skuId, isGift: isGift});
|
|
return property;
|
|
}
|
|
await env2_10({paymentGateway: paymentGateway, recipientUserId: recipientUserId, isGift: isGift,
|
|
giftInfo: giftInfo,
|
|
orderLineItems: [{sku_id: skuId, quantity: 1, purchase_type: purchaseType,
|
|
subscription_plan_id: subscriptionPlanId}]});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _patchOrderLineItem() { // fn#58942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:2571, offset: 0x016dbb23, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun58944).apply(this, arguments);
|
|
async function _fun58944({orderId, orderLineItemId, subscriptionPlanId, expectedRevision}) { // fn#58944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:2632, offset: 0x016dbb65, size: 495 bytes, params: 2, frame: 28
|
|
var object3;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var HTTP;
|
|
var patch;
|
|
var object;
|
|
var ORDER_PATCH_LINE_ITEM;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var info;
|
|
var object2;
|
|
var binding3;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var body;
|
|
var revision;
|
|
var error;
|
|
var binding4;
|
|
var value14;
|
|
var value15;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_1;
|
|
binding(env2_2[6]).dispatch({type: 'ORDER_UPDATE_START'});
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.expected_revision = expectedRevision;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.subscription_plan_id = subscriptionPlanId;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
HTTP = value5.HTTP;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
patch = HTTP.patch;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
ORDER_PATCH_LINE_ITEM = binding.ORDER_PATCH_LINE_ITEM;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(ORDER_PATCH_LINE_ITEM, binding, [orderId, orderLineItemId]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.url = value6;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.body = object3;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.rejectWithError = true;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = Reflect.apply(patch, HTTP, [object]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
await value7;
|
|
try {
|
|
value8 = undefined;
|
|
value9 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (value9) {
|
|
return value8;
|
|
}
|
|
try {
|
|
binding = env2_6;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
info = binding.info;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.orderId = orderId;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.orderLineItemId = orderLineItemId;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.body = object3;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(info, binding, ['updated order line item', object2]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding3[6];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
dispatch = value10.dispatch;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.type = 'ORDER_UPDATE_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.orderId = orderId;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(dispatch, value10, [object3]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
await value11;
|
|
try {
|
|
value12 = undefined;
|
|
value13 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (value13) {
|
|
return value12;
|
|
}
|
|
try {
|
|
body = value8.body;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
revision = body.revision;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value14 = binding(binding4[5]);
|
|
value14.captureBillingException(error, {tags: {source: 'OrderActionCreators_patchOrderLineItem'},
|
|
extra: {orderId: orderId, orderLineItemId: orderLineItemId, subscriptionPlanId: subscriptionPlanId}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order line item id', {error: error, orderId: orderId,
|
|
orderLineItemId: orderLineItemId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value15 = false;
|
|
if (value15) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
return revision;
|
|
}
|
|
|
|
}
|
|
|
|
function _updateOrder() { // fn#58945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:3390, offset: 0x016dbd54, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun58947).apply(this, arguments);
|
|
async function _fun58947({orderId, giftInfo, expectedRevision}) { // fn#58947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:3437, offset: 0x016dbd96, size: 718 bytes, params: 2, frame: 25
|
|
var object5;
|
|
var value5;
|
|
var object;
|
|
var recipient_id;
|
|
var value6;
|
|
var gift_style;
|
|
var value7;
|
|
var emoji_id;
|
|
var value8;
|
|
var emoji_name;
|
|
var value9;
|
|
var sound_id;
|
|
var value10;
|
|
var reward_sku_ids;
|
|
var value11;
|
|
var custom_message_contents;
|
|
var value12;
|
|
var object2;
|
|
var binding2;
|
|
var property;
|
|
var value13;
|
|
var HTTP;
|
|
var patch;
|
|
var object3;
|
|
var ORDER_UPDATE;
|
|
var value14;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var info;
|
|
var object4;
|
|
var binding3;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var body;
|
|
var revision;
|
|
var error;
|
|
var binding4;
|
|
var value22;
|
|
var value23;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_1;
|
|
binding(env2_2[6]).dispatch({type: 'ORDER_UPDATE_START'});
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object5.expected_revision = expectedRevision;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value5 = giftInfo == null;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value5) {
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
recipient_id = giftInfo.recipient_id;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = recipient_id == null;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value6) {
|
|
try {
|
|
recipient_id = giftInfo.recipient_id;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.recipient_id = recipient_id;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
gift_style = giftInfo.gift_style;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = gift_style == null;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value7) {
|
|
try {
|
|
gift_style = giftInfo.gift_style;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.gift_style = gift_style;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
emoji_id = giftInfo.emoji_id;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value8 = emoji_id == null;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value8) {
|
|
try {
|
|
emoji_id = giftInfo.emoji_id;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.emoji_id = emoji_id;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
emoji_name = giftInfo.emoji_name;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value9 = emoji_name == null;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value9) {
|
|
try {
|
|
emoji_name = giftInfo.emoji_name;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.emoji_name = emoji_name;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
sound_id = giftInfo.sound_id;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value10 = sound_id == null;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value10) {
|
|
try {
|
|
sound_id = giftInfo.sound_id;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.sound_id = sound_id;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
reward_sku_ids = giftInfo.reward_sku_ids;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = reward_sku_ids == null;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value11) {
|
|
try {
|
|
reward_sku_ids = giftInfo.reward_sku_ids;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.reward_sku_ids = reward_sku_ids;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
custom_message_contents = giftInfo.custom_message_contents;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = custom_message_contents == null;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (!value12) {
|
|
try {
|
|
custom_message_contents = giftInfo.custom_message_contents;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object.custom_message_contents = custom_message_contents;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.is_gift = true;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.gift_customization = object;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object5.gifting_facet = object2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value13 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
HTTP = value13.HTTP;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
patch = HTTP.patch;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
ORDER_UPDATE = binding.ORDER_UPDATE;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value14 = Reflect.apply(ORDER_UPDATE, binding, [orderId]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.url = value14;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.body = object5;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object3.rejectWithError = true;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value15 = Reflect.apply(patch, HTTP, [object3]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
await value15;
|
|
try {
|
|
value16 = undefined;
|
|
value17 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (value17) {
|
|
return value16;
|
|
}
|
|
try {
|
|
binding = env2_6;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
info = binding.info;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.orderId = orderId;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object4.body = object5;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(info, binding, ['updated order with gift customization', object4]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding3[6];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value18 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
dispatch = value18.dispatch;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object5.type = 'ORDER_UPDATE_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
object5.orderId = orderId;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value19 = Reflect.apply(dispatch, value18, [object5]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
await value19;
|
|
try {
|
|
value20 = undefined;
|
|
value21 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
if (value21) {
|
|
return value20;
|
|
}
|
|
try {
|
|
body = value16.body;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
revision = body.revision;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value22 = binding(binding4[5]);
|
|
value22.captureBillingException(error, {tags: {source: 'OrderActionCreators_updateOrder'},
|
|
extra: {orderId: orderId,
|
|
giftInfo: giftInfo}});
|
|
binding = env2_6;
|
|
binding.error('failed to update order', {error: error, orderId: orderId});
|
|
binding = env2_1;
|
|
value = binding(binding4[6]);
|
|
dispatch = value.dispatch;
|
|
await Reflect.apply(dispatch, value, [{type: 'ORDER_UPDATE_FAIL'}]);
|
|
value = undefined;
|
|
value23 = false;
|
|
if (value23) {
|
|
return value;
|
|
}
|
|
throw error;
|
|
}
|
|
return revision;
|
|
}
|
|
|
|
}
|
|
|
|
function _markOrderAsSigningInProgress() { // fn#58948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:4519, offset: 0x016dc064, size: 48 bytes, params: 1, frame: 14
|
|
return Module00005(_fun58950).apply(this, arguments);
|
|
function* _fun58950(a0) { // fn#58950, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:4600, offset: 0x016dc09d, size: 123 bytes, params: 2, frame: 15
|
|
var environment;
|
|
if (true) {
|
|
var env0_0 = a0;
|
|
value = environment.__proto__.__proto__;
|
|
if (env2_7 != null) {
|
|
env2_6.info('signing already in progress, awaiting existing promise', {orderId: a0});
|
|
yield env2_7;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
yield env2_3(_fun58952)();
|
|
}
|
|
function* _fun58952() { // fn#58952, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7477:4727, offset: 0x016dc121, size: 634 bytes, params: 1, frame: 24
|
|
var value;
|
|
var value2;
|
|
var binding;
|
|
var value3;
|
|
var dispatch;
|
|
var object;
|
|
var value4;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var getOrder;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var binding3;
|
|
var value10;
|
|
var HTTP;
|
|
var post;
|
|
var ORDER_SIGN;
|
|
var binding4;
|
|
var value11;
|
|
var object2;
|
|
var revision;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var info;
|
|
var binding5;
|
|
var binding6;
|
|
var value15;
|
|
var value16;
|
|
var value17;
|
|
var value18;
|
|
var Error;
|
|
var HermesInternal;
|
|
var concat;
|
|
var value19;
|
|
var prototype;
|
|
var error;
|
|
var value21;
|
|
var binding7;
|
|
var value22;
|
|
var captureBillingException;
|
|
var error2;
|
|
var value24;
|
|
var object3;
|
|
var object4;
|
|
var binding8;
|
|
var error3;
|
|
var binding9;
|
|
var value25;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
exceptionSkip124: while (true) {
|
|
exceptionLanding124: while (true) {
|
|
exceptionSkip78: while (true) {
|
|
exceptionLanding78: while (true) {
|
|
value = undefined;
|
|
value2 = false;
|
|
if (value2) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
binding = env4_1;
|
|
value3 = binding(env4_2[6]);
|
|
dispatch = value3.dispatch;
|
|
object = {type: 'ORDER_MARK_SIGNING_START'};
|
|
value4 = environment.__proto__;
|
|
object.orderId = env1_0;
|
|
Reflect.apply(dispatch, value3, [object]);
|
|
try {
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
binding2 = env4_2;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding2[7];
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
getOrder = value5.getOrder;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env1_0;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
value6 = Reflect.apply(getOrder, value5, [binding]);
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
yield value6;
|
|
try {
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
if (value8) {
|
|
env4_7 = null;
|
|
return value7;
|
|
}
|
|
try {
|
|
try {
|
|
value9 = value7 == null;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
if (!value9) {
|
|
try {
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
binding3 = env4_2;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding3[4];
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
value10 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
HTTP = value10.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env4_5;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
ORDER_SIGN = binding.ORDER_SIGN;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
binding4 = env1_0;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
value11 = Reflect.apply(ORDER_SIGN, binding, [binding4]);
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object.url = value11;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
revision = value7.revision;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object2.expected_revision = revision;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object.body = object2;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object.rejectWithError = true;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
value12 = Reflect.apply(post, HTTP, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
yield value12;
|
|
try {
|
|
try {
|
|
value13 = undefined;
|
|
value14 = false;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
if (value14) {
|
|
env4_7 = null;
|
|
return value13;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env4_6;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
info = binding.info;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
binding5 = env1_0;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object.orderId = binding5;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
revision = value7.revision;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object.revision = revision;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
Reflect.apply(info, binding, ['marked order as signing in progress', object]);
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env4_1;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
binding6 = env4_2;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
property = binding6[6];
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
value15 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
dispatch = value15.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object.type = 'ORDER_MARK_SIGNING_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
object.orderId = binding5;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
value16 = Reflect.apply(dispatch, value15, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
yield value16;
|
|
try {
|
|
try {
|
|
value17 = undefined;
|
|
value18 = false;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
if (value18) {
|
|
env4_7 = null;
|
|
return value17;
|
|
}
|
|
env4_7 = null;
|
|
return undefined;
|
|
}
|
|
try {
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
binding = env1_0;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
HermesInternal = global.HermesInternal;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
concat = HermesInternal.concat;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
value19 = 'Order ' + binding + ' not found';
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
error = new Error();
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
value21 = error instanceof Object ? error : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
try {
|
|
throw value21;
|
|
} catch (error) {
|
|
break exceptionLanding78;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
break exceptionSkip78;
|
|
}
|
|
try {
|
|
binding = env4_0;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
binding7 = env4_2;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
property = binding7[5];
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
value22 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
captureBillingException = value22.captureBillingException;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
Error = global.Error;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
prototype = Error.prototype;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
error2 = new Error('failed to mark order as signing in progress');
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
value24 = error2 instanceof Object ? error2 : undefined;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object3 = {};
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object3.source = 'OrderActionCreators_markOrderAsSigningInProgress';
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object.tags = object3;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
binding = env1_0;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object4.orderId = binding;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object4.response = error;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object.extra = object4;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
Reflect.apply(captureBillingException, value22, [value24, object]);
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
binding8 = env4_6;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
error3 = binding8.error;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object.response = error;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object.orderId = binding;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
Reflect.apply(error3, binding8, ['failed to mark order as signing in progress', object]);
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
binding9 = env4_1;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
property = binding7[6];
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
value25 = binding9(property);
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
dispatch = value25.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object.type = 'ORDER_MARK_SIGNING_FAIL';
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
object.orderId = binding;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
try {
|
|
value26 = Reflect.apply(dispatch, value25, [object]);
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
yield value26;
|
|
try {
|
|
value27 = undefined;
|
|
value28 = false;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
if (value28) {
|
|
env4_7 = null;
|
|
return value27;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
break exceptionLanding124;
|
|
}
|
|
break exceptionSkip78;
|
|
}
|
|
break exceptionSkip124;
|
|
}
|
|
env4_7 = null;
|
|
throw error;
|
|
break exceptionSkip124;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun58930, 7299, [5, 4095, 661, 3, 507, 3817, 694, 7300,
|
|
2]) /* metro module 7299, dependencies: [5, 4095, 661, 3, 507, 3817, 694, 7300, 2] */;
|