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BAAqBiF,aACjC,OAAOjE,KAAKvB,QAAQoxC,IAAI7wC,EDPMsC,KAChC,MAAM,QAAE4I,GAAY5I,EACdyuC,GAAc,IAAIC,MAAOC,cAC/B,MAAO,CAAC,CACNC,cAAe,CACb,WAEFC,SAAS,EACTzuC,WAAYwI,EAAQzI,UACpBG,YAAasI,EAAQvI,WACrBG,UAAWoI,EAAQrI,SACnBE,OAAQmI,EAAQnI,OAChB+H,aAAcI,EAAQP,YACtB3H,MAAOkI,EAAQlI,MACfE,MAAOgI,EAAQjI,YACf0G,UAAWuB,EAAQrB,aACnBD,UAAWsB,EAAQpB,aACnBC,KAAMmB,EAAQnB,KACdE,MAAOiB,EAAQjB,MACfG,IAAKc,EAAQf,QACbH,OAAQkB,EAAQlB,OAChBE,QAASgB,EAAQhB,QACjBknC,iBAAkBL,EAClBM,iBAAkBN,KChBWO,CAAkBhxC,IAAO8D,KAAMhE,GACnD,YAAgBA,EAASE,OAC/B+D,MAAOtE,GACD,WAAeiB,KAAKD,aAAahB,EAAKC,IAEjD,EAEA,mBAAAuxC,CAAoBjxC,EAAMswC,GACxB,MAAMvvC,EAAgBL,KAAKK,gBAC3B,GAAIA,EACF,OAAO,WAAeA,GAExB,MAAMrB,EAAM,qBAAqB4wC,sBACjC,OAAO5vC,KAAKvB,QAAQ6E,IAAItE,GACrBoE,KAAMhE,GAAsB,YAAgBA,EAASE,OACrD+D,MAAOtE,GAAiB,WAAeiB,KAAKD,aAAahB,EAAKC,IACnE,GACCqF,GCzEI,MAAMmsC,GAAiB,EACjBC,GAAiB,EACjBC,GAAmB,EACnB7L,GAAsB,EACtB8L,GAAiB,EACjBC,GAAmB,EACnBC,GAAmB,EACnBC,GAAoB,EACpBC,GAAwB,EACxBC,GAAsB,GACtBC,GAAe,EACfC,GAAwB,E","sources":["webpack://zenbusiness.com/./src/client/services/BaseAPIService.js","webpack://zenbusiness.com/./src/client/services/AccountService.js","webpack://zenbusiness.com/./src/client/services/converters/AccountConverter.js","webpack://zenbusiness.com/./src/client/services/FintechService.js","webpack://zenbusiness.com/./src/client/services/AmendmentService.js","webpack://zenbusiness.com/./src/client/services/AnnualReportService.js","webpack://zenbusiness.com/./src/client/services/CompanyService.js","webpack://zenbusiness.com/./src/client/services/ContactUsService.js","webpack://zenbusiness.com/./src/client/services/CorpStockService.js","webpack://zenbusiness.com/./src/client/services/DomainNameService.js","webpack://zenbusiness.com/./src/client/services/InitializationService.js","webpack://zenbusiness.com/./src/client/services/OrderService.js","webpack://zenbusiness.com/./src/client/services/converters/BaseDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/AccountingConverter.js","webpack://zenbusiness.com/./src/client/services/converters/WorryFreeDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/AnnualReportConverter.js","webpack://zenbusiness.com/./src/client/services/converters/AmendmentConverter.js","webpack://zenbusiness.com/./src/client/services/converters/BankingConverter.js","webpack://zenbusiness.com/./src/client/services/converters/BankingResolutionDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/BusinessKitConverter.js","webpack://zenbusiness.com/./src/client/services/converters/BeneficialOwnershipFilingConverter.js","webpack://zenbusiness.com/./src/client/services/converters/BeneficialOwnershipFilingOngoingConverter.js","webpack://zenbusiness.com/./src/client/services/converters/BOFModificationOrder.js","webpack://zenbusiness.com/./src/client/services/converters/OpAgreeDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/BasicEmailConverter.js","webpack://zenbusiness.com/./src/client/services/converters/BusLicDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/CoRADataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/AnonymityConverter.js","webpack://zenbusiness.com/./src/client/services/converters/CorporateDocsDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/CPAConsultConverter.js","webpack://zenbusiness.com/./src/client/services/converters/DomainNamePrivacyDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/DomainNameDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/EINDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/ExpediteDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/ExpediteUpsellDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/InitialCPAScreeningConverter.js","webpack://zenbusiness.com/./src/client/services/converters/NYPubDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/RegAgentDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/PlanLevelDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/SCorpDesignationConverter.js","webpack://zenbusiness.com/./src/client/services/converters/StaticWebsiteDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/TaxPreparationConverter.js","webpack://zenbusiness.com/./src/client/services/converters/AnnualReportServiceConverter.js","webpack://zenbusiness.com/./src/client/services/converters/Accountant1800Converter.js","webpack://zenbusiness.com/./src/client/services/converters/WebsiteToolsBundleConverter.js","webpack://zenbusiness.com/./src/client/services/converters/EINBusinessDocsBundleConverter.js","webpack://zenbusiness.com/./src/client/services/converters/ZBMProDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/TruicZBMProDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/ZbBankingPreferredDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/zbTaxAdviceConverter.js","webpack://zenbusiness.com/./src/client/services/converters/zbBizTaxPrepConverter.js","webpack://zenbusiness.com/./src/client/services/converters/zbTaxAdviceBizTaxPrepConverter.js","webpack://zenbusiness.com/./src/client/services/converters/einBizDocsOaBundleConverter.js","webpack://zenbusiness.com/./src/client/services/converters/bizDocsBlrBundleConverter.js","webpack://zenbusiness.com/./src/client/services/converters/CorpDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/DBAEntityDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/DBAEntityForExistingBusDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/DBAComplianceDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/DBAEntityAddOnDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/EINBankingDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/ExpenseTrackingAndTaxFilingDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/GoodStandingConverter.js","webpack://zenbusiness.com/./src/client/services/converters/LogoKitDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/DAODesignationConverter.js","webpack://zenbusiness.com/./src/client/services/converters/LLCDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/NameResDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/FutureFileDateConverter.js","webpack://zenbusiness.com/./src/client/services/converters/VirtualBusinesAddressDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/WFGInitialReportDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/VanityProductDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/BankOfAmericaOfferConverter.js","webpack://zenbusiness.com/./src/client/services/converters/PostPurchaseDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/SMBWebsiteDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/SMBWebsiteEcommDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/SMBEcommAddonDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/SMBWebsiteOrEcommDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/VanityProductConverter.js","webpack://zenbusiness.com/./src/client/services/converters/zbBizTaxPrepPriorYearConverter.js","webpack://zenbusiness.com/./src/client/services/RegistrationService.js","webpack://zenbusiness.com/./src/client/services/converters/StockSetupConverter.js","webpack://zenbusiness.com/./src/client/services/converters/DomainV2DataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/EmailV2DataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/TaxServicesDataConverter.js","webpack://zenbusiness.com/./src/client/services/converters/BusinessEntityDataConverter.js","webpack://zenbusiness.com/./src/client/services/BusinessEntityService.js","webpack://zenbusiness.com/./src/client/services/index.js"],"sourcesContent":["import _assign from 'lodash/assign';\nimport axios from 'axios';\n\nimport env from '../config';\nimport { API_ERRORS } from '../constants/apiConstants';\nimport { getAccessToken, getLoggedInEmail, getOBO, isLoggedIn } from '../utils/AuthService';\nimport { reportError } from '../utils/ReportingUtils';\n\nconst standardErrorMsgs = {\n  status400: 'This request is formatted badly.',\n  status401: 'You are not authorized for this action. Please sign in.',\n  status404: 'The object could not be found.'\n};\n\nconst authInterceptor = (config) => {\n  if (getAccessToken()) {\n    config.headers.Authorization = `Bearer ${getAccessToken()}`;\n  }\n  if (getLoggedInEmail()) {\n    config.headers.Email = getLoggedInEmail();\n  }\n  if (getOBO()) {\n    config.headers['x-on-behalf-of'] = getOBO();\n  }\n  return config;\n};\nconst authErrorInterceptor = (error) => { return Promise.reject(error); };\n\nconst createAxiosInstance = (baseURL) => {\n  const instance = axios.create({\n    baseURL,\n    timeout: env.api.timeout || 100000,\n    withCredentials: true\n  });\n  instance.interceptors.request.use(authInterceptor, authErrorInterceptor);\n  return instance;\n};\n\nconst service = createAxiosInstance(env.api.baseURL);\n// secureService routes through the VGS inbound proxy so SSN values are tokenized in transit.\n// api.secureBaseURL is the VGS proxy origin; api.baseURL is the path prefix (e.g. /r/api).\nif (!env.api.secureBaseURL) {\n  throw new Error('Cannot launch: misconfigured (missing SECURE_BASEURL)');\n}\nconst secureService = createAxiosInstance(\n  `${env.api.secureBaseURL.replace(/\\/$/, '')}${env.api.baseURL}`\n);\n\nexport default {\n\n  service,\n  secureService,\n\n  notifySentry(err, url, action) {\n    const metaData = { url };\n    let errorName = '';\n\n    if (err.response) {\n      const errorCode = err?.response?.data?.errorCode || err?.response?.data?.status || err?.response?.status || '500';\n      metaData.responseData = JSON.stringify(err.response.data, null, 4);\n      metaData.httpStatus = err.response.status;\n      errorName = action ? `${url} - ${action} - ${errorCode}` : `${url} - ${errorCode}`;\n    } else if (err.message) {\n      errorName = err.message.toLowerCase() === 'network error' ? 'Middleware Non-Responsive' : `${err.name} - ${err.message}`;\n    } else {\n      errorName = `${err.name} - Unknown (no message)`;\n    }\n    reportError(new Error(errorName), { metaData });\n  },\n\n  analyzeError(err, url) {\n    if (err.response) {\n      switch (err.response.status) {\n        case 400: {\n          this.notifySentry(err, url);\n          return err.response.data;\n        }\n        case 401: {\n          this.notifySentry(err, url);\n          return {\n            unauthorized: true,\n            message: err.response.data.errorMessage || this.getErrorMsg(err.response, {}),\n            status:  err.response.status\n          };\n        }\n        default: {\n          const message = err.response.data.errorMessage || this.getErrorMsg(err.response, {});\n          this.notifySentry(err, url);\n          return {\n            message,\n            status:  err.response.status\n          };\n        }\n      }\n    }\n\n    this.notifySentry(err, url);\n    return {\n      message: API_ERRORS.SERVER_ERROR\n    };\n  },\n\n  isNotLoggedIn() {\n    if (!isLoggedIn()) {\n      return {\n        unauthorized: true,\n        message: standardErrorMsgs.status401\n      };\n    }\n    return null;\n  },\n\n  getErrorMsg(data, errorMsgs) {\n    const msgs = _assign({}, standardErrorMsgs, {\n      status500: data ? data.errorMessage : API_ERRORS.SERVER_ERROR\n    }, errorMsgs);\n    return msgs[`status${data.status}`] || `Status code = ${data.status}`;\n  }\n};\n\n","import _assign from 'lodash/assign';\nimport Promise from 'promise';\n\nimport BaseAPIService from './BaseAPIService';\nimport buildAccountData from './converters/AccountConverter';\n\nconst\n  convertPaymentMethod = (paymentMethod) => {\n    const { cardNumber: number, expMonth, expYear, cvc, isDefault, card_token } = paymentMethod;\n\n    return { number, exp_month: parseInt(expMonth, 10), exp_year: 2000 + parseInt(expYear, 10), cvc, default: isDefault, card_token };\n  };\n\nexport default _assign({\n\n  create(data) {\n    const url = 'account',\n      order = buildAccountData(data);\n\n    return this.service.post(url, order).then((response) => {\n      return Promise.resolve({\n        data: response.data\n      });\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  get() {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = 'account';\n    return this.service.get(url).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  exists(email) {\n    const url = 'account/exists';\n    return this.service.get(url, { params: { q: email } }).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  hasZBMoneyProSubscription() {\n    const url = 'account/has-zb-money-pro-subscription';\n    return this.service.get(url, {} ).then((response) => {\n      return Promise.resolve(response?.data?.zbmSubscriptionResponse?.hasZBMoneySubscription);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  getPaymentMethods() {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = 'payment-methods';\n    return this.service.get(url).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  addPaymentMethod(data) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = 'payment-methods';\n    return this.service.post(url, convertPaymentMethod(data)).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  addPaymentMethodV2(data) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = 'payment-method-v2';\n    return this.service.post(url, convertPaymentMethod(data)).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  setPaymentMethodDefault(id) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = 'payment-methods/default';\n    return this.service.post(url, { id }).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  markCorpDocAsSeen(corpDocId) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `corporate-docs/${corpDocId}/mark-as-seen`;\n    return this.service.post(url).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  acceptTOS() {\n    const isNotLoggedIn = this.isNotLoggedIn(),\n      url = 'accept-tos';\n\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    return this.service.post(url).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  }\n\n}, BaseAPIService);\n","import { isPF, isTRUiC, getEntryPointGroup } from '../../utils/PartnerUtils';\nimport { getVisitUUID } from '../../utils/VisitorCookie';\n\n/* eslint-disable camelcase */\nconst buildAccountData = (registration) => {\n  const\n    { business, customer } = registration,\n    { firstName: first_name, middleName: middle_name, lastName: last_name, suffix, email, phoneNumber: phone, password } = customer,\n    { hasExistingBusiness: has_existing_business, name: business_entity_name, type, requestedJurisdiction: jurisdiction_code } = business;\n\n  const data = {\n    first_name,\n    middle_name,\n    last_name,\n    suffix,\n    email: email ? email.toLowerCase() : '',\n    phone,\n    password,\n    international: false,\n    signup_client: 'web_v2',\n    has_existing_business,\n    business_entity_name,\n    business_entity_type: type === 'CORP' ? 'corp' : 'llc',\n    jurisdiction_code,\n    source: window.zenIsMobile ? 'mobile' : 'web', // For lead\n    visit_uuid: getVisitUUID()\n  };\n\n  if (isTRUiC()) {\n    data.custom_flow = 'truic';\n    data.entry_point_group = 'truic';\n  } else if (isPF()) {\n    data.custom_flow = '';\n    data.entry_point_group = 'pf';\n  } else if (getEntryPointGroup()) {\n    data.custom_flow = '';\n    data.entry_point_group = getEntryPointGroup();\n  }\n  return data;\n};\n/* eslint-enable camelcase */\n\nexport default buildAccountData;\n","import _assign from 'lodash/assign';\nimport Promise from 'promise';\n\nimport BaseAPIService from './BaseAPIService';\n\nexport default _assign({\n\n  getHurdlrSubscriptionTier() {\n    const url = 'hurdlr-subscription-tier';\n    return this.service.get(url).then((response) => {\n      return Promise.resolve(response);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n  getOrderTaskMigrationServices({ orderTaskUuid }) {\n    const url = 'service-for-migrate';\n    return this.service.post(url, { orderTaskUuid }).then((response) => {\n      return Promise.resolve(response);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  migrateMoneyPlan({\n    couponUuid,\n    orderTaskUuid,\n    plan,\n    planData,\n    term\n  }) {\n    const url = 'migrate-money-plan';\n    return this.service.post(url, {\n      couponUuid,\n      orderTaskUuid,\n      plan,\n      planData,\n      term\n    }).then((response) => {\n      return Promise.resolve(response);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  }\n}, BaseAPIService);\n","import _assign from 'lodash/assign';\nimport Promise from 'promise';\n\nimport BaseAPIService from './BaseAPIService';\n\nexport default _assign({\n  getJurisdictionInfo(jurisdictionCode) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `annual-report/jurisdiction?jurisdictionCode=${jurisdictionCode}`;\n    return this.service.get(url)\n      .then((response) => { return Promise.resolve(response.data[jurisdictionCode]); })\n      .catch((err) => { return Promise.reject(this.analyzeError(err, url)); });\n  }\n}, BaseAPIService);\n","import _assign from 'lodash/assign';\nimport Promise from 'promise';\n\nimport BaseAPIService from './BaseAPIService';\n\nexport default _assign({\n  getJurisdictionInfo(jurisdictionCode) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `annual-report/jurisdiction?jurisdictionCode=${jurisdictionCode}`;\n    return this.service.get(url)\n      .then((response) => { return Promise.resolve(response.data[jurisdictionCode]); })\n      .catch((err) => { return Promise.reject(this.analyzeError(err, url)); });\n  },\n  getComplianceEvent(uuid) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `/annual-report/compliance-event/${uuid}`;\n    return this.service.get(url)\n      .then((response) => { return Promise.resolve(response.data); })\n      .catch((err) => { return Promise.reject(this.analyzeError(err, url)); });\n  },\n  checkEligibility(entityType, jurisdictionCode) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    if (!entityType || !jurisdictionCode) {\n      return Promise.resolve(false);\n    }\n    const url = `annual-report/check-eligibility?entityType=${entityType}&jurisdictionCode=${jurisdictionCode}`;\n    return this.service.get(url)\n      .then((response) => { return Promise.resolve(response.data.eligible); })\n      .catch((err) => { return Promise.reject(this.analyzeError(err, url)); });\n  },\n  getRegisteredAgents(businessEntityUuid, jurisdictionCode) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `annual-report/registered-agents/${encodeURIComponent(businessEntityUuid)}?jurisdictionCode=${encodeURIComponent(jurisdictionCode)}`;\n    return this.service.get(url)\n      .then((response) => { return Promise.resolve(response.data); })\n      .catch((err) => { return Promise.reject(this.analyzeError(err, url)); });\n  }\n}, BaseAPIService);\n","import _assign from 'lodash/assign';\nimport _forEach from 'lodash/forEach';\nimport Promise from 'promise';\n\nimport BaseAPIService from './BaseAPIService';\n\nexport default _assign({\n\n\n  getCompanies() {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = 'business-entities';\n    return this.service.get(url).then((response) => {\n      if (response.data.errorMessage.indexOf('Unable') === 0) {\n        return Promise.reject(this.analyzeError({\n          response: {\n            status: 404,\n            data: {\n              errorMessage: response.data.errorMessage,\n              status: 404\n            }\n          }\n        }), url);\n      }\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  getCompany(companyId) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n\n    const url = `business-entities/${companyId}`;\n    return this.service.get(url).then((response) => {\n      if (response.data.errorMessage.indexOf('Unable') === 0) {\n        return Promise.reject(this.analyzeError({\n          response: {\n            status: 404,\n            data: {\n              errorMessage: response.data.errorMessage,\n              status: 404\n            }\n          }\n        }), url);\n      }\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  getFiles(companyId) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `business-entities/${companyId}/files`;\n    return this.service.get(url).then((response) => {\n      _forEach(response.data.files, (file) => {\n        file.business_entity_uuid = companyId;\n      });\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  }\n}, BaseAPIService);\n","import _assign from 'lodash/assign';\nimport Promise from 'promise';\n\nimport BaseAPIService from './BaseAPIService';\n\nexport default _assign({\n\n  sendMessage(messageInfo) {\n    const url = 'contactUs';\n    return this.service.post(url, messageInfo).then(() => {\n      return Promise.resolve(true);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  }\n}, BaseAPIService);\n\n","import _assign from 'lodash/assign';\nimport Promise from 'promise';\n\nimport BaseAPIService from './BaseAPIService';\n\nexport default _assign({\n  getStockFeeTotal(data) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = 'stock-setup/shares';\n    return this.service.post(url, data)\n      .then((response) => { return Promise.resolve(response.data); })\n      .catch((err) => { return Promise.reject(this.analyzeError(err, url)); });\n  },\n\n  // Probe whether the jurisdiction has a variable stock fee calculator. Resolves\n  // { hasVariableFee: boolean }; the BFF normalizes an empty v4 list to false.\n  getVariableFeeExistence(jurisdiction) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = 'corp-stock-calculator';\n    return this.service.get(url, { params: { jurisdiction } })\n      .then((response) => { return Promise.resolve(response.data); })\n      .catch((err) => { return Promise.reject(this.analyzeError(err, url)); });\n  },\n\n  // Live fee preview. POSTs to the v4 compute endpoint and unwraps zenapi's { fees: {...} } envelope\n  // so callers get the fee dict directly.\n  getCorpStockFee(jurisdiction, data) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = 'corp-stock-calculator/calculate';\n    return this.service.post(url, { jurisdiction, ...data })\n      .then((response) => { return Promise.resolve((response.data && response.data.fees) || response.data); })\n      .catch((err) => { return Promise.reject(this.analyzeError(err, url)); });\n  },\n\n  // Billing for a formation order task. POSTs { account_uuid, fee_amount }; rejection preserves the\n  // status so the checkout can handle 422 (fee mismatch) / 409 (different fee already recorded).\n  addFeeCorpCalculator(orderTaskUuid, data) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `order-tasks/${orderTaskUuid}/corp-stock-fee`;\n    return this.service.post(url, data)\n      .then((response) => { return Promise.resolve(response.data); })\n      .catch((err) => { return Promise.reject(this.analyzeError(err, url)); });\n  }\n}, BaseAPIService);\n","import _assign from 'lodash/assign';\nimport Promise from 'promise';\n\nimport BaseAPIService from './BaseAPIService';\n\nexport default _assign({\n\n  check(domainName) {\n    const url = 'domainName';\n    return this.service.get(url, { params: { domainName } }).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n  suggest(domainName) {\n    const url = 'suggestions';\n    return this.service.get(url, { params: { domainName } }).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  }\n}, BaseAPIService);\n\n","import _assign from 'lodash/assign';\nimport Promise from 'promise';\n\nimport BaseAPIService from './BaseAPIService';\nimport { initializeAuth0 } from '../utils/AuthService';\nimport { initializePlaid } from '../utils/PlaidService';\nimport { initialize as initializeShareASale } from '../utils/ShareASaleService';\nimport { initializeGoogleAds, initAvoRudderstack, identify, setRudderStackApiInfo } from '../utils/ThirdPartyTracking';\nimport { setFlows } from '../utils/FlowService';\nimport { initializeAPIKey as initializeGoogleMapsAPIKey } from '../utils/GoogleUtils';\nimport { initializeAPIKey as initializeStripeAPIKey } from '../utils/StripeService';\nimport { initializeSardine } from '../utils/SardineService';\nimport { setPartners } from '../utils/PartnerUtils';\nimport { setPlans } from '../utils/PlanService';\nimport { setProducts } from '../utils/ProductService';\nimport { setVisitor } from '../utils/VisitorCookie';\nimport { sanitizeRelativeUrl } from '../utils/UrlUtils';\n\nconst setWebsiteIfNull = (data) => {\n  if (!data.website) {\n    const origin = window.location.origin;\n    const pathname = window.location.pathname;\n\n    if (!origin || typeof origin !== 'string' || !origin.match(/^https?:\\/\\/[a-zA-Z0-9.-]+(?::[0-9]+)?$/)) {\n      data.website = '';\n      return;\n    }\n\n    const sanitizedPath = sanitizeRelativeUrl(pathname);\n    if (sanitizedPath === null) {\n      data.website = `${origin}/`;\n    } else {\n      data.website = `${origin}${sanitizedPath}`;\n    }\n  }\n};\n\nexport default _assign({\n\n  initialize(data) {\n    const url = 'initialization/initialize';\n    setWebsiteIfNull(data);\n    return this.service.post(url, data).then((response) => {\n      const { data: initData } = response;\n      initializeAuth0(initData);\n      setRudderStackApiInfo(initData);\n      initAvoRudderstack();\n      initializePlaid(initData);\n      initializeGoogleAds(initData);\n      initializeGoogleMapsAPIKey(initData);\n      initializeStripeAPIKey(initData);\n      initializeShareASale(initData);\n      initializeSardine(initData);\n      setPartners(initData);\n      setFlows(initData);\n      setPlans(initData);\n      setProducts(initData);\n      setVisitor(initData, data);\n      identify();\n      return Promise.resolve(initData);\n    }).catch((err) => {\n      Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  getStateFees(stateCode) {\n    if (!stateCode) {\n      const url = 'initialization/stateFees';\n      return this.service.get(url).then((response) => {\n        return Promise.resolve(response.data);\n      }).catch((err) => {\n        return Promise.reject(this.analyzeError(err, url));\n      });\n    }\n\n    const url = `initialization/stateFees/${stateCode}`;\n    return this.service.get(url).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  getExpediteFees(stateCode) {\n    if (!stateCode) {\n      const url = 'initialization/expediteFees';\n      return this.service.get(url).then((response) => {\n        return Promise.resolve(response.data);\n      }).catch((err) => {\n        return Promise.reject(this.analyzeError(err, url));\n      });\n    }\n\n    const url = `initialization/expediteFees/${stateCode}`;\n    return this.service.get(url).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  }\n\n}, BaseAPIService);\n","import _assign from 'lodash/assign';\nimport Promise from 'promise';\n\nimport BaseAPIService from './BaseAPIService';\n\nexport default _assign({\n\n  getOrders() {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = 'orders';\n    return this.service.get(url).then((response) => {\n      if (response.data.errorMessage.indexOf('Unable') === 0) {\n        return Promise.reject(this.analyzeError({\n          response: {\n            status: 404,\n            data: {\n              errorMessage: response.data.errorMessage,\n              status: 404\n            }\n          }\n        }), url);\n      }\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  getOperatingAgreement(orderId) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n\n    const url = `operating-agreement/${orderId}`;\n    return this.service.get(url).then((response) => {\n      if (response.data.errorMessage.indexOf('Unable') === 0) {\n        return Promise.reject(this.analyzeError({\n          response: {\n            status: 404,\n            data: {\n              errorMessage: response.data.errorMessage,\n              status: 404\n            }\n          }\n        }), url);\n      }\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  updateOrderTaskStatus(orderTaskUuid, status, subStatus) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n\n    const url = 'order-task/status';\n\n    return this.service.post(url, {\n      orderTaskUuid,\n      status,\n      subStatus\n    }).then((response) => {\n      return Promise.resolve(response);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  getOrderTasksByCompany(businessEntityUuid) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `order-tasks/business-entity/${businessEntityUuid}`;\n    return this.service.get(url).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  // PATCH order_task_data fields (e.g. { authorized_shares, par_value }); wraps them in the\n  // `{ order_task_data: {...} }` envelope the endpoint expects (an unwrapped body silently no-ops).\n  patchOrderTaskData(orderTaskUuid, orderTaskData) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `order-tasks/${orderTaskUuid}`;\n    return this.service.patch(url, { order_task_data: orderTaskData }).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  }\n\n}, BaseAPIService);\n","import _assign from 'lodash/assign';\nimport _reduce from 'lodash/reduce';\nimport _mapKeys from 'lodash/mapKeys';\nimport _pickBy from 'lodash/pickBy';\nimport _isUndefined from 'lodash/isUndefined';\nimport _isNull from 'lodash/isNull';\nimport _isEmpty from 'lodash/isEmpty';\nimport _trim from 'lodash/trim';\nimport _camelCase from 'lodash/camelCase';\nimport { isTRUiC, getEntryPointGroup, isPF } from '../../utils/PartnerUtils';\nimport { getPlanLevel } from '../../utils/PlanService';\nimport {\n  getBankingResolutionPrice,\n  getBasicEmailYearlyPrice,\n  getDomainNameYearlyPrice,\n  getDomainNamePrivacyYearlyPrice,\n  getEINPrice,\n  getExpeditePriorityPrice,\n  getExpediteRushPrice,\n  getNYPubPrice,\n  getOpAgreementPrice,\n  getRAYearlyPrice,\n  getStaticWebsiteYearlyPrice,\n  getWFGYearlyPrice,\n  isRecurlyEnabled\n} from '../../utils/ProductService';\nimport { getVisitUUID } from '../../utils/VisitorCookie';\n\nconst\n  managerTypeMap = {\n    AllOwners: 'All the owners (Member managed)',\n    SomeOwners: 'Only some of the owners (Manager managed)',\n    SomeManagers: 'Some or all of the owners and other managers (Manager managed)',\n    AllManagers: 'None of the owners, only other managers (Manager managed)'\n  },\n  getExpeditePrice = (expedite) => {\n    if (expedite === 'rush') {\n      return getExpediteRushPrice();\n    }\n    if (expedite === 'priority') {\n      return getExpeditePriorityPrice();\n    }\n    return 0;\n  },\n  // Remove any undefined or null values from an object\n  removeEmptyValues = (obj) => {\n    return _pickBy(obj, (v) => { return !_isUndefined(v) && !_isNull(v); });\n  };\n\n/* eslint-disable camelcase */\nexport const convertAddress = (address) => {\n  const\n    {\n      address_1,\n      address_2,\n      addressLine1,\n      addressLine2,\n      city,\n      county,\n      state,\n      country,\n      zipCode: zip,\n      lat,\n      lng,\n      addressIsGoogle: address_is_google,\n      email,\n      phoneNumber: phone\n    } = address || {};\n\n  return removeEmptyValues({\n    address_1: address_1 || addressLine1,\n    address_2: address_2 || addressLine2,\n    city,\n    county,\n    state,\n    country,\n    zip,\n    lat,\n    lng,\n    address_is_google,\n    email: email ? email.toLowerCase() : null,\n    phone\n  });\n};\n\nexport const convertMailingAddress = (address) => {\n  const\n    {\n      mailingAddressLine1: address_1,\n      mailingAddressLine2: address_2,\n      mailingCity: city,\n      mailingCounty: county,\n      mailingState: state,\n      mailingCountry: country,\n      mailingZipCode: zip,\n      phoneNumber: phone,\n      email\n    } = address;\n\n  return removeEmptyValues({ address_1, address_2, city, county, state, country, zip, email: email ? email.toLowerCase() : null, phone });\n};\n/* eslint-enable camelcase */\n\nexport const convertUser = (user) => {\n  const { firstName, middleName, lastName, name, suffix, companyName, careOf, outstandingJudgments = null } = user;\n\n  if (name) {\n    return _assign(convertAddress(user), { name });\n  }\n\n  return removeEmptyValues(_assign(convertAddress(user), {\n    first_name: firstName,\n    middle_name: middleName,\n    last_name: lastName,\n    suffix,\n    company_name: companyName,\n    care_of: careOf,\n    ...(outstandingJudgments !== null && {\n      outstanding_judgments: outstandingJudgments\n    })\n  }));\n};\n\nexport const convertUsers = (users) => {\n  return _reduce(users, (retval, value) => {\n    retval.push(convertUser(value));\n    return retval;\n  }, []);\n};\n\n// API-950/API-1823: zenapi's ContactHandler rejects the order-task PATCH at\n// process-fulfillment when a contact dict is present but carries no identity field —\n// it requires either a full name (first_name AND last_name — a first name alone is not\n// a person's identity) or a company_name. As of 63df7fcd0 (API-1345), email alone no\n// longer counts as identity. convertUser runs identity values through removeEmptyValues,\n// which strips null/undefined but NOT empty strings, so a blank contact serializes as\n// { first_name: '', company_name: '' }. That is \"present but invalid\" and slips past a\n// plain _isEmpty() guard. Callers should skip convertContact (and omit the `contact` key\n// entirely) when this returns false.\nexport const hasContactIdentity = (contact) => {\n  if (_isEmpty(contact)) {\n    return false;\n  }\n  const { firstName = '', lastName = '', companyName = '' } = contact;\n  const hasFullName = Boolean(_trim(firstName) && _trim(lastName));\n  return hasFullName || Boolean(_trim(companyName));\n};\n\nexport const convertContact = (contact) => {\n  return {\n    contact: _assign(convertUser(contact), { is_principal: contact.isPrincipal })\n  };\n};\n\n// API-950: shared guard so callers don't repeat \"hasContactIdentity(contact) ? convertContact(contact) : {}\".\nexport const convertContactIfIdentified = (contact) => {\n  return hasContactIdentity(contact) ? convertContact(contact) : {};\n};\n\n/* eslint-disable no-nested-ternary */\nexport const calculateBusinessTotal = (business, purchase, filingFees, expediteFees) => {\n  const\n    { domesticJurisdiction, type } = business,\n    { bankingResolution, basicEmail, domainName, domainNamePrivacy } = purchase,\n    { ein, expedite, nyPublication, operatingAgreement, privacy, staticWebsite, worryFree,  planLevel } = purchase,\n    fees = filingFees[domesticJurisdiction],\n    exFees = { price: getExpeditePrice(expedite), fees: expediteFees[domesticJurisdiction][expedite].fees || 0 };\n\n  if (planLevel) {\n    const\n      plan = getPlanLevel(planLevel, domesticJurisdiction),\n      planPrices = type === 'CORP' ? plan.corp.prices : plan.llc.prices;\n\n    return (\n      (planPrices['1']) +\n      (fees[type === 'LLCX' ? 'llc_formation' : 'corp_formation'].fees) +\n      (bankingResolution && !plan.banking_resolution ? getBankingResolutionPrice() : 0) +\n      (basicEmail && !plan.basic_email ? getBasicEmailYearlyPrice() : 0) +\n      (domainName && !plan.domain_name_reg ? getDomainNameYearlyPrice() : 0) +\n      (domainNamePrivacy && !plan.domain_name_privacy ? getDomainNamePrivacyYearlyPrice() : 0) +\n      (ein && !plan.ein_creation ? getEINPrice() : 0) +\n      (plan.expedite !== expedite ? exFees.price + exFees.fees : 0) +\n      (nyPublication && !plan.ny_publication ? getNYPubPrice() : 0) +\n      (operatingAgreement && !plan.operating_agreement ? getOpAgreementPrice() : 0) +\n      (privacy ? getRAYearlyPrice() : 0) +\n      (staticWebsite ? getStaticWebsiteYearlyPrice() : 0) +\n      (worryFree ? getWFGYearlyPrice() : 0)\n    );\n  }\n\n  return (\n    (fees[type === 'LLCX' ? 'llc_formation' : 'corp_formation'].fees) +\n    (bankingResolution ? getBankingResolutionPrice() : 0) +\n    (basicEmail ? getBasicEmailYearlyPrice() : 0) +\n    (domainName ? getDomainNameYearlyPrice() : 0) +\n    (domainNamePrivacy ? getDomainNamePrivacyYearlyPrice() : 0) +\n    (ein ? getEINPrice() : 0) +\n    (exFees.price + exFees.fees) +\n    (nyPublication ? getNYPubPrice() : 0) +\n    (operatingAgreement ? getOpAgreementPrice() : 0) +\n    (privacy ? getRAYearlyPrice() : 0) +\n    (staticWebsite ? getStaticWebsiteYearlyPrice() : 0) +\n    (worryFree ? getWFGYearlyPrice() : 0)\n  );\n};\n\nexport const convertManagers = (managerReduce) => {\n  const { managers: managerList, managerType, managerCount } = managerReduce,\n    managers = convertUsers(managerList);\n\n  return {\n    managers,\n    manager_count: managerCount,\n    manager_type: managerTypeMap[managerType] || null\n  };\n};\n\nexport const convertMember = (user) => {\n  const { manager = false } = user;\n  return _assign(convertUser(user), { manager });\n};\n\nexport const convertMembers = (memberReduce) => {\n  const { members: memberList, memberCount } = memberReduce,\n    members = _reduce(memberList, (retval, value) => {\n      retval.push(convertMember(value));\n      return retval;\n    }, []);\n\n  return {\n    members,\n    member_count: memberCount\n  };\n};\n\nexport const convertDirector = (user) => {\n  const { title } = user;\n  return removeEmptyValues(_assign(convertUser(user), { title }));\n};\n\nexport const convertDirectors = (directorReduce) => {\n  const { directors: directorList, directorCount } = directorReduce,\n    directors = _reduce(directorList, (retval, value) => {\n      retval.push(convertDirector(value));\n      return retval;\n    }, []);\n\n  return {\n    directors,\n    director_count: directorCount\n  };\n};\n\nexport const convertOfficer = (user) => {\n  const { title } = user;\n  if (!title) {\n    return null;\n  }\n  return removeEmptyValues(_assign(convertUser(user), { title }));\n};\n\nexport const convertOfficers = (officerReduce) => {\n  const { officers: officerList } = officerReduce,\n    officers = _reduce(officerList, (retval, value) => {\n      const officer = convertOfficer(value);\n      if (officer) {\n        retval.push(convertOfficer(value));\n      }\n      return retval;\n    }, []);\n\n  return {\n    officers\n  };\n};\n\nexport const convertRegisteredAgent = (registeredAgent, business, purchase) => {\n  const { registeredAgent: ra, planLevel } = purchase,\n    { domesticJurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, domesticJurisdiction) : null;\n\n  if ((plan && plan.registered_agent_service) || ra) {\n    return { registered_agent: {} };\n  }\n  return {\n    registered_agent: convertUser(registeredAgent)\n  };\n};\n\nexport const convertAuthorizedSignatory = (authSig) => {\n  const skipCaseFix = ['address_1', 'address_2'];\n  const authSigFix = _mapKeys(authSig || {}, (v, k) => { return !skipCaseFix.includes(k) ? _camelCase(k) : k; });\n\n  // API-950/TRIAG-19196: never write an empty {} - orders-api persists it verbatim, and on\n  // re-read the empty dict gets fed through convertContact as a real contact.\n  return hasContactIdentity(authSigFix) ? {\n    authorized_signatory: removeEmptyValues(_assign(convertContact(authSigFix).contact, { title: authSigFix?.title }))\n  } : null;\n};\n\nexport const getPricingInformation = () => {\n\n  return { visit_uuid: getVisitUUID() };\n};\n\n// Builds the plan-gated price:0 order item shared across converters.\n// activePlan must be derived from activePlanLevel (cancellation-filtered) — never planLevel directly —\n// so a cancelled plan cannot authorise a $0 price. affiliate_plan_option_uuid is included only when\n// the plan has a uuid, giving zenapi a reference to validate the $0 price against plan pricing.\n// Pass service-specific fields (coupon, fees, term, period) via extras.\nexport const buildPlanGatedZeroItem = (service, jurisdiction, activePlan, extras = {}) => {\n  return {\n    service,\n    jurisdiction,\n    price: 0,\n    is_add_on: false,\n    ...(activePlan && activePlan.uuid ? { affiliate_plan_option_uuid: activePlan.uuid } : {}),\n    ...extras\n  };\n};\n\nexport const buildEntityName = (name, indicator) => {\n  return [name, indicator]\n    .map((el) => { return _trim(el); })\n    .filter(Boolean)\n    .join(' ');\n};\n\nexport const decorateAccount = (account) => {\n  account.is_recurly = isRecurlyEnabled();\n  if (isTRUiC()) {\n    account.custom_flow = 'truic';\n    account.entry_point_group = 'truic';\n  } if (isPF()) {\n    account.custom_flow = '';\n    account.entry_point_group = 'pf';\n  } else if (getEntryPointGroup()) {\n    account.custom_flow = '';\n    account.entry_point_group = getEntryPointGroup();\n  }\n  return account;\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getAccountingGrowAndScaleMonthlyPrice, getAccountingQuickStartMonthlyPrice, getAccountingUpAndRunningMonthlyPrice } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { accountingGrowAndScale, accountingQuickStart, accountingUpAndRunning } = purchase,\n    { domesticJurisdiction: jurisdiction } = business;\n\n  if (standalone) {\n    if (accountingGrowAndScale) {\n      return { service: 'accounting_grow_and_scale', jurisdiction, price: getAccountingGrowAndScaleMonthlyPrice(), fees: 0, term: 12, period: 12, is_add_on: false };\n    }\n    if (accountingQuickStart) {\n      return { service: 'accounting_quick_start', jurisdiction, price: getAccountingQuickStartMonthlyPrice(), fees: 0, term: 12, period: 12, is_add_on: false };\n    }\n    if (accountingUpAndRunning) {\n      return { service: 'accounting_up_and_running', jurisdiction, price: getAccountingUpAndRunningMonthlyPrice(), fees: 0, term: 12, period: 12, is_add_on: false };\n    }\n  }\n\n  return null;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { accountingGrowAndScale, accountingQuickStart, accountingUpAndRunning } = purchase,\n    { domesticJurisdiction: jurisdiction, name: business_entity_name, type } = business,\n    business_entity_type = type === 'CORP' ? 'CORP' : 'LLC';\n\n  if (standalone) {\n    if (accountingGrowAndScale) {\n      return { service: 'accounting_grow_and_scale', standalone, jurisdiction, business_entity_name, business_entity_type };\n    }\n    if (accountingQuickStart) {\n      return { service: 'accounting_quick_start', standalone, jurisdiction, business_entity_name, business_entity_type };\n    }\n    if (accountingUpAndRunning) {\n      return { service: 'accounting_up_and_running', standalone, jurisdiction, business_entity_name, business_entity_type };\n    }\n  }\n\n  return null;\n};\n/* eslint-enable camelcase */\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = _compact([\n      convertOrderData(registration, true)\n    ]),\n    orderItems = _compact([\n      convertOrderItem(registration, true)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.business.id\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport {\n  buildEntityName, buildPlanGatedZeroItem, convertAddress, convertContactIfIdentified, convertDirectors,\n  convertManagers, convertMembers, convertOfficers, convertRegisteredAgent, getPricingInformation, decorateAccount\n} from './BaseDataConverter';\nimport { ACTIONS, URLS } from '../../constants/complete_wfg';\nimport { getPlanLevel, isAutoIncludedInPlan } from '../../utils/PlanService';\nimport { getWFGYearlyPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\n// The compliance-report flows pass the jurisdiction being filed in, because\n// business.requestedJurisdiction is pinned to the entity's domestic jurisdiction and is never\n// advanced when a foreign one is chosen. A jurisdiction is always a short code, so anything else is\n// a stray positional argument rather than an override - which is exactly how the formation flows\n// once fed their unused `filingFees` into this slot. Ignore it and fall back, rather than writing a\n// non-jurisdiction into an order payload.\nconst resolveJurisdiction = (jurisdictionOverride, ...fallbacks) => {\n  const override = typeof jurisdictionOverride === 'string' && jurisdictionOverride ? jurisdictionOverride : null;\n\n  return override || fallbacks.find(Boolean) || undefined;\n};\n\nconst getPricingAndCouponAmount = (registration, jurisdictionOverride) => {\n  const\n    { business, purchase, coupons } = registration,\n    { activePlanLevel } = purchase,\n    { requestedJurisdiction } = business,\n    jurisdiction = resolveJurisdiction(jurisdictionOverride, requestedJurisdiction),\n    service = 'worry_free_service',\n    activePlan = activePlanLevel ? getPlanLevel(activePlanLevel, jurisdiction) : null,\n    pricing = getPriceAndCouponForService(service, activePlan, coupons);\n  return { pricing, plan: activePlan };\n};\n\n/* eslint-disable camelcase */\nconst\n  convertAccount = (registration) => {\n    const\n      { customer, lead } = registration,\n      { firstName: first_name, middleName: middle_name, lastName: last_name, suffix, email, phoneNumber: phone, password } = customer,\n      { leadUUID: lead_uuid } = lead,\n      { cardToken: card_token } = customer;\n\n    return decorateAccount({ lead_uuid, first_name, middle_name, last_name, suffix, email: email ? email.toLowerCase() : '', phone, password, international: false, signup_client: 'web_v2', card_token });\n  },\n  /* eslint-enable camelcase */\n\n  getEntityType = (type) => {\n    if (type === 'LLCX') {\n      return 'llc';\n    }\n    if (type === 'CORP') {\n      return 'corp';\n    }\n    return '';\n  };\n\nexport const convertOrderItem = (registration, standalone, filingFees, jurisdictionOverride) => {\n  const\n    { amendment, annualReport, business, purchase } = registration,\n    { worryFree, planLevel, activePlanLevel } = purchase,\n    { domesticJurisdiction, requestedJurisdiction } = business,\n    jurisdiction = resolveJurisdiction(jurisdictionOverride, requestedJurisdiction, domesticJurisdiction),\n    service = 'worry_free_service',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    activePlan = activePlanLevel ? getPlanLevel(activePlanLevel, jurisdiction) : null,\n    servicePricing = getPricingAndCouponAmount(registration, jurisdictionOverride);\n\n  if (activePlan && activePlan.worry_free_service) {\n    return buildPlanGatedZeroItem(service, jurisdiction, activePlan, { coupon: 0, fees: 0, term: 12, period: 1 });\n  }\n\n  const\n    wfFees = (jurisdiction ? filingFees[jurisdiction].worry_free_service : null) || { fees: 0 },\n    price = activePlan ? servicePricing.pricing.servicePrice : getWFGYearlyPrice(),\n    coupon = activePlan ? servicePricing.pricing.serviceCouponAmount : 0,\n    { fees } = wfFees,\n    term = 12,\n    period = 1;\n\n  if (standalone || worryFree || isAutoIncludedInPlan(plan, 'worry_free_service')) {\n    const orderItemObj = {\n      service,\n      price,\n      coupon,\n      fees,\n      term,\n      period,\n      jurisdiction,\n      is_add_on: !standalone && !!activePlan\n    };\n\n    if (amendment.useCredit) {\n      orderItemObj.credits = 1;\n      orderItemObj.credit_balance_uuid = amendment.creditUUID;\n    }\n\n    if (annualReport.useCredit) {\n      orderItemObj.credits = 1;\n      orderItemObj.credit_balance_uuid = annualReport.creditUUID;\n    }\n\n    return orderItemObj;\n  }\n  return null;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone, jurisdictionOverride) => {\n  const { business, businessAddresses, contact, directors, managers, members, officers, order, page, purchase, registeredAgent } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction } = business,\n    jurisdiction = resolveJurisdiction(jurisdictionOverride, requestedJurisdiction),\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    isAutoIncluded = isAutoIncludedInPlan(plan, 'worry_free_service');\n\n  if (!(plan && plan.worry_free_service) && !purchase.worryFree && !standalone && !isAutoIncluded) {\n    return null;\n  }\n\n  const\n    { type, name, indicator = '', status, description: business_purpose } = business,\n    { phoneNumber: phone } = contact,\n    isLLC = type === 'LLCX',\n    isCorp = type === 'CORP',\n    { id = '' } = order,\n    { principal: principalAddress, mailing: mailingAddress, physical: physicalAddress } = businessAddresses,\n    { completedAction, completedUrl, completedActionIndex } = page;\n\n  if (!standalone) {\n    return { service: 'worry_free_service', jurisdiction, standalone: false, is_new_business: true, is_auto_included: isAutoIncluded };\n  }\n\n  const data = _assign({\n    service: 'worry_free_service',\n    standalone: true,\n    jurisdiction,\n    domestic_jurisdiction: jurisdiction,\n    entity_type: getEntityType(type),\n    entity_name: buildEntityName(name, indicator),\n    business_purpose,\n    is_new_business: false,\n    is_auto_included: isAutoIncluded,\n    principal_address: convertAddress(principalAddress),\n    mailing_address: convertAddress(mailingAddress),\n    address: convertAddress(physicalAddress),\n    phone,\n    estimated_formation_date: '',\n    activity: '',\n    // Used with standalone RA\n    domestic_entity: true,\n    foreign_jurisdictions: [],\n    domestic_filing_date: '',\n    state_id: ''\n  },\n  convertContactIfIdentified(contact),\n  isLLC ? convertManagers(managers) : {},\n  isCorp ? convertDirectors(directors) : {},\n  isLLC ? convertMembers(members) : {},\n  isCorp ? convertOfficers(officers) : {},\n  isLLC || isCorp ? convertRegisteredAgent(registeredAgent, business, { registeredAgent: false }) : {}\n  );\n\n  if (status === 'incomplete') {\n    data.completed_action = id ? completedAction : ACTIONS.START;\n    data.completed_url = id ? completedUrl : URLS.START;\n    data.completed_action_index = id ? completedActionIndex : 5400;\n  }\n  return data;\n};\n/* eslint-enable camelcase */\n\nexport const buildOrder = (registration, filingFees, isUpdate) => {\n  const\n    { business } = registration,\n    { status: orderStatus } = business,\n    orderData = _compact([\n      convertOrderData(registration, true)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData\n    }, getPricingInformation(registration.order));\n\n  if (isUpdate) {\n    order.order_uuid = registration.order.id;\n    return { order };\n  }\n\n  const\n    { id: businessId } = business,\n    accountId = registration.customer.id || '',\n    account = accountId ? null : convertAccount(registration);\n\n  order.order_items = _compact([\n    convertOrderItem(registration, true, filingFees)\n  ]);\n\n  if (accountId) {\n    if (businessId) {\n      order.business_entity_uuid = businessId;\n    }\n    return {\n      account_uuid: accountId,\n      order\n    };\n  }\n  return {\n    account,\n    order\n  };\n};\n\n","import _assign from 'lodash/assign';\nimport _get from 'lodash/get';\nimport _isNil from 'lodash/isNil';\nimport _compact from 'lodash/compact';\nimport _isEmpty from 'lodash/isEmpty';\n\nimport { convertOrderData as convertWFGOrderData, convertOrderItem as convertWFGOrderItem } from './WorryFreeDataConverter';\nimport { convertAddress, convertDirectors, convertManagers, convertMembers, convertOfficers, convertUser, getPricingInformation } from './BaseDataConverter';\nimport { getAmendmentPrice, getAnnualReportPrice } from '../../utils/ProductService';\n\nconst isAnswerYes = (answer) => {\n  return answer === 'yes';\n};\n/* eslint-disable max-statements */\nexport const formNewARData = (updatedCompanyInfo, fieldRules) => {\n  const updatedInfo = {\n    business_entity_data: {}\n  };\n\n  if (updatedCompanyInfo.description && !fieldRules.business_purpose.requiresAmendment) {\n    updatedInfo.business_entity_data.business_purpose = updatedCompanyInfo.description;\n  }\n\n  if (updatedCompanyInfo.structure && !fieldRules.structure.requiresAmendment) {\n    updatedInfo.manager_type = updatedCompanyInfo.structure;\n    updatedInfo.business_entity_data.manager_type = updatedCompanyInfo.structure;\n  }\n\n  if (updatedCompanyInfo.managers && !fieldRules.managers.requiresAmendment) {\n    updatedInfo.business_entity_data.managers = convertManagers(updatedCompanyInfo).managers;\n  }\n\n  if (updatedCompanyInfo.members && !fieldRules.members.requiresAmendment) {\n    updatedInfo.business_entity_data.members = convertMembers(updatedCompanyInfo).members;\n  }\n\n  if (updatedCompanyInfo.directors && !fieldRules.directors.requiresAmendment) {\n    updatedInfo.business_entity_data.directors = convertDirectors(updatedCompanyInfo).directors;\n  }\n\n  if (updatedCompanyInfo.officers && !fieldRules.officers.requiresAmendment) {\n    updatedInfo.business_entity_data.officers = convertOfficers(updatedCompanyInfo).officers;\n  }\n\n  if (updatedCompanyInfo.addresses && !fieldRules.addresses.requiresAmendment) {\n    updatedInfo.business_entity_data.mailing_address = convertAddress(updatedCompanyInfo.addresses.mailing);\n    updatedInfo.business_entity_data.principal_address = convertAddress(updatedCompanyInfo.addresses.principal);\n    updatedInfo.business_entity_data.address = convertAddress(updatedCompanyInfo.addresses.physical);\n  }\n\n  if (updatedCompanyInfo.taxPreparer) {\n    updatedInfo.business_entity_data.tax_payer = convertUser(updatedCompanyInfo.taxPreparer);\n  }\n\n  if (updatedCompanyInfo.stockInfo && !fieldRules.stock_info.requiresAmendment) {\n    updatedInfo.business_entity_data.par_value = _get(updatedCompanyInfo.stockInfo, 'valuePerShare');\n    updatedInfo.business_entity_data.authorized_shares = _get(updatedCompanyInfo.stockInfo, 'authorizedShares');\n  }\n\n  if (updatedCompanyInfo.authorizedSignatory && !fieldRules.authorized_signatory.requiresAmendment) {\n    updatedInfo.business_entity_data.authorized_signatory = convertUser(updatedCompanyInfo.authorizedSignatory);\n  }\n\n  if (updatedCompanyInfo.paRaAuthorizedSignatoryConsent) {\n    updatedInfo.business_entity_data.pa_ra_authorized_signatory_consent = true;\n    if (updatedCompanyInfo.authorizedSignatory) {\n      updatedInfo.business_entity_data.authorized_signatory = convertUser(updatedCompanyInfo.authorizedSignatory);\n    }\n  }\n\n  if (updatedCompanyInfo.didDisposeOfProperty) {\n    updatedInfo.business_entity_data.sold_property = isAnswerYes(updatedCompanyInfo.didDisposeOfProperty);\n  }\n\n  if (updatedCompanyInfo.hadGrossSales) {\n    updatedInfo.business_entity_data.had_gross_sales = isAnswerYes(updatedCompanyInfo.hadGrossSales);\n  }\n\n  if (updatedCompanyInfo.hadGoodStanding) {\n    updatedInfo.business_entity_data.had_good_standing = isAnswerYes(updatedCompanyInfo.hadGoodStanding);\n  }\n\n  if (updatedCompanyInfo.liabilitySingleMember) {\n    updatedInfo.business_entity_data.liability_single_member = isAnswerYes(updatedCompanyInfo.liabilitySingleMember);\n  }\n\n  if (updatedCompanyInfo.privatelyHeld) {\n    updatedInfo.business_entity_data.privately_held = isAnswerYes(updatedCompanyInfo.privatelyHeld);\n  }\n\n  if (updatedCompanyInfo.stateBenefit) {\n    updatedInfo.business_entity_data.state_benefit = isAnswerYes(updatedCompanyInfo.stateBenefit);\n  }\n\n  if (updatedCompanyInfo.listGrossSales) {\n    updatedInfo.business_entity_data.list_gross_sales = updatedCompanyInfo.listGrossSales;\n  }\n\n  if (updatedCompanyInfo.maintainLicense) {\n    updatedInfo.business_entity_data.requires_license = isAnswerYes(updatedCompanyInfo.maintainLicense);\n  }\n\n  if (updatedCompanyInfo.makesLessThan) {\n    updatedInfo.business_entity_data.makes_less_than_amount = isAnswerYes(updatedCompanyInfo.makesLessThan);\n  }\n\n  if (updatedCompanyInfo.useProperty) {\n    updatedInfo.business_entity_data.own_or_lease_property = isAnswerYes(updatedCompanyInfo.useProperty);\n  }\n  if (updatedCompanyInfo.totalRevenue) {\n    updatedInfo.business_entity_data.total_revenue = updatedCompanyInfo.totalRevenue;\n  }\n  if (updatedCompanyInfo.ownsAnyOtherBusiness) {\n    updatedInfo.business_entity_data.owns_any_other_business = isAnswerYes(updatedCompanyInfo.ownsAnyOtherBusiness);\n  }\n  if (updatedCompanyInfo.companyDataOwns) {\n    updatedInfo.business_entity_data.company_data_owns = updatedCompanyInfo.companyDataOwns;\n  }\n  if (updatedCompanyInfo.companyDataOwnedBy) {\n    updatedInfo.business_entity_data.company_data_owned_by = updatedCompanyInfo.companyDataOwnedBy;\n  }\n  if (updatedCompanyInfo.isOwnedByAnyOtherBusiness) {\n    updatedInfo.business_entity_data.is_owned_by_any_other_business = isAnswerYes(updatedCompanyInfo.isOwnedByAnyOtherBusiness);\n  }\n  if (updatedCompanyInfo.hasEnteredIntoContract) {\n    updatedInfo.business_entity_data.has_entered_into_any_contract = isAnswerYes(updatedCompanyInfo.hasEnteredIntoContract);\n  }\n  if (updatedCompanyInfo.ownsRealProperty) {\n    updatedInfo.business_entity_data.owns_real_property = isAnswerYes(updatedCompanyInfo.ownsRealProperty);\n  }\n  if (updatedCompanyInfo.hasThereBeenATransferOfStock) {\n    updatedInfo.business_entity_data.has_there_been_a_transfer_of_stock = isAnswerYes(updatedCompanyInfo.hasThereBeenATransferOfStock);\n  }\n  if (updatedCompanyInfo.hasTransferOfStockBeenOverEqualFiftyPercent) {\n    updatedInfo.business_entity_data.has_transfer_of_stock_been_over_equal_fifty_percent = isAnswerYes(updatedCompanyInfo.hasTransferOfStockBeenOverEqualFiftyPercent);\n  }\n  if (updatedCompanyInfo.hasControllingInterestTransferFiledDepartmentRevenue) {\n    updatedInfo.business_entity_data.has_controlling_interest_transfer_filed_department_revenue = isAnswerYes(updatedCompanyInfo.hasControllingInterestTransferFiledDepartmentRevenue);\n  }\n  if (updatedCompanyInfo.holdsInterestInAgriculturalLand) {\n    updatedInfo.business_entity_data.holds_interest_in_agricultural_land = isAnswerYes(updatedCompanyInfo.holdsInterestInAgriculturalLand);\n  }\n  if (updatedCompanyInfo.isFamilyFarmLLC) {\n    updatedInfo.business_entity_data.is_a_family_llc = isAnswerYes(updatedCompanyInfo.isFamilyFarmLLC);\n  }\n\n  if (updatedCompanyInfo.naicsCode) {\n    updatedInfo.business_entity_data.naics_code = updatedCompanyInfo.naicsCode;\n  }\n  if (!_isNil(updatedCompanyInfo.numberOfStateEmployees)) {\n    updatedInfo.business_entity_data.number_of_state_employees = updatedCompanyInfo.numberOfStateEmployees;\n  }\n  if (!_isNil(updatedCompanyInfo.numberOfEmployees)) {\n    updatedInfo.business_entity_data.number_of_employees = updatedCompanyInfo.numberOfEmployees;\n  }\n  if (updatedCompanyInfo.scrapMetalDealer) {\n    updatedInfo.business_entity_data.scrap_metal_dealer = isAnswerYes(updatedCompanyInfo.scrapMetalDealer);\n  }\n  if (updatedCompanyInfo.currentlyExporting) {\n    updatedInfo.business_entity_data.currently_exporting = isAnswerYes(updatedCompanyInfo.currentlyExporting);\n  }\n  if (updatedCompanyInfo.topExportMarkets) {\n    updatedInfo.business_entity_data.top_export_markets = updatedCompanyInfo.topExportMarkets;\n  }\n  if (updatedCompanyInfo.beInterestedInExporting) {\n    updatedInfo.business_entity_data.be_interested_in_exporting = isAnswerYes(updatedCompanyInfo.beInterestedInExporting);\n  }\n  if (updatedCompanyInfo.isMinorityOwnedBusiness) {\n    updatedInfo.business_entity_data.is_minority_owned_business = updatedCompanyInfo.isMinorityOwnedBusiness;\n  }\n  if (updatedCompanyInfo.isWomanOwnedBusiness) {\n    updatedInfo.business_entity_data.is_woman_owned_business = updatedCompanyInfo.isWomanOwnedBusiness;\n  }\n  if (updatedCompanyInfo.ownMoreThanOneBusiness) {\n    updatedInfo.business_entity_data.own_more_than_one_business = isAnswerYes(updatedCompanyInfo.ownMoreThanOneBusiness);\n  }\n  if (!_isNil(updatedCompanyInfo.howManyBusinesses)) {\n    updatedInfo.business_entity_data.how_many_businesses = updatedCompanyInfo.howManyBusinesses;\n  }\n  if (!_isNil(updatedCompanyInfo.howManyCounties)) {\n    updatedInfo.business_entity_data.how_many_counties = updatedCompanyInfo.howManyCounties;\n  }\n  if (updatedCompanyInfo.doesEmployIndividualsWhoServeInForces) {\n    updatedInfo.business_entity_data.does_employ_individuals_who_serve_in_forces = updatedCompanyInfo.doesEmployIndividualsWhoServeInForces;\n  }\n  if (!_isNil(updatedCompanyInfo.howManyIndividuals)) {\n    updatedInfo.business_entity_data.how_many_individuals = updatedCompanyInfo.howManyIndividuals;\n  }\n  if (updatedCompanyInfo.doesOwnerServeInForces) {\n    updatedInfo.business_entity_data.does_owner_serve_in_forces = updatedCompanyInfo.doesOwnerServeInForces;\n  }\n  if (updatedCompanyInfo.getSupportFromWVSBDC) {\n    updatedInfo.business_entity_data.get_support_from_WVSBDC = isAnswerYes(updatedCompanyInfo.getSupportFromWVSBDC);\n  }\n  // US_DE\n  if (!_isEmpty(updatedCompanyInfo.issuedSharesAndGrossAssets)) {\n    const issuedShares = _get(updatedCompanyInfo.issuedSharesAndGrossAssets, 'issuedShares').replace(/,/g, '');\n    updatedInfo.business_entity_data.issued_shares = issuedShares;\n\n    const grossAssets = _get(updatedCompanyInfo.issuedSharesAndGrossAssets, 'grossAssets').substring(1).replace(/,/g, '');\n    updatedInfo.business_entity_data.gross_assets = grossAssets;\n  }\n  // US_AZ\n  if (!_isEmpty(updatedCompanyInfo.issuedShares)) {\n    const issuedShares = _get(updatedCompanyInfo.issuedShares, 'issuedShares').replace(/,/g, '');\n    updatedInfo.business_entity_data.issued_shares = issuedShares;\n\n    const issuedSharesClass = _get(updatedCompanyInfo.issuedShares, 'issuedSharesClass').substring(1).replace(/,/g, '');\n    updatedInfo.business_entity_data.issued_shares_class = issuedSharesClass;\n\n    const issuedSharesSeries = _get(updatedCompanyInfo.issuedShares, 'issuedSharesSeries').substring(2).replace(/,/g, '');\n    updatedInfo.business_entity_data.issued_shares_series = issuedSharesSeries;\n  }\n  // US_NJ\n  if (updatedCompanyInfo.workerCompensationInsuranceRequired) {\n    updatedInfo.business_entity_data.worker_compensation_insurance_required = isAnswerYes(updatedCompanyInfo.workerCompensationInsuranceRequired);\n  }\n  if (updatedCompanyInfo.isBusinessSelfInsured) {\n    updatedInfo.business_entity_data.is_business_self_insured = isAnswerYes(updatedCompanyInfo.isBusinessSelfInsured);\n  }\n  if (updatedCompanyInfo.selfInsuranceDetails) {\n    updatedInfo.business_entity_data.insurance_company = updatedCompanyInfo.selfInsuranceDetails.insuranceCompany;\n    updatedInfo.business_entity_data.policy_number = updatedCompanyInfo.selfInsuranceDetails.policyNumber;\n    updatedInfo.business_entity_data.coverage_start_date = updatedCompanyInfo.selfInsuranceDetails.coverageBegan;\n  }\n  // US_NY\n  if (updatedCompanyInfo.chiefExecutiveOfficer) {\n    updatedInfo.business_entity_data.chief_executive_officer = {\n      first_name: updatedCompanyInfo.chiefExecutiveOfficer.firstName,\n      middle_name: updatedCompanyInfo.chiefExecutiveOfficer.middleName,\n      last_name: updatedCompanyInfo.chiefExecutiveOfficer.lastName,\n      suffix: updatedCompanyInfo.chiefExecutiveOfficer.suffix,\n      title: updatedCompanyInfo.chiefExecutiveOfficer.title,\n      email: updatedCompanyInfo.chiefExecutiveOfficer.email,\n      phone: updatedCompanyInfo.chiefExecutiveOfficer.phoneNumber,\n      address_1: updatedCompanyInfo.chiefExecutiveOfficer.addressLine1,\n      address_2: updatedCompanyInfo.chiefExecutiveOfficer.addressLine2,\n      city: updatedCompanyInfo.chiefExecutiveOfficer.city,\n      state: updatedCompanyInfo.chiefExecutiveOfficer.state,\n      county: updatedCompanyInfo.chiefExecutiveOfficer.county,\n      country: updatedCompanyInfo.chiefExecutiveOfficer.country,\n      zip:  updatedCompanyInfo.chiefExecutiveOfficer.zipCode\n    };\n  }\n  if (updatedCompanyInfo.businessEntityPrincipalAddress) {\n    updatedInfo.business_entity_data.business_entity_principal_address = {\n      address_1: updatedCompanyInfo.businessEntityPrincipalAddress.addressLine1,\n      address_2: updatedCompanyInfo.businessEntityPrincipalAddress.addressLine2,\n      city: updatedCompanyInfo.businessEntityPrincipalAddress.city,\n      state: updatedCompanyInfo.businessEntityPrincipalAddress.state,\n      county: updatedCompanyInfo.businessEntityPrincipalAddress.county,\n      country: updatedCompanyInfo.businessEntityPrincipalAddress.country,\n      zip:  updatedCompanyInfo.businessEntityPrincipalAddress.zipCode\n    };\n  }\n  if (updatedCompanyInfo.numberOfDirectorsAndDirectorsAsWomen) {\n    updatedInfo.business_entity_data.number_of_directors = updatedCompanyInfo.numberOfDirectorsAndDirectorsAsWomen.numberOfDirectors;\n    updatedInfo.business_entity_data.number_of_directors_as_women = updatedCompanyInfo.numberOfDirectorsAndDirectorsAsWomen.numberOfDirectorsAsWomen;\n  }\n  //\n  if (updatedCompanyInfo.year) {\n    updatedInfo.business_entity_data.year = updatedCompanyInfo.year;\n  }\n  if (updatedCompanyInfo.ownedUSMilitaryVeteran) {\n    updatedInfo.business_entity_data.owned_us_military_veteran = isAnswerYes(updatedCompanyInfo.ownedUSMilitaryVeteran);\n  }\n  if (updatedCompanyInfo.ownedUSDisabledMilitaryVeteran) {\n    updatedInfo.business_entity_data.owned_us_disabled_military_veteran = isAnswerYes(updatedCompanyInfo.ownedUSDisabledMilitaryVeteran);\n  }\n  if (updatedCompanyInfo.netReceiptsLessThanOneMillion) {\n    updatedInfo.business_entity_data.net_receipts_less_than_one_million = isAnswerYes(updatedCompanyInfo.netReceiptsLessThanOneMillion);\n  }\n  if (updatedCompanyInfo.upToDateStockInformation) {\n    updatedInfo.business_entity_data.up_to_date_stock_information = isAnswerYes(updatedCompanyInfo.upToDateStockInformation);\n  }\n  if (updatedCompanyInfo.stockClass) {\n    updatedInfo.business_entity_data.stock_class = updatedCompanyInfo.stockClass;\n  }\n  if (updatedCompanyInfo.stockAdded) {\n    updatedInfo.business_entity_data.stock_added = updatedCompanyInfo.stockAdded.addedStock;\n    updatedInfo.business_entity_data.authorized_shares = updatedCompanyInfo.stockAdded.authorizedShares;\n    updatedInfo.business_entity_data.issued_shares = updatedCompanyInfo.stockAdded.issuedShares;\n  }\n  if (updatedCompanyInfo.corpTransacts) {\n    updatedInfo.business_entity_data.corp_transacts = updatedCompanyInfo.corpTransacts;\n  }\n  if (updatedCompanyInfo.corpOwnership) {\n    updatedInfo.business_entity_data.corp_ownership = updatedCompanyInfo.corpOwnership;\n  }\n  if (updatedCompanyInfo.isCombinedGroup) {\n    updatedInfo.business_entity_data.is_combined_group = isAnswerYes(updatedCompanyInfo.isCombinedGroup);\n  }\n  if (updatedCompanyInfo.isCombinedGroupTempLossPreserved) {\n    updatedInfo.business_entity_data.is_combined_group_temp_loss_preserved = isAnswerYes(updatedCompanyInfo.isCombinedGroupTempLossPreserved);\n  }\n  if (updatedCompanyInfo.isTieredPartnerRevAdjusted) {\n    updatedInfo.business_entity_data.is_tiered_partner_rev_adjusted = isAnswerYes(updatedCompanyInfo.isTieredPartnerRevAdjusted);\n  }\n  if (updatedCompanyInfo.isPassiveEntityTX) {\n    updatedInfo.business_entity_data.is_passive_entity_tx = isAnswerYes(updatedCompanyInfo.isPassiveEntityTX);\n  }\n  if (updatedCompanyInfo.isREITTX) {\n    updatedInfo.business_entity_data.is_reit_tx = isAnswerYes(updatedCompanyInfo.isREITTX);\n  }\n  if (updatedCompanyInfo.isNewVetOwnedTX) {\n    updatedInfo.business_entity_data.is_new_vet_owned_tx = isAnswerYes(updatedCompanyInfo.isNewVetOwnedTX);\n  }\n  if (updatedCompanyInfo.webFileId) {\n    updatedInfo.business_entity_data.web_file_id = updatedCompanyInfo.webFileId;\n  }\n  return updatedInfo;\n};\n\nconst formNewAmendmentData = (updatedCompanyInfo, fieldRules) => {\n  const updatedInfo = {\n    business_entity_data: {}\n  };\n\n  if (updatedCompanyInfo.name) {\n    updatedInfo.business_entity_name = updatedCompanyInfo.name;\n  }\n\n  if (updatedCompanyInfo.description && fieldRules.business_purpose.requiresAmendment) {\n    updatedInfo.business_entity_data.business_purpose = updatedCompanyInfo.description;\n  }\n\n  if (updatedCompanyInfo.structure && fieldRules.structure.requiresAmendment) {\n    updatedInfo.manager_type = updatedCompanyInfo.structure;\n    updatedInfo.business_entity_data.manager_type = updatedCompanyInfo.structure;\n  }\n\n  if (updatedCompanyInfo.managers && fieldRules.managers.requiresAmendment) {\n    updatedInfo.business_entity_data.managers = convertManagers(updatedCompanyInfo).managers;\n  }\n\n  if (updatedCompanyInfo.members && fieldRules.members.requiresAmendment) {\n    updatedInfo.business_entity_data.members = convertMembers(updatedCompanyInfo).members;\n  }\n\n  if (updatedCompanyInfo.directors && fieldRules.directors.requiresAmendment) {\n    updatedInfo.business_entity_data.directors = convertDirectors(updatedCompanyInfo).directors;\n  }\n\n  if (updatedCompanyInfo.officers && fieldRules.officers.requiresAmendment) {\n    updatedInfo.business_entity_data.officers = convertOfficers(updatedCompanyInfo).officers;\n  }\n\n  if (updatedCompanyInfo.addresses && fieldRules.addresses.requiresAmendment) {\n    updatedInfo.business_entity_data.mailing_address = convertAddress(updatedCompanyInfo.addresses.mailing);\n    updatedInfo.business_entity_data.principal_address = convertAddress(updatedCompanyInfo.addresses.principal);\n    updatedInfo.business_entity_data.address = convertAddress(updatedCompanyInfo.addresses.physical);\n  }\n\n  if (updatedCompanyInfo.stockInfo && fieldRules.stock_info.requiresAmendment) {\n    updatedInfo.business_entity_data.par_value = _get(updatedCompanyInfo.stockInfo, 'valuePerShare');\n    updatedInfo.business_entity_data.authorized_shares = _get(updatedCompanyInfo.stockInfo, 'authorizedShares');\n  }\n\n  if (updatedCompanyInfo.authorizedSignatory && fieldRules.authorized_signatory.requiresAmendment) {\n    updatedInfo.business_entity_data.authorized_signatory = convertUser(updatedCompanyInfo.authorizedSignatory);\n  }\n\n  return updatedInfo;\n};\n\nexport const convertOrderItem = (registration, standalone, filingFees) => {\n  const\n    { annualReport } = registration,\n    {\n      filingJurisdiction: jurisdiction,\n      filingJurisdictionType: jurisdictionType,\n      originalCompanyInfo,\n      hasWFG,\n      hasARS,\n      hasPurchasedWFC,\n      isPurchasingWFG: isWorryFreeChecked\n    } = annualReport,\n    businessType = originalCompanyInfo.type,\n    service = businessType === 'CORP' ? 'corp_annual_report' : 'llc_annual_report';\n\n  // Get the fees for the jurisdiction type (domestic / foreign)\n  const jurisdictionTypeFees = filingFees[jurisdiction][service]?.[jurisdictionType];\n\n  // If the jurisdiction type fees are not found, use the flat fees\n  const fees = jurisdictionTypeFees?.fees ?? filingFees[jurisdiction][service].fees;\n\n  if (standalone) {\n    return { service, jurisdiction, price: (hasWFG || hasARS || isWorryFreeChecked || hasPurchasedWFC) ? 0 : getAnnualReportPrice(), fees, is_add_on: false };\n  }\n\n  return null;\n};\n\nexport const convertAmendmentOrderItem = (registration, standalone, filingFees) => {\n  const\n    { annualReport } = registration,\n    { filingJurisdiction, originalCompanyInfo, useCredit, creditUUID } = annualReport,\n    fees = filingFees[filingJurisdiction][originalCompanyInfo.type === 'CORP' ? 'corp_amendment' : 'llc_amendment'].fees,\n    service = originalCompanyInfo.type === 'CORP' ? 'corp_amendment' : 'llc_amendment';\n\n  if (standalone) {\n    if (useCredit) {\n      return { service, jurisdiction: filingJurisdiction, price: 0, fees, is_add_on: false, credits: 1, credit_balance_uuid: creditUUID };\n    }\n    return { service, jurisdiction: filingJurisdiction, price: getAmendmentPrice(), fees, is_add_on: false };\n  }\n\n  return null;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone, isAmendment, fieldRules) => {\n  const\n    { annualReport } = registration,\n    { name: entity_name, originalCompanyInfo, filingJurisdiction: jurisdiction, updatedCompanyInfo, stateId, complianceEventUuid } = annualReport,\n    businessType = originalCompanyInfo.type,\n    service = businessType === 'CORP' ? `corp_${isAmendment ? 'amendment' : 'annual_report'}` : `llc_${isAmendment ? 'amendment' : 'annual_report'}`,\n    foreign_jurisdiction_objects = stateId ? [{ jurisdiction_code: jurisdiction, jurisdiction_filing_number: stateId }] : [];\n\n  return {\n    service,\n    standalone,\n    entity_name,\n    jurisdiction,\n    foreign_jurisdiction_objects,\n    compliance_event_uuid: complianceEventUuid,\n    new_data: isAmendment ? formNewAmendmentData(updatedCompanyInfo, fieldRules) : formNewARData(updatedCompanyInfo, fieldRules)\n  };\n};\n/* eslint-enable camelcase */\n\nexport const buildOrder = (registration, accountId, filingFees, fieldRules) => {\n  const\n    orderStatus = 'complete',\n    // Worry-Free must attach to the jurisdiction being filed in, not the entity's domestic one.\n    // business.requestedJurisdiction is pinned to the domestic jurisdiction on SET_COMPANY and is\n    // never advanced when a foreign jurisdiction is chosen, so the WFG converters have to be told.\n    { filingJurisdiction } = registration.annualReport,\n    orderData = _compact([\n      convertOrderData(registration, true, false, fieldRules),\n      registration.annualReport.isPurchasingWFG ? convertWFGOrderData(registration, false, filingJurisdiction) : null,\n      registration.annualReport.didAddAmendment === 'yes' ? convertOrderData(registration, true, true, fieldRules) : null\n    ]),\n    orderItems = _compact([\n      convertOrderItem(registration, true, filingFees),\n      registration.annualReport.isPurchasingWFG ? convertWFGOrderItem(registration, false, filingFees, filingJurisdiction) : null,\n      registration.annualReport.didAddAmendment === 'yes' ?  convertAmendmentOrderItem(registration, true, filingFees, false) : null\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.annualReport.originalCompanyInfo.id\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    business_entity_uuid: registration.annualReport.originalCompanyInfo.id,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _get from 'lodash/get';\nimport _compact from 'lodash/compact';\n\nimport { convertOrderData as convertWFGOrderData, convertOrderItem as convertWFGOrderItem } from './WorryFreeDataConverter';\nimport { convertAddress, convertDirectors, convertManagers, convertMembers, convertOfficers, convertUser, getPricingInformation } from './BaseDataConverter';\nimport { getAmendmentPrice, getAnnualReportPrice } from '../../utils/ProductService';\nimport { formNewARData } from './AnnualReportConverter';\n\n/* eslint-disable max-statements */\nconst formNewData = (updatedCompanyInfo) => {\n  const updatedInfo = {\n    business_entity_data: {}\n  };\n\n  if (updatedCompanyInfo.name) {\n    updatedInfo.business_entity_name = updatedCompanyInfo.name;\n  }\n\n  if (updatedCompanyInfo.description) {\n    updatedInfo.business_entity_data.business_purpose = updatedCompanyInfo.description;\n  }\n\n  if (updatedCompanyInfo.structure) {\n    updatedInfo.manager_type = updatedCompanyInfo.structure;\n    updatedInfo.business_entity_data.manager_type = updatedCompanyInfo.structure;\n  }\n\n  if (updatedCompanyInfo.managers) {\n    updatedInfo.business_entity_data.managers = convertManagers(updatedCompanyInfo).managers;\n  }\n\n  if (updatedCompanyInfo.members) {\n    updatedInfo.business_entity_data.members = convertMembers(updatedCompanyInfo).members;\n  }\n\n  if (updatedCompanyInfo.directors) {\n    updatedInfo.business_entity_data.directors = convertDirectors(updatedCompanyInfo).directors;\n  }\n\n  if (updatedCompanyInfo.officers) {\n    updatedInfo.business_entity_data.officers = convertOfficers(updatedCompanyInfo).officers;\n  }\n\n  if (updatedCompanyInfo.addresses) {\n    updatedInfo.business_entity_data.mailing_address = convertAddress(updatedCompanyInfo.addresses.mailing);\n    updatedInfo.business_entity_data.principal_address = convertAddress(updatedCompanyInfo.addresses.principal);\n    updatedInfo.business_entity_data.address = convertAddress(updatedCompanyInfo.addresses.physical);\n  }\n\n  if (updatedCompanyInfo.stockInfo) {\n    updatedInfo.business_entity_data.par_value = _get(updatedCompanyInfo.stockInfo, 'valuePerShare');\n    updatedInfo.business_entity_data.authorized_shares = _get(updatedCompanyInfo.stockInfo, 'authorizedShares');\n  }\n\n  if (updatedCompanyInfo.authorizedSignatory) {\n    updatedInfo.business_entity_data.authorized_signatory = convertUser(updatedCompanyInfo.authorizedSignatory);\n  }\n\n  if (updatedCompanyInfo.webFileId) {\n    updatedInfo.business_entity_data.web_file_id = updatedCompanyInfo.webFileId;\n  }\n\n  return updatedInfo;\n};\n/* eslint-enable max-statements */\n\nexport const convertOrderItem = (registration, standalone, filingFees) => {\n  const\n    { amendment } = registration,\n    { filingJurisdiction, originalCompanyInfo, useCredit, creditUUID } = amendment,\n    fees = filingFees[filingJurisdiction][originalCompanyInfo.type === 'CORP' ? 'corp_amendment' : 'llc_amendment'].fees,\n    service = originalCompanyInfo.type === 'CORP' ? 'corp_amendment' : 'llc_amendment';\n\n  if (standalone) {\n    if (useCredit) {\n      return { service, jurisdiction: filingJurisdiction, price: 0, fees, is_add_on: false, credits: 1, credit_balance_uuid: creditUUID };\n    }\n    return { service, jurisdiction: filingJurisdiction, price: getAmendmentPrice(), fees, is_add_on: false };\n  }\n\n  return null;\n};\n\nexport const convertAnnualReportOrderItem = (registration, standalone, filingFees) => {\n  const\n    { amendment } = registration,\n    { filingJurisdiction, originalCompanyInfo, hasWFG, hasARS } = amendment,\n    fees = filingFees[filingJurisdiction][originalCompanyInfo.type === 'CORP' ? 'corp_annual_report' : 'llc_annual_report'].fees,\n    service = originalCompanyInfo.type === 'CORP' ? 'corp_annual_report' : 'llc_annual_report';\n\n  if (standalone) {\n    return { service, jurisdiction: filingJurisdiction, price: (hasWFG || hasARS) ? 0 : getAnnualReportPrice(), fees, is_add_on: false };\n  }\n\n  return null;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone, isAmendment, fieldRules) => {\n  const\n    { amendment } = registration,\n    { name: entity_name, originalCompanyInfo, filingJurisdiction: jurisdiction, updatedCompanyInfo } = amendment,\n    businessType = originalCompanyInfo.type,\n    service = businessType === 'CORP' ? `corp_${isAmendment ? 'amendment' : 'annual_report'}` : `llc_${isAmendment ? 'amendment' : 'annual_report'}`;\n\n  return {\n    service,\n    standalone,\n    entity_name,\n    jurisdiction,\n    new_data: isAmendment ? {\n      ...formNewData(updatedCompanyInfo),\n      ...(typeof amendment.changingOwnership === 'boolean' ? { changing_ownership: amendment.changingOwnership } : null)\n    } : formNewARData(updatedCompanyInfo, fieldRules)\n  };\n};\n\nexport const buildOrder = (registration, accountId, filingFees, fieldRules) => {\n  const\n    orderStatus = 'complete',\n    // Same as the annual report flow: business.requestedJurisdiction is not advanced for a foreign\n    // filing, so the WFG converters are given the jurisdiction actually being filed in.\n    { filingJurisdiction } = registration.amendment,\n    orderData = _compact([\n      convertOrderData(registration, true, !registration.amendment.didSelectOnlyAnnualReport || registration.amendment.didSelectOnlyAnnualReport === 'no', fieldRules),\n      registration.amendment.isPurchasingWFG ? convertWFGOrderData(registration, false, filingJurisdiction) : null\n    ]),\n    orderItems = _compact([\n      registration.amendment.didSelectOnlyAnnualReport === 'yes'\n        ?  convertAnnualReportOrderItem(registration, true, filingFees)\n        : convertOrderItem(registration, true, filingFees),\n      registration.amendment.isPurchasingWFG ? convertWFGOrderItem(registration, false, filingFees, filingJurisdiction) : null\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.amendment.originalCompanyInfo.id\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    business_entity_uuid: registration.amendment.originalCompanyInfo.id,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\nimport _find from 'lodash/find';\nimport _map from 'lodash/map';\nimport _trim from 'lodash/trim';\nimport _isNumber from 'lodash/isNumber';\n\nimport { convertAddress, convertUser, getPricingInformation } from './BaseDataConverter';\nimport { getPlanLevel } from '../../utils/PlanService';\nimport { getBankingYearlyPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\nimport { BANKING_ACTIVITY_LABEL_TO_NUMBER, BANKING_ACTIVITY_NUMBER_TO_LABEL, EIN_TO_BANKING_ACTIVITY_MAP } from '../../constants/register_banking';\n\nconst\n  convertOwner = (owner) => {\n    const { role, citizenship, residentCitizenAgeAck, ssn, ein, percent, dob, access, accountOwner } = owner,\n      ownershipPercentage = parseInt(percent, 10);\n\n    if (!access) {\n      return null;\n    }\n    return _assign(convertUser(owner), {\n      role,\n      citizenship,\n      resident_citizen_age_acknowledge: residentCitizenAgeAck,\n      ssn,\n      ein,\n      ownership_percentage: ownershipPercentage,\n      account_owner: accountOwner,\n      date_of_birth: dob?.replace(/\\//g, '-')\n    });\n  },\n  convertOwners = (owners) => {\n    return {\n      bank_account_members: _compact(_map(owners, (owner) => {\n        return convertOwner(owner);\n      }))\n    };\n  },\n  convertContact = (owners) => {\n    const user = _find(owners, (owner) => {\n      return owner.accountOwner;\n    });\n    if (!user) {\n      return null;\n    }\n    return convertUser(user);\n  };\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { banking, purchase, coupons } = registration,\n    { domesticJurisdiction: jurisdiction, inPlan } = banking,\n    { banking: purchaseBanking, planLevel } = purchase,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'banking',\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  if ((standalone && !inPlan) || (purchaseBanking && !planLevel)) {\n    // planLevel is coming thru from props for this standalone only; as a result pricing attempts fetch from plan\n    // reimplemented hardcoded until zapi price fetching is standardized\n    const\n      price = getBankingYearlyPrice(),\n      coupon = plan ? pricing.serviceCouponAmount : 0,\n      period = 1;\n\n    return { service, jurisdiction: _trim(jurisdiction), price, coupon, fees: 0, term: 12, period, is_add_on: false };\n  }\n\n  if ((standalone && inPlan) || (purchaseBanking && planLevel)) {\n    return { service, jurisdiction: _trim(jurisdiction), price: 0, coupon: 0, fees: 0, term: 12, period: 1, is_add_on: false };\n  }\n\n  return null;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { banking } = registration,\n    { businessType, name, description: business_purpose, domesticJurisdiction: jurisdiction, phoneNumber } = banking,\n    { ein, businessYears: business_years, businessActivity, businessActivityOther, dbas: business_dba_name, owners } = banking,\n    { accountType: account_type, routingNumber: routing_number, accountNumber: account_number, accountFullName: account_full_name, fundingAmount, publicToken: public_token } = banking,\n    service = 'banking',\n    address = convertAddress(banking),\n    contact = convertContact(owners),\n    naicsLabel = BANKING_ACTIVITY_NUMBER_TO_LABEL[businessActivity] || (!_isNumber(businessActivity) ? businessActivity : ''),\n    naicsCode = EIN_TO_BANKING_ACTIVITY_MAP[businessActivity] || BANKING_ACTIVITY_LABEL_TO_NUMBER[businessActivity] || (_isNumber(businessActivity) ? businessActivity : '');\n\n  return _assign(\n    { service,\n      standalone,\n      is_new_business: !standalone,\n      business_entity_name: name,\n      entity_name: name,\n      business_dba_name,\n      business_entity_type: businessType === 'CORP' ? 'CORP' : 'LLC',\n      ein,\n      phone: phoneNumber || contact.phoneNumber,\n      business_purpose,\n      naics: naicsLabel,\n      naics_description: businessActivityOther,\n      naics_code: naicsCode,\n      incorporation_state: _trim(jurisdiction),\n      jurisdiction: _trim(jurisdiction),\n      funding_amount: fundingAmount ? fundingAmount.substring(1).replace(/,/g, '') : '',\n      account_full_name,\n      terms_of_service_ack: true,\n      account_type,\n      account_number,\n      routing_number,\n      public_token,\n      business_entity_address: address,\n      business_entity_contact: contact,\n      business_years\n    }, convertOwners(owners)\n  );\n};\n/* eslint-enable camelcase */\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = _compact([\n      convertOrderData(registration, true)\n    ]),\n    orderItems = _compact([\n      convertOrderItem(registration, true)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.banking.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPlanLevel } from '../../utils/PlanService';\nimport { getBankingResolutionPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { bankingResolution = false, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'banking_resolution',\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  if (plan && plan.banking_resolution) {\n    return { service, jurisdiction, price: 0, coupon: 0, fees: 0, is_add_on: false };\n  }\n\n  const\n    price = plan ? pricing.servicePrice : getBankingResolutionPrice(),\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    fees = 0;\n\n  if (standalone || bankingResolution) {\n    return { service, jurisdiction, price, coupon, fees, is_add_on: !standalone && !!plan };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const { business, purchase } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  if (!(plan && plan.banking_resolution) && !purchase.bankingResolution && !standalone) {\n    return null;\n  }\n\n  const\n    data = {\n      service: 'banking_resolution',\n      standalone,\n      jurisdiction,\n      is_new_business: !standalone\n    };\n\n  return data;\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.bankingResolution.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\n\nimport { getBusinessKitPrice } from '../../utils/ProductService';\nimport { getPricingInformation } from './BaseDataConverter';\n\nconst BUSINESS_KIT = 'business_kit';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, postpurchase } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { purchaseBusinessKit } = postpurchase,\n    service = BUSINESS_KIT,\n    price = getBusinessKitPrice();\n\n  if (purchaseBusinessKit) {\n    return { service, jurisdiction, price, fees: 0, is_add_on: false };\n  }\n\n  if (standalone) {\n    return { service, jurisdiction, price, fees: 0, is_add_on: false };\n  }\n\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    service = BUSINESS_KIT,\n    { business, postpurchase } = registration,\n    { requestedJurisdiction, type } = business,\n    { purchaseBusinessKit } = postpurchase;\n\n  if (standalone) {\n    return {\n      service,\n      standalone,\n      jurisdiction: requestedJurisdiction,\n      entity_type: type === 'LLCX' ? 'llc' : 'corp',\n      is_new_business: !standalone\n    };\n  }\n\n  return purchaseBusinessKit ? {\n    service,\n    business_kit: purchaseBusinessKit,\n    jurisdiction: requestedJurisdiction,\n    entity_type: type === 'LLCX' ? 'llc' : 'corp',\n    standalone: false\n  } : null;\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.businessKit.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\n\nimport { getBeneficialOwnershipFilingPrice, getIsBofSummer2024PromoEnabled } from '../../utils/ProductService';\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getCampaignName } from '../../utils/PartnerUtils';\n\nconst service = 'beneficial_ownership_filing';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, postpurchase, beneficialOwnershipFiling } = registration,\n    { requestedJurisdiction } = business,\n    { purchaseBOF } = postpurchase,\n    { domesticJurisdiction } = beneficialOwnershipFiling,\n    jurisdiction = domesticJurisdiction || requestedJurisdiction,\n    isBofSummer2024PromoEnabled = getIsBofSummer2024PromoEnabled(),\n    campaignName = getCampaignName(),\n    isBofSummer2024Campaign = campaignName === 'bofsummer2024',\n    isBofSummer2024Pricing = isBofSummer2024PromoEnabled && isBofSummer2024Campaign,\n    price = getBeneficialOwnershipFilingPrice(),\n    bofSummer2024OneTimeCoupon = Object.values(registration.coupons).find((item) => {\n      return item.external_coupon_id === '50_off_price_list';\n    }),\n    bofSummer2024PromoOneTimeCouponAmount = bofSummer2024OneTimeCoupon?.amount,\n    bofSummer2024PromoOneTimeCouponUuid = bofSummer2024OneTimeCoupon?.coupon_uuid;\n\n  if (purchaseBOF || standalone) {\n    return {\n      service,\n      ...(isBofSummer2024Pricing ? {\n        coupon: bofSummer2024PromoOneTimeCouponAmount,\n        coupon_uuid: bofSummer2024PromoOneTimeCouponUuid\n      } : {}),\n      jurisdiction,\n      price,\n      fees: 0,\n      is_add_on: false\n    };\n  }\n\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const { business, postpurchase, beneficialOwnershipFiling } = registration,\n    { requestedJurisdiction, type: busType } = business,\n    { purchaseBOF } = postpurchase,\n    { domesticJurisdiction, type } = beneficialOwnershipFiling;\n\n  const entityType = (type || busType) === 'LLCX' ? 'llc' : 'corp';\n  const jurisdiction = domesticJurisdiction || requestedJurisdiction;\n\n  if (standalone) {\n    return {\n      service,\n      standalone,\n      jurisdiction,\n      entity_type: entityType,\n      is_new_business: !standalone\n    };\n  }\n\n  return purchaseBOF ? {\n    service,\n    beneficial_ownership_filing: purchaseBOF,\n    jurisdiction,\n    entity_type: entityType,\n    standalone: false\n  } : null;\n};\n\nexport const buildOrder = (registration, accountId, forPostPurchase) => {\n  const\n    orderStatus = 'incomplete',\n    orderData = [\n      convertOrderData(registration, !forPostPurchase)\n    ],\n    orderItems = [\n      convertOrderItem(registration, !forPostPurchase)\n    ],\n    businessId = forPostPurchase ? registration.business.id : registration.beneficialOwnershipFiling.companyId,\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: businessId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\n\nimport {\n  getBeneficialOwnershipFilingPrice,\n  getOngoingBofCompliancePrice,\n  getOngoingBofComplianceCoupon,\n  getIsBofSummer2024PromoEnabled\n} from '../../utils/ProductService';\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getCampaignName } from '../../utils/PartnerUtils';\n\nconst services = ['beneficial_ownership_filing', 'ongoing_bof_compliance'];\n\nexport const convertOrderItems = (registration, standalone) => {\n  const\n    { business, postpurchase, beneficialOwnershipFiling } = registration,\n    { requestedJurisdiction } = business,\n    { purchaseBOF } = postpurchase,\n    { domesticJurisdiction } = beneficialOwnershipFiling,\n    jurisdiction = domesticJurisdiction || requestedJurisdiction,\n    isBofSummer2024PromoEnabled = getIsBofSummer2024PromoEnabled(),\n    campaignName = getCampaignName(),\n    isBofSummer2024Campaign = campaignName === 'bofsummer2024',\n    isBofSummer2024Pricing = isBofSummer2024PromoEnabled && isBofSummer2024Campaign,\n    oneTimeFee = getBeneficialOwnershipFilingPrice(),\n    ongoingPrice = getOngoingBofCompliancePrice(),\n\n    coupon49Off = getOngoingBofComplianceCoupon(registration.coupons),\n    coupon49OffAmount = coupon49Off?.amount,\n    coupon49OffUuid = coupon49Off?.coupon_uuid,\n\n    bofSummer2024OneTimeCoupon = Object.values(registration.coupons).find((item) => {\n      return item.external_coupon_id === '99_off_price_list';\n    }),\n    bofSummer2024PromoOneTimeCouponAmount = bofSummer2024OneTimeCoupon?.amount,\n    bofSummer2024PromoOneTimeCouponUuid = bofSummer2024OneTimeCoupon?.coupon_uuid,\n\n    oneTimeCoupon = isBofSummer2024Pricing ? {\n      coupon: bofSummer2024PromoOneTimeCouponAmount,\n      coupon_uuid: bofSummer2024PromoOneTimeCouponUuid\n    } : {\n      coupon: coupon49OffAmount,\n      coupon_uuid: coupon49OffUuid\n    };\n\n  if (purchaseBOF || standalone) {\n    return services.map((service) => {\n      const isOngoing = service === 'ongoing_bof_compliance',\n        price = isOngoing ? ongoingPrice : oneTimeFee;\n\n      return {\n        service,\n        ...(isOngoing ? {} : oneTimeCoupon),\n        ...(isOngoing ? {\n          term: 12,\n          period: 1\n        } : {}),\n        jurisdiction,\n        price,\n        fees: 0,\n        is_add_on: !isOngoing\n      };\n    });\n  }\n\n  return [];\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const { business, postpurchase, beneficialOwnershipFiling } = registration,\n    { requestedJurisdiction, type: busType } = business,\n    { purchaseBOF } = postpurchase,\n    { domesticJurisdiction, type } = beneficialOwnershipFiling;\n\n  const entityType = (type || busType) === 'LLCX' ? 'llc' : 'corp';\n  const jurisdiction = domesticJurisdiction || requestedJurisdiction;\n\n  if (standalone) {\n    return services.map((service) => {\n      return {\n        service,\n        standalone,\n        jurisdiction,\n        entity_type: entityType,\n        is_new_business: !standalone\n      };\n    });\n  }\n\n  return purchaseBOF ? services.map((service) => {\n    return {\n      service,\n      beneficial_ownership_filing: purchaseBOF,\n      jurisdiction,\n      entity_type: entityType,\n      standalone: false\n    };\n  }) : [];\n};\n\nexport const buildOrder = (registration, accountId, forPostPurchase) => {\n  const\n    orderStatus = 'incomplete',\n    orderData = convertOrderData(registration, !forPostPurchase),\n    orderItems = convertOrderItems(registration, !forPostPurchase),\n    businessId = forPostPurchase ? registration.business.id : registration.beneficialOwnershipFiling.companyId,\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: businessId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\n\nimport { getBofModificationPrice, getOngoingBofComplianceNoCouponPrice } from '../../utils/ProductService';\nimport { getPricingInformation } from './BaseDataConverter';\n\nconst services = ['bof_modification'];\n\nexport const convertOrderItem = (registration, standalone, hasOngoing) => {\n  const\n    { business, postpurchase, beneficialOwnershipFiling } = registration,\n    { requestedJurisdiction } = business,\n    { purchasebeneficialOwnershipFiling } = postpurchase,\n    { domesticJurisdiction } = beneficialOwnershipFiling,\n    bofModPrice = getBofModificationPrice(),\n    ongoingPrice = getOngoingBofComplianceNoCouponPrice(),\n    foundCoupon = Object.values(registration.coupons).find((item) => {\n      return item.external_coupon_id === 'bof_modification_99_off';\n    }),\n    couponAmount = foundCoupon?.amount,\n    couponUuid = foundCoupon?.coupon_uuid,\n    jurisdiction = domesticJurisdiction || requestedJurisdiction;\n\n  if (purchasebeneficialOwnershipFiling || standalone) {\n    return services.map((service) => {\n      const userOrderOngoingBofSubscription = services.includes('ongoing_bof_compliance');\n      const isOngoing = service === 'ongoing_bof_compliance';\n      const isModification = service === 'bof_modification';\n\n      let coupon = {};\n      if (isModification && (hasOngoing || userOrderOngoingBofSubscription)) {\n        coupon = {\n          coupon: couponAmount,\n          coupon_uuid: couponUuid\n        };\n      }\n\n      return {\n        ...coupon,\n        ...(isOngoing ? {\n          term: 12,\n          period: 1\n        } : {}),\n        service,\n        jurisdiction,\n        price: isOngoing ? ongoingPrice : bofModPrice,\n        fees: 0,\n        is_add_on: false\n      };\n    });\n  }\n\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business, postpurchase, beneficialOwnershipFiling } = registration,\n    { requestedJurisdiction, type: busType } = business,\n    { purchasebeneficialOwnershipFiling } = postpurchase,\n    { domesticJurisdiction, type } = beneficialOwnershipFiling,\n    entityType = (type || busType) === 'LLCX' ? 'llc' : 'corp',\n    jurisdiction = domesticJurisdiction ?? requestedJurisdiction;\n\n  if (standalone) {\n    return services.map((service) => {\n      return {\n        service,\n        standalone,\n        jurisdiction,\n        entity_type: entityType,\n        is_new_business: !standalone\n      };\n    });\n  }\n\n  return purchasebeneficialOwnershipFiling ? services.map((service) => {\n    return {\n      service,\n      beneficial_ownership_filing: purchasebeneficialOwnershipFiling,\n      jurisdiction,\n      entity_type: entityType,\n      standalone: false\n    };\n  }) : null;\n};\n\nexport const buildOrder = (registration, accountId, isOngoing, hasOngoing) => {\n  if (isOngoing && !hasOngoing) {\n    services.push('ongoing_bof_compliance');\n  }\n\n  const\n    orderStatus = 'incomplete',\n    orderData = convertOrderData(registration, true),\n    orderItems = convertOrderItem(registration, true, hasOngoing),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.beneficialOwnershipFiling.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\nimport _map from 'lodash/map';\nimport { buildEntityName, convertUser, getPricingInformation } from './BaseDataConverter';\nimport { getPlanLevel } from '../../utils/PlanService';\nimport { getOpAgreementPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nconst\n  buildFromFormation = (registration) => {\n    const\n      { business } = registration,\n      { name, indicator, type, domesticJurisdiction } = business,\n      isGeneric = true; // Is generic for everyone at this time. // type !== 'LLCX' || domesticJurisdiction !== 'TX';\n\n    const entityName = buildEntityName(name, indicator);\n    return {\n      service: 'operating_agreement',\n      standalone: false,\n      is_new_business: true,\n      business_entity_name: entityName,\n      business_entity_type: type === 'CORP' ? 'CORP' : 'LLC',\n      entity_type: type === 'LLCX' ? 'llc' : 'corp',\n      jurisdiction: domesticJurisdiction,\n      is_generic: isGeneric\n    };\n  };\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { operatingAgreement = false, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'operating_agreement',\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  if (plan && plan.operating_agreement) {\n    return { service, jurisdiction, price: 0, coupon: 0, fees: 0, is_add_on: false };\n  }\n  if (standalone || operatingAgreement) {\n    return {\n      service,\n      jurisdiction,\n      price: plan ? pricing.servicePrice : getOpAgreementPrice(),\n      coupon: plan ? pricing.serviceCouponAmount : 0,\n      fees: 0,\n      is_add_on: !standalone && !!plan\n    };\n  }\n  return null;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone, fromReg = false) => {\n  const\n    { business, purchase } = registration,\n    { planLevel } = purchase,\n    { domesticJurisdiction, requestedJurisdiction, type } = business,\n    plan = planLevel ? getPlanLevel(planLevel, fromReg ? requestedJurisdiction : domesticJurisdiction) : null,\n    service = 'operating_agreement';\n\n  if (!(plan && plan.operating_agreement) && !purchase.operatingAgreement && !standalone) {\n    return null;\n  }\n\n  if (fromReg) { // If bought as part of registration flow\n    return {\n      service,\n      standalone,\n      jurisdiction: requestedJurisdiction,\n      is_new_business: !standalone\n    };\n  }\n\n  if (!standalone) { // If bought as part of plan or ala-carte\n    return buildFromFormation(registration);\n  }\n\n  const\n    { operatingAgreement } = registration,\n    {\n      isGeneric: is_generic,\n      businessName: business_entity_name,\n      requestedJurisdiction: jurisdiction,\n      managers: initManagers,\n      members: initMembers,\n      llcBusinessAddress,\n      llcMailingAddress,\n      mailingAddressType,\n      mailingAddressLine1,\n      mailingAddressLine2,\n      mailingCity,\n      mailingCounty,\n      mailingState,\n      mailingZipCode,\n      businessEmail: email,\n      preemptiveRights: preemptive_rights,\n      rightOfFirstRefusal: right_of_first_refusal,\n      financialReportFrequency: financial_report_frequency,\n      internalFinancialAudit: internal_financial_audit,\n      taxAdvances: tax_advances,\n      dayToDayMajority: day_to_day_majority,\n      meetingOfMembersMajority: meeting_of_members_majority,\n      passActionWithoutMeetingMajority: pass_action_without_meeting_majority,\n      amendmentMajority: amendment_majority,\n      terminateCompanyMajority: terminate_company_majority,\n      amendOAorFormation: amend_oa_or_formation,\n      issueAdditionalMembership: issue_additional_membership,\n      appointRemoveAuditors: appoint_remove_auditors,\n      amendRelatedPartyAgreement: amend_related_party_agreement,\n      enterEquityTransactions: enter_equity_transactions,\n      enterAssetTransactions: enter_asset_transactions,\n      establishSubsidiary: establish_subsidiary,\n      offeringAndSecurities: offering_and_securities,\n      fundamentalBusinessTransaction: fundamental_business_transaction,\n      liquidateOrTerminate: liquidate_or_terminate,\n      cancelLiquidateOrTerminate: cancel_liquidate_or_terminate,\n      reinstateAfterTermination: reinstate_after_termination,\n      changeManager: change_manager,\n      membersRemoveManager: members_remove_manager,\n      fillManagerVacancy: fill_manager_vacancy,\n      capitalContributionApproval: capital_contribution_approval,\n      capitalContributionAmount: capital_contribution_amount,\n      makeInvestmentApproval: make_investment_approval,\n      makeInvestmentAmount: make_investment_amount,\n      incurIndebtednessApproval: incur_indebtedness_approval,\n      incurIndebtednessOneTimeAmount: incur_indebtedness_onetime_amount,\n      incurIndebtednessTotalAmount: incur_indebtedness_total_amount,\n      settleLawsuitApproval: settle_lawsuit_approval,\n      settleLawsuitAmount: settle_lawsuit_amount\n    } = operatingAgreement,\n    convertedLLCBusinessAddress = {\n      address_1: llcBusinessAddress.addressLine1,\n      address_2: llcBusinessAddress.addressLine2,\n      city: llcBusinessAddress.city,\n      state: llcBusinessAddress.state,\n      zip: llcBusinessAddress.zipCode\n    },\n    convertedLLCMailingAddress = {\n      address_1: llcMailingAddress.addressLine1,\n      address_2: llcMailingAddress.addressLine2,\n      city: llcMailingAddress.city,\n      state: llcMailingAddress.state,\n      zip: llcMailingAddress.zipCode\n    },\n    address = {\n      type: mailingAddressType,\n      address_1: mailingAddressLine1,\n      address_2: mailingAddressLine2,\n      city: mailingCity,\n      county: mailingCounty,\n      state: mailingState,\n      zip: mailingZipCode\n    },\n    managers = _map(initManagers, (manager) => {\n      return _assign(convertUser(manager), {\n        partnership_rep: manager.partnershipRep,\n        manager_notice: manager.managerNotice\n      });\n    }),\n    members = _map(initMembers, (member) => {\n      const { manager, title, membershipInterest, maritalStatus, spouseName, primaryMember, partnershipRep, officialNotice, managerNotice, emailDisabled, phoneNumberDisabled } = member;\n      return _assign(convertUser(member), {\n        manager,\n        title,\n        membership_interest: membershipInterest,\n        marital_status: maritalStatus,\n        spouse_name: spouseName,\n        primary_member: primaryMember,\n        partnership_rep: partnershipRep,\n        official_notice: officialNotice,\n        manager_notice: managerNotice,\n        email_disabled: emailDisabled,\n        phone_disabled: phoneNumberDisabled\n      });\n    });\n\n  return {\n    service,\n    standalone,\n    is_new_business: false,\n    business_entity_name,\n    business_entity_type: type === 'CORP' ? 'CORP' : 'LLC',\n    entity_type: type === 'LLCX' ? 'llc' : 'corp',\n    jurisdiction: jurisdiction || domesticJurisdiction,\n    is_generic,\n    llc_business_address: convertedLLCBusinessAddress,\n    llc_mailing_address: convertedLLCMailingAddress,\n    address,\n    members,\n    managers,\n    email,\n    preemptive_rights,\n    right_of_first_refusal,\n    financial_report_frequency,\n    internal_financial_audit,\n    tax_advances,\n    day_to_day_majority,\n    meeting_of_members_majority,\n    pass_action_without_meeting_majority,\n    amendment_majority,\n    terminate_company_majority,\n    amend_oa_or_formation,\n    issue_additional_membership,\n    appoint_remove_auditors,\n    amend_related_party_agreement,\n    enter_equity_transactions,\n    enter_asset_transactions,\n    establish_subsidiary,\n    offering_and_securities,\n    fundamental_business_transaction,\n    liquidate_or_terminate,\n    cancel_liquidate_or_terminate,\n    reinstate_after_termination,\n    change_manager,\n    members_remove_manager,\n    fill_manager_vacancy,\n    capital_contribution_approval,\n    capital_contribution_amount,\n    make_investment_approval,\n    make_investment_amount,\n    incur_indebtedness_approval,\n    incur_indebtedness_onetime_amount,\n    incur_indebtedness_total_amount,\n    settle_lawsuit_approval,\n    settle_lawsuit_amount\n  };\n};\n\n/* eslint-enable camelcase */\n\nexport const buildOrder = (registration, accountId, isUpdate, fromReg = false) => {\n  const\n    { operatingAgreement } = registration,\n    { status: orderStatus, companyId } = operatingAgreement,\n    orderData = _compact([\n      convertOrderData(registration, true, fromReg)\n    ]),\n    orderItems = _compact([\n      convertOrderItem(registration, true)\n    ]),\n    order = _assign({\n      order_status: fromReg ? 'complete' : orderStatus,\n      order_data: orderData,\n      order_items: orderItems\n    }, getPricingInformation(registration.order));\n\n  if (!fromReg && isUpdate) {\n    order.order_uuid = registration.order.id;\n    return { order };\n  }\n\n  if (companyId) {\n    order.business_entity_uuid = companyId;\n  }\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _map from 'lodash/map';\n\nimport { buildPlanGatedZeroItem, getPricingInformation } from './BaseDataConverter';\nimport { getPlanLevel, isAutoIncludedInPlan } from '../../utils/PlanService';\nimport { getBasicEmailYearlyPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nexport const purchasedEmails = (registration) => {\n  const { domainName, purchase } = registration,\n    { emailUserName, primary } = domainName,\n    { emailAddresses } = purchase;\n  if (emailAddresses && emailAddresses.length > 0) {\n    return _map(emailAddresses, (emailAddress) => {\n      return {\n        emailUserName: emailAddress.substring(0, emailAddress.lastIndexOf('@')),\n        emailDomain: emailAddress.substring(emailAddress.lastIndexOf('@') + 1)\n      };\n    });\n  }\n  return [{\n    emailUserName,\n    emailDomain: primary\n  }];\n};\n\nexport const convertOrderItem = (registration, standalone, websiteToolsStandalone) => {\n  const\n    { business, purchase, domainName, coupons } = registration,\n    { basicEmail, planLevel, activePlanLevel, activeWebsiteToolsBundle } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    { emailInPlan } = domainName,\n    service = 'basic_email',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    activePlan = activePlanLevel ? getPlanLevel(activePlanLevel, jurisdiction) : null,\n    pricing = getPriceAndCouponForService(service, activePlan, coupons);\n\n  if ((activePlan && activePlan.basic_email) || emailInPlan || activeWebsiteToolsBundle || websiteToolsStandalone) {\n    // eslint-disable-next-line no-unused-vars\n    return _map(purchasedEmails(registration), (_emailAddress) => {\n      return buildPlanGatedZeroItem(service, jurisdiction, activePlan, { coupon: 0, fees: 0, term: 12, period: 1 });\n    });\n  }\n\n  const\n    price = activePlan ? pricing.servicePrice : getBasicEmailYearlyPrice(),\n    coupon = activePlan ? pricing.serviceCouponAmount : 0,\n    fees = 0,\n    term = 12,\n    period = 1;\n\n  if (standalone || basicEmail || isAutoIncludedInPlan(plan, 'basic_email')) {\n    // eslint-disable-next-line no-unused-vars\n    return _map(purchasedEmails(registration), (_emailAddress) => {\n      return {\n        service,\n        price,\n        coupon,\n        fees,\n        term,\n        period,\n        jurisdiction,\n        is_add_on: !standalone && !!activePlan\n      };\n    });\n  }\n  return [];\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business, domainName, purchase } = registration,\n    { emailSkip } = domainName,\n    { planLevel, basicEmail } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'basic_email',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    isAutoIncluded = isAutoIncludedInPlan(plan, 'basic_email');\n  if ((plan && plan.basic_email) || basicEmail || isAutoIncluded || standalone) {\n    return _map(purchasedEmails(registration), ({ emailUserName, emailDomain }) => {\n      return {\n        service,\n        jurisdiction,\n        standalone,\n        is_new_business: !standalone,\n        is_auto_included: isAutoIncluded,\n        email_address: emailUserName,\n        domain_name: emailDomain,\n        skip: emailSkip || false\n      };\n    });\n  }\n  return [];\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      ...convertOrderData(registration, true)\n    ],\n    orderItems = [\n      ...convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.domainName.companyId\n    }, getPricingInformation(registration.order));\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","/* eslint-disable camelcase */\nimport _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { buildEntityName, convertAddress, convertContactIfIdentified, convertDirectors, convertManagers, convertMembers, convertOfficers, convertRegisteredAgent, getPricingInformation, decorateAccount } from './BaseDataConverter';\nimport { ACTIONS, URLS } from '../../constants/complete_blr';\nimport { getBusinessLicensePrice } from '../../utils/ProductService';\nimport { ORDER_STATUSES } from '../../constants/ui';\n\nconst service = 'business_license_report';\nconst\n  /* eslint-disable camelcase */\n  convertAccount = (registration) => {\n    const\n      { customer, lead } = registration,\n      { firstName: first_name, middleName: middle_name, lastName: last_name, suffix, email, phoneNumber: phone, password } = customer,\n      { leadUUID: lead_uuid } = lead,\n      { cardToken: card_token } = customer;\n\n    return decorateAccount({ lead_uuid, first_name, middle_name, last_name, suffix, email: email ? email.toLowerCase() : '', phone, password, international: false, signup_client: 'web_v2', card_token });\n  };\n  /* eslint-enable camelcase */\n\nexport const convertBusinessData = (blr) => {\n  const { businessOutOfHome, businessIndustryId, businessIndustryLabel, hasEmployees, employeesCount, hasDBAs, existingCompany } = blr,\n    businessData = {\n    };\n\n  if (businessOutOfHome !== null) {\n    businessData.out_of_home = businessOutOfHome;\n  }\n  if (businessIndustryId !== null) {\n    businessData.industry_id = businessIndustryId;\n    businessData.industry_label = businessIndustryLabel;\n  }\n  if (hasDBAs !== null) {\n    businessData.has_trade_names = hasDBAs;\n  }\n  if (hasEmployees !== null) {\n    businessData.has_employees = hasEmployees;\n    businessData.employees_count = employeesCount;\n  }\n  businessData.existing_company = existingCompany || false;\n  return businessData;\n};\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, postpurchase } = registration,\n    { purchaseBLR } = postpurchase,\n    { requestedJurisdiction: jurisdiction } = business;\n\n  if (standalone || purchaseBLR) {\n    return { service, jurisdiction, price: getBusinessLicensePrice(), fees: 0, is_add_on: false };\n  }\n  return null;\n};\n\n/* eslint-disable camelcase */\n/* eslint-disable max-statements */\nexport const convertOrderData = (registration, standalone) => {\n  const { business, businessAddresses, customer, contact, directors, managers, members, officers, postpurchase, purchase, registeredAgent, blr, order, page } = registration,\n    { purchaseBLR } = postpurchase,\n    { requestedJurisdiction: jurisdiction } = business;\n\n  if (!purchase.blr && !purchaseBLR && !standalone) {\n    return null;\n  }\n\n  const\n    { type, name, indicator, description: business_purpose, status } = business,\n    { mailing, physical, principal } = businessAddresses,\n    { dbas: trade_names, hasDBAs: has_trade_name, phoneNumber: phone, existingCompany } = blr,\n    { id = '' } = order,\n    { completedAction, completedUrl, completedActionIndex } = page,\n    isLLC = type === 'LLCX',\n    isCorp = type === 'CORP',\n    baseIndex = existingCompany ? 5901 : 5900,\n    baseUrl = existingCompany ? URLS.START_BLR_DATA : URLS.START_BUS_DATA,\n    baseAction = existingCompany ? ACTIONS.START_BLR_DATA : ACTIONS.START_BUS_DATA;\n\n  if (!standalone || existingCompany) {\n    const data = {\n      service,\n      jurisdiction,\n      standalone: false,\n      is_new_business: false,\n      is_auto_included: false,\n      has_trade_name,\n      trade_names,\n      business_data: convertBusinessData(blr)\n    };\n    if (standalone && status === 'incomplete') {\n      if (name) {\n        data.entity_name = name;\n      }\n      data.completed_action = id ? completedAction : baseAction;\n      data.completed_url = id ? completedUrl : baseUrl;\n      data.completed_action_index = id ? completedActionIndex : baseIndex;\n    }\n    return data;\n  }\n\n  const\n    data = _assign({\n      service,\n      standalone,\n      jurisdiction,\n      domestic_jurisdiction: jurisdiction,\n      entity_type: type === 'LLCX' ? 'llc' : 'corp',\n      entity_name: buildEntityName(name, indicator),\n      is_new_business: true,\n      address: convertAddress(physical),\n      mailing_address: convertAddress(mailing),\n      principal_address: convertAddress(principal),\n      first_name: contact ? contact.firstName : customer.firstName || '',\n      middle_name: contact ? contact.middleName : customer.middleName || '',\n      last_name: contact ? contact.lastName : customer.firstName || '',\n      suffix: contact ? contact.suffix : customer.suffix || '',\n      county: physical.county,\n      phone,\n      has_trade_name,\n      trade_names,\n      business_data: convertBusinessData(blr),\n      business_purpose\n    },\n    convertContactIfIdentified(contact),\n    isLLC ? convertManagers(managers) : {},\n    isCorp ? convertDirectors(directors) : {},\n    isLLC ? convertMembers(members) : {},\n    isCorp ? convertOfficers(officers) : {},\n    isLLC || isCorp ? convertRegisteredAgent(registeredAgent, business, { registeredAgent: false }) : {}\n    );\n\n  if (status === ORDER_STATUSES.incomplete) {\n    data.completed_action = id ? completedAction : baseAction;\n    data.completed_url = id ? completedUrl : baseUrl;\n    data.completed_action_index = id ? completedActionIndex : baseIndex;\n  }\n  return data;\n};\n\nexport const buildOrder = (registration, isUpdate) => {\n  const\n    { business, order: registrationOrder } = registration,\n    { status: orderStatus } = business,\n    orderData = _compact([\n      convertOrderData(registration, true)\n    ]);\n\n  const order = _assign({\n    order_status: orderStatus,\n    order_data: orderData\n  }, getPricingInformation(registration.order));\n\n\n  if (isUpdate) {\n    order.order_uuid = registrationOrder.id;\n    order.order_data[0].fulfillment_required = orderStatus === ORDER_STATUSES.incomplete;\n    if (orderStatus === ORDER_STATUSES.complete) {\n      order.order_status = registrationOrder.willMarkOrderCompleted\n        ? ORDER_STATUSES.complete\n        : ORDER_STATUSES.incomplete;\n    }\n    return { order };\n  }\n\n  const\n    { id: businessId } = business,\n    accountId = registration.customer.id || '',\n    account = accountId ? null : convertAccount(registration);\n\n  order.order_items = _compact([\n    convertOrderItem(registration, true)\n  ]);\n\n  if (accountId) {\n    if (businessId) {\n      order.business_entity_uuid = businessId;\n    }\n    return {\n      account_uuid: accountId,\n      order\n    };\n  }\n  return {\n    account,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\nimport _get from 'lodash/get';\nimport _reduce from 'lodash/reduce';\n\nimport { buildEntityName, convertAddress, convertContact, convertDirectors, convertManagers, convertMembers, convertOfficers, getPricingInformation, decorateAccount, hasContactIdentity } from './BaseDataConverter';\nimport { ACTIONS, URLS } from '../../constants/complete_cora';\nimport { getPlanLevel } from '../../utils/PlanService';\n\n/* eslint-disable camelcase */\nconst\n  convertAccount = (registration) => {\n    const\n      { customer, lead } = registration,\n      { firstName: first_name, middleName: middle_name, lastName: last_name, suffix, email, phoneNumber: phone, password } = customer,\n      { cardToken: card_token } = customer,\n      { leadUUID: lead_uuid } = lead;\n\n    return decorateAccount(_assign({ lead_uuid, first_name, middle_name, last_name, suffix, email: email ? email.toLowerCase() : '', phone, password, international: false, signup_client: 'web_v2', card_token }, convertAddress(customer)));\n  },\n  getEntityType = (type) => {\n    if (type === 'LLCX') {\n      return 'llc';\n    }\n    if (type === 'CORP') {\n      return 'corp';\n    }\n    return '';\n  },\n  createOrderItemsForJurisdiction = (planLevel, requestedJurisdiction, domesticJurisdiction, typeKey, isFormed, filingFees) => {\n    const plan = getPlanLevel(planLevel, requestedJurisdiction),\n      couponItem = plan.coupon,\n      coupon = couponItem ? couponItem.amount : 0,\n      jurisdiction = requestedJurisdiction,\n      jurKey = requestedJurisdiction === domesticJurisdiction ? 'domestic' : 'foreign',\n      prices = plan[typeKey].prices,\n      price = prices['1'],\n      fees = isFormed ? _get(filingFees, [requestedJurisdiction, 'change_of_registered_agent', typeKey, jurKey, 'fees'], 0) : 0,\n      term = 12,\n      period = 1,\n      is_add_on = false,\n      items = [{\n        service: 'registered_agent_service',\n        jurisdiction,\n        price: 0,\n        coupon: 0,\n        fees: 0,\n        term,\n        period,\n        is_add_on\n      }];\n\n    if (isFormed) {\n      items.push({\n        service: 'change_of_registered_agent',\n        jurisdiction,\n        price: 0,\n        fees,\n        is_add_on\n      });\n    }\n    if (plan.worry_free_service) {\n      items.push({\n        service: 'worry_free_service',\n        jurisdiction,\n        price: 0,\n        fees: 0,\n        term,\n        period,\n        is_add_on\n      });\n    }\n    items.push({\n      service: plan.id,\n      jurisdiction: requestedJurisdiction,\n      price,\n      coupon,\n      fees: 0,\n      term,\n      period,\n      is_add_on,\n      affiliate_plan_option_uuid: plan.uuid\n    });\n\n    return items;\n  },\n\n  /* eslint-disable max-statements */\n  addBusinessData = (registration) => {\n    const\n      { business, businessAddresses, contact, cora, directors, managers, members, officers, order, page } = registration,\n      {\n        requestedJurisdictions,\n        domesticJurisdiction,\n        businessIndustry,\n        authorizedSignatory,\n        sopContact,\n        jurisdictionOrder,\n        existingJurisdictions,\n        filingDates,\n        stateIds,\n        statePINs,\n        pendingStates,\n        hasElectiveCEO,\n        electiveCEO,\n        domesticEntity,\n        hasFormation,\n        needsDomesticJurisdictionData,\n        needsPrincipals,\n        needsContact,\n        needsCoraContacts,\n        needsBusinessData,\n        needsBusinessIndustry,\n        needsAddresses,\n        needsPrincipalAddress\n      } = cora,\n      { type, name, indicator = '', status, description: business_purpose, businessOrderType } = business,\n      { principal, mailing, physical } = businessAddresses,\n      { phoneNumber: phone } = contact,\n      isLLC = type === 'LLCX',\n      isCorp = type === 'CORP',\n      domesticJurisdictionStatePIN = statePINs[domesticJurisdiction] || '',\n      domesticJurisdictionElectiveCEO = domesticJurisdiction === 'CA' ? electiveCEO : null,\n      isIncomplete = status === 'incomplete',\n      retVal = {};\n\n    // Add the items always included.\n    const fos = _reduce(requestedJurisdictions, (collect, reqJur) => {\n      if (reqJur !== domesticJurisdiction) {\n        const\n          fo = {\n            jurisdiction_code: reqJur\n          },\n          foFilingDate = filingDates[reqJur] || null,\n          foFilingNumber = stateIds[reqJur] || null,\n          foStatePIN = statePINs[reqJur] || null,\n          foElectiveCEO = reqJur === 'CA' ? electiveCEO : null;\n\n        if (foFilingDate) {\n          fo.jurisdiction_filing_date = foFilingDate;\n        }\n        if (foFilingNumber) {\n          fo.jurisdiction_filing_number = foFilingNumber;\n        }\n        if (foStatePIN || foElectiveCEO) {\n          fo.extra_state_info = {};\n          if (foStatePIN) {\n            fo.extra_state_info.state_pin = foStatePIN;\n          }\n          if (foElectiveCEO) {\n            fo.extra_state_info.elective_ceo = convertContact(foElectiveCEO).contact;\n          }\n        }\n        collect.push(fo);\n      }\n      return collect;\n    }, []);\n    if (fos.length) {\n      retVal.foreign_jurisdiction_objects = fos;\n    }\n\n    // Add the domestic jurisdiction data if needed.\n    if (needsDomesticJurisdictionData || isIncomplete) {\n      const djFilingDate = filingDates[domesticJurisdiction] || null,\n        djStateId = stateIds[domesticJurisdiction] || null;\n\n      if (djFilingDate) {\n        retVal.domestic_jurisdiction_filing_date = djFilingDate;\n      }\n      if (djStateId) {\n        retVal.domestic_jurisdiction_filing_number = djStateId;\n      }\n      if (domesticJurisdictionStatePIN || domesticJurisdictionElectiveCEO) {\n        retVal.domestic_jurisdiction_state_info = {};\n        if (domesticJurisdictionStatePIN) {\n          retVal.domestic_jurisdiction_state_info.jurisdiction_state_pin = domesticJurisdictionStatePIN;\n        }\n        if (domesticJurisdictionElectiveCEO) {\n          retVal.domestic_jurisdiction_state_info.jurisdiction_elective_ceo = convertContact(domesticJurisdictionElectiveCEO).contact;\n        }\n      }\n    }\n\n    if (needsBusinessData || isIncomplete) {\n      _assign(retVal, {\n        entity_type: getEntityType(type),\n        entity_name: buildEntityName(name, indicator),\n        business_purpose\n      });\n    }\n\n    if (needsBusinessIndustry || isIncomplete) {\n      retVal.business_industry = businessIndustry;\n    }\n\n    if (needsAddresses || isIncomplete) {\n      retVal.address = convertAddress(physical);\n      retVal.mailing_address = convertAddress(mailing);\n      retVal.phone = phone;\n    }\n\n    if (needsPrincipalAddress || needsAddresses || isIncomplete) {\n      retVal.principal_address = convertAddress(principal);\n    }\n\n    if (needsPrincipals || isIncomplete) {\n      if (isLLC) {\n        _assign(retVal, convertManagers(managers), convertMembers(members));\n      }\n      if (isCorp) {\n        _assign(retVal, convertDirectors(directors), convertOfficers(officers));\n      }\n    }\n\n    if (needsContact || isIncomplete) {\n      // API-949: the CoRA flow never dispatches setContactData, so registration.contact\n      // stays at its empty initial state. Fall back to authorizedSignatory so we POST\n      // real identity data instead of a blank contact template.\n      const hasContactData = contact && (contact.firstName || contact.companyName);\n      const contactSource = hasContactData ? contact : (authorizedSignatory || contact);\n      // API-934/API-1823: only emit the contact when the chosen source satisfies the\n      // ContactHandler identity rule (first_name + last_name, or company_name — email\n      // alone no longer counts, see hasContactIdentity). Emitting a blank contact 422s\n      // at process-fulfillment; omitting it (rather than writing null) leaves any\n      // existing backend contact untouched under per-task PATCH — important when slim\n      // re-hydration leaves redux state empty.\n      if (hasContactIdentity(contactSource)) {\n        _assign(retVal, convertContact(contactSource));\n      }\n    }\n\n    if (needsCoraContacts || isIncomplete) {\n      // API-949: never write an empty {} — orders-api persists it verbatim, and on\n      // re-read the empty dict gets fed through convertContact as a real contact.\n      // API-934/API-1823: also reject identity-less contacts (blank name, company_name,\n      // and email) — see hasContactIdentity above — so we never PATCH a contact that\n      // fails the ContactHandler at process-fulfillment.\n      _assign(retVal, {\n        authorized_signatory: hasContactIdentity(authorizedSignatory) ? _assign(convertContact(authorizedSignatory).contact, { title: authorizedSignatory.title }) : null,\n        sop_contact: hasContactIdentity(sopContact) ? convertContact(sopContact).contact : null\n      });\n    }\n\n    if (isIncomplete) {\n      const\n        { id = '' } = order,\n        { completedAction, completedUrl, completedActionIndex } = page;\n\n      _assign(retVal, {\n        needs_addresses: needsAddresses,\n        needs_business_data: needsBusinessData,\n        needs_business_industry: needsBusinessIndustry,\n        needs_contact: needsContact,\n        needs_cora_contacts: needsCoraContacts,\n        needs_domestic_jurisdiction_data: needsDomesticJurisdictionData,\n        needs_principal_address: needsPrincipalAddress,\n        needs_principals: needsPrincipals,\n        domestic_entity: domesticEntity,\n        has_elective_ceo: hasElectiveCEO,\n        has_existing_business: hasFormation,\n        completed_action: id ? completedAction : ACTIONS.START,\n        completed_url: id ? completedUrl : URLS.START,\n        completed_action_index: id ? completedActionIndex : 5500,\n        jurisdiction_order: jurisdictionOrder,\n        existing_jurisdictions: existingJurisdictions,\n        business_order_type: businessOrderType,\n        pending_states: pendingStates,\n        is_primary: true\n      });\n    }\n\n    return retVal;\n  },\n  /* eslint-enable max-statements */\n\n  createOrderDatasForJurisdiction = (requestedJurisdiction, includeBusinessData, registration) => {\n    const\n      { cora, purchase } = registration,\n      { domesticJurisdiction, pendingStates } = cora,\n      { planLevel } = purchase,\n      plan = getPlanLevel(planLevel, requestedJurisdiction),\n      jurisdiction = requestedJurisdiction,\n      isFormed = !pendingStates[jurisdiction],\n      datas = [],\n      raData = {\n        service: 'registered_agent_service',\n        jurisdiction: requestedJurisdiction,\n        domestic_jurisdiction: domesticJurisdiction,\n        standalone: includeBusinessData,\n        is_truic_ra: false,\n        is_new_business: false,\n        is_auto_included: false,\n        is_cora: true\n      };\n\n    if (includeBusinessData) {\n      _assign(raData, addBusinessData(registration));\n    }\n    datas.push(raData);\n\n    if (isFormed) {\n      datas.push({\n        service: 'change_of_registered_agent',\n        jurisdiction,\n        domestic_jurisdiction: domesticJurisdiction,\n        standalone: false,\n        is_new_business: false,\n        is_auto_included: false\n      });\n    }\n    if (plan.worry_free_service) {\n      datas.push({\n        service: 'worry_free_service',\n        jurisdiction,\n        is_auto_included: false\n      });\n    }\n    datas.push({\n      service: plan.id,\n      jurisdiction,\n      standalone: false,\n      is_new_business: false,\n      level: planLevel,\n      plan\n    });\n    return datas;\n  };\n\n// API-949: exported for unit tests covering the contact/authorizedSignatory fallback\nexport { addBusinessData };\n\nexport const convertOrderItems = (registration, filingFees) => {\n  const\n    { business, cora, purchase } = registration,\n    { type } = business,\n    { requestedJurisdictions, domesticJurisdiction, pendingStates, upsellDomJur } = cora,\n    { planLevel } = purchase,\n    typeKey = type === 'CORP' ? 'corp' : 'llc',\n    reqJurs = _reduce(requestedJurisdictions, (collect, reqJur) => {\n      if (reqJur === domesticJurisdiction) {\n        collect.unshift(reqJur);\n      } else {\n        collect.push(reqJur);\n      }\n      return collect;\n    }, []);\n\n  if (upsellDomJur) {\n    reqJurs.unshift(domesticJurisdiction);\n  }\n  const\n    datas = _reduce(reqJurs, (collect, requestedJurisdiction) => {\n      const isFormed = !pendingStates[requestedJurisdiction];\n\n      collect.push(...createOrderItemsForJurisdiction(planLevel, requestedJurisdiction, domesticJurisdiction, typeKey, isFormed, filingFees));\n      return collect;\n    }, []);\n\n  return datas;\n};\n\nconst convertOrderData = (registration) => {\n  const\n    { cora } = registration,\n    { requestedJurisdictions, domesticJurisdiction, upsellDomJur } = cora,\n    reqJurs = _reduce(requestedJurisdictions, (collect, reqJur) => {\n      if (reqJur === domesticJurisdiction) {\n        collect.unshift(reqJur);\n      } else {\n        collect.push(reqJur);\n      }\n      return collect;\n    }, []);\n\n  if (upsellDomJur) {\n    reqJurs.unshift(domesticJurisdiction);\n  }\n\n  const\n    items = _reduce(reqJurs, (collect, requestedJurisdiction, index) => {\n      collect.push(...createOrderDatasForJurisdiction(requestedJurisdiction, index === 0, registration));\n      return collect;\n    }, []);\n\n  return items;\n};\n\nexport const buildOrder = (registration, filingFees, isUpdate) => {\n  const\n    { business } = registration,\n    { status: orderStatus } = business,\n    orderData = _compact([\n      ...convertOrderData(registration)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData\n    }, getPricingInformation(registration.order));\n\n  if (isUpdate) {\n    order.order_uuid = registration.order.id;\n    return { order };\n  }\n\n  const\n    { id: businessId } = business,\n    accountId = registration.customer.id || '',\n    account = accountId ? null : convertAccount(registration, filingFees);\n\n  order.order_items = _compact([\n    ...convertOrderItems(registration, filingFees)\n  ]);\n\n  if (accountId) {\n    return _assign(\n      { account_uuid: accountId, order },\n      businessId ? { business_entity_uuid: businessId } : {}\n    );\n  }\n\n  return {\n    account,\n    order\n  };\n};\n","/*\nNOTE - anonymity can only be purchased as part of a purchase plan at this time. The price and fees will always be 0.\n*/\n\nimport { getPlanLevel } from '../../utils/PlanService';\nimport { getAnonymityYearlyPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nexport const zenBusinessRegisteredAgent = {\n  first_name: '',\n  last_name: '',\n  company_name: 'ZenBusiness INC',\n  address_1: '5900 Balcones Drive',\n  address_2: 'STE 5000',\n  city: 'Austin',\n  state: 'TX',\n  zip: '78731',\n  phone: '',\n  email: ''\n};\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { anonymity, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'anonymity',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  if (plan && plan.anonymity) {\n    return { service, jurisdiction, price: 0, coupon: 0, fees: 0, term: 12, period: 1, is_add_on: false };\n  }\n\n  const\n    price = plan ? pricing.servicePrice : getAnonymityYearlyPrice(),\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    fees = 0,\n    term = 12,\n    period = 1;\n\n  if (standalone || anonymity) {\n    return { service, price, coupon, fees, term, period, jurisdiction, is_add_on: !standalone && !!plan };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { planLevel, anonymity } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'anonymity',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  if ((plan && plan.anonymity) || anonymity) {\n    return { service, jurisdiction, standalone, is_new_business: !standalone, registered_agent: zenBusinessRegisteredAgent };\n  }\n  return null;\n};\n","import _assign from 'lodash/assign';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPlanLevel } from '../../utils/PlanService';\nimport { getCorporateDocsPrice } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration, standalone, isPostPurchase) => {\n  const\n    { business, postpurchase, purchase } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { purchaseCD } = postpurchase,\n    { corporateDocs, planLevel, einBusinessDocsBundle } = purchase,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    fees = 0,\n    service = 'corporate_docs';\n\n  if (standalone) {\n    return { service, jurisdiction, price: getCorporateDocsPrice(), fees, is_add_on: false };\n  }\n  if (isPostPurchase) {\n    if (purchaseCD) {\n      return { service, jurisdiction, price: getCorporateDocsPrice(), fees, is_add_on: false };\n    }\n    return null;\n  }\n\n  if ((plan && plan.corporate_docs) || einBusinessDocsBundle) {\n    return { service, jurisdiction, price: 0, fees: 0, is_add_on: false };\n  }\n  if (corporateDocs) {\n    return { service, jurisdiction, price: getCorporateDocsPrice(), fees, is_add_on: false };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone, isPostPurchase) => {\n  const\n    service = 'corporate_docs',\n    { business, postpurchase, purchase } = registration,\n    { requestedJurisdiction } = business,\n    { purchaseCD } = postpurchase,\n    { planLevel, corporateDocs } = purchase,\n    plan = planLevel ? getPlanLevel(planLevel, requestedJurisdiction) : null,\n    isEnabled = standalone || (isPostPurchase && purchaseCD) || (!isPostPurchase && ((plan && plan.corporate_docs) || corporateDocs));\n\n  return isEnabled ? {\n    service,\n    jurisdiction: requestedJurisdiction,\n    standalone,\n    is_new_business: false\n  } : null;\n};\n\nexport const buildOrder = (registration, accountId, filingFees) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true, false)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true, false, filingFees)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.corpDocs.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n\n","/*\nNOTE - cpa consultation can only be purchased as part of a package at this time. The price and fees will always be 0.\n */\nimport _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPlanLevel } from '../../utils/PlanService';\nimport { getCPAConsultPrice } from '../../utils/ProductService';\n\nconst convertOrderItemStandalone = (jurisdiction, standalone) => {\n  if (!standalone) {\n    return null;\n  }\n  const\n    service = 'cpa_consult';\n\n  return { service, jurisdiction, price: 0, fees: 0, is_add_on: false };\n};\n\nconst convertOrderDataStandalone = (jurisdiction, standalone) => {\n  const\n    service = 'cpa_consult';\n\n  return standalone ? {\n    service,\n    jurisdiction,\n    standalone,\n    is_new_business: !standalone\n  } : null;\n};\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { planLevel, cpaConsult } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'cpa_consult',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  if (plan && plan.cpa_consult) {\n    return null; // Do not send if part of a plan - this must be activated from dashboard\n  }\n\n  const\n    price = getCPAConsultPrice(),\n    fees = 0;\n\n  if (standalone || cpaConsult) {\n    return { service, price, fees, jurisdiction, is_add_on: !standalone && !!plan };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { planLevel, cpaConsult } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'cpa_consult',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  if (plan && plan.cpa_consult) {\n    return null; // Do not send if part of plan - this must be activated from the dashboard\n  }\n  return cpaConsult ? {\n    service,\n    jurisdiction,\n    standalone,\n    is_new_business: !standalone\n  } : null;\n};\n\nexport const buildOrder = (jurisdiction, companyId, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = _compact([\n      convertOrderDataStandalone(jurisdiction, true)\n    ]),\n    orderItems = _compact([\n      convertOrderItemStandalone(jurisdiction, true)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: companyId\n    }, getPricingInformation({}));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _map from 'lodash/map';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPlanLevel, isAutoIncludedInPlan } from '../../utils/PlanService';\nimport { getDomainNamePrivacyYearlyPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\nimport { purchasedDomains } from './DomainNameDataConverter';\n\nexport const convertOrderItem = (registration, standalone, websiteToolsStandalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { domainNamePrivacy, planLevel, websiteToolsBundle } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'domain_name_privacy',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  if ((plan && plan.domain_name_privacy) || websiteToolsBundle || websiteToolsStandalone) {\n    // eslint-disable-next-line no-unused-vars\n    return _map(purchasedDomains(registration), (_domainName) => {\n      return {\n        service,\n        jurisdiction,\n        price: 0,\n        coupon: 0,\n        fees: 0,\n        term: 12,\n        period: 1,\n        is_add_on: false,\n        ...(plan?.uuid && { affiliate_plan_option_uuid: plan.uuid })\n      };\n    });\n  }\n\n  const\n    price = plan ? pricing.servicePrice : getDomainNamePrivacyYearlyPrice(),\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    fees = 0,\n    term = 12,\n    period = 1;\n\n  if (standalone || domainNamePrivacy || isAutoIncludedInPlan(plan, 'domain_name_privacy')) {\n    // eslint-disable-next-line no-unused-vars\n    return _map(purchasedDomains(registration), (_domainName) => {\n      return {\n        service,\n        jurisdiction,\n        price,\n        coupon,\n        fees,\n        term,\n        period,\n        is_add_on: !standalone && !!plan\n      };\n    });\n  }\n  return [];\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { planLevel, domainNamePrivacy } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'domain_name_privacy',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    isAutoIncluded = isAutoIncludedInPlan(plan, 'domain_name_privacy');\n\n  if ((plan && plan.domain_name_privacy) || domainNamePrivacy || isAutoIncluded || standalone) {\n    return _map(purchasedDomains(registration), (domainName) => {\n      return {\n        service,\n        jurisdiction,\n        standalone,\n        is_new_business: !standalone,\n        is_auto_included: isAutoIncluded,\n        domain_name: domainName\n      };\n    });\n  }\n  return [];\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      ...convertOrderData(registration, true)\n    ],\n    orderItems = [\n      ...convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.domainName.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\nimport _map from 'lodash/map';\n\nimport { convertOrderItem as convertBasicEmailOrderItem, convertOrderData as convertBasicEmailOrderData } from './BasicEmailConverter';\nimport { convertOrderItem as convertDomainNamePrivacyOrderItem, convertOrderData as convertDomainNamePrivacyOrderData } from './DomainNamePrivacyDataConverter';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPlanLevel, isAutoIncludedInPlan } from '../../utils/PlanService';\nimport { getDomainNameYearlyPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nexport const purchasedDomains = (registration) => {\n  const { domainName, purchase } = registration,\n    { primary } = domainName,\n    { domainNames } = purchase;\n  if (domainNames && domainNames.length > 0) {\n    return domainNames;\n  }\n  return [primary];\n};\n\nexport const convertOrderItem = (registration, standalone, websiteToolsStandalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { domainName = false, planLevel, websiteToolsBundle } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'domain_name_reg',\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n  if ((plan && plan.domain_name_reg) || websiteToolsBundle || websiteToolsStandalone) {\n    // eslint-disable-next-line no-unused-vars\n    return _map(purchasedDomains(registration), (_domainName) => {\n      return {\n        service,\n        jurisdiction,\n        price: 0,\n        coupon: 0,\n        fees: 0,\n        term: 12,\n        period: 1,\n        is_add_on: false,\n        ...(plan?.uuid && { affiliate_plan_option_uuid: plan.uuid })\n      };\n    });\n  }\n\n  const\n    price = plan ? pricing.servicePrice : getDomainNameYearlyPrice(),\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    fees = 0,\n    term = 12,\n    period = 1;\n\n  if (standalone || domainName || isAutoIncludedInPlan(plan, 'domain_name_reg')) {\n    // eslint-disable-next-line no-unused-vars\n    return _map(purchasedDomains(registration), (_domainName) => {\n      return { service, jurisdiction, price, coupon, fees, term, period, is_add_on: !standalone && !!plan };\n    });\n  }\n  return [];\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const { business, domainName, purchase } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    isAutoIncluded = isAutoIncludedInPlan(plan, 'domain_name_reg');\n\n  if (!(plan && plan.domain_name_reg) && !purchase.domainName && !standalone && !isAutoIncluded) {\n    return [];\n  }\n  const { alternates, verified, skip } = domainName;\n  return _map(purchasedDomains(registration), (primary) => {\n    return {\n      service: 'domain_name_reg',\n      standalone,\n      is_new_business: !standalone,\n      is_auto_included: isAutoIncluded,\n      jurisdiction,\n      primary,\n      alternates,\n      domain_verified: verified,\n      skip: skip || false\n    };\n  });\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = _compact([\n      ...convertOrderData(registration, true),\n      ...convertBasicEmailOrderData(registration, false),\n      ...convertDomainNamePrivacyOrderData(registration, false)\n    ]),\n    orderItems = _compact([\n      ...convertOrderItem(registration, true),\n      ...convertBasicEmailOrderItem(registration, false),\n      ...convertDomainNamePrivacyOrderItem(registration, false)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.domainName.companyId\n    }, getPricingInformation(registration.order));\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { buildEntityName, convertAddress, convertUser, convertContactIfIdentified, getPricingInformation, decorateAccount } from './BaseDataConverter';\nimport { ACTIONS, URLS } from '../../constants/complete_ein';\nimport { getPlanLevel } from '../../utils/PlanService';\nimport { getEINPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nconst getPricingAndCouponAmount = (registration) => {\n  const\n    { business, purchase, coupons } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'ein_creation',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n  return { pricing, plan };\n};\n\nconst\n  convertTaxData = (ein) => {\n    const { llcMarried, llcSingleMember, taxedAsSCorp } = ein,\n      taxInfo = {};\n\n    if (llcMarried !== null) {\n      taxInfo.members_are_married = llcMarried;\n    }\n    if (llcSingleMember !== null) {\n      taxInfo.taxed_as_single_member_llc = llcSingleMember;\n    }\n    if (taxedAsSCorp !== null) {\n      taxInfo.taxed_as_s_corp = taxedAsSCorp;\n    }\n\n    return taxInfo;\n  },\n\n  /* eslint-disable max-statements */\n  convertBusinessData = (ein) => {\n    const { gambling, atf, employeesW2, w2WagesPaidDate, w2AgriculturalEmployeeCount, w2OtherEmployeeCount, w2WagesLessThan1000, corpCareOf, corpClosingMonth, startDate } = ein,\n      { motorVehicle, motorVehicleWeight, businessForm720, businessActivity1, businessActivity2, businessActivity3, businessActivity4, businessActivity5, businessActivitySpecify } = ein,\n      businessData = {\n        activity: {\n          level_1: businessActivity1,\n          level_2: businessActivity2,\n          level_3: businessActivity3,\n          level_4: businessActivity4,\n          level_5: businessActivity5,\n          specify: businessActivitySpecify\n        }\n      };\n\n    if (startDate) {\n      const startDatePieces = startDate.split('/'),\n        startDateConverted = startDatePieces.length > 2 ? `${startDatePieces[2]}-${startDatePieces[0]}-${startDatePieces[1]}` : '';\n\n      businessData.start_date = startDateConverted;\n    }\n    if (gambling !== null) {\n      businessData.gambling = gambling;\n    }\n    if (atf !== null) {\n      businessData.alcohol_tobacco_firearms = atf;\n    }\n    if (employeesW2 !== null) {\n      businessData.employees_with_w2 = employeesW2;\n      if (employeesW2) {\n        businessData.w2_wages_paid_date = w2WagesPaidDate;\n        businessData.w2_agricultural_employees_count = w2AgriculturalEmployeeCount;\n        businessData.w2_other_employees_count = w2OtherEmployeeCount;\n        businessData.w2_wages_lt_1000 = w2WagesLessThan1000;\n      }\n    }\n    if (motorVehicle !== null) {\n      businessData.highway_vehicle = motorVehicle;\n      if (motorVehicleWeight !== null) {\n        businessData.highway_vehicle_over_55000 = motorVehicleWeight;\n      }\n    }\n    if (businessForm720 !== null) {\n      businessData.files_form_720 = businessForm720;\n    }\n    businessData.corp_care_of = corpCareOf;\n    businessData.corp_closing_month = corpClosingMonth;\n    return businessData;\n  },\n  /* eslint-enable max-statements */\n\n  convertResponsibleParty = (ein) => {\n    const\n      { responsibleParty, hasSSN } = ein;\n\n    let party = {};\n\n    if (responsibleParty) {\n      party = convertUser(responsibleParty);\n      if (responsibleParty.companyName) {\n        party.legal_name = responsibleParty.legalName;\n        party.ein_number = responsibleParty.ein;\n      } else {\n        party.suffix = responsibleParty.suffix || '';\n        party.previous_ein = responsibleParty.previousEin;\n        party.alternate_last_names = responsibleParty.alternateLastNames;\n      }\n      party.collect_data_from_user = responsibleParty.collectDataFromUser || false;\n      party.has_ssn = hasSSN;\n    }\n\n    return party;\n  },\n\n  /* eslint-disable camelcase */\n  convertAccount = (registration) => {\n    const\n      { customer, lead } = registration,\n      { firstName: first_name, middleName: middle_name, lastName: last_name, email, phoneNumber: phone, password } = customer,\n      { leadUUID: lead_uuid } = lead,\n      { cardToken: card_token } = customer;\n\n    return decorateAccount({ lead_uuid, first_name, middle_name, last_name, email: email ? email.toLowerCase() : '', phone, password, international: false, signup_client: 'web_v2', card_token });\n  };\n  /* eslint-enable camelcase */\n\nexport const convertSSN = (registration) => {\n  const\n    { ein } = registration,\n    { responsibleParty } = ein;\n\n  if (!responsibleParty || !responsibleParty.ssn) {\n    return {};\n  }\n\n  // order_ssn_tokenized is sent with the same plaintext value leaving the client. When this\n  // call is routed through the VGS inbound proxy (i.e. via postpurchase/create), VGS tokenizes\n  // it in transit so the BFF receives a token — hence the field name. order_ssn remains\n  // plaintext for backwards compatibility while the downstream migration is in progress.\n  //\n  // TODO: responsibleParty.ssn holds either an SSN or an ITIN (the collection field accepts both),\n  // but there is no tax_identifier_type signal here. The BFF currently forwards this as\n  // tax_identifier_type: 'ssn' unconditionally. Investigate emitting an order_ssn_tokenized_type\n  // field alongside order_ssn_tokenized so the BFF can set the correct type on the EIN OrderTask.\n  return { order_ssn: responsibleParty.ssn, order_ssn_tokenized: responsibleParty.ssn };\n};\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { ein, planLevel, einBusinessDocsBundle } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'ein_creation',\n    servicePricing = getPricingAndCouponAmount(registration);\n\n  if ((plan && plan.ein_creation) || einBusinessDocsBundle) {\n    return { service, jurisdiction, price: 0, coupon: 0, fees: 0, is_add_on: false };\n  }\n  if (standalone || ein) {\n    return {\n      service,\n      jurisdiction,\n      price: plan ? servicePricing.pricing.servicePrice : getEINPrice(),\n      coupon: plan ? servicePricing.pricing.serviceCouponAmount : 0,\n      fees: 0,\n      is_add_on: !standalone && !!plan\n    };\n  }\n  return null;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone) => {\n  const { business, businessAddresses, contact, ein, members, order, page, purchase } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction, domesticJurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  if (!(plan && plan.ein_creation) && !purchase.ein && !standalone) {\n    return null;\n  }\n\n  const\n    { type, name, indicator, status, description, id: businessId } = business,\n    { principal: principalAddress, mailing: mailingAddress, physical: physicalAddress } = businessAddresses,\n    { county } = physicalAddress,\n    { reason, dbas: trade_names, phoneNumber: phone } = ein,\n    { id = '' } = order,\n    { completedAction, completedUrl, completedActionIndex } = page,\n    memberCount = members.memberCount ? members.memberCount : ein.memberCount,\n    formationType = type === 'LLCX' ? 'llc' : 'corp',\n    entityType = type === 'SOLE' ? 'sole_prop' : formationType,\n    // API-1163: only include mailing_address when it has at least one meaningful field.\n    // businessAddresses.mailing starts as EMPTY_ADDRESS (all '' / 0), and convertAddress\n    // passes those through since removeEmptyValues only strips null/undefined. Omitting the\n    // field when blank leaves any previously-saved value in zenapi intact.\n    convertedMailing = convertAddress(mailingAddress),\n    mailingField = (convertedMailing.city || convertedMailing.state || convertedMailing.zip || convertedMailing.address_1)\n      ? { mailing_address: convertedMailing }\n      : {},\n    data = _assign({\n      service: 'ein_creation',\n      standalone,\n      jurisdiction,\n      domestic_jurisdiction: domesticJurisdiction,\n      type, // Keep for backward compatibility\n      entity_type: entityType,\n      is_new_business: !standalone,\n      reason: reason || 'Started New Business',\n      member_count: memberCount || null,\n      business_purpose: description,\n      address: convertAddress(physicalAddress),\n      principal_address: convertAddress(principalAddress),\n      county,\n      phone,\n      trade_names,\n      tax_info: convertTaxData(ein),\n      business_data: convertBusinessData(ein),\n      responsible_party: convertResponsibleParty(ein)\n    }, mailingField, convertContactIfIdentified(contact));\n\n  if (standalone) {\n    if (!businessId) {\n      data.entity_name = buildEntityName(name, indicator);\n    }\n    if (status === 'incomplete') {\n      if (businessId && name) {\n        data.entity_name = buildEntityName(name, indicator);\n      }\n      data.completed_action = id ? completedAction : ACTIONS.START_EIN;\n      data.completed_url = id ? completedUrl : URLS.START_EIN;\n      data.completed_action_index = id ? completedActionIndex : 5200;\n    }\n  }\n  return data;\n};\n/* eslint-enable camelcase */\n\nexport const buildOrder = (registration, isUpdate) => {\n  const\n    { business } = registration,\n    { status: orderStatus } = business,\n    orderData = _compact([\n      convertOrderData(registration, true)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData\n    }, convertSSN(registration), getPricingInformation(registration.order));\n\n  if (isUpdate) {\n    order.order_uuid = registration.order.id;\n    return { order };\n  }\n\n  const\n    { id: businessId } = business,\n    accountId = registration.customer.id || '',\n    account = accountId ? null : convertAccount(registration);\n\n  order.order_items = _compact([\n    convertOrderItem(registration, true)\n  ]);\n\n  if (accountId) {\n    if (businessId) {\n      order.business_entity_uuid = businessId;\n    }\n    return {\n      account_uuid: accountId,\n      order\n    };\n  }\n  return {\n    account,\n    order\n  };\n};\n\n","import { getPlanLevel } from '../../utils/PlanService';\nimport { getExpeditePriorityPrice, getExpediteRushPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nexport const convertOrderItem = (registration, standalone, expediteFees) => {\n  const\n    { business, purchase, coupons } = registration,\n    { expedite, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  // DJL - any add-ons will be represented by the ExpediteUpsellDataConverter\n  if (plan) {\n    if (plan.expedite === 'standard' || !plan.expedite) {\n      return null;\n    }\n    return { service: plan.expedite === 'rush' ? 'rush' : 'expedite', jurisdiction, price: 0, coupon: 0, fees: 0, is_add_on: false };\n  }\n\n  const\n    service = expedite === 'rush' ? 'rush' : 'expedite',\n    pricing = getPriceAndCouponForService(service, plan, coupons),\n    hardcodedPrice = expedite === 'rush' ? getExpediteRushPrice() : getExpeditePriorityPrice(),\n    price = plan ? pricing.servicePrice : hardcodedPrice,\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    exFees = expediteFees[jurisdiction][expedite],\n    { fees } = exFees;\n\n  if (expedite && expedite !== 'standard') {\n    return { service, jurisdiction, price, coupon, fees, is_add_on: false };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration) => {\n  const\n    { business, purchase } = registration,\n    { expedite, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  // DJL - any add-ons will be represented by the ExpediteUpsellDataConverter\n  if (plan) {\n    if (plan.expedite === 'standard' || !plan.expedite) {\n      return null;\n    }\n    return { service: plan.expedite === 'rush' ? 'rush' : 'expedite', jurisdiction };\n  }\n\n  const\n    service = expedite === 'rush' ? 'rush' : 'expedite';\n\n  return expedite && expedite !== 'standard' ? { service, jurisdiction } : null;\n};\n","import { getPlanLevel } from '../../utils/PlanService';\nimport { getExpeditePriorityPrice, getExpediteRushPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nexport const convertOrderItem = (registration, standalone, expediteFees) => {\n  const\n    { business, purchase, coupons } = registration,\n    { expedite, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  if (!plan || !expedite || plan.expedite === 'rush' || plan.expedite === expedite || (plan.expedite === 'priority' && expedite === 'standard')) {\n    return null;\n  }\n\n  const\n    baseService = expedite === 'rush' ? 'rush' : 'expedite',\n    service = plan.expedite === 'priority' && expedite === 'rush' ? 'expedite_to_rush_upgrade' : baseService,\n    pricing = getPriceAndCouponForService(service, plan, coupons),\n    hardcodedPrice = expedite === 'rush' ? getExpediteRushPrice() : getExpeditePriorityPrice(),\n    price = plan ? pricing.servicePrice : hardcodedPrice,\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    exFees = expediteFees[jurisdiction][expedite],\n    { fees } = exFees;\n\n  return { service, jurisdiction, price, coupon, fees, is_add_on: true };\n};\n\nexport const convertOrderData = (registration) => {\n  const\n    { business, purchase } = registration,\n    { expedite, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  if (!plan || !expedite || plan.expedite === 'rush' || plan.expedite === expedite || (plan.expedite === 'priority' && expedite === 'standard')) {\n    return null;\n  }\n\n  const\n    baseService = expedite === 'rush' ? 'rush' : 'expedite',\n    service = plan.expedite === 'priority' && expedite === 'rush' ? 'expedite_to_rush_upgrade' : baseService;\n\n  return { service, jurisdiction };\n};\n","/*\nNOTE - cpa assessment can only be purchased as part of a package at this time. The price and fees will always be 0.\n */\nimport _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPlanLevel } from '../../utils/PlanService';\nimport { getInitialCPAScreeningPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nconst convertOrderItemStandalone = (jurisdiction, standalone) => {\n  if (!standalone) {\n    return null;\n  }\n  const\n    service = 'initial_cpa_screening';\n\n  return { service, jurisdiction, price: 0, coupon: 0, fees: 0, is_add_on: false };\n};\n\nconst convertOrderDataStandalone = (jurisdiction, standalone) => {\n  const\n    service = 'initial_cpa_screening';\n\n  return standalone ? {\n    service,\n    jurisdiction,\n    standalone,\n    is_new_business: !standalone\n  } : null;\n};\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { planLevel, initialCPAScreening } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'initial_cpa_screening',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  if (plan && plan.initial_cpa_screening) {\n    return null; // Do not send if part of a plan - this must be activated from dashboard\n  }\n\n  const\n    price = plan ? pricing.servicePrice : getInitialCPAScreeningPrice(),\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    fees = 0;\n\n  if (standalone || initialCPAScreening) {\n    return { service, price, coupon, fees, jurisdiction, is_add_on: !standalone && !!plan };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { planLevel, initialCPAScreening } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'initial_cpa_screening',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  if (plan && plan.initial_cpa_screening) {\n    return null; // Do not send if part of plan - this must be activated from the dashboard\n  }\n  return initialCPAScreening ? {\n    service,\n    jurisdiction,\n    standalone,\n    is_new_business: !standalone\n  } : null;\n};\n\nexport const buildOrder = (jurisdiction, companyId, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = _compact([\n      convertOrderDataStandalone(jurisdiction, true)\n    ]),\n    orderItems = _compact([\n      convertOrderItemStandalone(jurisdiction, true)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: companyId\n    }, getPricingInformation({}));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { buildEntityName, convertAddress, convertContactIfIdentified, convertManagers, convertMembers, convertRegisteredAgent, getPricingInformation, decorateAccount } from './BaseDataConverter';\nimport { ACTIONS, URLS } from '../../constants/complete_nypub';\nimport { getNYPubPrice, getNYPubFees, getGAPubPrice, getPAPubPrice } from '../../utils/ProductService';\nimport { getPlanLevel } from '../../utils/PlanService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nconst getPricingAndCouponAmount = (registration) => {\n  const\n    { business, purchase, coupons } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'ny_publication',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  return { pricing, plan };\n};\n\n/* eslint-disable camelcase */\nconst convertAccount = (registration) => {\n  const\n    { customer, lead } = registration,\n    { firstName: first_name, middleName: middle_name, lastName: last_name, suffix, email, phoneNumber: phone, password } = customer,\n    { cardToken: card_token } = customer,\n    { leadUUID: lead_uuid } = lead;\n\n  return decorateAccount({ lead_uuid, first_name, middle_name, last_name, suffix, email: email ? email.toLowerCase() : '', phone, password, international: false, signup_client: 'web_v2', card_token });\n};\n/* eslint-enable camelcase */\n\nconst getPubFee = (registration, filingFees) => {\n\n  const { nypub } = registration,\n    { nyPubCountyCode, useAlbany, pubState } = nypub;\n\n  if (pubState === 'GA') {\n    return getGAPubPrice();\n  } if (pubState === 'PA') {\n    return getPAPubPrice();\n  }\n  return getNYPubFees(useAlbany || !nyPubCountyCode ? 'albany' : nyPubCountyCode, filingFees);\n\n};\n\nconst getEntityType = (type) => {\n  return type === 'CORP' ? 'corp' : 'llc';\n};\n\nexport const convertOrderItem = (registration, standalone, filingFees) => {\n  const { business: { requestedJurisdiction: jurisdiction }, purchase: { nyPublication } } = registration,\n    service = 'ny_publication',\n    servicePricing = getPricingAndCouponAmount(registration),\n    fees = getPubFee(registration, filingFees);\n\n  if ((standalone || nyPublication) && (jurisdiction === 'NY' || jurisdiction === 'GA' || jurisdiction === 'PA')) {\n    return {\n      service,\n      price: servicePricing.plan ? servicePricing.pricing.servicePrice : getNYPubPrice(),\n      coupon: servicePricing.plan ? servicePricing.pricing.serviceCouponAmount : 0,\n      fees,\n      jurisdiction,\n      is_add_on: !standalone\n    };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, isLLC, isStandalone) => {\n  const { business, businessAddresses, contact, managers, members, nypub, purchase, order, page, registeredAgent } = registration;\n\n  if ((!purchase.nyPublication && !isStandalone) || (business.requestedJurisdiction !== 'NY' && business.requestedJurisdiction !== 'GA' && business.requestedJurisdiction !== 'PA')) {\n    return null;\n  }\n\n  const { requestedJurisdiction: jurisdiction, type, name, indicator, status, description } = business,\n    { mailing, physical, principal } = businessAddresses,\n    { nyPubCounty, useAlbany } = nypub,\n    { phoneNumber: phone } = contact,\n    { id = '' } = order,\n    { completedAction, completedUrl, completedActionIndex } = page;\n  let countyName = '';\n\n  countyName = (useAlbany || !nyPubCounty) ? 'Albany County' : nyPubCounty;\n\n  if (jurisdiction === 'GA' && registeredAgent.type === 'ZenBusiness') {\n    countyName = 'Fulton County';\n  } else if (jurisdiction === 'PA' && registeredAgent.type === 'ZenBusiness') {\n    countyName = 'Dauphin County';\n  }\n\n\n  const dat = _assign({\n    service: 'ny_publication',\n    standalone: isStandalone,\n    jurisdiction,\n    domestic_jurisdiction: jurisdiction,\n    ny_publication_county: countyName,\n    type: business.type, // Keep for backward compatibility\n    entity_type: getEntityType(type),\n    entity_name: buildEntityName(name, indicator),\n    business_purpose: description,\n    is_new_business: false,\n    principal_address: convertAddress(principal),\n    mailing_address: convertAddress(mailing),\n    address: convertAddress(physical),\n    first_name: contact ? contact.firstName : '',\n    last_name: contact ? contact.lastName : '',\n    phone,\n    estimated_formation_date: '',\n    activity: '',\n    // Used with standalone RA\n    domestic_entity: true,\n    foreign_jurisdictions: [],\n    domestic_filing_date: '',\n    state_id: ''\n  },\n  convertContactIfIdentified(contact),\n  convertManagers(managers),\n  convertMembers(members),\n  convertRegisteredAgent(registeredAgent, business, { registeredAgent: false })\n  );\n\n  if (isStandalone) {\n    dat.entity_name = name;\n    if (status === 'incomplete') {\n      dat.completed_action = id ? completedAction : ACTIONS.START;\n      dat.completed_url = id ? completedUrl : URLS.START;\n      dat.completed_action_index = id ? completedActionIndex : 5700;\n    }\n  }\n\n  return dat;\n};\n\nexport const buildOrder = (registration, isLLC, filingFees, isUpdate) => {\n  const\n    { business } = registration,\n    { status: orderStatus } = business,\n    orderData = _compact([\n      convertOrderData(registration, isLLC, true)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData\n    }, getPricingInformation(registration.order));\n\n  if (isUpdate) {\n    order.order_uuid = registration.order.id;\n    return { order };\n  }\n\n  const\n    { id: businessId } = business,\n    accountId = registration.customer.id || '',\n    account = accountId ? null : convertAccount(registration);\n\n  order.order_items = _compact([\n    convertOrderItem(registration, true, filingFees)\n  ]);\n\n  if (accountId) {\n    if (businessId) {\n      order.business_entity_uuid = businessId;\n    }\n    return {\n      account_uuid: accountId,\n      order\n    };\n  }\n  return {\n    account,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { getPricingInformation, decorateAccount, convertUser } from './BaseDataConverter';\nimport { getPlanLevel, isAutoIncludedInPlan } from '../../utils/PlanService';\nimport { getRAYearlyPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nconst getPricingAndCouponAmount = (registration) => {\n  const\n    { business, purchase, coupons } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'registered_agent_service',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n  return { pricing, plan };\n};\n\n/* eslint-disable camelcase */\nconst\n  convertAccount = (registration) => {\n    const\n      { customer, lead } = registration,\n      { firstName: first_name, middleName: middle_name, lastName: last_name, suffix, email, phoneNumber: phone, password } = customer,\n      { cardNumber: number, expMonth, expYear, cvc } = customer,\n      { leadUUID: lead_uuid } = lead,\n      servicePricing = getPricingAndCouponAmount(registration),\n      amount = servicePricing ? servicePricing.pricing.servicePrice : getRAYearlyPrice(),\n      card = { number, exp_month: parseInt(expMonth, 10), exp_year: 2000 + parseInt(expYear, 10), cvc, amount, default: true };\n\n    return decorateAccount({ lead_uuid, first_name, middle_name, last_name, suffix, email: email ? email.toLowerCase() : '', phone, password, international: false, signup_client: 'web_v2', card });\n  };\n\nexport const zenBusinessRegisteredAgent = {\n  first_name: '',\n  middle_name: '',\n  last_name: '',\n  suffix: '',\n  company_name: '',\n  address_1: '',\n  address_2: '',\n  city: '',\n  county: '',\n  state: '',\n  state_name: '',\n  zip: '',\n  phone: '',\n  email: ''\n};\n\nexport const convertOrderItem = (registration, standalone, filingFees) => {\n  const\n    { business, purchase, postpurchase: { purchaseRA } } = registration,\n    { registeredAgentService, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    privacyFees = filingFees[jurisdiction].registered_agent_service || { fees: 0 },\n    service = 'registered_agent_service',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    servicePricing = getPricingAndCouponAmount(registration);\n\n  if (plan && plan.registered_agent_service) {\n    return { service, jurisdiction, price: 0, coupon: 0, fees: 0, term: 12, period: 1, is_add_on: false };\n  }\n\n  const\n    price = plan ? servicePricing.pricing.servicePrice : getRAYearlyPrice(),\n    coupon = plan ? servicePricing.pricing.serviceCouponAmount : 0,\n    { fees } = privacyFees,\n    term = 12,\n    period = 1;\n\n  if (standalone || registeredAgentService || isAutoIncludedInPlan(plan, 'registered_agent_service') || purchaseRA) {\n    return { service, price, coupon, fees, term, period, jurisdiction, is_add_on: !standalone && !!plan };\n  }\n  return null;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone) => {\n  const { business, purchase, postpurchase: { purchaseRA }, registeredAgent } = registration,\n    { planLevel, registeredAgentService } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    isAutoIncluded = isAutoIncludedInPlan(plan, 'registered_agent_service');\n\n  if (!(plan && plan.registered_agent_service) && !registeredAgentService && !standalone && !isAutoIncluded && !purchaseRA) {\n    return null;\n  }\n\n  const isZenBusiness = !registeredAgent || registeredAgent.type === 'ZenBusiness';\n\n  return {\n    service: 'registered_agent_service',\n    jurisdiction,\n    domestic_jurisdiction: jurisdiction,\n    standalone,\n    is_new_business: !standalone,\n    is_auto_included: isAutoIncluded,\n    registered_agent: isZenBusiness ? {} : convertUser(registeredAgent)\n  };\n};\n\nexport const buildOrder = (registration, filingFees, isUpdate) => {\n  const\n    { business } = registration,\n    { status: orderStatus } = business,\n    orderData = _compact([\n      convertOrderData(registration, true)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData\n    }, getPricingInformation(registration.order));\n\n  if (isUpdate) {\n    order.order_uuid = registration.order.id;\n    return { order };\n  }\n\n  const\n    { id: businessId } = business,\n    accountId = registration.customer.id || '',\n    account = accountId ? null : convertAccount(registration);\n\n  order.order_items = _compact([\n    convertOrderItem(registration, true, filingFees)\n  ]);\n\n  if (accountId) {\n    if (businessId) {\n      order.business_entity_uuid = businessId;\n    }\n    return {\n      account_uuid: accountId,\n      order\n    };\n  }\n  return {\n    account,\n    order\n  };\n};\n\n","import { getPlanLevel } from '../../utils/PlanService';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { planLevel } = purchase,\n    { domesticJurisdiction, requestedJurisdiction, type } = business,\n    jurisdiction = requestedJurisdiction || domesticJurisdiction,\n    plan = getPlanLevel(planLevel, jurisdiction) || { corp: { prices: { 1: 0, 12: 0 } }, llc: { prices: { 1: 0, 12: 0 } } },\n    { prices } = plan[type === 'CORP' ? 'corp' : 'llc'], // fees are covered in the formation item\n    price = prices['1'],\n    service = plan.id,\n    uuid = plan.uuid,\n    recurring = plan.recurring,\n    term = 12,\n    period = 1,\n    coupon = plan.coupon ? plan.coupon.amount : 0;\n\n  if (standalone || planLevel) {\n    if (!recurring) {\n      return { service, affiliate_plan_option_uuid: uuid, price, coupon, fees: 0, jurisdiction, is_add_on: false };\n    }\n    return { service, affiliate_plan_option_uuid: uuid, price, coupon, fees: 0, term, period, jurisdiction, is_add_on: false };\n  }\n\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business, plan: planReduce, purchase } = registration,\n    { planLevel } = purchase,\n    { domesticJurisdiction, requestedJurisdiction } = business,\n    jurisdiction = requestedJurisdiction || domesticJurisdiction,\n    plan = planReduce.plan || getPlanLevel(planLevel, jurisdiction) || { id: '' },\n    service = plan.id;\n\n  return planLevel ? {\n    service,\n    jurisdiction,\n    standalone,\n    is_new_business: !standalone,\n    level: planLevel,\n    plan\n  } : null;\n};\n","/*\nNOTE - s_corp_designation can only be purchased from S-Corp landing pages at this time.\n*/\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business } = registration,\n    { requestedJurisdiction: jurisdiction, isSCorp } = business,\n    service = 's_corp_designation';\n\n  if (standalone || isSCorp) {\n    return { service, jurisdiction, price: 0, coupon: 0, fees: 0, is_add_on: false };\n  }\n\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business } = registration,\n    { requestedJurisdiction: jurisdiction, isSCorp } = business,\n    service = 's_corp_designation';\n\n  if (standalone || isSCorp) {\n    return { service, jurisdiction, standalone, is_new_business: !standalone };\n  }\n  return null;\n};\n","import _assign from 'lodash/assign';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPlanLevel, isAutoIncludedInPlan } from '../../utils/PlanService';\nimport { getStaticWebsiteYearlyPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nexport const convertOrderItem = (registration, standalone, websiteToolsStandalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { staticWebsite = false, planLevel, websiteToolsBundle } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'static_website',\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  if ((plan && plan.static_website) || websiteToolsBundle || websiteToolsStandalone) {\n    return {\n      service,\n      jurisdiction,\n      price: 0,\n      coupon: 0,\n      fees: 0,\n      term: 12,\n      period: 1,\n      is_add_on: false,\n      ...(plan?.uuid && { affiliate_plan_option_uuid: plan.uuid })\n    };\n  }\n\n  const\n    price = plan ? pricing.servicePrice : getStaticWebsiteYearlyPrice(),\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    fees = 0,\n    term = 12,\n    period = 1;\n\n  if (standalone || staticWebsite || isAutoIncludedInPlan(plan, 'static_website')) {\n    return { service, jurisdiction, price, coupon, fees, term, period, is_add_on: !standalone && !!plan };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const { business, purchase } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    isAutoIncluded = !standalone && isAutoIncludedInPlan(plan, 'static_website');\n\n  if (!(plan && plan.static_website) && !purchase.staticWebsite && !standalone && !isAutoIncluded) {\n    return null;\n  }\n\n  const\n    data = {\n      service: 'static_website',\n      standalone: false,\n      jurisdiction,\n      is_new_business: !standalone,\n      is_auto_included: isAutoIncluded\n    };\n\n  return data;\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.website.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","/*\nNOTE - tax preparation can only be purchased as part of a package at this time. The price and fees will always be 0.\n */\n\nimport { getPlanLevel, isAutoIncludedInPlan } from '../../utils/PlanService';\nimport { getTaxPreparationYearlyPrice } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { planLevel, taxPreparation } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'tax_preparation',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  if (plan && plan.tax_preparation) {\n    return { service, jurisdiction, price: 0, fees: 0, term: 12, period: 1, is_add_on: false };\n  }\n\n  const\n    price = getTaxPreparationYearlyPrice(),\n    fees = 0,\n    term = 12,\n    period = 1;\n\n  if (standalone || taxPreparation || isAutoIncludedInPlan(plan, 'tax_preparation')) {\n    return { service, jurisdiction, price, fees, term, period, is_add_on: !standalone && !!plan };\n  }\n\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { planLevel, taxPreparation } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'tax_preparation',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    isAutoIncluded = isAutoIncludedInPlan(plan, 'tax_preparation');\n\n  return ((plan && plan.tax_preparation) || taxPreparation || isAutoIncluded) ? {\n    service,\n    jurisdiction,\n    standalone,\n    is_new_business: !standalone,\n    is_auto_included: isAutoIncluded\n  } : null;\n};\n","import { buildPlanGatedZeroItem } from './BaseDataConverter';\nimport { getPlanLevel, isAutoIncludedInPlan } from '../../utils/PlanService';\n\nexport const convertOrderItem = (registration) => {\n  const\n    { business, purchase } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'annual_report_service',\n    { activePlanLevel } = purchase,\n    activePlan = activePlanLevel ? getPlanLevel(activePlanLevel, jurisdiction) : null;\n\n  if (activePlan && activePlan.annual_report_service) {\n    return buildPlanGatedZeroItem(service, jurisdiction, activePlan, { coupon: 0, fees: 0, term: 12, period: 1 });\n  }\n\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business, purchase } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'annual_report_service',\n    { planLevel } = purchase,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    isAutoIncluded = isAutoIncludedInPlan(plan, 'annual_report_service');\n\n  // this product is not being sell as upsell so let's just check if its part of the plan\n  return (plan && plan.annual_report_service) ? {\n    service,\n    jurisdiction,\n    standalone,\n    is_new_business: true,\n    is_auto_included: isAutoIncluded\n  } : null;\n};\n","/* eslint-disable camelcase */\nimport _assign from 'lodash/assign';\nimport _capitalize from 'lodash/capitalize';\n\nimport { getPlanLevel } from '../../utils/PlanService';\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getAccountant1800Price, isAccountant1800Enabled } from '../../utils/ProductService';\nimport { getEntryPointGroup } from '../../utils/PartnerUtils';\n\nconst getRemaginePlanName = (planLevel, industry, entity_type) => {\n  const type = entity_type.toUpperCase();\n  if (planLevel === 'level2') {\n    return `${_capitalize(industry)} ${type}`;\n  }\n  return `${planLevel === 'level3' ? 'Premium' : 'Starter'} ${type}`;\n};\n\nexport const convertOrderItem = (registration, standalone) => {\n\n  if (!isAccountant1800Enabled()) {\n    return null;\n  }\n\n  const\n    { business: {\n      domesticJurisdiction: jurisdiction\n    },\n    purchase: {\n      planLevel, accountant1800\n    } } = registration,\n    service = '1800_accountant',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  // check plan\n  if (plan && plan['1800_accountant']) {\n    return {\n      service,\n      jurisdiction,\n      price: 0,\n      fees: 0,\n      coupon: 0,\n      period: 1,\n      term: 12,\n      is_add_on: false\n    };\n  }\n\n  // check standalone status\n  if (standalone || accountant1800) {\n    return {\n      service,\n      jurisdiction,\n      price: getAccountant1800Price(),\n      fees: 0,\n      coupon: 0,\n      period: 1,\n      term: 12,\n      is_add_on: false\n    };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n\n  if (!isAccountant1800Enabled()) {\n    return null;\n  }\n\n  const\n    { business: {\n      domesticJurisdiction: jurisdiction,\n      type: entity_type,\n      name: entity_name\n    },\n    customer: {\n      firstName: first_name,\n      lastName: last_name,\n      phoneNumber: phone,\n      email\n    },\n    remagine: {\n      industry\n    },\n    purchase: {\n      planLevel,\n      accountant1800\n    } } = registration,\n    service = '1800_accountant',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  if ((plan && plan['1800_accountant']) || accountant1800 || standalone) {\n    const acc_entity_type = (entity_type === 'LLCX') ? 'llc' : 'corp';\n    const package_purchased = getEntryPointGroup() === 'pf' ? getRemaginePlanName(planLevel, industry, acc_entity_type) : '';\n    return {\n      service,\n      jurisdiction,\n      is_add_on: false,\n      phone,\n      acc_entity_type,\n      acc_entity_name: entity_name,\n      email,\n      acc_first_name: first_name,\n      acc_last_name: last_name,\n      industry,\n      package_purchased\n    };\n  }\n  return null;\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.domainName.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\nimport { getPlanLevel, getWebsiteToolsBundleYearlyPrice } from '../../utils/PlanService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\nimport { getPricingInformation } from './BaseDataConverter';\nimport { convertOrderItem as convertBasicEmailOrderItem, convertOrderData as convertBasicEmailOrderData } from './BasicEmailConverter';\nimport { convertOrderItem as convertDomainNameOrderItem, convertOrderData as convertDomainNameOrderData } from './DomainNameDataConverter';\nimport { convertOrderItem as convertDomainNamePrivacyOrderItem, convertOrderData as convertDomainNamePrivacyOrderData } from './DomainNamePrivacyDataConverter';\nimport { convertOrderItem as convertStaticWebsiteOrderItem, convertOrderData as convertStaticWebsiteOrderData } from './StaticWebsiteDataConverter';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { websiteToolsBundle = false, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction, type: businessType } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'website_tools_bundle',\n    pricing = getPriceAndCouponForService(service, plan, coupons),\n    term = 12,\n    period = 1;\n\n  const\n    price = plan ? pricing.servicePrice : getWebsiteToolsBundleYearlyPrice(businessType),\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    fees = 0;\n\n  if (standalone || websiteToolsBundle) {\n    return { service, jurisdiction, price, coupon, fees, term, period, is_add_on: !standalone };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const { business, purchase } = registration,\n    { websiteToolsBundle } = purchase,\n    { requestedJurisdiction: jurisdiction } = business;\n\n  if (!standalone && !websiteToolsBundle) {\n    return null;\n  }\n\n  const\n    data = {\n      service: 'website_tools_bundle',\n      standalone: false,\n      jurisdiction,\n      is_new_business: !standalone,\n      is_auto_included: false\n    };\n\n  return data;\n};\n\nexport const buildOrder = (registration, accountId, filingFees) => {\n  const\n    orderStatus = 'complete',\n    orderData = _compact([\n      ...convertDomainNameOrderData(registration, true),\n      ...convertDomainNamePrivacyOrderData(registration, true),\n      ...convertBasicEmailOrderData(registration, true),\n      convertStaticWebsiteOrderData(registration, true),\n      convertOrderData(registration, true)\n    ]),\n    orderItems = _compact([\n      ...convertDomainNameOrderItem(registration, true, true),\n      ...convertDomainNamePrivacyOrderItem(registration, true, true),\n      ...convertBasicEmailOrderItem(registration, true, true),\n      convertStaticWebsiteOrderItem(registration, true, true),\n      convertOrderItem(registration, true, filingFees)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.domainName.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n\n","import { getPlanLevel, getEINBusinessDocsBundlePrice } from '../../utils/PlanService';\n\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { einBusinessDocsBundle = false, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction, type: businessType } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'ein_business_docs_bundle',\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  const\n    price = plan ? pricing.servicePrice : getEINBusinessDocsBundlePrice(businessType),\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    fees = 0;\n\n  if (standalone || einBusinessDocsBundle) {\n    return { service, jurisdiction, price, coupon, fees, is_add_on: !standalone };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const { business, purchase } = registration,\n    { einBusinessDocsBundle } = purchase,\n    { requestedJurisdiction: jurisdiction } = business;\n\n  if (!standalone && !einBusinessDocsBundle) {\n    return null;\n  }\n\n  const\n    data = {\n      service: 'ein_business_docs_bundle',\n      standalone: false,\n      jurisdiction,\n      is_new_business: !standalone,\n      is_auto_included: false\n    };\n\n  return data;\n};\n","import _assign from 'lodash/assign';\nimport { getZBMProMonthlyPrice, getZBMProYearlyPrice } from '../../utils/ProductService';\nimport { getPricingInformation } from './BaseDataConverter';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, zbmPro, purchase } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { purchaseZBMPro: pfPurchaseZBMPro, zbmProMonthly: pfpppm } = purchase,\n    { zbmProMonthly: zbpm } = zbmPro,\n    zbmProMonthly = standalone ? zbpm : pfpppm,\n    service = 'zb_money_pro';\n\n  if (!standalone && !pfPurchaseZBMPro) {\n    return null;\n  }\n\n  return {\n    service,\n    price: zbmProMonthly ? getZBMProMonthlyPrice() : getZBMProYearlyPrice(),\n    jurisdiction: jurisdiction || 'TX',\n    fees: 0,\n    period: zbmProMonthly ? 12 : 1,\n    term: 12,\n    is_add_on: false\n  };\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const service = 'zb_money_pro',\n    { business, purchase } = registration,\n    { requestedJurisdiction } = business,\n    { purchaseZBMPro: pfPurchaseZBMPro } = purchase;\n\n  return (standalone || pfPurchaseZBMPro) ? {\n    service,\n    jurisdiction: requestedJurisdiction || 'TX'\n  } : null;\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.business.id\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport { getZBMProMonthlyPrice, getZBMProYearlyPrice } from '../../utils/ProductService';\nimport { getPricingInformation } from './BaseDataConverter';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, zbmPro, postpurchase } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { purchaseZBMPro, zbmProMonthly: pppm } = postpurchase,\n    { zbmProMonthly: zbpm } = zbmPro,\n    zbmProMonthly = standalone ? zbpm : pppm,\n    service = 'zb_money_pro';\n\n  if (!standalone && !purchaseZBMPro) {\n    return null;\n  }\n  return {\n    service,\n    jurisdiction: jurisdiction || 'TX',\n    price: zbmProMonthly ? getZBMProMonthlyPrice() : getZBMProYearlyPrice(),\n    fees: 0,\n    period: zbmProMonthly ? 12 : 1,\n    term: 12,\n    is_add_on: false\n  };\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const service = 'zb_money_pro',\n    { business, postpurchase } = registration,\n    { requestedJurisdiction } = business,\n    { purchaseZBMPro } = postpurchase;\n\n  return (standalone || purchaseZBMPro) ? {\n    service,\n    jurisdiction: requestedJurisdiction || 'TX'\n  } : null;\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.business.id\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getZbBankingPreferredMonthlyPrice } from '../../utils/ProductService';\nimport { getPlanLevel } from '../../utils/PlanService';\n\nconst service = 'zb_banking_preferred';\n\nfunction returnJurisdiction(registrationData) {\n  const { business, zbBankingPreferred } = registrationData || {};\n  return zbBankingPreferred?.domesticJurisdiction || business?.requestedJurisdiction || '';\n}\n\nexport const convertOrderItem = (registration, standalone) => {\n  const jurisdiction = returnJurisdiction(registration);\n  const\n    { postpurchase } = registration,\n    { purchaseZbBankingPreferredOffer } = postpurchase;\n\n  /** to add banking data, we need to ensure we are either in a standalone flow\n   * or if we are in post purchase, the banking offer has been selected\n   */\n  if (!standalone && !purchaseZbBankingPreferredOffer) {\n    return null;\n  }\n\n  return {\n    service,\n    jurisdiction,\n    price: getZbBankingPreferredMonthlyPrice(),\n    fees: 0,\n    period: 12,\n    // signifies that this is a recurring billing product: number of months it lasts from start\n    term: 12,\n    is_add_on: false\n  };\n};\n\n/**\n * Returns the order_data payload for the zb_banking_preferred service\n * @param {Object} registration - registration from state\n * @param {boolean} standalone - flag used by the standalone banking converter\n * @param {boolean} isPostPurchase  - flag used by the postpurchase data converter\n * @returns banking order_data payload or null\n */\nexport const convertOrderData = (registration, standalone, isPostPurchase) => {\n  const jurisdiction = returnJurisdiction(registration);\n  const\n    { postpurchase, purchase } = registration,\n    { planLevel } = purchase,\n    { purchaseZbBankingPreferredOffer } = postpurchase,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    isInPlan = plan && !!plan?.service_prices?.zb_banking_preferred;\n\n  /**\n   * To add banking data, we need to ensure we are either in a standalone flow,\n   * or if we are in post purchase, the banking offer has been selected.\n   * Also, some plans now includes banking as addon so we need to check if it's included in the purchase.\n   * If neither is true, return null to signify not to add the product to order data\n   */\n  if (standalone || (isPostPurchase && purchaseZbBankingPreferredOffer) || (!isPostPurchase && isInPlan && purchase?.zbBankingPreferred)) {\n    return {\n      service,\n      jurisdiction,\n      standalone,\n      is_new_business: false\n    };\n  }\n  return null;\n};\n\nexport const buildOrder = (registration, accountId) => {\n\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.zbBankingPreferred.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n\n","import { getZbTaxAdviceMonthlyPrice, getZbTaxAdviceYearlyPrice } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration) => {\n  const { business, purchase, postpurchase, taxServices } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { product } = taxServices,\n    { zbTaxAdvice, zbTaxAdviceBizTaxPrep } = purchase,\n    { purchaseTaxAdvice, taxAdviceMonthly, purchaseTaxAdviceBizTaxPrep, taxAdviceBizTaxPrepMonthly } = postpurchase,\n    isPrePurchase = zbTaxAdvice,\n    isBundled = zbTaxAdviceBizTaxPrep || purchaseTaxAdviceBizTaxPrep;\n\n  const isStandalone = ['zb_tax_advice', 'zb_tax_advice_biztax_prep'].includes(product);\n  const isMonthly = isStandalone || isPrePurchase || (purchaseTaxAdvice && taxAdviceMonthly) || (purchaseTaxAdviceBizTaxPrep && taxAdviceBizTaxPrepMonthly);\n\n  if (!isStandalone && !zbTaxAdvice && !purchaseTaxAdvice && !purchaseTaxAdviceBizTaxPrep) {\n    return null;\n  }\n\n  const isStandaloneBundle = product === 'zb_tax_advice_biztax_prep';\n  let price = 0;\n  if (!isStandaloneBundle && !isBundled) {\n    price = isMonthly ? getZbTaxAdviceMonthlyPrice() : getZbTaxAdviceYearlyPrice();\n  }\n\n  return {\n    fees: 0,\n    service: 'zb_tax_advice',\n    jurisdiction,\n    price,\n    period: isMonthly ? 12 : 1,\n    term: 12,\n    is_add_on: false\n  };\n};\n\n  /* eslint-disable camelcase */\nexport const convertOrderData = (registration) => {\n  const { business, purchase, postpurchase, taxServices } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { product } = taxServices,\n    { zbTaxAdvice } = purchase,\n    { purchaseTaxAdvice, purchaseTaxAdviceBizTaxPrep } = postpurchase;\n\n  const isStandalone = ['zb_tax_advice', 'zb_tax_advice_biztax_prep'].includes(product);\n\n  if (!isStandalone && !zbTaxAdvice && !purchaseTaxAdvice && !purchaseTaxAdviceBizTaxPrep) {\n    return null;\n  }\n\n  return {\n    service: 'zb_tax_advice',\n    jurisdiction\n  };\n};\n","import { getZbBizTaxPrepMonthlyPrice, getZbBizTaxPrepYearlyPrice } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const { business, purchase, postpurchase, taxServices } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { product } = taxServices,\n    { zbBizTaxPrep, zbTaxAdviceBizTaxPrep } = purchase,\n    { purchaseTaxAdviceBizTaxPrep, taxAdviceBizTaxPrepMonthly } = postpurchase,\n    isPrePurchase = zbBizTaxPrep,\n    isBundled = zbTaxAdviceBizTaxPrep || purchaseTaxAdviceBizTaxPrep,\n    isMonthly = standalone || isPrePurchase || (purchaseTaxAdviceBizTaxPrep && taxAdviceBizTaxPrepMonthly);\n\n  const isStandaloneBundle = product === 'zb_tax_advice_biztax_prep';\n  const addStandaloneBundle = standalone && isStandaloneBundle;\n\n  if (!addStandaloneBundle && !zbBizTaxPrep && !purchaseTaxAdviceBizTaxPrep) {\n    return null;\n  }\n\n  let price = 0;\n  if (!isStandaloneBundle && !isBundled) {\n    price = isMonthly ? getZbBizTaxPrepMonthlyPrice() : getZbBizTaxPrepYearlyPrice();\n  }\n\n  return {\n    fees: 0,\n    service: 'zb_biztax_prep',\n    jurisdiction,\n    price,\n    period: isMonthly ? 12 : 1,\n    term: 12,\n    is_add_on: false\n  };\n};\n\n  /* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone) => {\n  const { business, purchase, postpurchase, taxServices } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { product } = taxServices,\n    { zbBizTaxPrep } = purchase,\n    { purchaseTaxAdviceBizTaxPrep } = postpurchase;\n\n  const isStandaloneBundle = product === 'zb_tax_advice_biztax_prep';\n  const addStandaloneBundle = standalone && isStandaloneBundle;\n\n  if (!addStandaloneBundle && !zbBizTaxPrep && !purchaseTaxAdviceBizTaxPrep) {\n    return null;\n  }\n\n  return {\n    service: 'zb_biztax_prep',\n    jurisdiction\n  };\n};\n","import { getZbTaxAdviceBizTaxPrepMonthlyPrice, getZbTaxAdviceBizTaxPrepYearlyPrice } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const { business, purchase, postpurchase, taxServices } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { product } = taxServices,\n    { zbTaxAdviceBizTaxPrep } = purchase,\n    { purchaseTaxAdviceBizTaxPrep, taxAdviceBizTaxPrepMonthly } = postpurchase,\n    isPrePurchase = zbTaxAdviceBizTaxPrep,\n    isMonthly = standalone || isPrePurchase || (purchaseTaxAdviceBizTaxPrep && taxAdviceBizTaxPrepMonthly);\n\n  const isStandaloneBundle = product === 'zb_tax_advice_biztax_prep';\n  const addStandaloneBundle = standalone && isStandaloneBundle;\n\n  if (!addStandaloneBundle &&\n    !zbTaxAdviceBizTaxPrep &&\n    !purchaseTaxAdviceBizTaxPrep\n  ) {\n    return null;\n  }\n\n  const price = isMonthly ? getZbTaxAdviceBizTaxPrepMonthlyPrice() : getZbTaxAdviceBizTaxPrepYearlyPrice();\n\n  return {\n    fees: 0,\n    service: 'zb_tax_advice_biztax_prep',\n    jurisdiction,\n    price,\n    period: isMonthly ? 12 : 1,\n    term: 12,\n    is_add_on: false\n  };\n};\n\n  /* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone) => {\n  const { business, purchase, postpurchase, taxServices } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { product } = taxServices,\n    { zbTaxAdviceBizTaxPrep } = purchase,\n    { purchaseTaxAdviceBizTaxPrep } = postpurchase;\n\n  const isStandaloneBundle = product === 'zb_tax_advice_biztax_prep';\n  const addStandaloneBundle = standalone && isStandaloneBundle;\n\n  if (!addStandaloneBundle && !zbTaxAdviceBizTaxPrep && !purchaseTaxAdviceBizTaxPrep) {\n    return null;\n  }\n\n  return {\n    service: 'zb_tax_advice_biztax_prep',\n    jurisdiction\n  };\n};\n","import { getPlanLevel, getEINBizDocsOaBundlePrice } from '../../utils/PlanService';\n\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { einBizDocsOaBundle, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction, type: businessType } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'ein_bizdocs_oa_bundle',\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  const\n    price = plan ? pricing.servicePrice : getEINBizDocsOaBundlePrice(businessType),\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    fees = 0;\n\n  if (!standalone && !einBizDocsOaBundle) {\n    return null;\n  }\n  return { service, jurisdiction, price, coupon, fees, is_add_on: !standalone };\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const { business, purchase } = registration,\n    { einBizDocsOaBundle } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'ein_bizdocs_oa_bundle';\n\n  if (!standalone && !einBizDocsOaBundle) {\n    return null;\n  }\n\n  return {\n    service,\n    standalone: false,\n    jurisdiction,\n    is_new_business: !standalone,\n    is_auto_included: false\n  };\n};\n","import { getPlanLevel, getBizDocsBlrBundlePrice } from '../../utils/PlanService';\n\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { bizDocsBlrBundle, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction, type: businessType } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'bizdocs_blr_bundle',\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  const\n    price = plan ? pricing.servicePrice : getBizDocsBlrBundlePrice(businessType),\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    fees = 0;\n\n  if (!standalone && !bizDocsBlrBundle) {\n    return null;\n  }\n\n  return { service, jurisdiction, price, coupon, fees, is_add_on: !standalone };\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const { business, purchase } = registration,\n    { bizDocsBlrBundle } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'bizdocs_blr_bundle';\n\n  if (!standalone && !bizDocsBlrBundle) {\n    return null;\n  }\n\n  return {\n    service,\n    jurisdiction,\n    standalone: false,\n    is_new_business: !standalone,\n    is_auto_included: false\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\nimport _capitalize from 'lodash/capitalize';\n\nimport {\n  buildEntityName, convertAddress, convertContactIfIdentified, convertDirectors, convertOfficers,\n  convertRegisteredAgent, convertAuthorizedSignatory, calculateBusinessTotal, getPricingInformation, decorateAccount\n} from './BaseDataConverter';\nimport { convertOrderItem as convertAnonymityOrderItem, convertOrderData as convertAnonymityOrderData } from './AnonymityConverter';\nimport { convertOrderItem as convertBankingOrderItem, convertOrderData as convertBankingOrderData } from './BankingConverter';\nimport { convertOrderItem as convertBankingResolutionOrderItem, convertOrderData as convertBankingResolutionOrderData } from './BankingResolutionDataConverter';\nimport { convertOrderItem as convertBasicEmailOrderItem, convertOrderData as convertBasicEmailOrderData } from './BasicEmailConverter';\nimport { convertBusinessData as convertBLRBusinessData } from './BusLicDataConverter';\nimport { convertOrderItem as convertOpAgreementOrderItem, convertOrderData as convertOpAgreementOrderData } from './OpAgreeDataConverter';\nimport { convertOrderItem as convertCorpDocsOrderItem, convertOrderData as convertCorpDocsOrderData } from './CorporateDocsDataConverter';\nimport { convertOrderItem as convertCPAConsultOrderItem, convertOrderData as convertCPAConsultOrderData } from './CPAConsultConverter';\nimport { convertOrderItem as convertDomainNameOrderItem, convertOrderData as convertDomainNameOrderData } from './DomainNameDataConverter';\nimport { convertOrderItem as convertDomainNamePrivacyOrderItem, convertOrderData as convertDomainNamePrivacyOrderData } from './DomainNamePrivacyDataConverter';\nimport { convertOrderItem as convertEINOrderItem, convertOrderData as convertEINOrderData, convertSSN } from './EINDataConverter';\nimport { convertOrderItem as convertExpediteOrderItem, convertOrderData as convertExpediteOrderData } from './ExpediteDataConverter';\nimport { convertOrderItem as convertExpediteUpsellOrderItem, convertOrderData as convertExpediteUpsellOrderData } from './ExpediteUpsellDataConverter';\nimport { convertOrderItem as convertInitialCPAScreeningOrderItem, convertOrderData as convertInitialCPAScreeningOrderData } from './InitialCPAScreeningConverter';\nimport { convertOrderItem as convertNYPubOrderItem, convertOrderData as convertNYPubOrderData } from './NYPubDataConverter';\nimport { convertOrderItem as convertRegAgentOrderItem, convertOrderData as convertRegAgentOrderData } from './RegAgentDataConverter';\nimport { convertOrderItem as convertPlanLevelOrderItem, convertOrderData as convertPlanLevelOrderData } from './PlanLevelDataConverter';\nimport { convertOrderItem as convertSCorpDesignationOrderItem, convertOrderData as convertSCorpDesignationOrderData } from './SCorpDesignationConverter';\nimport { convertOrderItem as convertStaticWebsiteOrderItem, convertOrderData as convertStaticWebsiteOrderData } from './StaticWebsiteDataConverter';\nimport { convertOrderItem as convertTaxPreparationOrderItem, convertOrderData as convertTaxPreparationOrderData } from './TaxPreparationConverter';\nimport { convertOrderItem as convertWorryFreeOrderItem, convertOrderData as convertWorryFreeOrderData } from './WorryFreeDataConverter';\nimport { convertOrderItem as convertAnnualReportServiceOrderItem, convertOrderData as convertAnnualReportServiceOrderData } from './AnnualReportServiceConverter';\nimport { convertOrderItem as convertAccountant1800OrderItem, convertOrderData as convertAccountant1800OrderData } from './Accountant1800Converter';\nimport { convertOrderItem as convertWebsiteToolsBundleOrderItem, convertOrderData as convertWebsiteToolsBundleOrderData } from './WebsiteToolsBundleConverter';\nimport { convertOrderItem as convertEINDocsBundleOrderItem, convertOrderData as convertEINDocsBundleOrderData } from './EINBusinessDocsBundleConverter';\nimport { convertOrderItem as convertZBMProOrderItem, convertOrderData as convertZBMProOrderData } from './ZBMProDataConverter';\nimport { convertOrderItem as convertTruicZBMProOrderItem, convertOrderData as convertTruicZBMProOrderData } from './TruicZBMProDataConverter';\nimport { convertOrderItem as convertZbBankingPreferredOrderItem, convertOrderData as convertZbBankingPreferredOrderData } from './ZbBankingPreferredDataConverter';\nimport { convertOrderItem as convertZbTaxAdviceOrderItem, convertOrderData as convertZbTaxAdviceOrderData } from './zbTaxAdviceConverter';\nimport { convertOrderItem as convertZbBizPrepOrderItem, convertOrderData as convertZbBizPrepOrderData } from './zbBizTaxPrepConverter';\nimport { convertOrderItem as convertZbTaxAdviceBizTaxPrepOrderItem, convertOrderData as convertZbTaxAdviceBizTaxPrepOrderData } from './zbTaxAdviceBizTaxPrepConverter';\nimport { convertOrderItem as convertEinBizDocsOaBundleOrderItem, convertOrderData as convertEinBizDocsOaBundleOrderData } from './einBizDocsOaBundleConverter';\nimport { convertOrderItem as convertBizDocsBlrBundleOrderItem, convertOrderData as convertBizDocsBlrBundleOrderData } from './bizDocsBlrBundleConverter';\n\nimport { ACTIONS, URLS } from '../../constants/complete_corp';\nimport { getEntryPointGroup, isPF } from '../../utils/PartnerUtils';\n\nconst getRemaginePlanName = (planLevel, industry) => {\n  if (planLevel === 'level2') {\n    return `${_capitalize(industry)} Corporation`;\n  }\n  return `${planLevel === 'level3' ? 'Premium' : 'Starter'} Corporation`;\n};\n\nconst\n  /* eslint-disable camelcase */\n  convertAccount = (registration, filingFees, expediteFees) => {\n    const\n      { business, customer, lead, purchase } = registration,\n      { firstName: first_name, middleName: middle_name, lastName: last_name, suffix, email, phoneNumber: phone, password } = customer,\n      { cardNumber: number, cardToken: card_token, expMonth, expYear, cvc } = customer,\n      { leadUUID: lead_uuid } = lead;\n\n    const amount = calculateBusinessTotal(business, purchase, filingFees, expediteFees),\n      card = { number, exp_month: parseInt(expMonth, 10), exp_year: 2000 + parseInt(expYear, 10), cvc, amount, default: true },\n      cardOrToken = card_token ? { card_token } : { card };\n    return decorateAccount(_assign({ lead_uuid, first_name, middle_name, last_name, suffix, email: email ? email.toLowerCase() : '', phone, password, international: false, signup_client: 'web_v2', ...cardOrToken }, convertAddress(customer)));\n  };\n/* eslint-enable camelcase */\n\nexport const convertOrderItem = (registration, filingFees) => {\n  const\n    { business } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'corp_formation',\n    typeFees = filingFees[jurisdiction].corp_formation,\n    price = typeFees.price,\n    fees = typeFees.fees;\n\n  return { service, price, fees, jurisdiction, is_add_on: false };\n};\n\n/* eslint-disable camelcase, max-statements */\nexport const convertOrderData = (registration, isInternational) => {\n  const\n    { blr, business, businessAddresses, contact, directors, officers, order, registeredAgent, remagine, page, purchase, postpurchase } = registration,\n    { name, indicator, alternates, description: business_purpose, requestedJurisdiction: jurisdiction, phoneNumber: phone } = business,\n    { status, authorizedShares, valuePerShare, businessActiivty: activity, domesticJurisdiction, foreignJurisdictions, authorizedSignatory, hasMoreThanOneShare } = business,\n    { goals, hasEmployees, homeBased, industry, launchStatus, priorExperience } = remagine,\n    { estimatedFormationDate = '', planLevel } = purchase,\n    { id = '' } = order,\n    { completedAction, completedUrl, completedActionIndex } = page,\n    authSharesNum = authorizedShares.replace(/,/g, ''),\n    valuePerShareNum = valuePerShare.substring(1).replace(/,/g, ''),\n    { principal: principalAddress, mailing: mailingAddress, physical: physicalAddress } = businessAddresses,\n    entityName = buildEntityName(name, indicator),\n    service = 'corp_formation',\n    data = _assign(\n      {\n        service,\n        entity_name: entityName,\n        alternates,\n        business_purpose,\n        jurisdiction,\n        principal_address: convertAddress(principalAddress),\n        mailing_address: convertAddress(mailingAddress),\n        address: convertAddress(physicalAddress),\n        phone,\n        estimated_formation_date: estimatedFormationDate,\n        authorized_shares: authSharesNum,\n        has_more_than_one_share: hasMoreThanOneShare,\n        par_value: valuePerShareNum,\n        activity,\n\n        // Personalization data\n        goals,\n        has_employees: hasEmployees,\n        home_based: homeBased,\n        industry,\n        launch_status: launchStatus,\n        prior_experience: priorExperience,\n\n        // Used with standalone RA\n        domestic_jurisdiction: domesticJurisdiction,\n        domestic_entity: true,\n        foreign_jurisdictions: foreignJurisdictions,\n        domestic_filing_date: '',\n        state_id: '',\n        plan_partner: getEntryPointGroup() || '',\n        entry_point_group: getEntryPointGroup() || ''\n      },\n      isPF() ? { plan_name: getRemaginePlanName(planLevel, industry) } : {},\n      convertAuthorizedSignatory(authorizedSignatory),\n      convertContactIfIdentified(contact),\n      convertDirectors(directors),\n      convertOfficers(officers),\n      convertRegisteredAgent(registeredAgent, business, isInternational ? { registeredAgent: true } : purchase)\n    );\n\n  if (status === 'incomplete') {\n    if (postpurchase.purchaseBLR !== null) {\n      data.purchase_blr = postpurchase.purchaseBLR;\n      if (postpurchase.purchaseBLR) {\n        data.blr_data = { business_data: convertBLRBusinessData(blr) };\n      }\n    }\n    if (postpurchase.purchaseRA !== null) {\n      data.purchase_ra = postpurchase.purchaseRA;\n    }\n    if (postpurchase.purchaseDBAEntity !== null) {\n      data.purchase_dba_entity = postpurchase.purchaseDBAEntity;\n      data.dba_entities = postpurchase.dbaEntities;\n      if (postpurchase.purchaseDBACompliance !== null) {\n        data.purchase_dba_compliance = postpurchase.purchaseDBACompliance;\n      }\n    }\n    if (postpurchase.purchaseCD !== null) {\n      data.purchase_cd = postpurchase.purchaseCD;\n    }\n    if (postpurchase.purchaseBankOfAmericaOffer !== null) {\n      data.purchase_bank_of_america_offer = postpurchase.purchaseBankOfAmericaOffer;\n    }\n    if (postpurchase.purchaseZbBankingPreferredOffer !== null) {\n      data.purchase_zb_banking_preferred_offer = postpurchase.purchaseZbBankingPreferredOffer;\n    }\n    if (postpurchase.purchaseFFD !== null) {\n      data.purchase_ffd = postpurchase.purchaseFFD;\n      data.filing_action = postpurchase.filingAction;\n      if (postpurchase.purchaseFFD && postpurchase.futureFilingDate) {\n        data.future_filing_date = postpurchase.futureFilingDate;\n      }\n    }\n    if (postpurchase.purchaseWFGIR !== null) {\n      data.purchase_wfgir = postpurchase.purchaseWFGIR;\n    }\n    if (postpurchase.purchaseVBA !== null) {\n      data.purchase_vba = postpurchase.purchaseVBA;\n    }\n    if (postpurchase.purchaseVanityProduct !== null) {\n      data.purchase_vanity_product = postpurchase.purchaseVanityProduct;\n    }\n    if (postpurchase.purchaseTaxAdviceBizTaxPrep !== null || postpurchase.purchaseTaxAdvice !== null) {\n      data.purchase_tax_advice = postpurchase.purchaseTaxAdvice;\n      data.tax_advice_monthly = postpurchase.taxAdviceMonthly;\n      data.purchase_tax_advice_biztax_prep = postpurchase.purchaseTaxAdviceBizTaxPrep;\n      data.tax_advice_biztax_prep_monthly = postpurchase.taxAdviceBizTaxPrepMonthly;\n    }\n    if (postpurchase.purchaseZBMPro !== null) {\n      data.purchase_zbmpro = postpurchase.purchaseZBMPro;\n      data.zbmpro_monthly = postpurchase.zbmProMonthly;\n    }\n    if (postpurchase.purchaseBusinessKit !== null) {\n      data.purchase_business_kit = postpurchase.purchaseBusinessKit;\n    }\n    if (postpurchase.purchaseBOF !== null) {\n      data.purchase_bof = postpurchase.purchaseBOF;\n      data.bof_ongoing = postpurchase.bofOngoing;\n    }\n    if (postpurchase.purchaseExpenseTrackerAndTaxFiling !== null) {\n      data.expense_tracking_with_tax_filing = postpurchase.purchaseExpenseTrackerAndTaxFiling;\n    }\n    data.completed_action = id ? completedAction : ACTIONS.START_COMP;\n    data.completed_url = id ? completedUrl : URLS.START_COMP;\n    data.completed_action_index = id ? completedActionIndex : 5100;\n  }\n  return data;\n};\n/* eslint-enable camelcase, max-statements */\n\nexport const buildOrderData = (registration, filingFees, expediteFees) => {\n  const\n    { purchase: { banking } } = registration;\n\n  return _compact([\n    convertOrderData(registration),\n    convertRegAgentOrderData(registration, false, filingFees),\n    convertAnonymityOrderData(registration, false, filingFees),\n    convertBankingResolutionOrderData(registration, false),\n    ...convertBasicEmailOrderData(registration, false),\n    convertCorpDocsOrderData(registration, false, false),\n    ...convertDomainNameOrderData(registration, false),\n    ...convertDomainNamePrivacyOrderData(registration, false),\n    convertEINOrderData(registration, false),\n    convertNYPubOrderData(registration, false),\n    convertExpediteOrderData(registration, false, expediteFees),\n    convertExpediteUpsellOrderData(registration, false, expediteFees),\n    convertStaticWebsiteOrderData(registration, false, filingFees),\n    convertWorryFreeOrderData(registration, false),\n    convertOpAgreementOrderData(registration, false, filingFees),\n    convertTaxPreparationOrderData(registration, false, filingFees),\n    convertCPAConsultOrderData(registration, false, filingFees),\n    convertInitialCPAScreeningOrderData(registration, false, filingFees),\n    convertSCorpDesignationOrderData(registration, false, filingFees),\n    convertPlanLevelOrderData(registration, false),\n    convertAnnualReportServiceOrderData(registration, false),\n    banking ? convertBankingOrderData(registration, false) : null,\n    convertAccountant1800OrderData(registration),\n    convertEINDocsBundleOrderData(registration, false, filingFees),\n    convertWebsiteToolsBundleOrderData(registration, false, filingFees),\n    convertZBMProOrderData(registration, false, filingFees),\n    convertTruicZBMProOrderData(registration, false, filingFees),\n    convertZbBankingPreferredOrderData(registration, false),\n    convertZbTaxAdviceOrderData(registration, false),\n    convertZbBizPrepOrderData(registration, false),\n    convertZbTaxAdviceBizTaxPrepOrderData(registration, false),\n    convertEinBizDocsOaBundleOrderData(registration, false),\n    convertBizDocsBlrBundleOrderData(registration, false)\n  ]);\n};\n\nexport const buildOrder = (registration, filingFees, expediteFees, isUpdate) => {\n  const\n    { business, purchase, remagine: { useBNR = false } } = registration,\n    { status: businessStatus } = business,\n    { banking } = purchase,\n    orderStatus = businessStatus,\n    orderData = buildOrderData(registration, filingFees, expediteFees),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData\n    }, convertSSN(registration), getPricingInformation(registration.order));\n\n  if (isUpdate) {\n    order.order_uuid = registration.order.id;\n    return { order };\n  }\n\n  const\n    { id: businessId } = business,\n    accountId = registration.customer.id || '',\n    account = accountId ? null : convertAccount(registration, filingFees, expediteFees);\n\n  order.order_items = _compact([\n    convertOrderItem(registration, filingFees),\n    convertRegAgentOrderItem(registration, false, filingFees),\n    convertAnonymityOrderItem(registration, false, filingFees),\n    convertBankingResolutionOrderItem(registration, false, filingFees),\n    ...convertBasicEmailOrderItem(registration, false),\n    convertCorpDocsOrderItem(registration, false, false, filingFees),\n    ...convertDomainNameOrderItem(registration, false),\n    ...convertDomainNamePrivacyOrderItem(registration, false),\n    convertEINOrderItem(registration, false, filingFees),\n    convertExpediteOrderItem(registration, false, expediteFees),\n    convertExpediteUpsellOrderItem(registration, false, expediteFees),\n    convertNYPubOrderItem(registration, false, filingFees),\n    convertStaticWebsiteOrderItem(registration, false),\n    convertWorryFreeOrderItem(registration, false, filingFees),\n    convertOpAgreementOrderItem(registration, false, filingFees),\n    convertTaxPreparationOrderItem(registration, false, filingFees),\n    convertCPAConsultOrderItem(registration, false, filingFees),\n    convertInitialCPAScreeningOrderItem(registration, false, filingFees),\n    convertSCorpDesignationOrderItem(registration, false, filingFees),\n    convertPlanLevelOrderItem(registration, false),\n    convertAnnualReportServiceOrderItem(registration, false),\n    banking ? convertBankingOrderItem(registration, false) : null,\n    convertAccountant1800OrderItem(registration),\n    convertEINDocsBundleOrderItem(registration, false, filingFees),\n    convertWebsiteToolsBundleOrderItem(registration, false),\n    convertZBMProOrderItem(registration, false, filingFees),\n    convertTruicZBMProOrderItem(registration, false, filingFees),\n    convertZbBankingPreferredOrderItem(registration, false),\n    convertZbTaxAdviceOrderItem(registration, false),\n    convertZbBizPrepOrderItem(registration, false, filingFees),\n    convertZbTaxAdviceBizTaxPrepOrderItem(registration, false, filingFees),\n    convertEinBizDocsOaBundleOrderItem(registration, false),\n    convertBizDocsBlrBundleOrderItem(registration, false)\n  ]);\n\n  if (accountId) {\n    if (businessId) {\n      order.business_entity_uuid = businessId;\n    }\n    if (useBNR) {\n      return {\n        account_uuid: accountId,\n        business_entity_uuid: businessId,\n        order\n      };\n    }\n    return {\n      account_uuid: accountId,\n      order\n    };\n  }\n  return {\n    account,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { convertAddress, convertRegisteredAgent, convertDirectors, convertMembers, getPricingInformation, decorateAccount, convertContact } from './BaseDataConverter';\nimport { convertOrderItem as convertEINOrderItem, convertOrderData as convertEINOrderData, convertSSN } from './EINDataConverter';\nimport { convertOrderItem as convertStaticWebsiteOrderItem, convertOrderData as convertStaticWebsiteOrderData } from './StaticWebsiteDataConverter';\nimport { ACTIONS, URLS } from '../../constants/complete_dbaentity';\n\nimport {\n  getDBAEntityPrice,\n  getDBAEntityFees\n} from '../../utils/ProductService';\n\n/* eslint-disable camelcase */\n\nconst\n  getEntityType = (businessType) => {\n    if (businessType === 'CORP') {\n      return 'corp';\n    }\n    if (businessType === 'SOLE') {\n      return 'sole_prop';\n    }\n    return 'llc';\n  },\n  convertAccount = (registration) => {\n    const\n      { customer, lead } = registration,\n      { firstName: first_name, middleName: middle_name, lastName: last_name, suffix, email, phoneNumber: phone, password, cardToken: card_token } = customer,\n      { leadUUID: lead_uuid } = lead;\n\n    return decorateAccount(_assign({ lead_uuid, first_name, middle_name, last_name, suffix, email: email ? email.toLowerCase() : '', phone, password, international: false, signup_client: 'web_v2', card_token }));\n  };\n\nexport const convertOrderItem = (registration, standalone, filingFees) => {\n  const\n    { dbaEntity } = registration,\n    { domesticJurisdiction: jurisdiction, county, city } = dbaEntity,\n    fees = getDBAEntityFees(jurisdiction, county, city, filingFees) || 0,\n    service = 'dba_entity';\n\n  return { service, jurisdiction, price: getDBAEntityPrice(), fees, is_add_on: false };\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    service = 'dba_entity',\n    { businessAddresses, dbaEntity, directors, members, registeredAgent, page } = registration,\n    { completedAction, completedUrl, completedActionIndex } = page,\n    {\n      status,\n      authorizedSignatory,\n      companyId: id,\n      county,\n      city,\n      businessType,\n      businessName: entity_name,\n      parentType: parent_type,\n      dbaName: dba_name,\n      businessDescription: business_purpose,\n      businessIndustry: business_industry,\n      ownerCount: owner_count = 0,\n      stateFilingDate: jurisdiction_filing_date,\n      stateFilingNumber: jurisdiction_filing_number,\n      domesticJurisdiction: domestic_jurisdiction,\n      hasEIN: has_ein,\n      ein,\n      spFirstName,\n      spMiddleName,\n      spLastName,\n      spSuffix\n    } = dbaEntity,\n    { mailing: mailingAddress, physical: physicalAddress, principal: principalAddress } = businessAddresses,\n    entity_type = getEntityType(businessType),\n    isLLC = entity_type === 'llc',\n    isCorp = entity_type === 'corp',\n    isSoleProp = entity_type === 'sole_prop';\n\n  const data = _assign(\n    {\n      service,\n      entity_type,\n      jurisdiction: domestic_jurisdiction,\n      county,\n      city,\n      parent_type,\n      dba_name,\n      principal_address: convertAddress(principalAddress),\n      mailing_address: convertAddress(mailingAddress),\n      address: convertAddress(physicalAddress),\n      business_purpose,\n      business_industry,\n      owner_count,\n      jurisdiction_filing_date,\n      jurisdiction_filing_number,\n      domestic_entity: true,\n      domestic_jurisdiction,\n      has_ein,\n      ein,\n      standalone,\n      is_new_business: false,\n      authorized_signatory: authorizedSignatory ? _assign(convertContact(authorizedSignatory).contact, { title: authorizedSignatory.title }) : null\n    },\n    isCorp ? convertDirectors(directors) : {},\n    isCorp ? { officers: [] } : {},\n    isLLC || isSoleProp ? convertMembers(members) : {},\n    isLLC ? { managers: [] } : {},\n    isSoleProp ? { sole_proprietor: { first_name: spFirstName, middle_name: spMiddleName, last_name: spLastName, suffix: spSuffix } } : {},\n    !isSoleProp ? convertRegisteredAgent(registeredAgent, {}, { registeredAgent: false, planLevel: '' }) : {});\n\n  if (standalone) {\n    if (!id) {\n      data.entity_name = entity_name;\n    }\n    if (status === 'incomplete') {\n      if (id && entity_name) {\n        data.entity_name = entity_name;\n      }\n      data.completed_action = id ? completedAction : ACTIONS.START;\n      data.completed_url = id ? completedUrl : URLS.START;\n      data.completed_action_index = id ? completedActionIndex : 5800;\n    }\n  }\n  return data;\n};\n\nexport const buildOrder = (registration, filingFees, isUpdate) => {\n  const\n    { dbaEntity } = registration,\n    { status: orderStatus } = dbaEntity;\n\n  const orderData = _compact([\n      convertOrderData(registration, true),\n      convertEINOrderData(registration, false),\n      convertStaticWebsiteOrderData(registration, false)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData\n    }, convertSSN(registration), getPricingInformation(registration.order));\n\n  if (isUpdate) {\n    order.order_uuid = registration.order.id;\n    return { order };\n  }\n\n  const\n    { companyId, simulatedCompanyId } = dbaEntity,\n    accountId = registration.customer.id || '',\n    account = accountId ? null : convertAccount(registration);\n\n  order.order_items = _compact([\n    convertOrderItem(registration, true, filingFees),\n    convertEINOrderItem(registration, false, filingFees),\n    convertStaticWebsiteOrderItem(registration, false)\n  ]);\n\n  if (accountId) {\n    if (companyId || simulatedCompanyId) {\n      order.business_entity_uuid = companyId || simulatedCompanyId;\n    }\n    return {\n      account_uuid: accountId,\n      order\n    };\n  }\n  return {\n    account,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport { getPricingInformation } from './BaseDataConverter';\nimport { isDBAEntityEnabled, getDBAEntityPrice, getDBAEntityFees } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration, standalone, filingFees) => {\n  const { domesticJurisdiction } = registration.dbaEntity;\n  const service = 'dba_entity';\n\n  if (!isDBAEntityEnabled()) {\n    return null;\n  }\n\n  return {\n    service,\n    jurisdiction: domesticJurisdiction,\n    price: getDBAEntityPrice(),\n    fees: getDBAEntityFees(domesticJurisdiction, '', '', filingFees) || 0,\n    is_add_on: false\n  };\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    service = 'dba_entity',\n    { dbaEntity } = registration,\n    { domesticJurisdiction, dbaName } = dbaEntity;\n\n  if (!isDBAEntityEnabled()) {\n    return null;\n  }\n\n  return {\n    service,\n    jurisdiction: domesticJurisdiction,\n    dba_name: dbaName,\n    county: '',\n    city: '',\n    standalone,\n    is_new_business: false\n  };\n};\n\nexport const buildOrder = (registration, accountId, filingFees) => {\n  const\n    orderStatus = 'complete',\n    orderData = [ convertOrderData(registration, true) ],\n    orderItems = [ convertOrderItem(registration, true, filingFees) ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.dbaEntity.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n\n","import { isDBAComplianceEnabled, getDBAComplianceYearlyPrice } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration, standalone, filingFees, fromDBAStandalone) => {\n  const\n    { business, postpurchase, dbaEntity } = registration,\n    { inProgress, requestedJurisdiction, dbaCompliance } = dbaEntity,\n    { requestedJurisdiction: ppRequestedJurisdiction } = business,\n    { purchaseDBACompliance: ppPurchaseDBACompliance } = postpurchase,\n    jurisdiction = inProgress || fromDBAStandalone ? requestedJurisdiction : ppRequestedJurisdiction,\n    purchaseDBACompliance = inProgress || fromDBAStandalone ? dbaCompliance : ppPurchaseDBACompliance,\n    typeFees = filingFees[jurisdiction].dba_compliance,\n    fees = typeFees ? typeFees.fees : 0,\n    service = 'dba_compliance';\n\n  if (!isDBAComplianceEnabled() || !purchaseDBACompliance) {\n    return null;\n  }\n  return { service, jurisdiction, price: getDBAComplianceYearlyPrice(), fees, term: 12, period: 1, is_add_on: false };\n};\n\nexport const convertOrderData = (registration, standalone, fromDBAStandalone) => {\n  const\n    service = 'dba_compliance',\n    { business, postpurchase, dbaEntity } = registration,\n    { inProgress, requestedJurisdiction, dbaCompliance } = dbaEntity,\n    { requestedJurisdiction: ppRequestedJurisdiction } = business,\n    { purchaseDBACompliance: ppPurchaseDBACompliance } = postpurchase,\n    jurisdiction = inProgress || fromDBAStandalone ? requestedJurisdiction : ppRequestedJurisdiction,\n    purchaseDBACompliance = inProgress || fromDBAStandalone ? dbaCompliance : ppPurchaseDBACompliance;\n\n  return purchaseDBACompliance && isDBAComplianceEnabled() ? {\n    service,\n    jurisdiction,\n    standalone,\n    is_new_business: false\n  } : null;\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\nimport _map from 'lodash/map';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { convertOrderItem as convertDBAComplianceOrderItem, convertOrderData as convertDBAComplianceOrderData } from './DBAComplianceDataConverter';\nimport { isDBAEntityEnabled, getDBAEntityPrice, getDBAEntityFees } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration, standalone, filingFees) => {\n  const\n    { business, postpurchase, dbaEntity } = registration,\n    { inProgress, requestedJurisdiction, dbaEntities: saEntities } = dbaEntity,\n    { requestedJurisdiction: busReqJurisdiction } = business,\n    { purchaseDBAEntity, dbaEntities: ppEntities } = postpurchase,\n    jurisdiction = inProgress ? requestedJurisdiction : busReqJurisdiction,\n    dbaEntities = inProgress ? saEntities : ppEntities,\n    service = 'dba_entity';\n\n  if (!isDBAEntityEnabled() || !(inProgress || purchaseDBAEntity)) {\n    return [];\n  }\n  return _map(dbaEntities, (entity) => {\n    const { county, city } = entity,\n      fees = getDBAEntityFees(jurisdiction, county, city, filingFees) || 0;\n\n    return { service, jurisdiction, price: getDBAEntityPrice(), fees, is_add_on: false };\n  });\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    service = 'dba_entity',\n    { business, postpurchase, dbaEntity } = registration,\n    { inProgress, requestedJurisdiction, dbaEntities: saEntities } = dbaEntity,\n    { requestedJurisdiction: busReqJurisdiction } = business,\n    { purchaseDBAEntity, dbaEntities: ppEntities } = postpurchase,\n    jurisdiction = inProgress ? requestedJurisdiction : busReqJurisdiction,\n    dbaEntities = inProgress ? saEntities : ppEntities;\n\n  if (!isDBAEntityEnabled() || !(inProgress || purchaseDBAEntity)) {\n    return [];\n  }\n\n  return _map(dbaEntities, (entity) => {\n    return {\n      service,\n      jurisdiction,\n      dba_name: entity.name,\n      county: entity.county,\n      city: entity.city,\n      standalone,\n      is_new_business: false\n    };\n  });\n};\n\nexport const buildOrder = (registration, accountId, filingFees) => {\n  const\n    orderStatus = 'complete',\n    orderData = _compact([\n      ...convertOrderData(registration, true),\n      convertDBAComplianceOrderData(registration, false)\n    ]),\n    orderItems = _compact([\n      ...convertOrderItem(registration, true, filingFees),\n      convertDBAComplianceOrderItem(registration, false, filingFees)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.dbaEntity.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { buildEntityName, convertAddress, convertUser, convertContactIfIdentified, getPricingInformation } from './BaseDataConverter';\nimport { convertSSN } from './EINDataConverter';\nimport { ACTIONS, URLS } from '../../constants/complete_ein';\nimport { getPlanLevel } from '../../utils/PlanService';\nimport { getEINPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\nimport { getOrder } from '../../utils/selectors';\n\nconst getPricingAndCouponAmount = (registration) => {\n  const\n    { business, purchase, coupons } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    service = 'ein_creation',\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n  return { pricing, plan };\n};\n\nconst\n  convertTaxData = (ein) => {\n    const { llcMarried, llcSingleMember, taxedAsSCorp } = ein,\n      taxInfo = {};\n\n    if (llcMarried !== null) {\n      taxInfo.members_are_married = llcMarried;\n    }\n    if (llcSingleMember !== null) {\n      taxInfo.taxed_as_single_member_llc = llcSingleMember;\n    }\n    if (taxedAsSCorp !== null) {\n      taxInfo.taxed_as_s_corp = taxedAsSCorp;\n    }\n\n    return taxInfo;\n  },\n\n  /* eslint-disable max-statements */\n  convertBusinessData = (ein) => {\n    const { gambling, atf, employeesW2, w2WagesPaidDate, w2AgriculturalEmployeeCount, w2OtherEmployeeCount, w2WagesLessThan1000, corpCareOf, corpClosingMonth, startDate } = ein,\n      { motorVehicle, motorVehicleWeight, businessForm720, businessActivity1, businessActivity2, businessActivity3, businessActivity4, businessActivity5, businessActivitySpecify } = ein,\n      businessData = {\n        activity: {\n          level_1: businessActivity1,\n          level_2: businessActivity2,\n          level_3: businessActivity3,\n          level_4: businessActivity4,\n          level_5: businessActivity5,\n          specify: businessActivitySpecify\n        }\n      };\n\n    if (startDate) {\n      const startDatePieces = startDate.split('/'),\n        startDateConverted = startDatePieces.length > 2 ? `${startDatePieces[2]}-${startDatePieces[0]}-${startDatePieces[1]}` : '';\n\n      businessData.start_date = startDateConverted;\n    }\n    if (gambling !== null) {\n      businessData.gambling = gambling;\n    }\n    if (atf !== null) {\n      businessData.alcohol_tobacco_firearms = atf;\n    }\n    if (employeesW2 !== null) {\n      businessData.employees_with_w2 = employeesW2;\n      if (employeesW2) {\n        businessData.w2_wages_paid_date = w2WagesPaidDate;\n        businessData.w2_agricultural_employees_count = w2AgriculturalEmployeeCount;\n        businessData.w2_other_employees_count = w2OtherEmployeeCount;\n        businessData.w2_wages_lt_1000 = w2WagesLessThan1000;\n      }\n    }\n    if (motorVehicle !== null) {\n      businessData.highway_vehicle = motorVehicle;\n      if (motorVehicleWeight !== null) {\n        businessData.highway_vehicle_over_55000 = motorVehicleWeight;\n      }\n    }\n    if (businessForm720 !== null) {\n      businessData.files_form_720 = businessForm720;\n    }\n    businessData.corp_care_of = corpCareOf;\n    businessData.corp_closing_month = corpClosingMonth;\n    return businessData;\n  },\n  /* eslint-enable max-statements */\n\n  convertResponsibleParty = (banking) => {\n    const { responsibleParty, hasITIN } = banking;\n\n    let party = {};\n\n    if (responsibleParty) {\n      party = convertUser(responsibleParty);\n      if (responsibleParty.companyName) {\n        party.legal_name = responsibleParty.legalName;\n        party.ein_number = responsibleParty.ein;\n      } else {\n        party.suffix = responsibleParty.suffix || '';\n        party.previous_ein = responsibleParty.previousEin;\n        party.alternate_last_names = responsibleParty.alternateLastNames;\n      }\n      party.collect_data_from_user = responsibleParty.collectDataFromUser || false;\n      party.has_ssn = hasITIN;\n    }\n\n    return party;\n  };\n\nexport const convertOrderItem = (state, standalone) => {\n  const\n    { registration } = state,\n    business = getOrder(state, 'business'),\n    { purchase } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'ein_creation',\n    servicePricing = getPricingAndCouponAmount(registration);\n\n  return {\n    service,\n    jurisdiction,\n    price: plan ? servicePricing.pricing.servicePrice : getEINPrice(),\n    coupon: plan ? servicePricing.pricing.serviceCouponAmount : 0,\n    fees: 0,\n    is_add_on: !standalone && !!plan\n  };\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (state, standalone) => {\n  const { registration } = state;\n  const { contact, ein, members, order, page, purchase, banking } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = getOrder(state, 'business'),\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null;\n\n  if (!(plan && plan.ein_creation) && !purchase.ein && !standalone) {\n    return null;\n  }\n\n  const\n    { type, name, indicator, status, description, id: businessId } = getOrder(state, 'business'),\n    { principal: principalAddress, mailing: mailingAddress, physical: physicalAddress } = getOrder(state, 'businessAddresses'),\n    { county } = physicalAddress,\n    { reason, dbas: trade_names, phoneNumber: phone } = ein,\n    { id = '' } = order,\n    { completedAction, completedUrl, completedActionIndex } = page,\n    memberCount = members.memberCount ? members.memberCount : ein.memberCount,\n    formationType = type === 'LLCX' ? 'llc' : 'corp',\n    entityType = type === 'SOLE' ? 'sole_prop' : formationType,\n    data = _assign({\n      service: 'ein_creation',\n      standalone,\n      jurisdiction,\n      domestic_jurisdiction: jurisdiction,\n      type, // Keep for backward compatibility\n      entity_type: entityType,\n      is_new_business: !standalone,\n      reason: reason || 'Started New Business',\n      member_count: memberCount || null,\n      business_purpose: description,\n      address: convertAddress(physicalAddress),\n      mailing_address: convertAddress(mailingAddress),\n      principal_address: convertAddress(principalAddress),\n      county,\n      phone,\n      trade_names,\n      tax_info: convertTaxData(ein),\n      business_data: convertBusinessData(ein),\n      responsible_party: convertResponsibleParty(banking)\n    }, convertContactIfIdentified(contact));\n\n  if (standalone) {\n    if (!businessId) {\n      data.entity_name = buildEntityName(name, indicator);\n    }\n    if (status === 'incomplete') {\n      if (businessId && name) {\n        data.entity_name = buildEntityName(name, indicator);\n      }\n      data.completed_action = id ? completedAction : ACTIONS.START_EIN;\n      data.completed_url = id ? completedUrl : URLS.START_EIN;\n      data.completed_action_index = id ? completedActionIndex : 5200;\n    }\n  }\n  return data;\n};\n/* eslint-enable camelcase */\n\nexport const buildOrder = (state, isUpdate) => {\n  const\n    status = 'complete',\n    { registration } = state,\n    { banking } = registration,\n    orderData = _compact([\n      convertOrderData(state, true)\n    ]),\n    order = _assign({\n      order_status: status,\n      order_data: orderData\n    }, convertSSN(registration), getPricingInformation(registration.order));\n\n  const\n    { companyId: businessId } = banking,\n    accountId = registration.customer.id || '';\n\n  order.order_items = _compact([\n    convertOrderItem(state, true)\n  ]);\n\n  if (isUpdate) {\n    order.order_uuid = registration.order.id;\n  }\n\n  return {\n    business_entity_uuid: businessId,\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport { getExpenseTrackerAndTaxFilingPlanYearlyPrice } from '../../utils/PlanService';\nimport { getPricingInformation } from './BaseDataConverter';\n\nexport const convertOrderItem = (registration) => {\n  const\n    { business, postpurchase, purchase } = registration,\n    { requestedJurisdiction: jurisdiction, type: businessType } = business,\n    { purchaseExpenseTrackerAndTaxFiling } = postpurchase,\n    { expenseTrackerNTaxFiling : registerExpenseTrackerNTaxFiling } = purchase,\n    service = 'expense_tracking_with_tax_filing',\n    flow = purchaseExpenseTrackerAndTaxFiling || registerExpenseTrackerNTaxFiling;\n\n  if (!flow) {\n    return [];\n  }\n  return [{\n    service,\n    jurisdiction: jurisdiction || 'TX',\n    price: getExpenseTrackerAndTaxFilingPlanYearlyPrice(businessType),\n    fees: 0,\n    term: 12,\n    period: 1,\n    is_add_on: false\n  },\n  {\n    service: 'expense_tracking',\n    jurisdiction: jurisdiction || 'TX',\n    price: 0,\n    fees: 0,\n    term: 12,\n    period: 1,\n    is_add_on: false\n  },\n  {\n    service: 'tax_filing',\n    jurisdiction: jurisdiction || 'TX',\n    price: 0,\n    fees: 0,\n    term: 12,\n    period: 1,\n    is_add_on: false\n  }];\n};\n\nexport const convertOrderData = (registration) => {\n  const service = 'expense_tracking_with_tax_filing',\n    { business, postpurchase, purchase } = registration,\n    { requestedJurisdiction } = business,\n    { purchaseExpenseTrackerAndTaxFiling } = postpurchase,\n    { expenseTrackerNTaxFiling : registerExpenseTrackerNTaxFiling } = purchase,\n    flow = purchaseExpenseTrackerAndTaxFiling || registerExpenseTrackerNTaxFiling;\n\n  return flow ? [{\n    service,\n    jurisdiction: requestedJurisdiction || 'TX'\n  },\n  {\n    service: 'expense_tracking',\n    jurisdiction: requestedJurisdiction || 'TX'\n  },\n  {\n    service: 'tax_filing',\n    jurisdiction: requestedJurisdiction || 'TX'\n  }] : [];\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData =\n      convertOrderData(registration, true),\n    orderItems =\n      convertOrderItem(registration, true),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.business.id\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getGoodStandingPrice } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration, standalone, filingFees) => {\n  const\n    { goodStanding } = registration,\n    { state: jurisdiction, useCredit, creditUUID  } = goodStanding,\n    fees = filingFees[jurisdiction].standard_good_standing.fees,\n    service = 'standard_good_standing';\n\n  if (standalone) {\n    if (useCredit) {\n      return { service, jurisdiction, price: 0, fees, is_add_on: false, credits: 1, credit_balance_uuid: creditUUID };\n    }\n    return { service, jurisdiction, price: getGoodStandingPrice(), fees, is_add_on: false };\n  }\n\n  return null;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { goodStanding } = registration,\n    { businessType, name: entity_name, domesticJurisdiction: formation_jurisdiction, state: jurisdiction } = goodStanding,\n    service = 'standard_good_standing';\n\n  return {\n    service,\n    standalone,\n    entity_name,\n    business_entity_name: entity_name,\n    business_entity_type: businessType === 'CORP' ? 'CORP' : 'LLC',\n    jurisdiction,\n    formation_jurisdiction\n  };\n};\n/* eslint-enable camelcase */\n\nexport const buildOrder = (registration, accountId, filingFees) => {\n  const\n    orderStatus = 'complete',\n    orderData = _compact([\n      convertOrderData(registration, true)\n    ]),\n    orderItems = _compact([\n      convertOrderItem(registration, true, filingFees)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.goodStanding.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPlanLevel, isAutoIncludedInPlan } from '../../utils/PlanService';\nimport { getLogoKitPrice } from '../../utils/ProductService';\nimport { getPriceAndCouponForService } from '../../utils/PricingUtils';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, purchase, coupons } = registration,\n    { logoKit = false, planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    service = 'logo_kit',\n    pricing = getPriceAndCouponForService(service, plan, coupons);\n\n  if ((plan && plan.logo_kit) || logoKit) {\n    return { service, jurisdiction, price: 0, coupon: 0, fees: 0, is_add_on: false };\n  }\n\n  const\n    price = plan ? pricing.servicePrice : getLogoKitPrice(),\n    coupon = plan ? pricing.serviceCouponAmount : 0,\n    fees = 0;\n\n  if (standalone || logoKit || isAutoIncludedInPlan(plan, 'logo_kit')) {\n    return { service, jurisdiction, price, coupon, fees, is_add_on: !standalone && !!plan };\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const { business, purchase } = registration,\n    { planLevel } = purchase,\n    { requestedJurisdiction: jurisdiction } = business,\n    plan = planLevel ? getPlanLevel(planLevel, jurisdiction) : null,\n    isAutoIncluded = !standalone && isAutoIncludedInPlan(plan, 'logo_kit');\n\n  if (!(plan && plan.logo_kit) && !purchase.logoKit && !standalone && !isAutoIncluded) {\n    return null;\n  }\n\n  const\n    data = {\n      service: 'logo_kit',\n      standalone: false,\n      jurisdiction,\n      is_new_business: !standalone,\n      is_auto_included: isAutoIncluded\n    };\n\n  return data;\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.logoKit.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","export const convertOrderItem = (registration) => {\n  const\n    { business } = registration,\n    {\n      requestedJurisdiction: jurisdiction,\n      isDAO,\n      daoMemberManaged,\n      daoRestriction,\n      daoSmartContractLink\n    } = business,\n    service = 'dao_designation';\n  if (isDAO) {\n    // console.log('dao order item', { service, jurisdiction, price: 0, coupon: 0, fees: 0, is_add_on: false, dao_smart_contract_managed: !daoMemberManaged, dao_notice_approved: daoRestriction });\n    return {\n      service,\n      jurisdiction,\n      price: 0,\n      coupon: 0,\n      fees: 0,\n      is_add_on: false,\n      dao_smart_contract_managed: !daoMemberManaged,\n      dao_notice_approved: daoRestriction,\n      dao_smart_contract_link: daoSmartContractLink\n    };\n  }\n\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business } = registration,\n    {\n      requestedJurisdiction: jurisdiction,\n      isDAO,\n      daoMemberManaged,\n      daoRestriction,\n      daoSmartContractLink\n    } = business,\n    service = 'dao_designation';\n\n  if (isDAO) {\n    // console.log('dao order data', { service, jurisdiction, standalone, is_new_business: !standalone, dao_smart_contract_managed: !daoMemberManaged, dao_notice_approved: daoRestriction });\n    return {\n      service,\n      jurisdiction,\n      standalone,\n      is_new_business:\n      !standalone,\n      dao_smart_contract_managed: !daoMemberManaged,\n      dao_notice_approved: daoRestriction,\n      dao_smart_contract_link: daoSmartContractLink\n    };\n  }\n  return null;\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\nimport _capitalize from 'lodash/capitalize';\n\nimport {\n  buildEntityName, convertAddress, convertContactIfIdentified, convertManagers, convertMembers,\n  convertRegisteredAgent, convertAuthorizedSignatory, calculateBusinessTotal, getPricingInformation, decorateAccount\n} from './BaseDataConverter';\nimport { convertOrderItem as convertAnonymityOrderItem, convertOrderData as convertAnonymityOrderData } from './AnonymityConverter';\nimport { convertOrderItem as convertBankingOrderItem, convertOrderData as convertBankingOrderData } from './BankingConverter';\nimport { convertOrderItem as convertBankingResolutionOrderItem, convertOrderData as convertBankingResolutionOrderData } from './BankingResolutionDataConverter';\nimport { convertOrderItem as convertBasicEmailOrderItem, convertOrderData as convertBasicEmailOrderData } from './BasicEmailConverter';\nimport { convertBusinessData as convertBLRBusinessData, convertOrderData as convertBLROrderData } from './BusLicDataConverter';\nimport { convertOrderItem as convertCorpDocsOrderItem, convertOrderData as convertCorpDocsOrderData } from './CorporateDocsDataConverter';\nimport { convertOrderItem as convertCPAConsultOrderItem, convertOrderData as convertCPAConsultOrderData } from './CPAConsultConverter';\nimport { convertOrderItem as convertDomainNameOrderItem, convertOrderData as convertDomainNameOrderData } from './DomainNameDataConverter';\nimport { convertOrderItem as convertDomainNamePrivacyOrderItem, convertOrderData as convertDomainNamePrivacyOrderData } from './DomainNamePrivacyDataConverter';\nimport { convertOrderItem as convertEINDocsBundleOrderItem, convertOrderData as convertEINDocsBundleOrderData } from './EINBusinessDocsBundleConverter';\nimport { convertOrderItem as convertEINOrderItem, convertOrderData as convertEINOrderData, convertSSN } from './EINDataConverter';\nimport { convertOrderItem as convertExpediteOrderItem, convertOrderData as convertExpediteOrderData } from './ExpediteDataConverter';\nimport { convertOrderItem as convertExpediteUpsellOrderItem, convertOrderData as convertExpediteUpsellOrderData } from './ExpediteUpsellDataConverter';\nimport { convertOrderItem as convertInitialCPAScreeningOrderItem, convertOrderData as convertInitialCPAScreeningOrderData } from './InitialCPAScreeningConverter';\nimport { convertOrderItem as convertNYPubOrderItem, convertOrderData as convertNYPubOrderData } from './NYPubDataConverter';\nimport { convertOrderItem as convertOpAgreeOrderItem, convertOrderData as convertOpAgreeOrderData } from './OpAgreeDataConverter';\nimport { convertOrderItem as convertRegAgentOrderItem, convertOrderData as convertRegAgentOrderData } from './RegAgentDataConverter';\nimport { convertOrderItem as convertPlanLevelOrderItem, convertOrderData as convertPlanLevelOrderData } from './PlanLevelDataConverter';\nimport { convertOrderItem as convertSCorpDesignationOrderItem, convertOrderData as convertSCorpDesignationOrderData } from './SCorpDesignationConverter';\nimport { convertOrderItem as convertStaticWebsiteOrderItem, convertOrderData as convertStaticWebsiteOrderData } from './StaticWebsiteDataConverter';\nimport { convertOrderItem as convertTaxPreparationOrderItem, convertOrderData as convertTaxPreparationOrderData } from './TaxPreparationConverter';\nimport { convertOrderItem as convertWebsiteToolsBundleOrderItem, convertOrderData as convertWebsiteToolsBundleOrderData } from './WebsiteToolsBundleConverter';\nimport { convertOrderItem as convertWorryFreeOrderItem, convertOrderData as convertWorryFreeOrderData } from './WorryFreeDataConverter';\nimport { convertOrderItem as convertAnnualReportServiceOrderItem, convertOrderData as convertAnnualReportServiceOrderData } from './AnnualReportServiceConverter';\nimport { convertOrderItem as convertAccountant1800OrderItem, convertOrderData as convertAccountant1800OrderData } from './Accountant1800Converter';\nimport { convertOrderItem as convertDAODesignationOrderItem, convertOrderData as convertDAODesignationOrderData } from './DAODesignationConverter';\nimport { convertOrderItem as convertZBMProOrderItem, convertOrderData as convertZBMProOrderData } from './ZBMProDataConverter';\nimport { convertOrderItem as convertZbBankingPreferredOrderItem, convertOrderData as convertZbBankingPreferredOrderData } from './ZbBankingPreferredDataConverter';\nimport { convertOrderItem as convertZbTaxAdviceOrderItem, convertOrderData as convertZbTaxAdviceOrderData } from './zbTaxAdviceConverter';\nimport { convertOrderItem as convertZbBizPrepOrderItem, convertOrderData as convertZbBizPrepOrderData } from './zbBizTaxPrepConverter';\nimport { convertOrderItem as convertZbTaxAdviceBizTaxPrepOrderItem, convertOrderData as convertZbTaxAdviceBizTaxPrepOrderData } from './zbTaxAdviceBizTaxPrepConverter';\nimport { convertOrderItem as convertEinBizDocsOaBundleOrderItem, convertOrderData as convertEinBizDocsOaBundleOrderData } from './einBizDocsOaBundleConverter';\nimport { convertOrderItem as convertBizDocsBlrBundleOrderItem, convertOrderData as convertBizDocsBlrBundleOrderData } from './bizDocsBlrBundleConverter';\n\nimport { ACTIONS, URLS } from '../../constants/complete_llc';\nimport { getEntryPointGroup } from '../../utils/PartnerUtils';\n\nconst getRemaginePlanName = (planLevel, industry) => {\n  if (planLevel === 'level2') {\n    return `${_capitalize(industry)} LLC`;\n  }\n  return `${planLevel === 'level3' ? 'Premium' : 'Starter'} LLC`;\n};\n/* eslint-disable camelcase */\nconst\n  convertAccount = (registration, filingFees, expediteFees) => {\n    const\n      { business, customer, lead, purchase } = registration,\n      { firstName: first_name, middleName: middle_name, lastName: last_name, suffix, email, phoneNumber: phone, password } = customer,\n      { cardNumber: number, cardToken: card_token, expMonth, expYear, cvc } = customer,\n      // todo: confirm if we even need amount in a credit card order, because we don't in card_token orders\n      amount = calculateBusinessTotal(business, purchase, filingFees, expediteFees),\n      card = { number, exp_month: parseInt(expMonth, 10), exp_year: 2000 + parseInt(expYear, 10), cvc, amount, default: true },\n      { leadUUID: lead_uuid } = lead;\n\n    const cardOrToken = card_token ? { card_token } : { card };\n    return decorateAccount(_assign({ lead_uuid, first_name, middle_name, last_name, suffix, email: email ? email.toLowerCase() : '', phone, password, international: false, signup_client: 'web_v2', ...cardOrToken }, convertAddress(customer)));\n  };\n/* eslint-enable camelcase */\n\nexport const convertOrderItem = (registration, filingFees) => {\n  const\n    { business } = registration,\n    { requestedJurisdiction: jurisdiction, formationCounty } = business,\n    service = 'llc_formation',\n    typeFees = filingFees[jurisdiction].llc_formation,\n    price = typeFees.price,\n    fees = typeFees.fees;\n\n  return { service, price, fees, jurisdiction, is_add_on: false, formation_county: formationCounty };\n};\n\n/* eslint-disable camelcase, max-statements */\nexport const convertOrderData = (registration, isInternational) => {\n  const\n    { blr, business, businessAddresses, contact, managers, members, order, registeredAgent, remagine, page, purchase, postpurchase } = registration,\n    { name, indicator, alternates, description: business_purpose, requestedJurisdiction: jurisdiction = 'NC', phoneNumber: phone, status } = business,\n    { businessActivity: activity, domesticJurisdiction, foreignJurisdictions, authorizedSignatory, formationCounty } = business,\n    { goals, hasEmployees, homeBased, industry, launchStatus, priorExperience } = remagine,\n    { estimatedFormationDate = '', planLevel } = purchase,\n    { id = '' } = order,\n    { completedAction, completedUrl, completedActionIndex } = page,\n    entityName = buildEntityName(name, indicator),\n    service = 'llc_formation',\n    { principal: principalAddress, mailing: mailingAddress, physical: physicalAddress } = businessAddresses,\n    data = _assign(\n      {\n        service,\n        entity_name: entityName,\n        alternates,\n        business_purpose,\n        jurisdiction,\n        principal_address: convertAddress(principalAddress),\n        mailing_address: convertAddress(mailingAddress),\n        address: convertAddress(physicalAddress),\n        phone,\n        estimated_formation_date: estimatedFormationDate,\n        activity,\n\n        // Personalization data\n        goals,\n        has_employees: hasEmployees,\n        home_based: homeBased,\n        industry,\n        launch_status: launchStatus,\n        prior_experience: priorExperience,\n\n        // Used with standalone RA\n        domestic_jurisdiction: domesticJurisdiction,\n        domestic_entity: true,\n        foreign_jurisdictions: foreignJurisdictions,\n        domestic_filing_date: '',\n        state_id: '',\n        plan_partner: getEntryPointGroup() || '',\n        entry_point_group: getEntryPointGroup() || '',\n\n        // Capture formation county for NY LLCs\n        formation_county:\n          !formationCounty.length && !!registration?.nypub?.nyPubCountyCode\n            ? registration.nypub.nyPubCountyCode\n            : formationCounty\n      },\n      getEntryPointGroup() === 'pf' ? { plan_name: getRemaginePlanName(planLevel, industry) } : {},\n      convertAuthorizedSignatory(authorizedSignatory),\n      convertContactIfIdentified(contact),\n      convertManagers(managers),\n      convertMembers(members),\n      convertRegisteredAgent(registeredAgent, business, isInternational ? { registeredAgent: true } : purchase)\n    );\n\n  if (status === 'incomplete') {\n    if (postpurchase.purchaseBLR !== null) {\n      data.purchase_blr = postpurchase.purchaseBLR;\n      if (postpurchase.purchaseBLR) {\n        data.blr_data = { business_data: convertBLRBusinessData(blr) };\n      }\n    }\n    if (postpurchase.purchaseRA !== null) {\n      data.purchase_ra = postpurchase.purchaseRA;\n    }\n    if (postpurchase.purchaseDBAEntity !== null) {\n      data.purchase_dba_entity = postpurchase.purchaseDBAEntity;\n      data.dba_entities = postpurchase.dbaEntities;\n      if (postpurchase.purchaseDBACompliance !== null) {\n        data.purchase_dba_compliance = postpurchase.purchaseDBACompliance;\n      }\n    }\n    if (postpurchase.purchaseCD !== null) {\n      data.purchase_cd = postpurchase.purchaseCD;\n    }\n    if (postpurchase.purchaseBankOfAmericaOffer !== null) {\n      data.purchase_bank_of_america_offer = postpurchase.purchaseBankOfAmericaOffer;\n    }\n    if (postpurchase.purchaseZbBankingPreferredOffer !== null) {\n      data.purchase_zb_banking_preferred_offer = postpurchase.purchaseZbBankingPreferredOffer;\n    }\n    if (postpurchase.purchaseFFD !== null) {\n      data.purchase_ffd = postpurchase.purchaseFFD;\n      data.filing_action = postpurchase.filingAction;\n      if (postpurchase.purchaseFFD && postpurchase.futureFilingDate) {\n        data.future_filing_date = postpurchase.futureFilingDate;\n      }\n    }\n    if (postpurchase.purchaseWFGIR !== null) {\n      data.purchase_wfgir = postpurchase.purchaseWFGIR;\n    }\n    if (postpurchase.purchaseVBA !== null) {\n      data.purchase_vba = postpurchase.purchaseVBA;\n    }\n    if (postpurchase.purchaseVanityProduct !== null) {\n      data.purchase_vanity_product = postpurchase.purchaseVanityProduct;\n    }\n    if (postpurchase.purchaseTaxAdviceBizTaxPrep !== null || postpurchase.purchaseTaxAdvice !== null) {\n      data.purchase_tax_advice = postpurchase.purchaseTaxAdvice;\n      data.tax_advice_monthly = postpurchase.taxAdviceMonthly;\n      data.purchase_tax_advice_biztax_prep = postpurchase.purchaseTaxAdviceBizTaxPrep;\n      data.tax_advice_biztax_prep_monthly = postpurchase.taxAdviceBizTaxPrepMonthly;\n    }\n    if (postpurchase.purchaseZBMPro !== null) {\n      data.purchase_zbmpro = postpurchase.purchaseZBMPro;\n      data.zbmpro_monthly = postpurchase.zbmProMonthly;\n    }\n    if (postpurchase.purchaseBusinessKit !== null) {\n      data.purchase_business_kit = postpurchase.purchaseBusinessKit;\n    }\n    if (postpurchase.purchaseBOF !== null) {\n      data.purchase_bof = postpurchase.purchaseBOF;\n      data.bof_ongoing = postpurchase.bofOngoing;\n    }\n    if (postpurchase.purchaseExpenseTrackerAndTaxFiling !== null) {\n      data.expense_tracking_with_tax_filing = postpurchase.purchaseExpenseTrackerAndTaxFiling;\n    }\n    data.completed_action = id ? completedAction : ACTIONS.START_COMP;\n    data.completed_url = id ? completedUrl : URLS.START_COMP;\n    data.completed_action_index = id ? completedActionIndex : 5000;\n  }\n  return data;\n};\n/* eslint-enable camelcase, max-statements */\n\nexport const buildOrderData = (registration, filingFees, expediteFees) => {\n  const\n    { purchase: { banking } } = registration;\n\n  return _compact([\n    convertOrderData(registration),\n    convertRegAgentOrderData(registration, false, filingFees),\n    convertAnonymityOrderData(registration, false, filingFees),\n    ...convertBasicEmailOrderData(registration, false),\n    convertBankingResolutionOrderData(registration, false),\n    convertCorpDocsOrderData(registration, false, false),\n    ...convertDomainNameOrderData(registration, false),\n    ...convertDomainNamePrivacyOrderData(registration, false),\n    convertEINOrderData(registration, false),\n    convertNYPubOrderData(registration, false),\n    convertOpAgreeOrderData(registration, false),\n    convertExpediteOrderData(registration, false, expediteFees),\n    convertExpediteUpsellOrderData(registration, false, expediteFees),\n    convertSCorpDesignationOrderData(registration, false, filingFees),\n    convertDAODesignationOrderData(registration, false, filingFees),\n    convertStaticWebsiteOrderData(registration, false, filingFees),\n    convertWorryFreeOrderData(registration, false),\n    convertTaxPreparationOrderData(registration, false, filingFees),\n    convertCPAConsultOrderData(registration, false, filingFees),\n    convertInitialCPAScreeningOrderData(registration, false, filingFees),\n    convertPlanLevelOrderData(registration, false),\n    convertAnnualReportServiceOrderData(registration, false),\n    banking ? convertBankingOrderData(registration, false) : null,\n    convertEINDocsBundleOrderData(registration, false, filingFees),\n    convertWebsiteToolsBundleOrderData(registration, false, filingFees),\n    convertAccountant1800OrderData(registration),\n    convertZBMProOrderData(registration, false, filingFees),\n    convertBLROrderData(registration, false,),\n    convertZbBankingPreferredOrderData(registration, false),\n    convertZbTaxAdviceOrderData(registration, false),\n    convertZbBizPrepOrderData(registration, false),\n    convertZbTaxAdviceBizTaxPrepOrderData(registration, false),\n    convertEinBizDocsOaBundleOrderData(registration, false, filingFees),\n    convertBizDocsBlrBundleOrderData(registration, false, filingFees)\n  ]);\n};\n\nexport const buildOrder = (registration, filingFees, expediteFees, isUpdate) => {\n  const\n    { business, purchase, remagine: { useBNR = false } } = registration,\n    { status: orderStatus } = business,\n    { banking } = purchase,\n    orderData = buildOrderData(registration, filingFees, expediteFees),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData\n    }, convertSSN(registration), getPricingInformation(registration.order));\n  if (isUpdate) {\n    order.order_uuid = registration.order.id;\n    return { order };\n  }\n\n  const\n    { id: businessId, isDAO } = business,\n    accountId = registration.customer.id || '',\n    account = accountId ? null : convertAccount(registration, filingFees, expediteFees);\n\n  order.order_items = _compact([\n    convertOrderItem(registration, filingFees),\n    convertRegAgentOrderItem(registration, false, filingFees),\n    convertAnonymityOrderItem(registration, false, filingFees),\n    convertBankingResolutionOrderItem(registration, false, filingFees),\n    ...convertBasicEmailOrderItem(registration, false),\n    convertCorpDocsOrderItem(registration, false, false, filingFees),\n    ...convertDomainNameOrderItem(registration, false),\n    ...convertDomainNamePrivacyOrderItem(registration, false),\n    convertEINOrderItem(registration, false, filingFees),\n    convertNYPubOrderItem(registration, false, filingFees),\n    !isDAO ? convertOpAgreeOrderItem(registration, false, filingFees) : null,\n    convertExpediteOrderItem(registration, false, expediteFees),\n    convertExpediteUpsellOrderItem(registration, false, expediteFees),\n    convertSCorpDesignationOrderItem(registration, false, filingFees),\n    convertDAODesignationOrderItem(registration, false, filingFees),\n    convertStaticWebsiteOrderItem(registration, false),\n    convertWorryFreeOrderItem(registration, false, filingFees),\n    convertTaxPreparationOrderItem(registration, false, filingFees),\n    convertCPAConsultOrderItem(registration, false, filingFees),\n    convertInitialCPAScreeningOrderItem(registration, false, filingFees),\n    convertPlanLevelOrderItem(registration, false),\n    convertAnnualReportServiceOrderItem(registration, false),\n    banking ? convertBankingOrderItem(registration, false) : null,\n    convertEINDocsBundleOrderItem(registration, false, filingFees),\n    convertWebsiteToolsBundleOrderItem(registration, false),\n    convertAccountant1800OrderItem(registration),\n    convertZBMProOrderItem(registration, false, filingFees),\n    convertZbBankingPreferredOrderItem(registration, false),\n    convertZbTaxAdviceOrderItem(registration, false, filingFees),\n    convertZbBizPrepOrderItem(registration, false, filingFees),\n    convertZbTaxAdviceBizTaxPrepOrderItem(registration, false, filingFees),\n    convertEinBizDocsOaBundleOrderItem(registration, false),\n    convertBizDocsBlrBundleOrderItem(registration, false)\n  ]);\n\n  if (accountId) {\n    if (businessId) {\n      order.business_entity_uuid = businessId;\n    }\n    if (useBNR) {\n      return {\n        account_uuid: accountId,\n        business_entity_uuid: businessId,\n        order\n      };\n    }\n    return {\n      account_uuid: accountId,\n      order\n    };\n  }\n  return {\n    account,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\nimport { buildEntityName, convertAddress, convertContactIfIdentified, getPricingInformation, decorateAccount } from './BaseDataConverter';\nimport { getNameResPrice } from '../../utils/ProductService';\n\n/* eslint-disable camelcase */\nconst\n  convertAccount = (registration) => {\n    const\n      { customer, lead } = registration,\n      { firstName: first_name, middleName: middle_name, lastName: last_name, suffix, email, phoneNumber: phone, password } = customer,\n      { cardToken: card_token } = customer,\n      { leadUUID: lead_uuid } = lead;\n\n    return decorateAccount({ lead_uuid, first_name, middle_name, last_name, suffix, email: email ? email.toLowerCase() : '', phone, password, international: false, signup_client: 'web_v2', card_token });\n  };\n/* eslint-enable camelcase */\n\nexport const convertOrderItem = (registration, filingFees) => {\n  const\n    { business, purchase } = registration,\n    { nameReservation } = purchase,\n    { requestedJurisdiction: jurisdiction, type } = business,\n    service = 'entity_name_reservation',\n    price = getNameResPrice(),\n    nameReservationFees = filingFees[jurisdiction].entity_name_reservation[type === 'CORP' ? 'corp' : 'llc'],\n    { fees } = nameReservationFees;\n\n  return nameReservation ? { service, price, fees, jurisdiction, is_add_on: false } : null;\n};\n\nexport const convertOrderData = (registration) => {\n  const { business, businessAddresses, contact, purchase } = registration;\n\n  if (!purchase.nameReservation) {\n    return null;\n  }\n\n  const\n    { requestedJurisdiction: jurisdiction, type, name, indicator } = business,\n    { principal, mailing } = businessAddresses,\n    { phoneNumber: phone } = contact;\n\n  return _assign({\n    service: 'entity_name_reservation',\n    standalone: true,\n    jurisdiction,\n    domestic_jurisdiction: jurisdiction,\n    entity_type: type === 'LLCX' ? 'llc' : 'corp',\n    entity_name: buildEntityName(name, indicator),\n    is_new_business: true,\n    address: convertAddress(principal),\n    mailing_address: convertAddress(mailing),\n    first_name: contact ? contact.firstName : '',\n    last_name: contact ? contact.lastName : '',\n    phone\n  }, convertContactIfIdentified(contact));\n};\n\nexport const buildOrder = (registration, filingFees) => {\n  const\n    accountId = registration.customer.id,\n    businessId = registration.business.id,\n    account = accountId ? null : convertAccount(registration),\n    orderStatus = 'complete',\n    orderItems = _compact([\n      convertOrderItem(registration, filingFees)\n    ]),\n    orderData = _compact([\n      convertOrderData(registration)\n    ]),\n    order = _assign({\n      order_status: orderStatus,\n      order_items: orderItems,\n      order_data: orderData\n    }, getPricingInformation(registration.order));\n\n  if (accountId) {\n    if (businessId) {\n      return {\n        account_uuid: accountId,\n        business_entity_uuid: businessId,\n        order\n      };\n    }\n    return {\n      account_uuid: accountId,\n      order\n    };\n  }\n  return {\n    account,\n    order\n  };\n};\n","import { buildEntityName } from './BaseDataConverter';\nimport { getFutureFileDatePrice } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration) => {\n  const\n    { business, postpurchase } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { purchaseFFD } = postpurchase,\n    service = 'future_file_date';\n\n  if (!purchaseFFD) {\n    return null;\n  }\n  return { service, jurisdiction, price: getFutureFileDatePrice(), fees: 0, is_add_on: false };\n};\n\nexport const convertOrderData = (registration) => {\n  const\n    service = 'future_file_date',\n    { business, postpurchase } = registration,\n    { requestedJurisdiction, name, indicator } = business,\n    { futureFilingDate, filingAction, purchaseFFD } = postpurchase;\n\n  return purchaseFFD ? {\n    service,\n    jurisdiction: requestedJurisdiction,\n    entity_name: buildEntityName(name, indicator),\n    future_filing_date: futureFilingDate,\n    filing_action: filingAction,\n    standalone: false,\n    is_new_business: false\n  } : null;\n};\n","import { getVirtualBusinessAddressPrice } from '../../utils/ProductService';\n\nconst SERVICE = 'virtual_business_address';\n\nexport const convertOrderItem = (registration, standalone, isPostPurchase) => {\n  const\n    { business, postpurchase } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { purchaseVBA } = postpurchase,\n    fees = 0,\n    term = 12,\n    period = 12;\n\n\n  if (standalone) {\n    return { service: SERVICE, jurisdiction, price: getVirtualBusinessAddressPrice(), fees, is_add_on: false, term, period };\n  }\n  if (isPostPurchase) {\n    if (purchaseVBA) {\n      return { service: SERVICE, jurisdiction, price: getVirtualBusinessAddressPrice(), fees, is_add_on: false, term, period };\n    }\n    return null;\n  }\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone, isPostPurchase) => {\n  const\n    { business, postpurchase } = registration,\n    { requestedJurisdiction } = business,\n    { purchaseVBA } = postpurchase,\n    isEnabled = standalone || (isPostPurchase && purchaseVBA);\n\n  return isEnabled ? {\n    service: SERVICE,\n    jurisdiction: requestedJurisdiction,\n    standalone,\n    is_new_business: false\n  } : null;\n};\n","import _assign from 'lodash/assign';\nimport _get from 'lodash/get';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getWFGInitialReportPrice } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration, standalone, filingFees) => {\n  const\n    { business, postpurchase, purchase } = registration,\n    { requestedJurisdiction: jurisdiction, type } = business,\n    { purchaseWFGIR } = postpurchase,\n    { worryFree, annualReportService } = purchase,\n    fees = _get(filingFees, [jurisdiction, 'wfg_initial_report', type === 'CORP' ? 'corp' : 'llc', 'domestic', 'fees'], 0),\n    service = 'wfg_initial_report';\n\n  if (!standalone && !purchaseWFGIR) {\n    return null;\n  }\n  return { service, jurisdiction, price: (annualReportService || worryFree) ? 0 : getWFGInitialReportPrice(), fees, is_add_on: false };\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    service = 'wfg_initial_report',\n    { business, postpurchase } = registration,\n    { requestedJurisdiction } = business,\n    { purchaseWFGIR } = postpurchase;\n\n  return purchaseWFGIR || standalone ? {\n    service,\n    jurisdiction: requestedJurisdiction,\n    standalone: false,\n    is_new_business: false\n  } : null;\n};\n\nexport const buildOrder = (registration, accountId, filingFees) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true, filingFees)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.wfgir.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n\n","import { getPostPurchaseVanityProduct } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration) => {\n  const vanityProduct = getPostPurchaseVanityProduct();\n\n  const\n    { business, postpurchase } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { purchaseVanityProduct } = postpurchase;\n\n\n  if (!vanityProduct || !purchaseVanityProduct) {\n    return null;\n  }\n  const price = vanityProduct.price || vanityProduct.priceWithoutCoupon || 0;\n  if (vanityProduct.priceIsMonthly) {\n    return { service: vanityProduct.productKey, jurisdiction, price, fees: 0, term: 12, period: 12, is_add_on: false };\n  }\n  if (vanityProduct.priceIsYearly) {\n    return { service: vanityProduct.productKey, jurisdiction, price, fees: 0, term: 12, period: 1, is_add_on: false };\n  }\n  return { service: vanityProduct.productKey, jurisdiction, price, fees: 0, is_add_on: false };\n};\n\nexport const convertOrderData = (registration) => {\n  const vanityProduct = getPostPurchaseVanityProduct();\n\n  if (!vanityProduct) return null;\n\n  const\n    service = vanityProduct.productKey,\n    { business, postpurchase } = registration,\n    { requestedJurisdiction, type } = business,\n    { purchaseVanityProduct } = postpurchase;\n\n  return purchaseVanityProduct ? {\n    service,\n    vanity_product: purchaseVanityProduct,\n    jurisdiction: requestedJurisdiction,\n    entity_type: type === 'LLCX' ? 'llc' : 'corp',\n    standalone: false\n  } : null;\n};\n","import _assign from 'lodash/assign';\n\nimport { getPricingInformation } from './BaseDataConverter';\n\nexport const convertOrderItem = (registration) => {\n\n  const\n    { business: { domesticJurisdiction },\n      postpurchase: { purchaseBankOfAmericaOffer }\n    } = registration,\n    service = 'bank_of_america_offer';\n\n  if (purchaseBankOfAmericaOffer) {\n    return {\n      service,\n      jurisdiction: domesticJurisdiction,\n      bankOfAmericaOffer: purchaseBankOfAmericaOffer,\n      coupon: 0,\n      fees: 0,\n      is_add_on: false,\n      price: 0\n    };\n  }\n\n  return null;\n\n};\n\nexport const convertOrderData = (registration) => {\n  const\n    { business: { domesticJurisdiction, type, name },\n      customer: { firstName, lastName, phoneNumber }, // TODO: add email once fixed\n      postpurchase: { purchaseBankOfAmericaOffer }\n    } = registration,\n    service = 'bank_of_america_offer';\n\n  if (purchaseBankOfAmericaOffer) {\n    return {\n      // email,\n      bankOfAmericaOffer: purchaseBankOfAmericaOffer,\n      jurisdiction: domesticJurisdiction,\n      lead_type: 'ZenBusiness Referral',\n      service,\n      boa_entity_name: name,\n      boa_entity_type: (type === 'LLCX') ? 'llc' : 'corp',\n      first_name: firstName,\n      last_name: lastName,\n      phone: phoneNumber\n    };\n  }\n\n  return null;\n\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.domainName.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { buildOrderData as buildCorpOrderData } from './CorpDataConverter';\nimport { convertSSN } from './EINDataConverter';\nimport { convertOrderItem as convertBLROrderItem, convertOrderData as convertBLROrderData } from './BusLicDataConverter';\nimport { convertOrderItem as convertRAorderItem, convertOrderData as convertRAorderData } from './RegAgentDataConverter';\nimport { convertOrderItem as convertFutureFileDateOrderItem, convertOrderData as convertFutureFileDateOrderData } from './FutureFileDateConverter';\nimport { convertOrderItem as convertBusinessKitOrderItem, convertOrderData as convertBusinessKitOrderData } from './BusinessKitConverter';\nimport { convertOrderItem as convertBOFOrderItem, convertOrderData as convertBOFOrderData } from './BeneficialOwnershipFilingConverter';\nimport { convertOrderItems as convertBOFOngoingOrderItems, convertOrderData as convertBOFOngoingOrderData } from './BeneficialOwnershipFilingOngoingConverter';\nimport { convertOrderItem as convertCorporateDocsOrderItem, convertOrderData as convertCorporateDocsOrderData } from './CorporateDocsDataConverter';\nimport { convertOrderItem as convertDBAComplianceOrderItem, convertOrderData as convertDBAComplianceOrderData } from './DBAComplianceDataConverter';\nimport { convertOrderItem as convertDBAEntityAddOnOrderItem, convertOrderData as convertDBAEntityAddOnOrderData } from './DBAEntityAddOnDataConverter';\nimport { convertOrderItem as convertExpenseTrackingAndTaxFilingOrderItem, convertOrderData as convertExpenseTrackingAndTaxFilingOrderData } from './ExpenseTrackingAndTaxFilingDataConverter';\nimport { buildOrderData as buildLLCOrderData } from './LLCDataConverter';\nimport { convertOrderItem as convertVirtualBusinessAddressOrderItem, convertOrderData as convertVirtualBusinessAddressOrderData } from './VirtualBusinesAddressDataConverter';\nimport { convertOrderItem as convertWFGInitialReportOrderItem, convertOrderData as convertWFGInitialReportOrderData } from './WFGInitialReportDataConverter';\nimport { convertOrderItem as convertVanityProductOrderItem, convertOrderData as convertVanityProductOrderData } from './VanityProductDataConverter';\nimport { convertOrderItem as convertBankOfAmericaOfferOrderItem, convertOrderData as convertBankOfAmericaOfferOrderData } from './BankOfAmericaOfferConverter';\nimport { convertOrderItem as convertTruicOrderItem, convertOrderData as convertTruicOrderData } from './TruicZBMProDataConverter';\nimport { convertOrderItem as convertZbBankingPreferredOrderItem, convertOrderData as convertZbBankingPreferredOrderData } from './ZbBankingPreferredDataConverter';\nimport { convertOrderItem as convertZbBizTaxPrepOrderItem, convertOrderData as convertZbBizTaxPrepOrderData } from './zbBizTaxPrepConverter';\nimport { convertOrderItem as convertZbTaxAdviceOrderItem, convertOrderData as convertZbTaxAdviceOrderData } from './zbTaxAdviceConverter';\nimport { convertOrderItem as convertZbTaxAdviceBizTaxPrepOrderItem, convertOrderData as convertZbTaxAdviceBizTaxPrepOrderData } from './zbTaxAdviceBizTaxPrepConverter';\n\n// API-925: the stock step writes authorized_shares/par_value to the order-task, not the main\n// order. Redux can re-hydrate these as '' from GET /orders, so createPostPurchase may build\n// existing_order_data with empty share fields. Never send them empty — that would clobber the\n// values the stock step already wrote in zenapi (its handler turns '' into None). Omitting the\n// field leaves the saved value intact.\nconst FORMATION_SERVICES = ['corp_formation', 'llc_formation'];\n\nexport const stripEmptyShareFields = (orderData) => {\n  if (!Array.isArray(orderData)) {\n    return orderData;\n  }\n  return orderData.map((entry) => {\n    if (!entry || !FORMATION_SERVICES.includes(entry.service)) {\n      return entry;\n    }\n    const cleaned = { ...entry };\n    if (cleaned.authorized_shares === '') {\n      delete cleaned.authorized_shares;\n    }\n    if (cleaned.par_value === '') {\n      delete cleaned.par_value;\n    }\n    return cleaned;\n  });\n};\n\nexport const buildOrderData = (registration) => {\n  const { postpurchase: { bofOngoing = false } } = registration;\n  const bofData = bofOngoing ? convertBOFOngoingOrderData(registration, false, true) : [ convertBOFOrderData(registration, false, true) ];\n  const orderData = _compact([\n    !registration.purchase.blr ? convertBLROrderData(registration, false) : null,\n    !registration.purchase.registeredAgentService ? convertRAorderData(registration, false) : null,\n    convertDBAComplianceOrderData(registration, false),\n    ...convertDBAEntityAddOnOrderData(registration, false),\n    convertFutureFileDateOrderData(registration, false),\n    convertBusinessKitOrderData(registration, false),\n//    ...bofData,\n    convertCorporateDocsOrderData(registration, false, true),\n    convertWFGInitialReportOrderData(registration, false),\n    convertBankOfAmericaOfferOrderData(registration, false),\n    convertVirtualBusinessAddressOrderData(registration, false, true),\n    ...convertExpenseTrackingAndTaxFilingOrderData(registration, false),\n    convertVanityProductOrderData(registration, false),\n    convertTruicOrderData(registration, false),\n    convertZbBankingPreferredOrderData(registration, false, true),\n    convertZbBizTaxPrepOrderData(registration, false),\n    convertZbTaxAdviceOrderData(registration, false),\n    convertZbTaxAdviceBizTaxPrepOrderData(registration, false)\n  ]);\n\n  if (orderData.length) {\n    return orderData;\n  }\n\n  // We only want to return BOF data if there are no other order data.\n  return bofData;\n};\n\nexport const buildOrder = (registration, filingFees, expediteFees) => {\n  const\n    { business, customer } = registration,\n    { id: accountId } = customer,\n    { type, id: businessId } = business,\n    { id: orderId } = registration.order,\n    orderData = buildOrderData(registration),\n    { postpurchase: { bofOngoing = false } } = registration,\n    bofItems = bofOngoing ? convertBOFOngoingOrderItems(registration, false, true) : [ convertBOFOrderItem(registration, false, true) ],\n    orderItems = _compact([\n      !registration.purchase.blr ? convertBLROrderItem(registration, false, filingFees) : null,\n      !registration.purchase.registeredAgentService ? convertRAorderItem(registration, false, filingFees) : null,\n      convertDBAComplianceOrderItem(registration, false, filingFees),\n      ...convertDBAEntityAddOnOrderItem(registration, false, filingFees),\n      convertFutureFileDateOrderItem(registration, false, filingFees),\n      convertBusinessKitOrderItem(registration, false, filingFees),\n//      ...bofItems,\n      convertCorporateDocsOrderItem(registration, false, true, filingFees),\n      convertWFGInitialReportOrderItem(registration, false, filingFees),\n      convertBankOfAmericaOfferOrderItem(registration, false, filingFees),\n      convertVirtualBusinessAddressOrderItem(registration, false, true, filingFees),\n      ...convertExpenseTrackingAndTaxFilingOrderItem(registration, false, filingFees),\n      convertVanityProductOrderItem(registration, false, filingFees),\n      convertTruicOrderItem(registration, false, filingFees),\n      convertZbBankingPreferredOrderItem(registration, false),\n      convertZbBizTaxPrepOrderItem(registration, false),\n      convertZbTaxAdviceOrderItem(registration, false),\n      convertZbTaxAdviceBizTaxPrepOrderItem(registration, false)\n    ]),\n    existingOrderData = stripEmptyShareFields(type === 'CORP' ? buildCorpOrderData(registration, filingFees, expediteFees) : buildLLCOrderData(registration, filingFees, expediteFees)),\n    order = _assign({\n      order_status: 'complete',\n      order_data: orderData,\n      existing_order_data: existingOrderData,\n      existing_order_uuid: orderId,\n      previous_purchase_order_uuid: orderId,\n      order_items: orderItems,\n      business_entity_uuid: businessId\n    }, convertSSN(registration), getPricingInformation(registration.order));\n\n  // We only want to return BOF items if there are no other order items.\n  if (!orderItems.length) {\n    order.order_items = bofItems;\n    order.order_status = 'incomplete';\n  }\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPackage } from '../../utils/PlanService';\nimport {\n  getSMBWebsiteMonthlyPrice,\n  getSMBWebsiteYearlyPrice\n} from '../../utils/ProductService';\n\n\nconst getIntervalData = (yearlyInterval) => {\n  const data = { service: '', price: 0, term: 12, period: yearlyInterval ? 1 : 12, coupon: '', affiliatePlanOptionUUID: '' };\n  data.service = 'static_website';\n  data.price = yearlyInterval ? getSMBWebsiteYearlyPrice() : getSMBWebsiteMonthlyPrice();\n  const pkg = getPackage(data.service, yearlyInterval ? 'annual' : 'monthly');\n  data.affiliatePlanOptionUUID = pkg?.uuid;\n  return data;\n};\n\nexport const convertOrderItem = (registration, standalone) => {\n  if (!standalone) {\n    return null;\n  }\n\n  const\n    { smbWebsite } = registration,\n    { yearlyInterval, jurisdiction } = smbWebsite,\n    { service, price, term, period, coupon, affiliatePlanOptionUUID } = getIntervalData(yearlyInterval),\n    items = [];\n\n  items.push({ service, jurisdiction, price, coupon, fees: 0, term, period, is_add_on: false, affiliate_plan_option_uuid: affiliatePlanOptionUUID });\n\n  return items;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { smbWebsite } = registration,\n    { jurisdiction, yearlyInterval } = smbWebsite,\n    { service } = getIntervalData(yearlyInterval),\n    items = [];\n\n  items.push({ service, standalone, is_new_business: false, is_auto_included: false, jurisdiction });\n\n\n  return items;\n};\n/* eslint-enable camelcase */\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = convertOrderData(registration, true),\n    orderItems = convertOrderItem(registration, true),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.smbWebsite.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPackage } from '../../utils/PlanService';\nimport {\n  getSMBWebsiteEcommMonthlyPrice,\n  getSMBWebsiteEcommYearlyPrice\n} from '../../utils/ProductService';\n\n\nconst getIntervalData = (yearlyInterval) => {\n  const data = { service: '', price: 0, term: 12, period: yearlyInterval ? 1 : 12, coupon: '', affiliatePlanOptionUUID: '' };\n  data.service = 'smb_website_ecomm_bundle';\n  data.price = yearlyInterval ? getSMBWebsiteEcommYearlyPrice() : getSMBWebsiteEcommMonthlyPrice();\n  const pkg = getPackage(data.service, yearlyInterval ? 'annual' : 'monthly');\n  data.coupon = pkg.coupon ? pkg.coupon.coupon_uuid : null;\n  data.affiliatePlanOptionUUID = pkg.uuid;\n  return data;\n};\n\nexport const convertOrderItem = (registration, standalone) => {\n  if (!standalone) {\n    return null;\n  }\n\n  const\n    { smbWebsiteEcomm } = registration,\n    { yearlyInterval, jurisdiction } = smbWebsiteEcomm,\n    { service, price, term, period, coupon, affiliatePlanOptionUUID } = getIntervalData(yearlyInterval),\n    items = [];\n\n  items.push({ service, jurisdiction, price, coupon, fees: 0, term, period, is_add_on: false, affiliate_plan_option_uuid: affiliatePlanOptionUUID });\n  items.push({ service: 'static_website', jurisdiction, price: 0, coupon: 0, fees: 0, term: 12, period: yearlyInterval ? 1 : 12, is_add_on: false });\n  items.push({ service: 'smb_ecomm_addon', jurisdiction, price: 0, coupon: 0, fees: 0, term: 12, period: yearlyInterval ? 1 : 12, is_add_on: false });\n\n  return items;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { smbWebsiteEcomm } = registration,\n    { jurisdiction, yearlyInterval } = smbWebsiteEcomm,\n    { service } = getIntervalData(yearlyInterval),\n    items = [];\n\n  items.push({ service, standalone, is_new_business: false, is_auto_included: false, jurisdiction });\n  items.push({ service: 'static_website', standalone, is_new_business: false, is_auto_included: false, jurisdiction });\n  items.push({ service: 'smb_ecomm_addon', standalone, is_new_business: false, is_auto_included: false, jurisdiction });\n\n\n  return items;\n};\n/* eslint-enable camelcase */\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = convertOrderData(registration, true),\n    orderItems = convertOrderItem(registration, true),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.smbWebsiteEcomm.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPackage } from '../../utils/PlanService';\nimport {\n  getSMBEcommAddonMonthlyPrice,\n  getSMBEcommAddonYearlyPrice\n} from '../../utils/ProductService';\n\n\nconst getIntervalData = (yearlyInterval) => {\n  const data = { service: '', price: 0, term: 12, period: yearlyInterval ? 1 : 12, coupon: '', affiliatePlanOptionUUID: '' };\n  data.service = 'smb_ecomm_addon';\n  data.price = yearlyInterval ? getSMBEcommAddonYearlyPrice() : getSMBEcommAddonMonthlyPrice();\n  const pkg = getPackage(data.service, yearlyInterval ? 'annual' : 'monthly');\n  data.affiliatePlanOptionUUID = pkg?.uuid;\n  return data;\n};\n\nexport const convertOrderItem = (registration, standalone) => {\n  if (!standalone) {\n    return null;\n  }\n\n  const\n    { smbEcommAddon } = registration,\n    { yearlyInterval, jurisdiction } = smbEcommAddon,\n    { service, price, term, period, coupon, affiliatePlanOptionUUID } = getIntervalData(yearlyInterval),\n    items = [];\n\n  items.push({ service, jurisdiction, price, coupon, fees: 0, term, period, is_add_on: false, affiliate_plan_option_uuid: affiliatePlanOptionUUID });\n\n  return items;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { smbEcommAddon } = registration,\n    { jurisdiction, yearlyInterval } = smbEcommAddon,\n    { service } = getIntervalData(yearlyInterval),\n    items = [];\n\n  items.push({ service, standalone, is_new_business: false, is_auto_included: false, jurisdiction });\n\n  return items;\n};\n/* eslint-enable camelcase */\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = convertOrderData(registration, true),\n    orderItems = convertOrderItem(registration, true),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.smbEcommAddon.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n\n","import _assign from 'lodash/assign';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { getPackage } from '../../utils/PlanService';\nimport {\n  getSMBWebsiteEcommMonthlyPrice,\n  getSMBWebsiteEcommYearlyPrice,\n  getSMBWebsiteMonthlyPrice,\n  getSMBWebsiteYearlyPrice\n} from '../../utils/ProductService';\n\nconst getPackageData = (chooseEcomm, yearlyInterval) => {\n  const data = { service: '', price: 0, term: 12, period: yearlyInterval ? 1 : 12, coupon: '', affiliatePlanOptionUUID: '' };\n\n  if (chooseEcomm) {\n    data.service = 'smb_website_ecomm_bundle';\n    data.price = yearlyInterval ? getSMBWebsiteEcommYearlyPrice() : getSMBWebsiteEcommMonthlyPrice();\n  } else {\n    data.service = 'static_website';\n    data.price = yearlyInterval ? getSMBWebsiteYearlyPrice() : getSMBWebsiteMonthlyPrice();\n  }\n  const pkg = getPackage(data.service, yearlyInterval ? 'annual' : 'monthly');\n  data.affiliatePlanOptionUUID = pkg?.uuid;\n  return data;\n};\n\nexport const convertOrderItem = (registration, standalone) => {\n  if (!standalone) {\n    return null;\n  }\n\n  const\n    { smbWebsiteOrEcomm } = registration,\n    { chooseEcomm, yearlyInterval, jurisdiction } = smbWebsiteOrEcomm,\n    { service, price, term, period, coupon, affiliatePlanOptionUUID } = getPackageData(chooseEcomm, yearlyInterval),\n    items = [];\n\n  if (chooseEcomm) {\n    items.push({ service, jurisdiction, price, coupon, fees: 0, term, period, is_add_on: false, affiliate_plan_option_uuid: affiliatePlanOptionUUID });\n    items.push({ service: 'static_website', jurisdiction, price: 0, coupon: 0, fees: 0, term: 12, period: yearlyInterval ? 1 : 12, is_add_on: false });\n    items.push({ service: 'smb_ecomm_addon', jurisdiction, price: 0, coupon: 0, fees: 0, term: 12, period: yearlyInterval ? 1 : 12, is_add_on: false });\n  } else {\n    items.push({ service, jurisdiction, price, coupon, fees: 0, term, period, is_add_on: false, affiliate_plan_option_uuid: affiliatePlanOptionUUID });\n  }\n\n  return items;\n};\n\n/* eslint-disable camelcase */\nexport const convertOrderData = (registration, standalone) => {\n  if (!standalone) {\n    return null;\n  }\n\n  const\n    { smbWebsiteOrEcomm } = registration,\n    { chooseEcomm, yearlyInterval, jurisdiction } = smbWebsiteOrEcomm,\n    { service, price, term, period, coupon, affiliatePlanOptionUUID } = getPackageData(chooseEcomm, yearlyInterval),\n    items = [];\n\n  if (chooseEcomm) {\n    items.push({ service, jurisdiction, price, coupon, fees: 0, term, period, is_add_on: false, affiliate_plan_option_uuid: affiliatePlanOptionUUID });\n    items.push({ service: 'static_website', jurisdiction, price: 0, coupon: 0, fees: 0, term: 12, period: yearlyInterval ? 1 : 12, is_add_on: false });\n    items.push({ service: 'smb_ecomm_addon', jurisdiction, price: 0, coupon: 0, fees: 0, term: 12, period: yearlyInterval ? 1 : 12, is_add_on: false });\n  } else {\n    items.push({ service, jurisdiction, price, coupon, fees: 0, term, period, is_add_on: false, affiliate_plan_option_uuid: affiliatePlanOptionUUID });\n  }\n\n  return items;\n};\n/* eslint-enable camelcase */\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = convertOrderData(registration, true),\n    orderItems = convertOrderItem(registration, true),\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.smbWebsiteOrEcomm.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\n\nimport { getVanityProductPrice } from '../../utils/ProductService';\nimport { getPricingInformation } from './BaseDataConverter';\n\nexport const convertOrderItem = (registration, standalone) => {\n  const\n    { business, vanityProduct } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { vanityKey: service, vanityUrlId } = vanityProduct,\n    price = getVanityProductPrice(vanityUrlId);\n\n  if (vanityProduct.vanityProduct) {\n    return { service, jurisdiction, price, fees: 0, is_add_on: false };\n  }\n\n  if (standalone) {\n    return { service, jurisdiction, price, fees: 0, is_add_on: false };\n  }\n\n  return null;\n};\n\nexport const convertOrderData = (registration, standalone) => {\n  const\n    { business, vanityProduct } = registration,\n    { requestedJurisdiction, type } = business,\n    { vanityKey: service } = vanityProduct;\n\n  if (standalone) {\n    return {\n      service,\n      standalone,\n      jurisdiction: requestedJurisdiction,\n      entity_type: type === 'LLCX' ? 'llc' : 'corp',\n      is_new_business: !standalone\n    };\n  }\n\n  return vanityProduct.vanityProduct ? {\n    service,\n    vanity_product: vanityProduct.vanityProduct,\n    jurisdiction: requestedJurisdiction,\n    entity_type: type === 'LLCX' ? 'llc' : 'corp',\n    standalone: false\n  } : null;\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    orderStatus = 'complete',\n    orderData = [\n      convertOrderData(registration, true)\n    ],\n    orderItems = [\n      convertOrderItem(registration, true)\n    ],\n    order = _assign({\n      order_status: orderStatus,\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: registration.vanityProduct.companyId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import { getZbBizTaxPrepPriorYearPrice } from '../../utils/ProductService';\n\nexport const convertOrderItem = (registration) => {\n  const { business, taxServices } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { product } = taxServices;\n\n  if (product !== 'zb_biztax_prep_prior_year') {\n    return null;\n  }\n\n  const price = getZbBizTaxPrepPriorYearPrice();\n\n  return {\n    fees: 0,\n    service: 'zb_biztax_prep_prior_year',\n    jurisdiction,\n    price,\n    is_add_on: false\n  };\n};\n\n  /* eslint-disable camelcase */\nexport const convertOrderData = (registration) => {\n  const { business, taxServices } = registration,\n    { requestedJurisdiction: jurisdiction } = business,\n    { product } = taxServices;\n\n  if (product !== 'zb_biztax_prep_prior_year') {\n    return null;\n  }\n\n  return {\n    service: 'zb_biztax_prep_prior_year',\n    jurisdiction\n  };\n};\n","/* eslint-disable no-await-in-loop */\n/* eslint-disable max-statements */\nimport _assign from 'lodash/assign';\nimport _find from 'lodash/find';\nimport _forEach from 'lodash/forEach';\nimport _isEmpty from 'lodash/isEmpty';\nimport Promise from 'promise';\nimport { validate as validateUuid } from 'uuid';\nimport BaseAPIService from './BaseAPIService';\nimport { buildOrder as buildAccountingOrder } from './converters/AccountingConverter';\nimport { buildOrder as buildAmendmentOrder } from './converters/AmendmentConverter';\nimport { buildOrder as buildAnnualReportOrder } from './converters/AnnualReportConverter';\nimport { buildOrder as buildBankingOrder } from './converters/BankingConverter';\nimport { buildOrder as buildBankingResolutionOrder } from './converters/BankingResolutionDataConverter';\nimport { buildOrder as buildBusinessKitOrder } from './converters/BusinessKitConverter';\nimport { buildOrder as buildBeneficialOwnershipFilingOrder } from './converters/BeneficialOwnershipFilingConverter';\nimport { buildOrder as buildBeneficialOwnershipFilingOngoingOrder } from './converters/BeneficialOwnershipFilingOngoingConverter';\nimport { buildOrder as buildBOFModificationOrder } from './converters/BOFModificationOrder';\nimport { buildOrder as buildOperatingAgreementOrder } from './converters/OpAgreeDataConverter';\nimport { buildOrder as buildBasicEmailOrder } from './converters/BasicEmailConverter';\nimport { buildOrder as buildBusLicOrder } from './converters/BusLicDataConverter';\nimport { buildOrder as buildCoRAOrder } from './converters/CoRADataConverter';\nimport { buildOrder as buildCorpOrder } from './converters/CorpDataConverter';\nimport { buildOrder as buildCorpDocsOrder } from './converters/CorporateDocsDataConverter';\nimport { buildOrder as buildDBAEntityOrder } from './converters/DBAEntityDataConverter';\nimport { buildOrder as buildDBAEntityForExistingBusOrder } from './converters/DBAEntityForExistingBusDataConverter';\nimport { buildOrder as buildDBAEntityAddOnOrder } from './converters/DBAEntityAddOnDataConverter';\nimport { buildOrder as buildDomainV2Order } from './converters/DomainV2DataConverter';\nimport { buildOrder as buildEmailV2Order } from './converters/EmailV2DataConverter';\nimport { buildOrder as buildDomainNameOrder } from './converters/DomainNameDataConverter';\nimport { buildOrder as buildDomainNamePrivacyOrder } from './converters/DomainNamePrivacyDataConverter';\nimport { buildOrder as buildEINBankingOrder } from './converters/EINBankingDataConverter';\nimport { buildOrder as buildEINOrder } from './converters/EINDataConverter';\nimport { buildOrder as buildExpenseTrackerNTaxFilingOrder } from './converters/ExpenseTrackingAndTaxFilingDataConverter';\nimport { buildOrder as buildGoodStandingOrder } from './converters/GoodStandingConverter';\nimport { buildOrder as buildLogoKitOrder } from './converters/LogoKitDataConverter';\nimport { buildOrder as buildInitialCPAScreeningOrder } from './converters/InitialCPAScreeningConverter';\nimport { buildOrder as buildLLCOrder } from './converters/LLCDataConverter';\nimport { buildOrder as buildNameResOrder } from './converters/NameResDataConverter';\nimport { buildOrder as buildNYPubOrder } from './converters/NYPubDataConverter';\nimport { buildOrder as buildPostPurchaseOrder } from './converters/PostPurchaseDataConverter';\nimport { buildOrder as buildRAOrder } from './converters/RegAgentDataConverter';\nimport { buildOrder as buildSMBWebsiteOrder } from './converters/SMBWebsiteDataConverter';\nimport { buildOrder as buildSMBWebsiteEcommOrder } from './converters/SMBWebsiteEcommDataConverter';\nimport { buildOrder as buildSMBEcommAddonOrder } from './converters/SMBEcommAddonDataConverter';\nimport { buildOrder as buildSMBWebsiteOrEcommOrder } from './converters/SMBWebsiteOrEcommDataConverter';\nimport { buildOrder as buildStaticWebsiteOrder } from './converters/StaticWebsiteDataConverter';\nimport { buildOrder as buildStockSetupOrder } from './converters/StockSetupConverter';\nimport { buildOrder as buildWebsiteToolsBundleOrder } from './converters/WebsiteToolsBundleConverter';\nimport { buildOrder as buildWFGOrder } from './converters/WorryFreeDataConverter';\nimport { buildOrder as buildWFGInitialReportOrder } from './converters/WFGInitialReportDataConverter';\nimport { buildOrder as buildVanityProductOrder } from './converters/VanityProductConverter';\nimport { buildOrder as buildZBMProOrder } from './converters/ZBMProDataConverter';\nimport { buildOrder as buildTruicZBMProOrder } from './converters/TruicZBMProDataConverter';\nimport { buildOrder as buildZbBankingPreferredOrder } from './converters/ZbBankingPreferredDataConverter';\nimport { buildOrder as buildTaxServicesOrder } from './converters/TaxServicesDataConverter';\nimport {  getOrderTracking, trackEvent } from '../utils/ThirdPartyTracking';\nimport { getEntryPointGroup } from '../utils/PartnerUtils';\nimport { getAffiliatePricingUUID, getAffiliatePricingUUIDByPrice } from '../utils/ProductService';\nimport { getIsFreeAccount } from '../utils/FreeAccountUtils';\nimport { cleanOrderData } from '../utils/OrderUtils';\nimport { setOrderDataSentDuringRegistration, validateOrderDataSentDuringRegistration } from '../utils/OrderDataTrackService';\nimport { getVisitUUID } from '../utils/VisitorCookie';\nimport { reportError } from '../utils/ReportingUtils';\nimport { allHandledPaymentErrors } from '../utils/PaymentUtils';\n\nconst\n  processCreateError = (err, action, url) => {\n    if (err && err.isAuth0) {\n      return Promise.reject(err);\n    }\n    if (err.response) {\n      const errorCode = err.response.data.errorCode || 500;\n      if (!allHandledPaymentErrors[errorCode]) {\n        // Before calling sentry, check to see if it is a handled payment error\n        BaseAPIService.notifySentry(err, url, action);\n      }\n      return Promise.reject({\n        errorCode,\n        error: err.response.data.error\n      });\n    }\n    BaseAPIService.notifySentry(err, url, action);\n    return Promise.reject({\n      errorCode: 500,\n      error: 'Client Error'\n    });\n  },\n  // Never POST an order with nothing in it: zenapi rejects it (422) and pages ecomm-oncall. Mirrors the\n  // server guard in ZenBusinessService.createOrder; reported to Sentry so the flow that built it is visible.\n  rejectEmptyOrder = (orderData, action, url) => {\n    const\n      { order_items: orderItems, order_data: data } = (orderData && orderData.order) || {},\n      itemCount = Array.isArray(orderItems) ? orderItems.filter(Boolean).length : 0,\n      dataCount = Array.isArray(data) ? data.filter(Boolean).length : 0;\n\n    if (itemCount > 0 && dataCount > 0) {\n      return null;\n    }\n    BaseAPIService.notifySentry(new Error(`Empty order not sent (${action}): order_items=${itemCount} order_data=${dataCount}`), url, action);\n    return Promise.reject({\n      errorCode: 422,\n      error: 'Order has no items'\n    });\n  },\n  addPricingIds = (data) => {\n    const { order: { order_items: orderItems = [] } } = data,\n      planItem = _find(orderItems, (item) => {\n        return item.service.indexOf('_plan_') !== -1;\n      }),\n      affiliatePlanOptionUUID = planItem ? planItem.affiliate_plan_option_uuid : null;\n\n    _forEach(orderItems, (item) => {\n      if (item === planItem) {\n        return;\n      }\n      // zb_money_pro is outside the plan, so even though we are looking at something that\n      // has an affiliatePlanOptionUUID, we want to retrieve the affiliatePricingUUID for this\n      // specific item\n      const plans = [\n        'zb_money_pro',\n        'zb_tax_advice',\n        'zb_biztax_prep',\n        'zb_tax_advice_biztax_prep'\n      ];\n\n      if (plans.includes(item?.service ?? '')) {\n        const affiliatePricingUUID = getAffiliatePricingUUID(item.service, item.term, item.period);\n        if (affiliatePricingUUID) {\n          item.affiliate_pricing_uuid = affiliatePricingUUID;\n        }\n      } else if (affiliatePlanOptionUUID) {\n        item.affiliate_plan_option_uuid = affiliatePlanOptionUUID;\n      } else {\n        const affiliatePricingUUID = getAffiliatePricingUUID(item.service, item.term, item.period);\n        if (affiliatePricingUUID) {\n          item.affiliate_pricing_uuid = affiliatePricingUUID;\n        }\n      }\n    });\n\n    // BOF with coupon has same key as BOF without coupon. When purchasing BOF Ongoing\n    // we need to make sure we use the service with the coupon\n    const bofKey = 'beneficial_ownership_filing';\n    const ongoingKey = 'ongoing_bof_compliance';\n    const hasBOF = orderItems.some((item) => { return item.service === bofKey; });\n    const hasOngoingBOF = orderItems.some((item) => { return item.service === ongoingKey; });\n\n    if (hasBOF && hasOngoingBOF) {\n      const bofOrderItem = data.order.order_items.find(({ service }) => {\n        return service === bofKey;\n      });\n      bofOrderItem.affiliate_pricing_uuid = getAffiliatePricingUUID(bofKey, null, null, bofOrderItem.coupon_uuid);\n\n      // Make sure to use the $49 ongoing bof instead of the $99\n      const ongoingOrderItem = data.order.order_items.find(({ service }) => {\n        return service === ongoingKey;\n      });\n      ongoingOrderItem.affiliate_pricing_uuid = getAffiliatePricingUUIDByPrice(ongoingKey, 49);\n    } else if (!hasBOF && hasOngoingBOF) {\n      // If just buying ongoing BOF without the filing (standalone), use the $99 price\n      const ongoingOrderItem = data.order.order_items.find(({ service }) => {\n        return service === ongoingKey;\n      });\n      ongoingOrderItem.affiliate_pricing_uuid = getAffiliatePricingUUIDByPrice(ongoingKey, 99);\n    }\n\n    // BOF modification has same key as BOF mod without coupon. When using coupon,\n    // we need to make sure we use the service with the coupon\n    const bofModKey = 'bof_modification';\n    const hasBOFMod = orderItems.some((item) => { return item.service === bofModKey; });\n\n    if (hasBOFMod) {\n      const bofModOrderItem = data.order.order_items.find(({ service }) => {\n        return service === bofModKey;\n      });\n      bofModOrderItem.affiliate_pricing_uuid = getAffiliatePricingUUID(bofModKey, null, null, bofModOrderItem.coupon_uuid || null);\n    }\n\n    return data;\n  },\n  leadCreation = async (lead, service, analyzeError) => {\n    // Add the affiliateId and the bannerId if in local storage\n    const url = 'registration/lead',\n      leadData = _assign({ affiliate_id: '', banner_id: '' }, lead);\n\n    if (window.localStorage) {\n      leadData.affiliate_id = window.localStorage.getItem('affiliateId') || '';\n      leadData.banner_id = window.localStorage.getItem('bannerId') || '';\n    }\n    const entryPoint = getEntryPointGroup() || 'zb';\n    const leadTracking = {\n      flow_name: entryPoint.toLowerCase(),\n      device_type: window.zenIsMobile ? window.mobileDeviceType : 'desktop',\n      user_type: getIsFreeAccount() ? 'free_account' : 'flow'\n    };\n    const dataWithTracking = {\n      ...leadData,\n      lead_tracking: leadTracking\n    };\n\n    if (!validateUuid(dataWithTracking.visit_uuid)) {\n      dataWithTracking.visit_uuid = getVisitUUID();\n    }\n\n    let times = 2;\n    let errTrack;\n    while (times > 0) {\n      try {\n        const response = await service.post(url, dataWithTracking);\n        const { data } = response;\n        if (data.lead_created) {\n          const eventLabel = leadTracking.flow_name === 'pf' ? `${leadTracking.flow_name}-${leadTracking.device_type}` : leadTracking.flow_name;\n          trackEvent('Lead', 'complete', eventLabel);\n        }\n        return Promise.resolve(data);\n      } catch (err) {\n        errTrack = err;\n        times -= 1;\n        await new Promise((resolve) => { return setTimeout(resolve, 100); });\n      }\n    }\n    return Promise.reject(analyzeError(errTrack, url));\n  },\n  checkAccountData = async (account, service, order) => {\n    // Some order fail because the account doesn't include the lead_uuid, let's validate it.\n    if (!_isEmpty(account.lead_uuid)) {\n      return { ...account };\n    }\n    const leadFromLS = window.localStorage ? JSON.parse(window.localStorage.getItem('registration/lead') || '{}').leadUUID || '' : '';\n    if (!_isEmpty(leadFromLS)) {\n      return { ...account, lead_uuid: leadFromLS };\n    }\n    try {\n      // if we are not able to find the lead_uuid, let's try to ask the BE for one.\n      const formationOrderData = (order.order_data || [])\n        .find((od) => { return ['llc_formation', 'corp_formation'].includes(od?.service || ''); }) || {};\n\n      const { entity_name: entityName = '', jurisdiction = '', service: formationOrderService  } = formationOrderData;\n      let entityType = '';\n      if (formationOrderService) {\n        entityType = formationOrderService === 'llc_formation' ? 'LLCX' : 'CORP';\n      }\n\n      const { email, first_name, last_name, phone = '' } = account;\n      const leadInfo = {\n        email,\n        first_name,\n        last_name,\n        phone,\n        entity_name: entityName,\n        entity_type: entityType,\n        lead_source: 'web',\n        searchstate: jurisdiction,\n        selected_state: jurisdiction\n      };\n      const { lead_uuid: leadUuid = '' } = await leadCreation(leadInfo, service, (err, url) => {\n        reportError(err, {\n          responseData: JSON.stringify(err?.response?.data || {}, null, 4),\n          httpStatus: err?.response?.status || 404,\n          url\n        });\n      });\n      return { ...account, lead_uuid: leadUuid };\n    } catch (ex) {\n      //return the account as it is.\n      return { ...account };\n    }\n\n  },\n  createFormation = async (service, order, type) => {\n    try {\n      const orderTracking = getOrderTracking('flow');\n      const orderData = { ...order, order: { ...order.order, order_tracking: orderTracking } };\n      // before send the order verify it doesn't have null prices and order_data and order_items are equivalent.\n      orderData.order = cleanOrderData(orderData.order);\n      if (orderData.account) {\n        orderData.account = await checkAccountData(orderData.account, service, orderData.order);\n      }\n\n      const activeService = 'order_ssn_tokenized' in orderData.order ? BaseAPIService.secureService : BaseAPIService.service;\n      const formation = await activeService.post('registration/create', addPricingIds(orderData));\n      const {\n        data: {\n          data: responseData,\n          data: {\n            id = ''\n          }\n        }\n      } = formation;\n      // preserve in memory which services were sent this will be used by the update service.\n      setOrderDataSentDuringRegistration(orderData.order.order_data, id);\n      return Promise.resolve({\n        data: responseData\n      });\n    } catch (err) {\n      return processCreateError(err, type, 'registration/create');\n    }\n  },\n  createStockOrder = (service, order, type, isNotLoggedIn) => {\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n\n    const orderTracking = getOrderTracking('cust_dashboard');\n    const orderData = { ...order, order: { ...order.order, order_tracking: orderTracking } };\n    return service.post('stock-setup/post', orderData)\n      .then((response) => {\n        const {\n          data: {\n            data: responseData\n          }\n        } = response;\n        return Promise.resolve({\n          data: responseData\n        });\n      })\n      .catch((err) => {\n        return processCreateError(err, type, 'stock-setup/post');\n      });\n  },\n  createDomainOrderV2 = (service, order, type, isNotLoggedIn) => {\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n\n    const orderData = { ...order };\n    return service.post('domainsV2/create', orderData)\n      .then((response) => {\n        const {\n          data: {\n            data: responseData\n          }\n        } = response;\n        return Promise.resolve({\n          data: responseData\n        });\n      })\n      .catch((err) => {\n        return processCreateError(err, type, 'domainsV2/create');\n      });\n  },\n  createSkippedEmail = (service, order, type, isNotLoggedIn) => {\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n\n    const orderData = { ...order };\n    return service.post('email/create_skipped_email', orderData)\n      .then((response) => {\n        const {\n          data: {\n            data: responseData\n          }\n        } = response;\n        return Promise.resolve({\n          data: responseData\n        });\n      })\n      .catch((err) => {\n        return processCreateError(err, type, 'email/create_skipped_email');\n      });\n  },\n  createStandalone = (service, order, type) => {\n    const orderTracking = getOrderTracking('cust_dashboard');\n    const orderData = { ...order, order: { ...order.order, order_tracking: orderTracking } };\n    const emptyOrder = rejectEmptyOrder(orderData, type, 'registration/create');\n    if (emptyOrder) {\n      return emptyOrder;\n    }\n    const activeService = 'order_ssn_tokenized' in orderData.order ? BaseAPIService.secureService : BaseAPIService.service;\n    return activeService.post('registration/create', addPricingIds(orderData)).then((response) => {\n      const {\n        data: {\n          data: responseData\n        }\n      } = response;\n      return Promise.resolve({\n        data: responseData\n      });\n    }).catch((err) => {\n      return processCreateError(err, type, 'registration/create');\n    });\n  },\n  createDashboardStandalone = (service, order, type, isNotLoggedIn) => {\n\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n\n    const orderTracking = getOrderTracking('cust_dashboard');\n    const orderData = { ...order, order: { ...order.order, order_tracking: orderTracking } };\n    const emptyOrder = rejectEmptyOrder(orderData, type, 'registration/create');\n    if (emptyOrder) {\n      return emptyOrder;\n    }\n    const activeService = 'order_ssn_tokenized' in orderData.order ? BaseAPIService.secureService : BaseAPIService.service;\n    return activeService.post('registration/create', addPricingIds(orderData)).then((response) => {\n      const {\n        data: {\n          data: responseData\n        }\n      } = response;\n      return Promise.resolve({\n        data: responseData\n      });\n    }).catch((err) => {\n      return processCreateError(err, type, 'registration/create');\n    });\n  },\n  updateOrder = (service, payload, type, isNotLoggedIn, validateOrderDataSent, tokenHeader) => {\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    // apply the verification againts in-memory order_data dictionary only if it's required\n    if (validateOrderDataSent) {\n      payload.order.order_data = validateOrderDataSentDuringRegistration(payload.order.order_data, payload.order.order_uuid);\n    }\n    const activeService = 'order_ssn_tokenized' in payload.order ? BaseAPIService.secureService : BaseAPIService.service;\n    return activeService.post('registration/update', payload, tokenHeader).then((response) => {\n      const { data: responseData } = response.data;\n      return Promise.resolve({\n        data: responseData\n      });\n    }).catch((err) => {\n      return processCreateError(err, type, 'registration/update');\n    });\n  };\n\n\nexport default _assign({\n\n  async createLead(lead) {\n    return leadCreation(lead, this.service, this.analyzeError);\n  },\n\n  updateLead(leadUuid, lead) {\n    // Add the affiliateId and the bannerId if in local storage\n    const url = `registration/lead/${leadUuid}`;\n    return this.service.post(url, lead).then((response) => {\n      const { data } = response;\n      return Promise.resolve(data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  createLLC(data, filingFees, expediteFees) {\n    return createFormation(this.service, buildLLCOrder(data, filingFees, expediteFees, false), 'createLLC');\n  },\n\n  updateLLC(data, filingFees, expediteFees) {\n    return updateOrder(this.service, buildLLCOrder(data, filingFees, expediteFees, true), 'updateLLC', this.isNotLoggedIn(), true);\n  },\n\n  createCorp(data, filingFees, expediteFees) {\n    return createFormation(this.service, buildCorpOrder(data, filingFees, expediteFees, false), 'createCorp');\n  },\n\n  updateCorp(data, filingFees, expediteFees) {\n    return updateOrder(this.service, buildCorpOrder(data, filingFees, expediteFees, true), 'updateCorp', this.isNotLoggedIn(), true);\n  },\n\n  updateStockSetup(data, companyId, stockInfo, corpFormationId) {\n    return createStockOrder(this.service, buildStockSetupOrder(data, stockInfo, companyId, corpFormationId), 'updateStockSetup', this.isNotLoggedIn(), true);\n  },\n\n  createDBAEntity(data, filingFees) {\n    return createStandalone(this.service, buildDBAEntityOrder(data, filingFees, false), 'createDBAEntity');\n  },\n\n  createDBAEntityForExistingBus(data, filingFees, accountId) {\n    return createDashboardStandalone(this.service, buildDBAEntityForExistingBusOrder(data, accountId, filingFees), 'createDBAEntity', this.isNotLoggedIn());\n  },\n\n  updateDBAEntity(data, filingFees) {\n    return updateOrder(this.service, buildDBAEntityOrder(data, filingFees, true), 'updateDBAEntity', this.isNotLoggedIn());\n  },\n\n  createEIN(data) {\n    return createStandalone(this.service, buildEINOrder(data, false), 'createEIN');\n  },\n\n  updateEIN(data) {\n    return updateOrder(this.service, buildEINOrder(data, true), 'updateEIN', this.isNotLoggedIn());\n  },\n\n  createBusinessLicense(data) {\n    return createStandalone(this.service, buildBusLicOrder(data, false), 'createBusinessLicense');\n  },\n\n  updateBusinessLicense(data) {\n    return updateOrder(this.service, buildBusLicOrder(data, true), 'updateBusinessLicense', this.isNotLoggedIn());\n  },\n\n  createRA(data, filingFees) {\n    return createStandalone(this.service, buildRAOrder(data, filingFees, false), 'createRA');\n  },\n\n  updateRA(data, filingFees) {\n    return updateOrder(this.service, buildRAOrder(data, filingFees, true), 'updateRA', this.isNotLoggedIn());\n  },\n\n  createCoRA(data, filingFees) {\n    return createStandalone(this.service, buildCoRAOrder(data, filingFees, false), 'createCoRA');\n  },\n\n  updateCoRA(data, filingFees) {\n    return updateOrder(this.service, buildCoRAOrder(data, filingFees, true), 'updateCoRA', this.isNotLoggedIn());\n  },\n\n  createWFG(data, filingFees) {\n    return createStandalone(this.service, buildWFGOrder(data, filingFees, false), 'createWFG');\n  },\n\n  updateWFG(data, filingFees) {\n    return updateOrder(this.service, buildWFGOrder(data, filingFees, true), 'updateWFG', this.isNotLoggedIn());\n  },\n\n  createNameReservation(data, filingFees) {\n    return createStandalone(this.service, buildNameResOrder(data, filingFees, false), 'createNameReservation');\n  },\n\n  createNyPubLLC(data, filingFees) {\n    return createStandalone(this.service, buildNYPubOrder(data, true, filingFees), 'createNYPubLLC');\n  },\n\n  updateNyPubLLC(data, filingFees) {\n    return updateOrder(this.service, buildNYPubOrder(data, true, filingFees, true), 'updateNYPubLLC', this.isNotLoggedIn());\n  },\n\n  createAccounting(data, accountId) {\n    return createDashboardStandalone(this.service, buildAccountingOrder(data, accountId), 'createAccounting', this.isNotLoggedIn());\n  },\n\n  createAmendment(data, accountId, filingFees, fieldRules) {\n    return createDashboardStandalone(this.service, buildAmendmentOrder(data, accountId, filingFees, fieldRules), 'createAmendment', this.isNotLoggedIn());\n  },\n\n  createAnnualReport(data, accountId, filingFees, fieldRules) {\n    return createDashboardStandalone(this.service, buildAnnualReportOrder(data, accountId, filingFees, fieldRules), 'createAnnualReport', this.isNotLoggedIn());\n  },\n\n  createDBAEntityAddOn(data, accountId, filingFees) {\n    return createDashboardStandalone(this.service, buildDBAEntityAddOnOrder(data, accountId, filingFees), 'createDBAEntity', this.isNotLoggedIn());\n  },\n\n  createGoodStanding(data, accountId, filingFees) {\n    return createDashboardStandalone(this.service, buildGoodStandingOrder(data, accountId, filingFees), 'createGoodStanding', this.isNotLoggedIn());\n  },\n\n  createInitialCPAScreening(domesticJurisdiction, companyId, accountId) {\n    return createDashboardStandalone(this.service, buildInitialCPAScreeningOrder(domesticJurisdiction, companyId, accountId), 'createInitialCPAScreening', this.isNotLoggedIn());\n  },\n\n  createLogoKit(data, accountId) {\n    return createDashboardStandalone(this.service, buildLogoKitOrder(data, accountId), 'createLogoKit', this.isNotLoggedIn());\n  },\n\n  createStaticWebsite(data, accountId) {\n    return createDashboardStandalone(this.service, buildStaticWebsiteOrder(data, accountId), 'createStaticWebsite', this.isNotLoggedIn());\n  },\n\n  createExpenseTrackerNTaxFiling(data, accountId) {\n    return createDashboardStandalone(this.service, buildExpenseTrackerNTaxFilingOrder(data, accountId), 'createExpenseTrackerNTaxFiling', this.isNotLoggedIn());\n  },\n\n  createWFGInitialReport(data, accountId, filingFees) {\n    return createDashboardStandalone(this.service, buildWFGInitialReportOrder(data, accountId, filingFees), 'createWFGInitialReport', this.isNotLoggedIn());\n  },\n\n  createBankingResolution(data, accountId) {\n    return createDashboardStandalone(this.service, buildBankingResolutionOrder(data, accountId), 'createBankingResolution', this.isNotLoggedIn());\n  },\n\n  createBusinessKit(data, accountId) {\n    return createDashboardStandalone(this.service, buildBusinessKitOrder(data, accountId), 'createBusinessKit', this.isNotLoggedIn());\n  },\n\n  createBeneficialOwnershipFiling(data, accountId, filingFees, isOngoing, isMod, hasOngoing) {\n    let orderData = buildBeneficialOwnershipFilingOrder(data, accountId);\n\n    if (isMod) {\n      orderData = buildBOFModificationOrder(data, accountId, isOngoing, hasOngoing);\n    } else if (!isMod && isOngoing) {\n      orderData = buildBeneficialOwnershipFilingOngoingOrder(data, accountId);\n    }\n\n    return createDashboardStandalone(\n      this.service,\n      orderData,\n      'createBeneficialOwnershipFiling',\n      this.isNotLoggedIn()\n    );\n  },\n\n  createBeneficialOwnershipFilingModification(data, accountId, isOngoing, hasOngoing) {\n    const orderData = buildBOFModificationOrder(data, accountId, isOngoing, hasOngoing);\n\n    return createDashboardStandalone(\n      this.service,\n      orderData,\n      'createBeneficialOwnershipFilingModification',\n      this.isNotLoggedIn()\n    );\n  },\n\n  createOperatingAgreement(data, accountId) {\n    return createDashboardStandalone(this.service, buildOperatingAgreementOrder(data, accountId, false, true), 'createOperatingAgreement', this.isNotLoggedIn());\n  },\n\n  createBasicEmail(data, accountId, filingFees) {\n    return createDashboardStandalone(this.service, buildBasicEmailOrder(data, accountId, filingFees), 'createBasicEmail', this.isNotLoggedIn());\n  },\n\n  createCorpDocs(data, accountId, filingFees) {\n    return createDashboardStandalone(this.service, buildCorpDocsOrder(data, accountId, filingFees), 'createCorpDocs', this.isNotLoggedIn());\n  },\n\n  createDomainName(data, accountId, filingFees) {\n    return createDashboardStandalone(this.service, buildDomainNameOrder(data, accountId, filingFees), 'createDomainName', this.isNotLoggedIn());\n  },\n\n  createDomainNameV2(isExternal, companyID, domainName, orderUuid) {\n    return createDomainOrderV2(this.service, buildDomainV2Order(isExternal, companyID, domainName, orderUuid), 'createDomainNameV2', this.isNotLoggedIn());\n  },\n\n  createEmail(data) {\n    return createSkippedEmail(this.service, buildEmailV2Order(data.businessEntityUuid, data.orderUuid, data.emailAddresses[0]), 'createEmail', this.isNotLoggedIn());\n  },\n\n  createDomainNamePrivacy(data, accountId, filingFees) {\n    return createDashboardStandalone(this.service, buildDomainNamePrivacyOrder(data, accountId, filingFees), 'createDomainNamePrivacy', this.isNotLoggedIn());\n  },\n\n  createBanking(data, accountId) {\n    return createDashboardStandalone(this.service, buildBankingOrder(data.registration, accountId), 'createBanking', this.isNotLoggedIn());\n  },\n\n  createSMBWebsite(data, accountId) {\n    return createDashboardStandalone(this.service, buildSMBWebsiteOrder(data, accountId), 'createSMBWebsite', this.isNotLoggedIn());\n  },\n\n  createSMBWebsiteEcomm(data, accountId) {\n    return createDashboardStandalone(this.service, buildSMBWebsiteEcommOrder(data, accountId), 'createSMBWebsiteEcomm', this.isNotLoggedIn());\n  },\n\n  createSMBEcommAddon(data, accountId) {\n    return createDashboardStandalone(this.service, buildSMBEcommAddonOrder(data, accountId), 'createSMBEcommAddon', this.isNotLoggedIn());\n  },\n\n  createSMBWebsiteOrEcomm(data, accountId) {\n    return createDashboardStandalone(this.service, buildSMBWebsiteOrEcommOrder(data, accountId), 'createSMBWebsiteOrEcomm', this.isNotLoggedIn());\n  },\n\n  createVanityProduct(data, accountId) {\n    return createDashboardStandalone(this.service, buildVanityProductOrder(data, accountId), 'createVanityProduct', this.isNotLoggedIn());\n  },\n\n  createWebsiteToolsBundle(data, accountId) {\n    return createDashboardStandalone(this.service, buildWebsiteToolsBundleOrder(data, accountId), 'createWebsiteToolsBundle', this.isNotLoggedIn());\n  },\n\n  createZBMPro(data, accountId) {\n    return createDashboardStandalone(this.service, buildZBMProOrder(data, accountId), 'createZBMPro', this.isNotLoggedIn());\n  },\n\n  createTruicZBMPro(data, accountId) {\n    return createDashboardStandalone(this.service, buildTruicZBMProOrder(data, accountId), 'createTruicZBMPro', this.isNotLoggedIn());\n  },\n\n  createEINBanking(data) {\n    return createStandalone(this.service, buildEINBankingOrder(data, false), 'createEINBanking');\n  },\n\n  createZbBankingPreferred(data, accountId, filingFees) {\n    return createDashboardStandalone(this.service, buildZbBankingPreferredOrder(data, accountId, filingFees), 'createZbBankingPreferred', this.isNotLoggedIn());\n  },\n\n  createTaxServices(data, accountId) {\n    return createDashboardStandalone(this.service, buildTaxServicesOrder(data, accountId), 'createTaxServices', this.isNotLoggedIn());\n  },\n  createPostPurchase(data, filingFees, expediteFees) {\n    const order = buildPostPurchaseOrder(data, filingFees, expediteFees);\n    order.order.existing_order_data = validateOrderDataSentDuringRegistration(order.order.existing_order_data, order.order.existing_order_uuid);\n    const orderTracking = getOrderTracking('post-purchase');\n    const orderData = { ...order, order: { ...order.order, order_tracking: orderTracking } };\n    const activeService = 'order_ssn_tokenized' in order.order ? BaseAPIService.secureService : BaseAPIService.service;\n    return activeService.post('postpurchase/create', addPricingIds(orderData)).then((response) => {\n      const {\n        data: {\n          data: responseData\n        }\n      } = response;\n      return Promise.resolve({\n        data: responseData\n      });\n    }).catch((err) => {\n      return processCreateError(err, 'createPostPurchase', 'postpurchase/create');\n    });\n  },\n\n  createPostPurchaseBOF(data) {\n    const\n      { postpurchase, customer } = data,\n      { id: accountId } = customer,\n      { purchaseBOF, bofOngoing } = postpurchase;\n\n    // bofOngoing alone is not a purchase: the post-purchase converters only build BOF items when purchaseBOF\n    // is set, so sending without it posts an empty order (zenapi 422, ecomm-oncall alert 2026-10-19).\n    if (!purchaseBOF) {\n      return Promise.resolve({ data: {} });\n    }\n\n    return createDashboardStandalone(\n      this.service,\n      bofOngoing\n        ? buildBeneficialOwnershipFilingOngoingOrder(data, accountId, true)\n        : buildBeneficialOwnershipFilingOrder(data, accountId, true),\n      'createBeneficialOwnershipFiling',\n      this.isNotLoggedIn()\n    );\n  },\n\n  validateBusinessName(name, jurisdiction, type) {\n    const url = 'registration/validateName';\n\n    return this.service.get(url, { params: { name, jurisdiction, type } }).then((response) => {\n      const { data } = response;\n      return Promise.resolve(data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n\n  }\n}, BaseAPIService);\n","// eslint-disable-next-line import/prefer-default-export\nexport const buildOrder = (data, stockInfo, companyID, corpFormationId) => {\n  return {\n    companyId: companyID,\n    ...stockInfo,\n    ...data.customer,\n    corpFormationId\n  };\n};\n","// business entity UUID, isExternal, domain name as arguments\n// eslint-disable-next-line import/prefer-default-export\nexport const buildOrder = (isExternal, companyID, domainName, orderUuid) => {\n  return {\n    business_entity_uuid: companyID,\n    is_external: isExternal,\n    domain_name: domainName,\n    order_uuid: orderUuid\n  };\n};\n","// business entity UUID, isExternal, domain name as arguments\n// eslint-disable-next-line import/prefer-default-export\nexport const buildOrder = (companyId, orderUuid, email) => {\n  return {\n    emailAddress: email,\n    business_entity_uuid: companyId,\n    order_uuid: orderUuid\n  };\n};\n","import _assign from 'lodash/assign';\nimport _compact from 'lodash/compact';\n\nimport { getPricingInformation } from './BaseDataConverter';\nimport { convertOrderItem as convertZbBizTaxPrepOrderItem, convertOrderData as convertZbBizTaxPrepOrderData } from './zbBizTaxPrepConverter';\nimport { convertOrderItem as convertZbTaxAdviceOrderItem, convertOrderData as convertZbTaxAdviceOrderData } from './zbTaxAdviceConverter';\nimport { convertOrderItem as convertZbTaxAdviceBizTaxPrepOrderItem, convertOrderData as convertZbTaxAdviceBizTaxPrepOrderData } from './zbTaxAdviceBizTaxPrepConverter';\nimport { convertOrderItem as convertZbBizTaxPrep2023OrderItem, convertOrderData as convertZbBizTaxPrep2023OrderData } from './zbBizTaxPrepPriorYearConverter';\n\nexport const buildOrderData = (registration) => {\n  return _compact([\n    convertZbBizTaxPrepOrderData(registration, true),\n    convertZbTaxAdviceOrderData(registration, true),\n    convertZbTaxAdviceBizTaxPrepOrderData(registration, true),\n    convertZbBizTaxPrep2023OrderData(registration, true)\n  ]);\n};\n\nexport const buildOrder = (registration, accountId) => {\n  const\n    { business } = registration,\n    //{ id: accountId } = customer,\n    { id: businessId } = business,\n    orderData = buildOrderData(registration),\n    orderItems = _compact([\n      convertZbBizTaxPrepOrderItem(registration, true),\n      convertZbTaxAdviceOrderItem(registration, true),\n      convertZbTaxAdviceBizTaxPrepOrderItem(registration, true),\n      convertZbBizTaxPrep2023OrderItem(registration, true)\n    ]),\n    order = _assign({\n      order_status: 'complete',\n      order_data: orderData,\n      order_items: orderItems,\n      business_entity_uuid: businessId\n    }, getPricingInformation(registration.order));\n\n  return {\n    account_uuid: accountId,\n    order\n  };\n};\n","import _assign from 'lodash/assign';\n\nimport { buildEntityName, convertAddress, convertContactIfIdentified, convertDirectors, convertManagers, convertMembers, convertOfficers, convertRegisteredAgent } from './BaseDataConverter';\n\nconst\n  getEntityType = (type) => {\n    if (type === 'LLCX') {\n      return 'llc';\n    }\n    if (type === 'CORP') {\n      return 'corp';\n    }\n    return '';\n  };\n\n/* eslint-disable camelcase */\nexport const convertBusinessData = (registration) => {\n  const { business, businessAddresses, contact, directors, managers, members, officers, registeredAgent } = registration,\n    { domesticJurisdiction: domestic_jurisdiction } = business,\n    { principal: principalAddress, mailing: mailingAddress, physical: physicalAddress } = businessAddresses,\n    { type, name, indicator = '', description: business_purpose } = business,\n    isLLC = type === 'LLCX',\n    isCorp = type === 'CORP',\n    data = _assign({\n      jurisdiction: domestic_jurisdiction,\n      domestic_jurisdiction,\n      business_purpose,\n      entity_name: buildEntityName(name, indicator),\n      principal_address: convertAddress(principalAddress),\n      mailing_address: convertAddress(mailingAddress),\n      address: convertAddress(physicalAddress)\n    },\n    convertContactIfIdentified(contact),\n    isLLC ? convertManagers(managers) : {},\n    isCorp ? convertDirectors(directors) : {},\n    isLLC ? convertMembers(members) : {},\n    isCorp ? convertOfficers(officers) : {},\n    convertRegisteredAgent(registeredAgent, business, { registeredAgent: false }));\n\n  return data;\n};\n\nexport const buildBusinessData = (registration, isUpdate) => {\n  const\n    { business } = registration,\n    { name, indicator = '', type, domesticJurisdiction } = business,\n    business_entity_name = buildEntityName(name, indicator);\n\n  if (isUpdate) {\n    return {\n      business_entity_name,\n      business_entity_data: convertBusinessData(registration)\n    };\n  }\n\n  return {\n    business_entity_name,\n    business_entity_type: getEntityType(type),\n    jurisdiction_code: domesticJurisdiction\n  };\n};\n\nexport const buildContactsData = (registration) => {\n  const { contact } = registration;\n  const createdDate = new Date().toISOString();\n  return [{\n    contact_types: [\n      'primary'\n    ],\n    deleted: false,\n    first_name: contact.firstName,\n    middle_name: contact.middleName,\n    last_name: contact.lastName,\n    suffix: contact.suffix,\n    company_name: contact.companyName,\n    email: contact.email,\n    phone: contact.phoneNumber,\n    address_1: contact.addressLine1,\n    address_2: contact.addressLine2,\n    city: contact.city,\n    state: contact.state,\n    zip: contact.zipCode,\n    county: contact.county,\n    country: contact.country,\n    created_datetime: createdDate,\n    updated_datetime: createdDate\n  }];\n};\n/* eslint-enable camelcase */\n","import _assign from 'lodash/assign';\nimport Promise from 'promise';\n\nimport BaseAPIService from './BaseAPIService';\nimport { buildBusinessData, buildContactsData } from './converters/BusinessEntityDataConverter';\n\nexport default _assign({\n\n  getBusinessEntity(entityId) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `business-entities/${entityId}`;\n    return this.service.get(url).then((response) => {\n      if (response.data.errorMessage.indexOf('Unable') === 0) {\n        return Promise.reject(this.analyzeError({\n          response: {\n            status: 404,\n            data: {\n              errorMessage: response.data.errorMessage,\n              status: 404\n            }\n          }\n        }), url);\n      }\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  getFiles(entityId) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `business-entities/${entityId}/files`;\n    return this.service.get(url).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  create(data) {\n    const url = 'business-entities';\n\n    return this.service.post(url, buildBusinessData(data, false)).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  update(data, businessEntityId) {\n    const url = `business-entities/${businessEntityId}`;\n    return this.service.put(url, buildBusinessData(data, true)).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  updateContacts(data) {\n    const { business: { id } } = data;\n    const url = `business-entities/${id}/contacts`;\n    return this.service.put(url, buildContactsData(data)).then((response) => {\n      return Promise.resolve(response.data);\n    }).catch((err) => {\n      return Promise.reject(this.analyzeError(err, url));\n    });\n  },\n\n  getComplianceEvents(data, businessEntityId) {\n    const isNotLoggedIn = this.isNotLoggedIn();\n    if (isNotLoggedIn) {\n      return Promise.reject(isNotLoggedIn);\n    }\n    const url = `business-entities/${businessEntityId}/compliance-events`;\n    return this.service.get(url)\n      .then((response) => { return Promise.resolve(response.data); })\n      .catch((err) => { return Promise.reject(this.analyzeError(err, url)); });\n  }\n}, BaseAPIService);\n","import account from './AccountService';\nimport fintech from './FintechService';\nimport amendment from './AmendmentService';\nimport annualReport from './AnnualReportService';\nimport companies from './CompanyService';\nimport contactUs from './ContactUsService';\nimport corpStock from './CorpStockService';\nimport domainName from './DomainNameService';\nimport initialization from './InitializationService';\nimport orders from './OrderService';\nimport registration from './RegistrationService';\nimport businessEntities from './BusinessEntityService';\n\nexport const accountService = account;\nexport const fintechService = fintech;\nexport const amendmentService = amendment;\nexport const annualReportService = annualReport;\nexport const companyService = companies;\nexport const contactUsService = contactUs;\nexport const corpStockService = corpStock;\nexport const domainNameService = domainName;\nexport const initializationService = initialization;\nexport const registrationService = registration;\nexport const orderService = orders;\nexport const businessEntityService = businessEntities;\n"],"names":["standardErrorMsgs","status400","status401","status404","authInterceptor","config","headers","Authorization","Email","authErrorInterceptor","error","Promise","reject","createAxiosInstance","baseURL","instance","axios","create","timeout","api","withCredentials","interceptors","request","use","service","secureBaseURL","Error","secureService","replace","notifySentry","err","url","action","metaData","errorName","response","errorCode","data","status","responseData","JSON","stringify","httpStatus","message","toLowerCase","name","analyzeError","this","unauthorized","errorMessage","getErrorMsg","SERVER_ERROR","isNotLoggedIn","errorMsgs","status500","convertPaymentMethod","paymentMethod","cardNumber","number","expMonth","expYear","cvc","isDefault","card_token","exp_month","parseInt","exp_year","default","order","registration","business","customer","firstName","first_name","middleName","middle_name","lastName","last_name","suffix","email","phoneNumber","phone","password","hasExistingBusiness","has_existing_business","business_entity_name","type","requestedJurisdiction","jurisdiction_code","international","signup_client","business_entity_type","source","window","zenIsMobile","visit_uuid","custom_flow","entry_point_group","post","then","catch","get","exists","params","q","hasZBMoneyProSubscription","zbmSubscriptionResponse","hasZBMoneySubscription","getPaymentMethods","addPaymentMethod","addPaymentMethodV2","setPaymentMethodDefault","id","markCorpDocAsSeen","corpDocId","acceptTOS","BaseAPIService","getHurdlrSubscriptionTier","getOrderTaskMigrationServices","orderTaskUuid","migrateMoneyPlan","couponUuid","plan","planData","term","getJurisdictionInfo","jurisdictionCode","getComplianceEvent","uuid","checkEligibility","entityType","eligible","getRegisteredAgents","businessEntityUuid","encodeURIComponent","getCompanies","indexOf","getCompany","companyId","getFiles","files","file","business_entity_uuid","sendMessage","messageInfo","getStockFeeTotal","getVariableFeeExistence","jurisdiction","getCorpStockFee","fees","addFeeCorpCalculator","check","domainName","suggest","initialize","website","origin","location","pathname","match","sanitizedPath","setWebsiteIfNull","initData","getStateFees","stateCode","getExpediteFees","getOrders","getOperatingAgreement","orderId","updateOrderTaskStatus","subStatus","getOrderTasksByCompany","patchOrderTaskData","orderTaskData","patch","order_task_data","managerTypeMap","AllOwners","SomeOwners","SomeManagers","AllManagers","removeEmptyValues","obj","v","convertAddress","address","address_1","address_2","addressLine1","addressLine2","city","county","state","country","zipCode","zip","lat","lng","addressIsGoogle","address_is_google","convertUser","user","companyName","careOf","outstandingJudgments","company_name","care_of","outstanding_judgments","hasContactIdentity","contact","Boolean","convertContact","is_principal","isPrincipal","convertContactIfIdentified","calculateBusinessTotal","purchase","filingFees","expediteFees","domesticJurisdiction","bankingResolution","basicEmail","domainNamePrivacy","ein","expedite","nyPublication","operatingAgreement","privacy","staticWebsite","worryFree","planLevel","exFees","getExpeditePrice","corp","prices","llc","banking_resolution","basic_email","domain_name_reg","domain_name_privacy","ein_creation","ny_publication","operating_agreement","convertManagers","managerReduce","managers","managerList","managerType","managerCount","users","retval","value","push","manager_count","manager_type","convertMembers","memberReduce","members","memberList","memberCount","manager","convertMember","member_count","convertDirectors","directorReduce","directors","directorList","directorCount","title","convertDirector","director_count","convertOfficer","convertOfficers","officerReduce","officers","officerList","convertRegisteredAgent","registeredAgent","ra","registered_agent_service","registered_agent","convertAuthorizedSignatory","authSig","skipCaseFix","authSigFix","k","includes","authorized_signatory","getPricingInformation","buildPlanGatedZeroItem","activePlan","extras","price","is_add_on","affiliate_plan_option_uuid","buildEntityName","indicator","map","el","filter","join","decorateAccount","account","is_recurly","convertOrderItem","standalone","accountingGrowAndScale","accountingQuickStart","accountingUpAndRunning","period","convertOrderData","resolveJurisdiction","jurisdictionOverride","fallbacks","find","undefined","getEntityType","amendment","annualReport","activePlanLevel","servicePricing","coupons","pricing","getPricingAndCouponAmount","worry_free_service","coupon","wfFees","servicePrice","serviceCouponAmount","orderItemObj","useCredit","credits","credit_balance_uuid","creditUUID","businessAddresses","page","isAutoIncluded","description","business_purpose","isLLC","isCorp","principal","principalAddress","mailing","mailingAddress","physical","physicalAddress","completedAction","completedUrl","completedActionIndex","is_new_business","is_auto_included","domestic_jurisdiction","entity_type","entity_name","principal_address","mailing_address","estimated_formation_date","activity","domestic_entity","foreign_jurisdictions","domestic_filing_date","state_id","completed_action","START","completed_url","completed_action_index","isUpdate","orderStatus","orderData","order_status","order_data","order_uuid","businessId","accountId","lead","leadUUID","lead_uuid","cardToken","convertAccount","order_items","account_uuid","isAnswerYes","answer","formNewARData","updatedCompanyInfo","fieldRules","updatedInfo","business_entity_data","requiresAmendment","structure","addresses","taxPreparer","tax_payer","stockInfo","stock_info","par_value","authorized_shares","authorizedSignatory","paRaAuthorizedSignatoryConsent","pa_ra_authorized_signatory_consent","didDisposeOfProperty","sold_property","hadGrossSales","had_gross_sales","hadGoodStanding","had_good_standing","liabilitySingleMember","liability_single_member","privatelyHeld","privately_held","stateBenefit","state_benefit","listGrossSales","list_gross_sales","maintainLicense","requires_license","makesLessThan","makes_less_than_amount","useProperty","own_or_lease_property","totalRevenue","total_revenue","ownsAnyOtherBusiness","owns_any_other_business","companyDataOwns","company_data_owns","companyDataOwnedBy","company_data_owned_by","isOwnedByAnyOtherBusiness","is_owned_by_any_other_business","hasEnteredIntoContract","has_entered_into_any_contract","ownsRealProperty","owns_real_property","hasThereBeenATransferOfStock","has_there_been_a_transfer_of_stock","hasTransferOfStockBeenOverEqualFiftyPercent","has_transfer_of_stock_been_over_equal_fifty_percent","hasControllingInterestTransferFiledDepartmentRevenue","has_controlling_interest_transfer_filed_department_revenue","holdsInterestInAgriculturalLand","holds_interest_in_agricultural_land","isFamilyFarmLLC","is_a_family_llc","naicsCode","naics_code","numberOfStateEmployees","number_of_state_employees","numberOfEmployees","number_of_employees","scrapMetalDealer","scrap_metal_dealer","currentlyExporting","currently_exporting","topExportMarkets","top_export_markets","beInterestedInExporting","be_interested_in_exporting","isMinorityOwnedBusiness","is_minority_owned_business","isWomanOwnedBusiness","is_woman_owned_business","ownMoreThanOneBusiness","own_more_than_one_business","howManyBusinesses","how_many_businesses","howManyCounties","how_many_counties","doesEmployIndividualsWhoServeInForces","does_employ_individuals_who_serve_in_forces","howManyIndividuals","how_many_individuals","doesOwnerServeInForces","does_owner_serve_in_forces","getSupportFromWVSBDC","get_support_from_WVSBDC","issuedSharesAndGrossAssets","issuedShares","issued_shares","grossAssets","substring","gross_assets","issuedSharesClass","issued_shares_class","issuedSharesSeries","issued_shares_series","workerCompensationInsuranceRequired","worker_compensation_insurance_required","isBusinessSelfInsured","is_business_self_insured","selfInsuranceDetails","insurance_company","insuranceCompany","policy_number","policyNumber","coverage_start_date","coverageBegan","chiefExecutiveOfficer","chief_executive_officer","businessEntityPrincipalAddress","business_entity_principal_address","numberOfDirectorsAndDirectorsAsWomen","number_of_directors","numberOfDirectors","number_of_directors_as_women","numberOfDirectorsAsWomen","year","ownedUSMilitaryVeteran","owned_us_military_veteran","ownedUSDisabledMilitaryVeteran","owned_us_disabled_military_veteran","netReceiptsLessThanOneMillion","net_receipts_less_than_one_million","upToDateStockInformation","up_to_date_stock_information","stockClass","stock_class","stockAdded","stock_added","addedStock","authorizedShares","corpTransacts","corp_transacts","corpOwnership","corp_ownership","isCombinedGroup","is_combined_group","isCombinedGroupTempLossPreserved","is_combined_group_temp_loss_preserved","isTieredPartnerRevAdjusted","is_tiered_partner_rev_adjusted","isPassiveEntityTX","is_passive_entity_tx","isREITTX","is_reit_tx","isNewVetOwnedTX","is_new_vet_owned_tx","webFileId","web_file_id","formNewAmendmentData","filingJurisdiction","filingJurisdictionType","jurisdictionType","originalCompanyInfo","hasWFG","hasARS","hasPurchasedWFC","isPurchasingWFG","isWorryFreeChecked","jurisdictionTypeFees","convertAmendmentOrderItem","isAmendment","stateId","complianceEventUuid","foreign_jurisdiction_objects","jurisdiction_filing_number","compliance_event_uuid","new_data","formNewData","convertAnnualReportOrderItem","changingOwnership","changing_ownership","banking","inPlan","purchaseBanking","g","businessType","businessYears","business_years","businessActivity","businessActivityOther","dbas","business_dba_name","owners","accountType","account_type","routingNumber","routing_number","accountNumber","account_number","accountFullName","account_full_name","fundingAmount","publicToken","public_token","owner","accountOwner","naicsLabel","naics","naics_description","incorporation_state","funding_amount","terms_of_service_ack","business_entity_address","business_entity_contact","bank_account_members","role","citizenship","residentCitizenAgeAck","ssn","percent","dob","access","ownershipPercentage","resident_citizen_age_acknowledge","ownership_percentage","account_owner","date_of_birth","convertOwner","convertOwners","BUSINESS_KIT","postpurchase","purchaseBusinessKit","business_kit","beneficialOwnershipFiling","purchaseBOF","isBofSummer2024PromoEnabled","campaignName","isBofSummer2024Pricing","bofSummer2024OneTimeCoupon","Object","values","item","external_coupon_id","bofSummer2024PromoOneTimeCouponAmount","amount","bofSummer2024PromoOneTimeCouponUuid","coupon_uuid","busType","beneficial_ownership_filing","forPostPurchase","orderItems","services","convertOrderItems","oneTimeFee","ongoingPrice","coupon49Off","coupon49OffAmount","coupon49OffUuid","oneTimeCoupon","isOngoing","hasOngoing","purchasebeneficialOwnershipFiling","bofModPrice","foundCoupon","couponAmount","userOrderOngoingBofSubscription","fromReg","is_generic","buildFromFormation","isGeneric","businessName","initManagers","initMembers","llcBusinessAddress","llcMailingAddress","mailingAddressType","mailingAddressLine1","mailingAddressLine2","mailingCity","mailingCounty","mailingState","mailingZipCode","businessEmail","preemptiveRights","preemptive_rights","rightOfFirstRefusal","right_of_first_refusal","financialReportFrequency","financial_report_frequency","internalFinancialAudit","internal_financial_audit","taxAdvances","tax_advances","dayToDayMajority","day_to_day_majority","meetingOfMembersMajority","meeting_of_members_majority","passActionWithoutMeetingMajority","pass_action_without_meeting_majority","amendmentMajority","amendment_majority","terminateCompanyMajority","terminate_company_majority","amendOAorFormation","amend_oa_or_formation","issueAdditionalMembership","issue_additional_membership","appointRemoveAuditors","appoint_remove_auditors","amendRelatedPartyAgreement","amend_related_party_agreement","enterEquityTransactions","enter_equity_transactions","enterAssetTransactions","enter_asset_transactions","establishSubsidiary","establish_subsidiary","offeringAndSecurities","offering_and_securities","fundamentalBusinessTransaction","fundamental_business_transaction","liquidateOrTerminate","liquidate_or_terminate","cancelLiquidateOrTerminate","cancel_liquidate_or_terminate","reinstateAfterTermination","reinstate_after_termination","changeManager","change_manager","membersRemoveManager","members_remove_manager","fillManagerVacancy","fill_manager_vacancy","capitalContributionApproval","capital_contribution_approval","capitalContributionAmount","capital_contribution_amount","makeInvestmentApproval","make_investment_approval","makeInvestmentAmount","make_investment_amount","incurIndebtednessApproval","incur_indebtedness_approval","incurIndebtednessOneTimeAmount","incur_indebtedness_onetime_amount","incurIndebtednessTotalAmount","incur_indebtedness_total_amount","settleLawsuitApproval","settle_lawsuit_approval","settleLawsuitAmount","settle_lawsuit_amount","convertedLLCBusinessAddress","convertedLLCMailingAddress","partnership_rep","partnershipRep","manager_notice","managerNotice","llc_business_address","llc_mailing_address","member","membershipInterest","maritalStatus","spouseName","primaryMember","officialNotice","emailDisabled","phoneNumberDisabled","membership_interest","marital_status","spouse_name","primary_member","official_notice","email_disabled","phone_disabled","purchasedEmails","emailUserName","primary","emailAddresses","length","emailAddress","lastIndexOf","emailDomain","websiteToolsStandalone","activeWebsiteToolsBundle","emailInPlan","_emailAddress","emailSkip","email_address","domain_name","skip","convertBusinessData","blr","businessOutOfHome","businessIndustryId","businessIndustryLabel","hasEmployees","employeesCount","hasDBAs","existingCompany","businessData","out_of_home","industry_id","industry_label","has_trade_names","has_employees","employees_count","existing_company","purchaseBLR","trade_names","has_trade_name","baseIndex","baseUrl","START_BLR_DATA","START_BUS_DATA","baseAction","business_data","incomplete","registrationOrder","fulfillment_required","complete","willMarkOrderCompleted","cora","requestedJurisdictions","pendingStates","upsellDomJur","typeKey","reqJurs","collect","reqJur","unshift","datas","isFormed","couponItem","jurKey","items","createOrderItemsForJurisdiction","index","includeBusinessData","raData","is_truic_ra","is_cora","businessIndustry","sopContact","jurisdictionOrder","existingJurisdictions","filingDates","stateIds","statePINs","hasElectiveCEO","electiveCEO","domesticEntity","hasFormation","needsDomesticJurisdictionData","needsPrincipals","needsContact","needsCoraContacts","needsBusinessData","needsBusinessIndustry","needsAddresses","needsPrincipalAddress","businessOrderType","domesticJurisdictionStatePIN","domesticJurisdictionElectiveCEO","isIncomplete","retVal","fos","fo","foFilingDate","foFilingNumber","foStatePIN","foElectiveCEO","jurisdiction_filing_date","extra_state_info","state_pin","elective_ceo","djFilingDate","djStateId","domestic_jurisdiction_filing_date","domestic_jurisdiction_filing_number","domestic_jurisdiction_state_info","jurisdiction_state_pin","jurisdiction_elective_ceo","business_industry","contactSource","sop_contact","needs_addresses","needs_business_data","needs_business_industry","needs_contact","needs_cora_contacts","needs_domestic_jurisdiction_data","needs_principal_address","needs_principals","has_elective_ceo","jurisdiction_order","existing_jurisdictions","business_order_type","pending_states","is_primary","addBusinessData","level","createOrderDatasForJurisdiction","zenBusinessRegisteredAgent","anonymity","isPostPurchase","purchaseCD","corporateDocs","einBusinessDocsBundle","corporate_docs","cpaConsult","cpa_consult","websiteToolsBundle","purchasedDomains","_domainName","domainNames","alternates","verified","domain_verified","convertTaxData","llcMarried","llcSingleMember","taxedAsSCorp","taxInfo","members_are_married","taxed_as_single_member_llc","taxed_as_s_corp","gambling","atf","employeesW2","w2WagesPaidDate","w2AgriculturalEmployeeCount","w2OtherEmployeeCount","w2WagesLessThan1000","corpCareOf","corpClosingMonth","startDate","motorVehicle","motorVehicleWeight","businessForm720","businessActivity1","businessActivity2","businessActivity3","businessActivity4","businessActivity5","businessActivitySpecify","level_1","level_2","level_3","level_4","level_5","specify","startDatePieces","split","startDateConverted","start_date","alcohol_tobacco_firearms","employees_with_w2","w2_wages_paid_date","w2_agricultural_employees_count","w2_other_employees_count","w2_wages_lt_1000","highway_vehicle","highway_vehicle_over_55000","files_form_720","corp_care_of","corp_closing_month","convertResponsibleParty","responsibleParty","hasSSN","party","legal_name","legalName","ein_number","previous_ein","previousEin","alternate_last_names","alternateLastNames","collect_data_from_user","collectDataFromUser","has_ssn","convertSSN","order_ssn","order_ssn_tokenized","reason","convertedMailing","mailingField","tax_info","responsible_party","START_EIN","hardcodedPrice","baseService","initialCPAScreening","initial_cpa_screening","nypub","nyPubCountyCode","useAlbany","pubState","getPubFee","isStandalone","nyPubCounty","countyName","dat","ny_publication_county","purchaseRA","registeredAgentService","privacyFees","card","recurring","planReduce","isSCorp","static_website","taxPreparation","tax_preparation","annual_report_service","accountant1800","remagine","industry","acc_entity_type","package_purchased","toUpperCase","getRemaginePlanName","acc_entity_name","acc_first_name","acc_last_name","zbmPro","purchaseZBMPro","pfPurchaseZBMPro","zbmProMonthly","pfpppm","zbpm","pppm","returnJurisdiction","registrationData","zbBankingPreferred","purchaseZbBankingPreferredOffer","service_prices","zb_banking_preferred","taxServices","product","zbTaxAdvice","zbTaxAdviceBizTaxPrep","purchaseTaxAdvice","taxAdviceMonthly","purchaseTaxAdviceBizTaxPrep","taxAdviceBizTaxPrepMonthly","isPrePurchase","isBundled","isMonthly","zbBizTaxPrep","isStandaloneBundle","einBizDocsOaBundle","bizDocsBlrBundle","typeFees","corp_formation","isInternational","valuePerShare","businessActiivty","foreignJurisdictions","hasMoreThanOneShare","goals","homeBased","launchStatus","priorExperience","estimatedFormationDate","authSharesNum","valuePerShareNum","entityName","has_more_than_one_share","home_based","launch_status","prior_experience","plan_partner","plan_name","purchase_blr","blr_data","purchase_ra","purchaseDBAEntity","purchase_dba_entity","dba_entities","dbaEntities","purchaseDBACompliance","purchase_dba_compliance","purchase_cd","purchaseBankOfAmericaOffer","purchase_bank_of_america_offer","purchase_zb_banking_preferred_offer","purchaseFFD","purchase_ffd","filing_action","filingAction","futureFilingDate","future_filing_date","purchaseWFGIR","purchase_wfgir","purchaseVBA","purchase_vba","purchaseVanityProduct","purchase_vanity_product","purchase_tax_advice","tax_advice_monthly","purchase_tax_advice_biztax_prep","tax_advice_biztax_prep_monthly","purchase_zbmpro","zbmpro_monthly","purchase_business_kit","purchase_bof","bof_ongoing","bofOngoing","purchaseExpenseTrackerAndTaxFiling","expense_tracking_with_tax_filing","START_COMP","buildOrderData","useBNR","businessStatus","cardOrToken","dbaEntity","parentType","parent_type","dbaName","dba_name","businessDescription","ownerCount","owner_count","stateFilingDate","stateFilingNumber","hasEIN","has_ein","spFirstName","spMiddleName","spLastName","spSuffix","isSoleProp","sole_proprietor","simulatedCompanyId","fromDBAStandalone","inProgress","dbaCompliance","ppRequestedJurisdiction","ppPurchaseDBACompliance","dba_compliance","saEntities","busReqJurisdiction","ppEntities","entity","hasITIN","expenseTrackerNTaxFiling","registerExpenseTrackerNTaxFiling","goodStanding","standard_good_standing","formation_jurisdiction","logoKit","logo_kit","isDAO","daoMemberManaged","daoRestriction","daoSmartContractLink","dao_smart_contract_managed","dao_notice_approved","dao_smart_contract_link","formationCounty","llc_formation","formation_county","nameReservation","nameReservationFees","entity_name_reservation","SERVICE","annualReportService","vanityProduct","priceWithoutCoupon","priceIsMonthly","productKey","priceIsYearly","vanity_product","bankOfAmericaOffer","lead_type","boa_entity_name","boa_entity_type","FORMATION_SERVICES","getIntervalData","yearlyInterval","affiliatePlanOptionUUID","pkg","getPackageData","chooseEcomm","vanityKey","vanityUrlId","processCreateError","isAuth0","rejectEmptyOrder","itemCount","Array","isArray","dataCount","addPricingIds","planItem","affiliatePricingUUID","affiliate_pricing_uuid","bofKey","ongoingKey","hasBOF","some","hasOngoingBOF","bofOrderItem","ongoingOrderItem","bofModKey","bofModOrderItem","leadCreation","async","leadData","affiliate_id","banner_id","localStorage","getItem","leadTracking","flow_name","device_type","mobileDeviceType","user_type","dataWithTracking","lead_tracking","validate","errTrack","times","lead_created","eventLabel","resolve","setTimeout","createFormation","orderTracking","order_tracking","leadFromLS","parse","formationOrderData","od","formationOrderService","leadInfo","lead_source","searchstate","selected_state","leadUuid","ex","checkAccountData","activeService","formation","createStandalone","emptyOrder","createDashboardStandalone","updateOrder","payload","validateOrderDataSent","tokenHeader","createLead","updateLead","createLLC","updateLLC","createCorp","updateCorp","updateStockSetup","corpFormationId","createStockOrder","companyID","createDBAEntity","createDBAEntityForExistingBus","updateDBAEntity","createEIN","updateEIN","createBusinessLicense","updateBusinessLicense","createRA","updateRA","createCoRA","updateCoRA","createWFG","updateWFG","createNameReservation","createNyPubLLC","updateNyPubLLC","createAccounting","createAmendment","didSelectOnlyAnnualReport","createAnnualReport","didAddAmendment","createDBAEntityAddOn","createGoodStanding","createInitialCPAScreening","createLogoKit","createStaticWebsite","createExpenseTrackerNTaxFiling","createWFGInitialReport","wfgir","createBankingResolution","createBusinessKit","businessKit","createBeneficialOwnershipFiling","isMod","createBeneficialOwnershipFilingModification","createOperatingAgreement","createBasicEmail","createCorpDocs","corpDocs","createDomainName","createDomainNameV2","isExternal","orderUuid","createDomainOrderV2","is_external","createEmail","createSkippedEmail","createDomainNamePrivacy","createBanking","createSMBWebsite","smbWebsite","createSMBWebsiteEcomm","smbWebsiteEcomm","createSMBEcommAddon","smbEcommAddon","createSMBWebsiteOrEcomm","smbWebsiteOrEcomm","createVanityProduct","createWebsiteToolsBundle","createZBMPro","createTruicZBMPro","createEINBanking","createZbBankingPreferred","createTaxServices","createPostPurchase","bofData","bofItems","existingOrderData","entry","cleaned","stripEmptyShareFields","existing_order_data","existing_order_uuid","previous_purchase_order_uuid","createPostPurchaseBOF","validateBusinessName","buildBusinessData","getBusinessEntity","entityId","update","businessEntityId","put","updateContacts","createdDate","Date","toISOString","contact_types","deleted","created_datetime","updated_datetime","buildContactsData","getComplianceEvents","accountService","fintechService","amendmentService","companyService","contactUsService","corpStockService","domainNameService","initializationService","registrationService","orderService","businessEntityService"],"sourceRoot":""}