import { IWCToken, IPackage, IPromotion, IPayment, IShipping, IFinance, IOrderList, INotification, IMoreInfoList, ICreditLine, IOrder, ISubscriber } from './modal/common'; import { Cart } from './modal/cart'; import { Customer, ICreditProfile } from './modal/customer'; import * as Constants from '../shared/constants'; import { User } from './modal/user'; import { IUsableShipping, IOrderItemDevice, IDevice, IDeviceItem, IPreferredPrice, IOrderItemAccessory } from './modal/common'; import { TradeinService } from '../services/tradein.service'; import { IKeyValue } from './modal/key.value'; import { environment } from 'environments/environment'; export const loginResponse: IWCToken = { 'logonId': 'tomuat66', 'password': 'Password1', 'userId': 1092846, 'WCToken': '1092846%2ComXtDE8hFi5r2By0cD%3D', 'WCTrustedToken': '1092846%2C2IKO8uozCobCQce57E9pHXZ5CVY%3D', 'personalizationID': '1282325805540-1441', 'logonTime': '04/12/2017' }; // tslint:disable-next-line:max-line-length export const profileResponse = { 'channels': [ { 'name': 'Consumer Direct', 'storeId': Constants.STORE_ID_CD }, { 'name': 'Business Direct', 'storeId': Constants.STORE_ID_BD }, { 'name': 'TOM in Care', 'storeId': Constants.STORE_ID_CS }], 'middleName': '', 'lastName': 'Baireddy', 'salesStats': { 'pendingOrdersCount': 0, 'totalLinesCount': 0, 'totalOrdersCount': 0, 'conversionRate': 0, 'submittedOrdersCount': 0 }, 'address': { 'state': 'AL', 'phone1': '', 'email1': '', 'city': '1', 'address1': '1', 'zipCode': '1', 'address2': '' }, 'isRetailSurveyEnabled': true, 'isCDSurveyEnabled': false, 'isBDSurveyEnabled': true, 'isCSSurveyEnabled': false, 'permissions': { 'canIssueCredit': true, 'canChangeChannel': true, 'isWHSupervisor': false, 'canPerformReturnExchange': true, 'isFraudAgent': false, 'isChangeChannelActive': true, 'isReadOnlyRep': false, 'canAccessBD': true, 'isTelesales': true, 'canUnmaskSSN': false, 'canAccessTIC': true, 'canIssueROD': true, 'isWHRep': false, 'isManager': false, 'isWTS': true, 'canManualReview': true, 'canBypassValidation': false, 'canOverrideRemorse': false, 'canPerformExchange': true, 'canEditOrder': true, 'canAccessCD': true, 'changeChannelValues': true, 'canCheckout': true, 'isOrderViewer': true, 'canRiskReview': false }, 'firstName': 'Sreekanth', 'lookAndFeel': null, 'toggleKey': null } export const orderDate = '2018-06-15'; export const storeId = 10553; export const cartResponse = { orderId: 1234, prefix: 1234, status: 'string', refType: 'string', fullOrderId: 'string', sapOrderId: 1234, webOrderId: 1234, dealerCode: 'string', storeId: 'string', createdBy: 'string', createdByDate: '04/12/2017', submittedBy: 'string', submittedByDate: '04/12/2017', lastModifiedBy: 'string', lastModifiedByDate: '04/12/2017', totalDueToday: 1234, totalDueMonthly: 1234, totalDevicesDueToday: 1234, totalAccessoriesDueToday: 1234, totalSSKDueToday: 1234, totalRateplansDueMonthly: 1234, totalFeaturesDueMonthly: 1234, totalFinanceDueToday: 1234, totalFinanceDueMonthly: 1234, totalShippingDueToday: 1234, totalDiscountDueToday: 1234, totalAutopayDiscountDueMonthly: 1234, totalHybridBandDiscountDueMonthly: 1234, totalDiscountDueMonthly: 1234, totalPromotionDueToday: 1234, totalPromotionDueMonthly: 1234, totalDepositDueToday: 1234, totalTaxDueToday: 1234, totalShippingTaxDueToday: 1234, isFinancedOrder: true, isShopifyOrder: false, customer: null, packages: [], paymentInfo: null, shippingInfo: null, financeInfo: null, promotionInfo: [], activePackageId: 1234, activeLineId: 1234, miniCartUpdated: false, checkedCoverage: false } export const deletePackageResponse: any = { } export const deleteRatePlanResponse: any = { } export const applypromotionData: any = { } export const dealerCodeStatus: any = { 'isDealerCodeValid': true } export const removeDeviceResponse: any = { } export const customerSearchResponse: Customer = { orderId: 1234, customerId: 1234, altCustomerId: 1234, otpVerified: true, tokenVerified: true, interactionId: '123', addressId: 1234, firstName: 'string', middleName: 'string', lastName: 'string', address1: 'string', address2: 'string', city: 'string', state: 'string', zipCode: '98021', phone1: 'string', phone2: 'string', email1: 'string', email2: 'string', nonTMOMobilePin: 'string', nonTMOMobileNumber:'string', creditType: 'string', paperlessBillingEmail: 'test@t-mobile.com', brpAuIndicator: 'string', brpAuDetails: [{ role: 'string', name: 'String', firstName: 'String', lastName: 'String' }], creditProfile: { accountNumber: 123456789, tentativeBAN: 123456789, identifier: 'string', identifierType: 'string', creditClass: 'string', accountType: 'string', accountSubType: 'credit', accountStatus: 'string', accountTenure: 'string', behaviorScore: 'string', onyxReferenceNumber: 'string', autoPayIndicator: false, isExistingCustomer: false, planType: 'string', activationDate: '04/12/2017', taxTreatment: 'string', isNCFPlan: false, isDelinquent: false, isExtendedPaySchedule: false, hideFinance: false, billCurrent: false, pastDueAmount: 0, totalBalanceDue: 0, isFinancedJod: false, isFinancedEip: false, loanCrp: 0, leaseCrp: 0, activeVoiceLines: 0, allowedVoiceLines: 0, authorizedVoiceLines: 0, cancelledVoiceLines: 0, reservedVoiceLines: 0, suspendedVoiceLines: 0, usedVoiceLines: 0, maxVoiceLines: 0, activeDataLines: 0, allowedDataLines: 0, authorizedDataLines: 0, cancelledDataLines: 0, reservedDataLines: 0, suspendedDataLines: 0, usedDataLines: 0, maxDataLines: 0, financeEligibleCount: 0, ecla: 0, ecl: 0, eclb: 0, lca: 0, mpec: 0, virtualRatePlan: 'string', reasonCode: 0, onTimePayment: 0, remainingPayment: 0, eligibleDate: '04/12/2017', effectiveDate: '2019-04-12', dateOfBirth: 'string' }, deposits: [ { 'depositType': 'FULL', 'amount': 0, 'lineType': 'GSM', 'lineId': 6 }], subscribers: [{ phoneNumber: 1234567890, firstName: 'string', lastName: 'string', emailAddress: 'test@t-mobile.com', rateplanId: 123456, rateplanName: 'string', rateplanSOC: 'string', montlyPrice: 123456, isGSM: true, isPooledPlan: true, isVirtualDigit: true, isDuplicateDigit: true, imeiNumber: 'string', deviceId: 123456, deviceName: 'string', deviceSKU: 'string', devicePrice: 123456, features: [], primaryMsisdn: 123456, duplicateLineMappingCount: 12, isPAH: true, isAuthorized: true, isSubscriberSelected: true, role: 'string' }, { phoneNumber: 1234567890, firstName: 'string', lastName: 'string', emailAddress: 'test@t-mobile.com', rateplanId: 123457, rateplanName: 'string1', rateplanSOC: 'string2', montlyPrice: 123456, isGSM: true, isPooledPlan: true, isVirtualDigit: true, isDuplicateDigit: true, imeiNumber: 'string', deviceId: 123456, deviceName: 'string', deviceSKU: 'string', devicePrice: 123456, features: [], primaryMsisdn: 123456, duplicateLineMappingCount: 1, isPAH: true, isAuthorized: true, isSubscriberSelected: false, role: 'string' } ], 'orders': [], dealerCode: 'string', webOrderId: 1234, retailStoreId: 1234, totalActiveSubscribers: 0, existingDuplicateLines: 0, existingvirtualLines: 0, dateOfBirth: '04/12/2000', orderNotes: null, serviceStatus: { code: 100, message: 'string', moreInfo: 'string' } } export const packagesData: IPackage[] = [{ packageId: 1234, lineId: 1234, packageType: 'voice', plan: null, device: { orderItemId: 1, parentOrderItemId: 1, productId: 1, tradeInInfo: 'string', itemId: 1, name: 'string', type: 'string', deviceSKU: 'IPhone50', activationDate: '04/12/2017', manufacturer: 'string', thumbNail: 'string', fullImage: 'string', suggestedPrice: 1, instantDiscount: 1, openBoxDiscount: 1, promotionDiscount: 1, shippingDiscount: 1, mailInRebate: 1, finalPrice: 1, crp: 1, term: 1, financeType: 'frp', downPayment: 1, residualPrice: 1, monthlyPrice: 1, dueToday: 1, minFirstInstallment: 1, taxCharge: 1, shippingCharge: 1, shippingTax: 1, isTradein: false, sim: 'N/A', imei: 'string', status: 'string', isSimOnly: false, msisdn: 'string', activationError: 'string' }, origRatePlanSoc: 'string', features: [{ orderItemId: 12345, parentOrderItemId: 12345, productId: 12345, itemId: 12345, name: 'string', type: 'string', featureSOC: 'string', isMandatory: false, monthlyPrice: 99.99, origMonthlyPrice: 0.00 }], accessories: [], ppuAddress: null, isDuplicateLine: false, isVirtual: false, primaryLine: 1234, primaryLineType: 'string', e911Address: null, numberPorting: { numberPortingId: 123456, phoneNumber: 123456, accountNumber: 123456, accountPin: 123456, }, npaNxxType: null, showPackage: false, deleteOption: true, returnOrderItemId: 1234 }, { packageId: 1234, lineId: 1234, packageType: 'accessory', origRatePlanSoc: 'string', plan: { orderItemId: 12345, parentOrderItemId: 12345, productId: 12345, itemId: 12345, name: 'string', type: 'string', rateplanSOC: 'string', isNCFPlan: false, isTaxInclusivePlan: false, isPooledPlan: false, isVirtualDigit: false, isDuplicateDigit: false, isVirtualPlan: false, isLineLinkPlan: false, minimumLines: 12345, maximumLines: 12345, autoPayCreditAmount: 12345, hybridBanCreditAmount: 12345, subscriberLineLevelBillCreditAmount: 1234, nonSubscriberLineLevelBillCreditAmount: 1235, monthlyPrice: 99.99, origMonthlyPrice: 0.00 }, device: null, features: [{ orderItemId: 12345, parentOrderItemId: 12345, productId: 12345, itemId: 12345, name: 'string', type: 'string', featureSOC: 'string', isMandatory: false, monthlyPrice: 99.99, origMonthlyPrice: 0.00 }], accessories: [{ orderItemId: 1, parentOrderItemId: 1, productId: 1, itemId: 1, name: 'string', type: 'string', accessorySKU: 'string', quantity: 1, manufacturer: 'string', thumbNail: 'string', fullImage: 'string', isMandatory: false, suggestedPrice: 1, instantDiscount: 1, openBoxDiscount: 1, promotionDiscount: 1, shippingDiscount: 1, mailInRebate: 1, finalPrice: 1, crp: 1, term: 1, financeType: 'string', downPayment: 1, residualPrice: 1, monthlyPrice: 1, dueToday: 1, minFirstInstallment: 1, taxCharge: 1, shippingCharge: 1, shippingTax: 1, status: 'string', isFree: false }], ppuAddress: null, isDuplicateLine: false, isVirtual: false, primaryLine: 1234, primaryLineType: 'string', e911Address: null, numberPorting: null, npaNxxType: null, showPackage: false, deleteOption: true, returnOrderItemId: 1234 }] export const cartData: Cart = { orderId: 12345, prefix: 12345, status: 'string', refType: 'string', fullOrderId: 'string', sapOrderId: 12345, webOrderId: 12345, dealerCode: 'string', agentDealerCode: 'string', companyName: 'string', corpNode: 'string', storeId: Constants.STORE_ID_CD, retailStoreId: Constants.STORE_ID_CD, createdBy: 'string', createdByDate: '05/05/2017', submittedBy: 'string', submittedByDate: '07/05/2017', lastModifiedBy: 'string', lastModifiedByDate: '04/12/2017', realTimeInventory: null, totalDueToday: 12345, totalDueMonthly: 12345, totalDevicesDueToday: 12345, totalAccessoriesDueToday: 12345, totalSSKDueToday: 12345, totalRateplansDueMonthly: 12345, totalFeaturesDueMonthly: 12345, totalFinanceDueMonthly: 12345, totalShippingDueToday: 12345, totalDiscountDueToday: 12345, totalFinanceAmount: 12345, totalAutopayDiscountDueMonthly: 12345, totalHybridBandDiscountDueMonthly: 12345, totalDiscountDueMonthly: 12345, totalPromotionDueToday: 12345, totalPromotionDueMonthly: 12345, totalDepositDueToday: 12345, totalTaxDueToday: 12345, totalShippingTaxDueToday: 12345, totalLineLevelCreditAmountDueMonthly: 12345, totalTradeinPromotionDueMonthly: 12345, totalAdjustedDiscountDueToday: 0, totalAdjustedDiscountDueMonthly: 0, isFinancedOrder: true, isShopifyOrder: true, isBYOSOrder: false, isDashOrder: true, relatedOrderId: 12345, originalOrderId: 12345, isHomeInternetOrder: false, customer: { orderId: 1234, customerId: 1234, altCustomerId: 1234, otpVerified: true, tokenVerified: true, interactionId: '123', addressId: 1234, firstName: 'string', middleName: 'string', lastName: 'string', address1: 'string', address2: 'string', city: 'string', state: 'string', zipCode: '98021', phone1: 'string', phone2: 'string', email1: 'string', email2: 'string', nonTMOMobilePin:'string', nonTMOMobileNumber: 'string', creditType: 'string', paperlessBillingEmail: 'test@t-mobile.com', brpAuIndicator: 'string', brpAuDetails: [{ role: 'string', name: 'String', firstName: 'String', lastName: 'String' }], creditProfile: { accountNumber: 123456789, tentativeBAN: 123456789, identifier: 'string', identifierType: 'string', creditClass: 'string', accountType: 'string', accountSubType: 'credit', accountStatus: 'string', accountTenure: 'string', behaviorScore: 'string', onyxReferenceNumber: 'string', autoPayIndicator: false, isExistingCustomer: false, planType: 'string', activationDate: '04/12/2017', taxTreatment: 'string', isNCFPlan: false, isDelinquent: false, isExtendedPaySchedule: false, hideFinance: false, billCurrent: false, pastDueAmount: 0, totalBalanceDue: 0, isFinancedJod: false, isFinancedEip: false, loanCrp: 0, leaseCrp: 0, activeVoiceLines: 0, allowedVoiceLines: 0, authorizedVoiceLines: 0, cancelledVoiceLines: 0, reservedVoiceLines: 0, suspendedVoiceLines: 0, usedVoiceLines: 0, maxVoiceLines: 0, activeDataLines: 0, allowedDataLines: 0, authorizedDataLines: 0, cancelledDataLines: 0, reservedDataLines: 0, suspendedDataLines: 0, usedDataLines: 0, maxDataLines: 0, financeEligibleCount: 0, ecla: 0, ecl: 0, eclb: 0, lca: 0, mpec: 0, virtualRatePlan: 'string', reasonCode: 0, onTimePayment: 0, remainingPayment: 0, eligibleDate: '04/12/2017', effectiveDate: '2019-04-12', dateOfBirth: 'string' }, deposits: [ { 'depositType': 'FULL', 'amount': 0, 'lineType': 'GSM', 'lineId': 6 }], subscribers: [{ phoneNumber: 1234567890, firstName: 'string', lastName: 'string', emailAddress: 'test@t-mobile.com', rateplanId: 123456, rateplanName: 'string', rateplanSOC: 'string', montlyPrice: 123456, isGSM: true, isPooledPlan: true, isVirtualDigit: true, isDuplicateDigit: true, imeiNumber: 'string', deviceId: 123456, deviceName: 'string', deviceSKU: 'string', devicePrice: 123456, features: [], primaryMsisdn: 123456, duplicateLineMappingCount: 12, isPAH: true, isAuthorized: true, isSubscriberSelected: true, role: 'string' }, { phoneNumber: 1234567890, firstName: 'string', lastName: 'string', emailAddress: 'test@t-mobile.com', rateplanId: 123457, rateplanName: 'string1', rateplanSOC: 'string2', montlyPrice: 123456, isGSM: true, isPooledPlan: true, isVirtualDigit: true, isDuplicateDigit: true, imeiNumber: 'string', deviceId: 123456, deviceName: 'string', deviceSKU: 'string', devicePrice: 123456, features: [], primaryMsisdn: 123456, duplicateLineMappingCount: 1, isPAH: true, isAuthorized: true, isSubscriberSelected: false, role: 'string' } ], 'orders': [], dealerCode: 'string', webOrderId: 1234, retailStoreId: 1234, totalActiveSubscribers: 0, existingDuplicateLines: 0, existingvirtualLines: 0, dateOfBirth: '04/12/2000', orderNotes: null, serviceStatus: { code: 100, message: 'string', moreInfo: 'string' } }, packages: [{ packageId: 1234, lineId: 1234, packageType: 'voice', plan: null, device: { orderItemId: 1, parentOrderItemId: 1, productId: 1, tradeInInfo: 'string', itemId: 1, name: 'iphone', type: 'string', deviceSKU: 'IPhone50', activationDate: '04/12/2017', manufacturer: 'apple', thumbNail: 'string', fullImage: 'string', suggestedPrice: 1, instantDiscount: 1, openBoxDiscount: 1, promotionDiscount: 1, shippingDiscount: 1, mailInRebate: 1, finalPrice: 1, crp: 1, term: 1, financeType: 'frp', downPayment: 1, residualPrice: 1, monthlyPrice: 1, dueToday: 1, minFirstInstallment: 1, taxCharge: 1, shippingCharge: 1, shippingTax: 1, isTradein: false, sim: 'N/A', imei: 'string', status: 'string', isSimOnly: false, msisdn: 'string', activationError: 'string' }, origRatePlanSoc: 'string', features: [{ orderItemId: 12345, parentOrderItemId: 12345, productId: 12345, itemId: 12345, name: 'string', type: 'string', featureSOC: 'string', isMandatory: false, monthlyPrice: 99.99, origMonthlyPrice: 0.00 }], accessories: [], ppuAddress: null, isDuplicateLine: false, isVirtual: false, primaryLine: 1234, primaryLineType: 'string', e911Address: null, numberPorting: { numberPortingId: 123456, phoneNumber: 123456, accountNumber: 123456, accountPin: 123456, }, npaNxxType: null, showPackage: false, deleteOption: true, returnOrderItemId: 1234 }, { packageId: 1234, lineId: 1234, packageType: 'accessory', origRatePlanSoc: 'string', plan: { orderItemId: 12345, parentOrderItemId: 12345, productId: 12345, itemId: 12345, name: 'string', type: 'string', rateplanSOC: 'string', isNCFPlan: false, isTaxInclusivePlan: false, isPooledPlan: false, isVirtualDigit: false, isDuplicateDigit: false, isVirtualPlan: false, isLineLinkPlan: false, minimumLines: 12345, maximumLines: 12345, autoPayCreditAmount: 12345, hybridBanCreditAmount: 12345, subscriberLineLevelBillCreditAmount: 1234, nonSubscriberLineLevelBillCreditAmount: 1235, monthlyPrice: 99.99, origMonthlyPrice: 0.00 }, device: null, features: [{ orderItemId: 12345, parentOrderItemId: 12345, productId: 12345, itemId: 12345, name: 'string', type: 'string', featureSOC: 'string', isMandatory: false, monthlyPrice: 99.99, origMonthlyPrice: 0.00 }], accessories: [{ orderItemId: 1, parentOrderItemId: 1, productId: 1, itemId: 1, name: 'string', type: 'string', accessorySKU: 'string', quantity: 1, manufacturer: 'string', thumbNail: 'string', fullImage: 'string', isMandatory: false, suggestedPrice: 1, instantDiscount: 1, openBoxDiscount: 1, promotionDiscount: 1, shippingDiscount: 1, mailInRebate: 1, finalPrice: 1, crp: 1, term: 1, financeType: 'string', downPayment: 1, residualPrice: 1, monthlyPrice: 1, dueToday: 1, minFirstInstallment: 1, taxCharge: 1, shippingCharge: 1, shippingTax: 1, status: 'string', isFree: false }], ppuAddress: null, isDuplicateLine: false, isVirtual: false, primaryLine: 1234, primaryLineType: 'string', e911Address: null, numberPorting: null, npaNxxType: null, showPackage: false, deleteOption: true, returnOrderItemId: 1234 }], paymentInfo: null, shippingInfo: { carrier: 'string', shipCode: 'string', shipModeId: 12345, shipModeDesc: 'string', quotedEstDate: 'string', estShipDateFrom: 'string', estShipDateTo: 'string', shippedDate: 'string', buyersRemorseEligible: false, daysPostShipment: 12345, inboundTracking: 'string', outboundTracking: 'string', sameAsBilling: false, address: { addressId: 1234, firstName: 'string', middleName: 'string', lastName: 'string', address1: 'string', address2: 'string', city: 'string', state: 'string', zipCode: 'string', phone1: 'string', phone2: 'string', email1: 'string', email2: 'string', }, trackingStatus: 'string', isResendTrackingEmail: false, returnTracking: 'string', }, financeInfo: null, promotionInfo: [], orderBlockInfo: null, serviceStatus: null, activePackageId: 12345, activeLineId: 12345, taxRate: 0, esigEmail: 'test@t-mobile.com' } export const featureItemData = { productId: 12345, productType: 'string', categoryId: 12345, categoryName: 'string', name: 'string', description: 'string', groupName: 'SUB', subGroupName: 'string', featureSOC: 'string', isPHP: true, isPHPWarranty: true, isMandatory: true, conflicts: [], monthlyPrice: 12345, region: 'string', altSOC: 'string' } export const packageData: any = { } export const deleteAccessoryResponse: any = { } export const promotionData: IPromotion[] = [{ promoId: '1A2B', promoCode: 'Iphone50', description: 'none', promoType: 'string', startDate: 'string', endDate: 'string' }] export const pricingResponse: any = { pricingId: 12345, priceValue: 120 } export const conflictsResponse: any = { } export const cartDataResponse: any = cartData; export const paymentData: IPayment = { ccAuthCounter: 0, paymentType: 'string', paymentAlias: 'string', ccAlias: 'string', paymentMethod: 'string', cardType: 'string', lastFour: 'string', expMonth: 'string', expYear: 'string', cvv: 0, amount: 0, paymentAddress: null, transactionId: 'string', fraudRequestId: 'string', fraudReasonCode: 'string', fraudCheckResult: 'string', cvvResponseCode: 'string', avsResponseCode: 'string' } export const shippingData: IShipping = { carrier: 'string', shipCode: 'string', shipModeId: 1234, shipModeDesc: 'string', quotedEstDate: '04/12/2017', estShipDateFrom: '04/12/2017', estShipDateTo: '04/12/2017', shippedDate: '04/12/2017', buyersRemorseEligible: true, daysPostShipment: 1234, inboundTracking: 'string', outboundTracking: 'string', sameAsBilling: true, address: null, trackingStatus: 'No issued', isResendTrackingEmail: true, returnTracking: '888uuejkajsas8' } export const financeData: IFinance = { eSignStatus: 'string', eSignEmai: 'string', installmentPlanId: 'string', totalFinanceMonthly: 1234, totalAmountFinanced: 1234, totalAdditionalDownpayment: 1234, totalDiscounts: 1234, totalPricingAdjustment: 1234, totalDownpaymentPaidToday: 1234, totalMinDownpayment: 1234, financeTerm: 1234, totalPurOptAmt: 1234, financedItems: [] } export const orderSearchResponse: IOrderList = { 'isTotalGreaterThanMax': true, 'totalCount': 1, 'orders': [ { 'lastName': null, 'status': 'P', 'createdDate': '08/12/2017 09:22:38 AM PDT', 'orderId': 69328678, 'customerId': 123448414, 'fullOrderId': '1169328678', 'firstName': null, 'storeId': Constants.STORE_ID_CD, 'refType': 'NEW_ORDER_TYPE', 'logonId': 1234 }] } export const notificationResponse: INotification[] = [{ id: 123456, title: 'string', isRead: false, notification: 'string', isCollapsed: false }] export const UpdateNotificationResponse = { ids: ['string'] }; export const logoutResponse: any = { 'isLocalDataCleared': false, 'userId': 30169 } export const creditCheckResponse = { mpec: 720, altCustomerId: 12345, approvedVoiceLines: 5, accountType: 'I', serviceStatus: { moreInfo: null, message: 'Success', code: 100 }, isManualReview: false, orderId: 252002, lca: 720, billingAccountType: 'POSTPAID', ecl: 0, activeDataLines: 0, loanCrp: 6, prefix: 11, activeVoiceLines: 0, ecla: 0, eclb: 0, deposits: [ { depositType: 'REDUCED', amount: 75, lineType: 'GSM', lineId: 1 }, { depositType: 'FULL', amount: 75, lineType: 'GSM', lineId: 1 }, { depositType: 'REDUCED', amount: 55, lineType: 'GSM', lineId: 2 }, { depositType: 'FULL', amount: 55, lineType: 'GSM', lineId: 2 }, { depositType: 'REDUCED', amount: 25, lineType: 'GSM', lineId: 3 }, { depositType: 'FULL', amount: 25, lineType: 'GSM', lineId: 3 }, { depositType: 'REDUCED', amount: 25, lineType: 'GSM', lineId: 4 }, { depositType: 'FULL', amount: 25, lineType: 'GSM', lineId: 4 }, { depositType: 'REDUCED', amount: 25, lineType: 'GSM', lineId: 5 }, { depositType: 'FULL', amount: 25, lineType: 'GSM', lineId: 5 }, { depositType: 'REDUCED', amount: 25, lineType: 'MBB', lineId: 1 }, { depositType: 'FULL', amount: 25, lineType: 'MBB', lineId: 1 }, { depositType: 'REDUCED', amount: 25, lineType: 'MBB', lineId: 2 }, { depositType: 'FULL', amount: 25, lineType: 'MBB', lineId: 2 }, { depositType: 'REDUCED', amount: 25, lineType: 'MBB', lineId: 3 }, { depositType: 'FULL', amount: 25, lineType: 'MBB', lineId: 3 }, { depositType: 'REDUCED', amount: 25, lineType: 'MBB', lineId: 4 }, { depositType: 'FULL', amount: 25, lineType: 'MBB', lineId: 4 }, { depositType: 'REDUCED', amount: 25, lineType: 'MBB', lineId: 5 }, { depositType: 'FULL', amount: 25, lineType: 'MBB', lineId: 5 } ], onyxReferenceNumber: 20172301000001, customerId: 99093491, behaviorScore: 0, leaseCrp: 106, accountSubType: null, addressId: null, maxDataLines: 5, maxVoiceLines: 5, accountTenure: 0, fullOrderId: 1100252002, approvedDataLines: 5, creditClass: 'Y' } export const newCustomerData: any = { 'isCustomerCreated': true } export const moreInfoResponse: IMoreInfoList[] = [{ productId: 123456, name: 'string', group: 'string', items: [], itemList: [] }] export const creditDetails: ICreditLine = { ecla: 12345, ecl: 12345, eclb: 12345, lca: 12345, mpec: 12345, financeEligibleCount: 12345, hideFinance: false } export const orderDetails: IOrder[] = [{ orderId: 12345, fullOrderId: 'string', firstName: 'string', lastName: 'string', customerId: 12345, storeId: 12345, refType: 'string', status: 'string', logonId: 12345, createdDate: '04/12/2017' }, { orderId: 123456, fullOrderId: 'string', firstName: 'string', lastName: 'string', customerId: 123456, storeId: 123456, refType: 'string', status: 'string', logonId: 123456, createdDate: '04/12/2017' } ] export const subscribersDetails: ISubscriber[] = [{ phoneNumber: 12345, firstName: 'string', lastName: 'string', emailAddress: 'test@t-mobile.com', rateplanId: 12345, rateplanName: 'string', rateplanSOC: 'string', montlyPrice: 12345, isGSM: true, isPooledPlan: true, isVirtualDigit: true, isDuplicateDigit: true, imeiNumber: 'string', deviceId: 12345, deviceName: 'string', deviceSKU: 'string', devicePrice: 12345, features: [], primaryMsisdn: 12345, duplicateLineMappingCount: 12345, isPAH: false, isAuthorized: false, isSubscriberSelected: true, role: 'string' }] export const removeFeatureResponse: any = { } export const OrderNotesResponse: any = { 'orderNote': 'TMO rate plan addition', 'orderStatus': 'WIP' } export const sortByResponse: number[] = [1, 2, 3] export const userMockData: User = { logonId: 'string', password: 'string', userId: 1245, WCToken: 'string', WCTrustedToken: 'string', personalizationID: 'string', middleName: 'string', lastName: 'string', firstName: 'string', address1: 'string', address2: 'string', isRetailSurveyEnabled: true, isCDSurveyEnabled: false, isBDSurveyEnabled: true, isCSSurveyEnabled: false, city: 'string', state: 'string', zipCode: 'string', phone1: 'string', phone2: 'string', email1: 'string', email2: 'string', logonTime: '04/12/2017', envName: 'QLAB02', channels: [], permissions: { isManager: false, isWTS: false, isFraudAgent: false, isWHRep: false, isWHSupervisor: false, isReadOnlyRep: false, isOrderViewer: false, isTelesales: false, canAccessCD: false, canAccessBD: false, canAccessTIC: false, canAccessRTS: false, canChangeChannel: false, canCheckout: false, canEditOrder: false, canIssueCredit: false, canIssueROD: false, canPerformReturnExchange: false, canPerformExchange: false, canOverrideRemorse: false, canManualReview: false, canRiskReview: false, isChangeChannelActive: false, changeChannelValues: false, canBypassValidation: false, canSearchSsnImeiSim: false, canUnmaskSSN: false, isSupervisor: false, isShopifyAgent: true, canSubmitWebOrder: false, isTICUserEligibleForNewActivation: false, showCustomerWebOrderId: false, showCustomerDealerCode: false, showCustomerCorporateFields: false, canDoCreditCheckNoCreditCheck: false, canAdjustPricing: false, showCheckoutDealercode: false, ShowCheckoutRetailStore: false, showCheckoutWebOrderId: false, showWebPaymentId: false, showAdvanceSection: false, isCDChannel: false, isBDChannel: false, isCSChannel: false, canIssueShippingCredit: false, canIssueAccessoryCredit: false, canIssueDeviceCredit: false, canIssueSSKCredit: false, isHRT: false, canAccessHomeInternet: false }, salesStats: null, registerType: 'string', notifications: [{ id: 1234, title: 'string', isRead: false, notification: 'string', isCollapsed: false, }], adjustPricingLimit: 12345, creditIssueLimit: 12345, dealerCode: 'string', favorites: null, jobTitle: 'string', taxAreaId: 480335435, retailStoreId: 4563, marketCode: 'string', marketName: 'string', regionName: 'string' } export const packagePlanData = { orderItemId: 12345, parentOrderItemId: 12345, productId: 12345, itemId: 12345, name: 'string', type: 'string', rateplanSOC: 'string', isNCFPlan: false, isTaxInclusivePlan: false, isPooledPlan: false, isVirtualDigit: false, isDuplicateDigit: false, isVirtualPlan: false, isLineLinkPlan: false, minimumLines: 12345, maximumLines: 12345, autoPayCreditAmount: 12345, hybridBanCreditAmount: 12345, monthlyPrice: 12345 } export const packageMockData = { packageId: 1234, lineId: 1234, packageType: 'string', isDuplicateLine: false, primaryLine: 1234, npaNxxType: null, primaryLineType: 'string', showPackage: false, plan: { orderItemId: 12345, parentOrderItemId: 12345, productId: 12345, itemId: 12345, name: 'string', type: 'string', rateplanSOC: 'string', isNCFPlan: false, isTaxInclusivePlan: false, isPooledPlan: false, isVirtualDigit: false, isDuplicateDigit: false, isVirtualPlan: false, isLineLinkPlan: false, minimumLines: 12345, maximumLines: 12345, autoPayCreditAmount: 12345, hybridBanCreditAmount: 12345, monthlyPrice: 12345 }, device: { orderItemId: 1, parentOrderItemId: 1, productId: 1, itemId: 1, name: 'string', tradeInInfo: 'string', type: 'string', deviceSKU: 'string', activationDate: '04/12/2017', manufacturer: 'string', thumbNail: 'string', fullImage: 'string', npa: 1234, isTradein: true, suggestedPrice: 1, instantDiscount: 1, openBoxDiscount: 1, promotionDiscount: 1, shippingDiscount: 1, mailInRebate: 1, finalPrice: 1, crp: 1, term: 1, financeType: 'string', downPayment: 1, residualPrice: 1, fullRetailPrice: 1, monthlyPrice: 1, dueToday: 1, minFirstInstallment: 1, taxCharge: 1, shippingCharge: 1, shippingTax: 1, sim: 'string', imei: 'string', status: 'string', isSimOnly: false }, features: [featureItemData], returnOrderItemId: 2345, accessories: [{ orderItemId: 1, parentOrderItemId: 1, productId: 1, itemId: 1, name: 'string', type: 'string', accessorySKU: 'string', manufacturer: 'string', thumbNail: 'string', fullImage: 'string', isMandatory: false, suggestedPrice: 1, instantDiscount: 1, openBoxDiscount: 1, promotionDiscount: 1, shippingDiscount: 1, mailInRebate: 1, finalPrice: 1, crp: 1, term: 1, financeType: 'string', downPayment: 1, residualPrice: 1, fullRetailPrice: 1, monthlyPrice: 1, dueToday: 1, minFirstInstallment: 1, taxCharge: 1, shippingCharge: 1, shippingTax: 1, status: 'string' }], ppuAddress: null, e911Address: null, numberPorting: null, deleteOption: true }; export const ShippingData: IUsableShipping = { sapDownShippingNoteInfo: 'string', estimateShipMessage: 'string', sapDownShippingApology: 'string', sapDownShippingNote: 'string', usableShippingMode: [{ defaultShippingEnabled: true, promotionMessage: 'string', shipModeId: 12345, shipModeCode: 'string', description: 'string', orderType: 'Shopify', }, { defaultShippingEnabled: false, promotionMessage: 'string', shipModeId: 12346, shipModeCode: 'string', description: 'string', orderType: 'Both', }], preOrderMessage: 'string' } export const CheckoutResponse: any = { } export const OrderItemDevice: IOrderItemDevice = { orderItemId: 0, parentOrderItemId: 1234, productId: 1234, itemId: 1234, name: 'string', type: 'string', deviceSKU: 'string', activationDate: '04/12/2017', manufacturer: 'string', thumbNail: 'string', fullImage: 'string', suggestedPrice: 1234, instantDiscount: 1234, openBoxDiscount: 1234, promotionDiscount: 1234, shippingDiscount: 1234, mailInRebate: 1234, finalPrice: 1234, crp: 1234, term: 1234, financeType: 'frp', downPayment: 1234, residualPrice: 1234, monthlyPrice: 1234, dueToday: 1234, minFirstInstallment: 1234, taxCharge: 1234, shippingCharge: 1234, shippingTax: 1234, sim: 'string', imei: 'string', status: 'string', isTradein: true, isSimOnly: true, msisdn: 'string', activationError: 'string', tradeInInfo: null } export const billingResponse = { addressId: 12345, firstName: 'string', middleName: 'string', lastName: 'string', address1: 'string', address2: 'string', city: 'string', state: 'string', zipCode: 'string', phone1: 'string', phone2: 'string', email1: 'string', email2: 'string' } export const deviceItem: IDeviceItem[] = [{ itemId: 1234, name: 'string', description: 'string', deviceSKU: 'string', isByos: true, sim: 'string', thumbNail: 'string', fullImage: 'string', colorName: 'string', colorImageUrl: 'string', isRefurbished: true, status: 'string', shipDateFrom: '04/12/2017', shipDateTo: '04/12/2017', suggestedPrice: 1234, instantDiscount: 1234, openBoxDiscount: 1234, promotionDiscount: 1234, mailInRebate: 1234, finalPrice: 1234, loan: [{ crp: 1, term: 1234, downPayment: 1234, monthlyPrice: 1234, }], lease: [{ crp: 101, term: 1234, downPayment: 1234, monthlyPrice: 1234, residualPrice: 1234, }], promotions: null }] export const deviceItemNonIsByos: IDeviceItem[] = [{ itemId: 1234, name: 'string', description: 'string', deviceSKU: 'string', isByos: false, sim: 'string', thumbNail: 'string', fullImage: 'string', colorName: 'string', colorImageUrl: 'string', isRefurbished: true, status: 'string', shipDateFrom: '04/12/2017', shipDateTo: '04/12/2017', suggestedPrice: 1234, instantDiscount: 1234, openBoxDiscount: 1234, promotionDiscount: 1234, mailInRebate: 1234, finalPrice: 1234, loan: [{ crp: 1, term: 1234, downPayment: 1234, monthlyPrice: 1234, }], lease: [{ crp: 101, term: 1234, downPayment: 1234, monthlyPrice: 1234, residualPrice: 1234, }], promotions: null }] export const deviceData: IDevice = { productId: 12345, productType: 'string', categoryId: 12345, categoryName: 'string', name: 'string', manufacturer: 'string', description: 'string', descriptions: [], startDate: '04/12/2017', endDate: '04/12/2017', newPHPSOC: 'string', items: deviceItem, itemList: deviceItem, itemIndex: 0, canCompare: true, } export const deviceDataNonIsByos: IDevice = { productId: 12345, productType: 'string', categoryId: 12345, categoryName: 'string', name: 'string', manufacturer: 'string', description: 'string', descriptions: [], startDate: '04/12/2017', endDate: '04/12/2017', newPHPSOC: 'string', items: deviceItemNonIsByos, itemList: deviceItemNonIsByos, itemIndex: 0, canCompare: true, } export const TradeinServiceResponse: any = { } export const TradeInDeviceMockData: any = { 'ATT': [ { 'Huawei': [ 'U8652 Fusion - AT\u0026T', 'U8800 Impulse 4G - AT\u0026T' ] }, { 'Samsung': [ 'GT-I9020A Nexus S - AT\u0026T', 'SGH-A847 Rugby 2 - AT\u0026T', 'SGH-A897 Mythic - AT\u0026T', 'SGH-i317 GALAXY Note 2 gray - AT\u0026T', 'SGH-i937 Focus S - AT\u0026T', 'SM-N900 Note 3 black - ATT', 'SM-N900 Note 3 white - ATT' ] }, { 'Nokia': [ '1020 (RM-877) Lumia - AT\u0026T', '820 (RM-824) Lumia - AT\u0026T', '900 (RM-808) Lumia white - AT\u0026T', '900 Lumia black - AT\u0026T', '900 Lumia blue - AT\u0026T' ] }, { 'LGIC': [ 'D800 G2 black - ATT', 'D800 G2 white - ATT', ] }, { 'Pantech': [ 'P8010 Flex - AT\u0026T', 'P9070 Burst black - AT\u0026T', 'P9090 Discover - AT\u0026T' ] }, { 'Apple': [ 'iPad 1 16GB - ATT - MC349LL/A', 'iPad 1 32GB - ATT - MC496LL/A', 'iPad 1 64GB - ATT - MC497LL/A', 'iPad 2 16GB White - ATT - MD072LL/A', ] }, { 'Motorola': [ 'MB860 Atrix 4G - AT\u0026T', 'MB865 Atrix 2 - AT\u0026T', 'MB886 (IHDP56MB4) Atrix HD - AT\u0026T', 'XT1058 Moto X 4G Black - AT\u0026T', 'XT1058 Moto X 4G White - AT\u0026T' ] }, { 'Samsung': [ 'GT-C3053 Black - T-Mo', 'Gr3at Midnight Black 64 GB', 'Gr3at Orchid Gray 64 GB', 'SGH-A107 black - T-Mo', ] }, { 'Nokia': [ '521 (RM-917) Lumia white', '710 (RM-809) Lumia black', '710 (RM-809) Lumia white', '810 (RM-878) Lumia black', '925 (RM-893) Lumia white', 'C7 Astound grey', 'RM-1070 Lumia 435 white', 'RM-975 Lumia 635 white', 'T-MO 710 (RM-809) black', 'T-MO 710 (RM-809) white' ] } ] }; export const TradeinResponseBySerialNumber = [ [ { 'serialNumber': '354987077253888', 'validation': { 'code': 'TRADEIN-00101', 'message': 'No record found in database for the request provided.' } } ] ]; export const serviceAgreementData: any = { 'email': 'test@t-mobile.com', 'isResent': true } export const questionsResponseData = { 'questionResponseSets': [ { 'answers': [ { 'answerScript': 'No', 'answerName': 'ANTI_THEFT_NO' }, { 'answerScript': 'Yes', 'answerName': 'ANTI_THEFT_YES' } ], 'language': 'en', 'questionName': 'Anti Theft Disabled', 'questionScript': 'Have you disabled the anti-theft feature on your device?' }, { 'answers': [ { 'answerScript': 'No', 'answerName': 'LCD_NO' }, { 'answerScript': 'Yes', 'answerName': 'LCD_YES' } ], 'language': 'en', 'questionName': 'LCD Issue', 'questionScript': 'Does the Device have acceptable LCD and Display?' }, { 'answers': [ { 'answerScript': 'No', 'answerName': 'LD_NO' }, { 'answerScript': 'Yes', 'answerName': 'LD_YES' } ], 'language': 'en', 'questionName': 'Liquid Damage', 'questionScript': 'Does the Device have liquid damage?' }, { 'answers': [ { 'answerScript': 'No', 'answerName': 'PO_NO' }, { 'answerScript': 'Yes', 'answerName': 'PO_YES' } ], 'language': 'en', 'questionName': 'Powers On', 'questionScript': 'Does the Device Power on?' }, { 'answers': [ { 'answerScript': 'No', 'answerName': 'ANTI_THEFT_NO' }, { 'answerScript': 'Si', 'answerName': 'ANTI_THEFT_YES' } ], 'language': 'es', 'questionName': 'Anti Theft Disabled', 'questionScript': '�Has deshabilitado la funci�n antirrobo en tu apARato?' }, { 'answers': [ { 'answerScript': 'No', 'answerName': 'LCD_NO' }, { 'answerScript': 'Si', 'answerName': 'LCD_YES' } ], 'language': 'es', 'questionName': 'LCD Issue', 'questionScript': '�El telefono tiene pantalla LCD y pantalla aceptable?' }, { 'answers': [ { 'answerScript': 'No', 'answerName': 'LD_NO' }, { 'answerScript': 'Si', 'answerName': 'LD_YES' } ], 'language': 'es', 'questionName': 'Liquid Damage', 'questionScript': '?El telefono tiene dano liquido?' }, { 'answers': [ { 'answerScript': 'No', 'answerName': 'PO_NO' }, { 'answerScript': 'Si', 'answerName': 'PO_YES' } ], 'language': 'es', 'questionName': 'Powers On', 'questionScript': '�Se puede encender el telefono?' } ] }; export const tradeInQuoteResponse = { 'tradeInQuotes': [ { 'manufacturer': 'Samsung', 'quoteAmount': 9.0, 'model': 'GT-N8020 16GB Note 4G 10.1 white - Samsung-Generic', 'serialNumber': '356991069159655', 'effectivePeriod': { 'startTime': '2018-02-13T08:19:47.897' }, 'quotationId': '91945516-4ae1-47a0-a0b6-5b1cbdf51756', 'accountNumber': '', 'serviceProvider': 'Samsung-Generic', 'imei': '356991069159655', 'status': { 'statusCode': 'OFFERED' } } ] }; export const pricingData: IPreferredPrice = { reasonCode: 0, onTimePayment: 0, remainingPayment: 0, eligibleDate: '04/12/2017' } export const tradeInEligibilityData = { 'reasonCode': 'ALL', 'statusCode': 'ELIGIBLE' } export const paymentResponseData = { is_valid: true } export const orderConfirmationData = { 'serviceStatus': { 'moreInfo': null, 'message': 'Success', 'code': 100 } } export const retailAddressData = { addressId: 12345, firstName: 'string', middleName: 'string', lastName: 'string', address1: 'string', address2: 'string', city: 'string', state: 'string', zipCode: 'string', phone1: 'string', phone2: 'string', email1: 'string', email2: 'string', } export const sendQuoteData = { dataSent: 'Success', isValid: true, } export const returnableItems = {"orderItems":[{"packageId":1234,"isIssueCreditable":false,"overrideRemorse":false,"isReturnable":false,"isExchangeable":false,"orderItemId":2455499,"isReturnedItem":false,"itemType":"Accessory"}],"statusMessage":null,"isShippingCreditable":true,"statusCode":"SUCCESS"} export const validateCartResponse = {"readyForCheckout":true,"failureReason":""} export const financeOrderCalculateResponse = {"output":{"SYNCELIGIBLEDISCOUNTS.status":"success","calculationUsageId":"-1","catalogId":"10001","langId":-1,"orderId":514197,"EIPESTIMATE.status":"success","storeId":10553}}; export const oktaConfig = { url: environment.oktaOrgUrl, // Optional config issuer: environment.oktaOrgUrl + '/oauth2/aushdv9xnz3ZHNMJK0h7', clientId: environment.oktaClientId, //redirectUri: 'http://localhost:4200/implicit/callback', //redirectUri: 'https://dlab03.dash.ftl.kube.t-mobile.com/implicit/callback', redirectUri: environment.originUrl +'/implicit/callback', // Override the default authorize and userinfo URLs //authorizeUrl: 'https://{yourOktaDomain}/oauth2/default/v1/authorize', //userinfoUrl: 'https://{yourOktaDomain}/oauth2/default/v1/userinfo', // TokenManager config tokenManager: { storage: 'sessionStorage' } }