/** * @Name: SpecConstants * @Creation Date: November 21, 2017 * @Author: sbaireddy * @Version: 1.0 : */ import { IKeyValue } from './modal/key.value' import { ICreditOption, IRouteInfo, ITabInfo, IWCToken, IPackage, IPayment, IShipping, IFinance, IPromotion, IOrderList, INotification, IMoreInfoList } from './modal/common'; import { Cart } from './modal/cart'; import { Customer, ICreditProfile } from './modal/customer'; import { ISubscriber, IOrder, ICreditLine, IAccessoryItem, IAccessory } from './modal/common'; import * as Constants from '../shared/constants'; export const loginResponse: IWCToken = { 'logonId': 'tomuat66', 'password': 'Password1', 'userId': 1092846, 'WCToken': '1092846%2ComXtDE8hFi5r2By0cD%3D', 'WCTrustedToken': '1092846%2C2IKO8uozCobCQce57E9pHXZ5CVY%3D', 'personalizationID': '1282325805540-1441', 'logonTime': null }; // tslint:disable-next-line:max-line-length export const profileResponse = { // tslint:disable-next-line:whitespace // tslint:disable-next-line:max-line-length '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': '' }, '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 UpdateNotificationResponse = {ids: ['string']}; 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', // totals 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 customer: null, // products packages: [], paymentInfo: null, shippingInfo: null, financeInfo: null, promotionInfo: [], // local use 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 cartData: Cart = { orderId: 12345, prefix: 12345, status: 'S', 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: '04/12/2017', submittedBy: 'string', submittedByDate: '04/12/2017', lastModifiedBy: 'string', lastModifiedByDate: '04/12/2017', // totals totalDueToday: 12345, totalDueMonthly: 12345, totalDevicesDueToday: 12345, totalAccessoriesDueToday: 12345, totalSSKDueToday: 12345, totalRateplansDueMonthly: 12345, totalFeaturesDueMonthly: 12345, totalFinanceDueMonthly: 12345, totalShippingDueToday: 0, 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: false, isBYOSOrder: false, isDashOrder: true, relatedOrderId: 12345, originalOrderId: 12345, isHomeInternetOrder: false, // customer customer: null, // products packages: [{ packageId: 1234, lineId: 1234, packageType: 'voice', plan: null, device: null, features: [], accessories: [], ppuAddress: null, e911Address: null, numberPorting: null, npaNxxType: null, returnOrderItemId: 1234, origRatePlanSoc: 'string', // added for local use deleteOption: true, isDuplicateLine: false, isVirtual: false, showPackage: false, primaryLine: null, primaryLineType: null }], paymentInfo: null, shippingInfo: null, financeInfo: null, promotionInfo: [], orderBlockInfo: null, realTimeInventory: null, serviceStatus: null, // local use activePackageId: 12345, activeLineId: 12345, taxRate: 0, esigEmail: null } export const packagesData: IPackage[] = [{ packageId: 1234, lineId: 1234, packageType: 'data', npaNxxType: null, 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 }, isDuplicateLine: false, isVirtual: false, primaryLine: 1234, primaryLineType: 'string', showPackage: false, 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' }, features: [], accessories: [{ orderItemId: 12345, parentOrderItemId: 12345, productId: 12345, itemId: 12345, name: 'iphone', type: 'string', accessorySKU: 'IPhone50', quantity: 1, manufacturer: 'apple', thumbNail: 'string', fullImage: 'string', isMandatory: true, suggestedPrice: 12456, instantDiscount: 12456, openBoxDiscount: 12456, promotionDiscount: 12456, shippingDiscount: 12456, mailInRebate: 12456, finalPrice: 12456, crp: 12456, term: 12456, financeType: 'string', downPayment: 12456, residualPrice: 12456, monthlyPrice: 12456, dueToday: 12456, minFirstInstallment: 12456, taxCharge: 12456, shippingCharge: 12456, shippingTax: 12456, status: 'string', isFree: false }], ppuAddress: null, e911Address: null, numberPorting: { numberPortingId: 123456, phoneNumber: 123456, accountNumber: 123456, accountPin: 123456, }, deleteOption: true, returnOrderItemId: 1234, // added for local use }] 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 = { } 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 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', nonTMOMobileNumber:'string', nonTMOMobilePin:'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, // approvedVoiceLines: 0, activeDataLines: 0, allowedDataLines: 0, authorizedDataLines: 0, cancelledDataLines: 0, reservedDataLines: 0, suspendedDataLines: 0, usedDataLines: 0, maxDataLines: 0, // approvedDataLines: 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: 'string', 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: 'string', 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': [], // additional elements dealerCode: 'string', webOrderId: 1234, retailStoreId: 1234, totalActiveSubscribers: 0, existingDuplicateLines: 0, existingvirtualLines: 0, dateOfBirth: '04/12/2017', orderNotes: null, serviceStatus: null } 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 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: 'string' }, { 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: 'string', rateplanId: 12345, rateplanName: 'string', rateplanSOC: 'string', isGSM: true, montlyPrice: 12345, isPooledPlan: true, isVirtualDigit: false, isDuplicateDigit: false, imeiNumber: 'string', deviceId: 12345, deviceName: 'string', deviceSKU: 'string', devicePrice: 12345, features: [], primaryMsisdn: 12345676, duplicateLineMappingCount: 0, 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: any = [1, 2, 3]