1193 lines
47 KiB
TypeScript
1193 lines
47 KiB
TypeScript
/* Metro module 4224; source: modules/billing/actions/BillingSharedActionCreators.tsx; dependencies: [5, 3806, 4225, 661, 507, 3824, 694, 1244, 683, 4131, 3817, 2] */
|
|
function _fun34691(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#34691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:6, offset: 0x0105f2bd, size: 246 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const paymentSourceRecord = importDefault(3806) /* metro dependency 3806: PaymentSourceRecord */;
|
|
const env0_5 = (require(4225) /* metro dependency 4225: Constants */).StripeErrorTypes;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_6 = constantsModule.AnalyticEvents;
|
|
const env0_7 = constantsModule.Endpoints;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/actions/BillingSharedActionCreators.tsx');
|
|
exports.validatePaymentSourceBillingAddress = function() {
|
|
return _validatePaymentSourceBillingAddress.apply(this, arguments);
|
|
};
|
|
exports.dispatchConfirmationError = dispatchConfirmationError;
|
|
exports.popupBridgeState = function() {
|
|
return _popupBridgeState.apply(this, arguments);
|
|
};
|
|
exports.createPaymentSource = function() {
|
|
return _createPaymentSource.apply(this, arguments);
|
|
};
|
|
}
|
|
|
|
function _validatePaymentSourceBillingAddress() { // fn#34692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:186, offset: 0x0105f3b3, size: 48 bytes, params: 1, frame: 14
|
|
return env0_3(_fun34694).apply(this, arguments);
|
|
}
|
|
|
|
function _popupBridgeState() { // fn#34695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:751, offset: 0x0105f509, size: 48 bytes, params: 1, frame: 14
|
|
return env0_3(_fun34697).apply(this, arguments);
|
|
}
|
|
|
|
function _createPaymentSource() { // fn#34698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:1057, offset: 0x0105f5e7, size: 48 bytes, params: 1, frame: 14
|
|
return env0_3(_fun34700).apply(this, arguments);
|
|
}
|
|
|
|
function dispatchConfirmationError(a0) { // fn#34702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:2397, offset: 0x0105f878, size: 704 bytes, params: 2, frame: 26
|
|
var r14;
|
|
var r2;
|
|
var r5;
|
|
var r6;
|
|
var intl;
|
|
var object4;
|
|
const BillingError = (require(4131) /* metro dependency 4131: errors */).BillingError;
|
|
var billingError;
|
|
var code;
|
|
var payment_method;
|
|
var defaultImport;
|
|
var track;
|
|
var PAYMENT_SOURCE_CREATION_FAILED;
|
|
var object5;
|
|
var Error;
|
|
var value14;
|
|
var error;
|
|
var moduleValue;
|
|
var captureBillingException;
|
|
var object6;
|
|
const value = a0;
|
|
const value2 = a1;
|
|
const value3 = a2;
|
|
const value4 = a3;
|
|
const value5 = undefined;
|
|
let r9 = !(value2 !== value5) || value2;
|
|
if (value3 !== value5) {
|
|
r14 = value3;
|
|
} else {
|
|
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
r14 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.khEaRI);
|
|
}
|
|
const r4 = value4 !== value5 ? value4 : {};
|
|
const includes = StripeErrorTypes.includes;
|
|
let type = value.type;
|
|
if (Reflect.apply(includes, StripeErrorTypes, [type])) {
|
|
object4 = {failure_message: value.message == null ? r14 : '' + r14 + ': ' + value.message};
|
|
type = value.type;
|
|
object4.error_type = type;
|
|
object4.failure_code = value.code;
|
|
object4.failure_sub_code = value.decline_code;
|
|
payment_method = value.payment_method;
|
|
type = payment_method == null ? value5 : payment_method.type;
|
|
object4.payment_source_type = type;
|
|
type = value.type;
|
|
if (type === 'card_error') {
|
|
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
track = defaultImport.track;
|
|
PAYMENT_SOURCE_CREATION_FAILED = AnalyticEvents.PAYMENT_SOURCE_CREATION_FAILED;
|
|
object5 = {};
|
|
copyDataProperties(object5, object4, undefined);
|
|
Error = global.Error;
|
|
value14 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
error = new Error();
|
|
object5['stacktrace'] = (error instanceof Object ? error : value14).stack;
|
|
Reflect.apply(track, defaultImport, [PAYMENT_SOURCE_CREATION_FAILED, object5]);
|
|
r9 = false;
|
|
}
|
|
billingError = new BillingError();
|
|
r2 = r9;
|
|
r5 = billingError;
|
|
r6 = object4;
|
|
} else {
|
|
object4 = {};
|
|
r2 = typeof value !== 'string' ? value : r14;
|
|
billingError = new BillingError();
|
|
object4.failure_message = billingError.message;
|
|
code = billingError.code;
|
|
object4.status_code = code;
|
|
code = billingError.code;
|
|
if (code !== 429) {
|
|
r2 = r9;
|
|
r5 = billingError;
|
|
r6 = object4;
|
|
} else {
|
|
r2 = false;
|
|
r5 = billingError;
|
|
r6 = object4;
|
|
}
|
|
}
|
|
const defaultImport2 = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
defaultImport2.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: r5});
|
|
Error = global.Error;
|
|
error = new Error(typeof value === 'string' ? value : r5.message);
|
|
if (r2) {
|
|
moduleValue = require(3817) /* metro dependency 3817: BillingUtils */;
|
|
captureBillingException = moduleValue.captureBillingException;
|
|
object4 = {};
|
|
copyDataProperties(object4, r4, undefined);
|
|
object6 = {};
|
|
copyDataProperties(object6, r6, undefined);
|
|
copyDataProperties(object6, r4.extra, undefined);
|
|
object4['extra'] = object6;
|
|
Reflect.apply(captureBillingException, moduleValue, [error, object4]);
|
|
}
|
|
return error;
|
|
}
|
|
|
|
function* _fun34694(a0) { // fn#34694, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:281, offset: 0x0105f3ec, size: 285 bytes, params: 2, frame: 16
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var value3;
|
|
var HTTP;
|
|
var post;
|
|
var object4;
|
|
var BILLING_PAYMENT_SOURCES_VALIDATE_BILLING_ADDRESS;
|
|
var object5;
|
|
var object6;
|
|
var name;
|
|
var line1;
|
|
var line2;
|
|
var city;
|
|
var state;
|
|
var postalCode;
|
|
var country;
|
|
var email;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var body;
|
|
var token;
|
|
var error;
|
|
var binding3;
|
|
var value7;
|
|
var v8BillingAddressSkemaErrorToBillingError;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
value3 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
HTTP = value3.HTTP;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object4 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
BILLING_PAYMENT_SOURCES_VALIDATE_BILLING_ADDRESS = binding.BILLING_PAYMENT_SOURCES_VALIDATE_BILLING_ADDRESS;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object4.url = BILLING_PAYMENT_SOURCES_VALIDATE_BILLING_ADDRESS;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object6 = {};
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
name = a0.name;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object6.name = name;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
line1 = a0.line1;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object6.line_1 = line1;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
line2 = a0.line2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object6.line_2 = line2;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
city = a0.city;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object6.city = city;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
state = a0.state;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object6.state = state;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
postalCode = a0.postalCode;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object6.postal_code = postalCode;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
country = a0.country;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object6.country = country;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
email = a0.email;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object6.email = email;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object5.billing_address = object6;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object4.body = object5;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
object4.rejectWithError = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(post, HTTP, [object4]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
body = value5.body;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
try {
|
|
token = body.token;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
binding3 = env2_2;
|
|
value7 = binding(binding3[5]);
|
|
v8BillingAddressSkemaErrorToBillingError = value7.parseV8BillingAddressSkemaErrorToBillingError(error);
|
|
binding = env2_1;
|
|
value = binding(binding3[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL', error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
return token;
|
|
}
|
|
|
|
function* _fun34697(a0) { // fn#34697, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:808, offset: 0x0105f542, size: 165 bytes, params: 2, frame: 17
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const HTTP = env2_0(env2_2[4]).HTTP;
|
|
const post = HTTP.post;
|
|
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
|
|
object2.url = env2_7.BILLING_POPUP_BRIDGE(a0);
|
|
yield Reflect.apply(post, HTTP, [object2]);
|
|
const value3 = undefined;
|
|
if (false) {
|
|
return value3;
|
|
}
|
|
const state = value3.body.state;
|
|
value = env2_1(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_POPUP_BRIDGE_STATE_UPDATE', state: state, paymentSourceType: a0});
|
|
return state;
|
|
}
|
|
|
|
async function _fun34700(a0, a1, a2, a3) { // fn#34700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4395:1120, offset: 0x0105f629, size: 591 bytes, params: 5, frame: 24
|
|
var r1;
|
|
var r10;
|
|
var r11;
|
|
var value;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var binding;
|
|
var value6;
|
|
var dispatch;
|
|
var object5;
|
|
var binding2;
|
|
var property;
|
|
var value7;
|
|
var HTTP;
|
|
var post;
|
|
var BILLING_PAYMENT_SOURCES;
|
|
var object6;
|
|
var analyticsLocation;
|
|
var object7;
|
|
var object8;
|
|
var name;
|
|
var line1;
|
|
var line2;
|
|
var city;
|
|
var state;
|
|
var postalCode;
|
|
var country;
|
|
var email;
|
|
var billingAddressToken;
|
|
var bank;
|
|
var returnUrl;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var createFromServer;
|
|
var body;
|
|
var fromServer;
|
|
var binding3;
|
|
var value11;
|
|
var error;
|
|
var binding4;
|
|
var value12;
|
|
var parseV8BillingAddressSkemaErrorToBillingError;
|
|
var v8BillingAddressSkemaErrorToBillingError;
|
|
var value13;
|
|
var fields;
|
|
var code;
|
|
var ErrorCodes;
|
|
var CONFIRMATION_REQUIRED;
|
|
exceptionSkip72: while (true) {
|
|
exceptionLanding72: while (true) {
|
|
value = a4;
|
|
value2 = undefined;
|
|
value3 = false;
|
|
if (value3) {
|
|
return value2;
|
|
}
|
|
value4 = undefined;
|
|
if (value !== value4) {
|
|
r1 = value;
|
|
} else {
|
|
r1 = false;
|
|
}
|
|
await value4;
|
|
value = undefined;
|
|
value5 = false;
|
|
if (value5) {
|
|
return value;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_1;
|
|
value6 = binding(env2_2[6]);
|
|
dispatch = value6.dispatch;
|
|
Reflect.apply(dispatch, value6, [{type: 'BILLING_PAYMENT_SOURCE_CREATE_START'}]);
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
property = binding2[4];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value7 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
HTTP = value7.HTTP;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
BILLING_PAYMENT_SOURCES = binding.BILLING_PAYMENT_SOURCES;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object5.url = BILLING_PAYMENT_SOURCES;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object6 = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
analyticsLocation = a3.analyticsLocation;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object6.location = analyticsLocation;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object5.query = object6;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object7 = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object7.payment_gateway = a0;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object7.token = a1;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object8 = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
name = a2.name;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object8.name = name;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
line1 = a2.line1;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object8.line_1 = line1;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
line2 = a2.line2;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object8.line_2 = line2;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
city = a2.city;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object8.city = city;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
state = a2.state;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object8.state = state;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
postalCode = a2.postalCode;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object8.postal_code = postalCode;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
country = a2.country;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object8.country = country;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
email = a2.email;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object8.email = email;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object7.billing_address = object8;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
billingAddressToken = a3.billingAddressToken;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object7.billing_address_token = billingAddressToken;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
bank = a3.bank;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object7.bank = bank;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
returnUrl = a3.returnUrl;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object7.return_url = returnUrl;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object7.default = r1;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object5.body = object7;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object5.rejectWithError = false;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(post, HTTP, [object5]);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
await value8;
|
|
try {
|
|
value9 = undefined;
|
|
value10 = false;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
if (value10) {
|
|
return value9;
|
|
}
|
|
try {
|
|
binding = env2_4;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
createFromServer = binding.createFromServer;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
body = value9.body;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
fromServer = Reflect.apply(createFromServer, binding, [body]);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
property = binding3[6];
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
dispatch = value11.dispatch;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object5 = {};
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object5.type = 'BILLING_PAYMENT_SOURCE_CREATE_SUCCESS';
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
object5.paymentSource = fromServer;
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value11, [object5]);
|
|
} catch (error) {
|
|
break exceptionLanding72;
|
|
}
|
|
return fromServer;
|
|
break exceptionSkip72;
|
|
}
|
|
binding = env2_0;
|
|
binding4 = env2_2;
|
|
value12 = binding(binding4[5]);
|
|
parseV8BillingAddressSkemaErrorToBillingError = value12.parseV8BillingAddressSkemaErrorToBillingError;
|
|
v8BillingAddressSkemaErrorToBillingError = Reflect.apply(parseV8BillingAddressSkemaErrorToBillingError, value12,
|
|
[error]);
|
|
value13 = error != null;
|
|
if (value13) {
|
|
body = error.body;
|
|
r10 = body != null;
|
|
if (r10) {
|
|
if (body.adyen_redirect_url) {
|
|
fields = v8BillingAddressSkemaErrorToBillingError.fields;
|
|
if (error == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
fields.adyen_redirect_url = body.adyen_redirect_url;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (r10) {
|
|
fields = v8BillingAddressSkemaErrorToBillingError.fields;
|
|
if (error == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
fields.adyen_redirect_url = body.adyen_redirect_url;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
r10 = value13;
|
|
r11 = value4;
|
|
if (r10) {
|
|
if (r11.adyen_redirect_url) {
|
|
fields = v8BillingAddressSkemaErrorToBillingError.fields;
|
|
if (error == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
fields.adyen_redirect_url = body.adyen_redirect_url;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
if (r10) {
|
|
fields = v8BillingAddressSkemaErrorToBillingError.fields;
|
|
if (error == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
body = error.body;
|
|
if (body == null) {
|
|
fields.adyen_redirect_url = value4;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
fields.adyen_redirect_url = body.adyen_redirect_url;
|
|
if (v8BillingAddressSkemaErrorToBillingError.code === binding(binding4[5]).ErrorCodes.CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
value.dispatch({type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError});
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
code = v8BillingAddressSkemaErrorToBillingError.code;
|
|
ErrorCodes = binding(binding4[5]).ErrorCodes;
|
|
CONFIRMATION_REQUIRED = ErrorCodes.CONFIRMATION_REQUIRED;
|
|
if (code === CONFIRMATION_REQUIRED) {
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
}
|
|
binding = env2_1;
|
|
value = binding(env2_2[6]);
|
|
dispatch = value.dispatch;
|
|
Reflect.apply(dispatch, value, [{type: 'BILLING_PAYMENT_SOURCE_CREATE_FAIL',
|
|
error: v8BillingAddressSkemaErrorToBillingError}]);
|
|
throw v8BillingAddressSkemaErrorToBillingError;
|
|
break exceptionSkip72;
|
|
}
|
|
}
|
|
|