import { LabelValueCodesPayload } from '../../commonPayloadTypes/commonPayload'; import { AllowedValueWithCode, AllowedValueWithID } from '../../commonStateTypes/allowedValue'; import { ID } from '../../commonStateTypes/common'; import { CustomerRatingCodeType, TeamRatingCodeType } from '../customerSatisfaction/customerSatisfactionState'; import { Company, CompanyTreasuryInfo, OnboardingInfo, OnboardingStepErrorDetails, ParentSubsidiaryInfo } from './companyStateTypes'; export declare const defaultParentSubsidiaryObject: ParentSubsidiaryInfo; export interface CompanyInfoPayload { book_close_date: string | null; company_description: string | null; company_id: string; company_legal_name: string | null; company_url: string | null; create_time: string; is_zeni_coa_in_use: boolean; meeting_url: string | null; name: string; phone: string | null; primary_email_domain: string; source_of_funds: string | null; update_time: string; company_countries_of_operations?: string[] | null; company_purpose_of_account?: string | null; company_purpose_of_account_desc?: string | null; company_regulated_states?: boolean | null; company_regulated_states_desc?: string | null; company_source_of_funds?: string | null; company_source_of_funds_desc?: string | null; company_transaction_vol_expectations?: string | null; company_transaction_vol_expectations_desc?: string | null; company_us_nexus?: boolean | null; company_us_nexus_desc?: string[] | null; first_month_of_fiscal_year?: string | undefined; sync_token?: string | null; } interface CompanyLocaleInfoPayload { company_inc_country_code: string | null; is_multi_currency_enabled: boolean; currency_code?: string | null; currency_symbol?: string | null; is_qbo_multi_currency_enabled?: boolean; language_code?: string | null; } export interface CompanyIncInfoPayload { company_inc_country: string | null; company_inc_country_code: string | null; company_inc_date: string | null; company_inc_state: string | null; company_inc_state_code: string | null; company_inc_type: string | null; company_industry_sub_type?: string | null; company_industry_type?: string | null; file_ids?: ID[] | null; } export interface CompanyTaxInfoPayload { duns_id: string | null; naics_code: string | null; sic_code: string | null; tax_id: string | null; taxes_due_date: string | null; taxes_filed_date: string | null; taxes_filed_years: number[]; } export interface CompanyQuestionairePayload { bookkeeping_software_used: string | null; business_banks: string[]; company_business_model: string | null; company_credit_cards: string[]; company_finance_management_firm_name: string | null; company_finance_management_type: string | null; company_industry: string; company_money_raised_max: number | null; company_money_raised_min: number | null; company_monthly_expenses_max: number | null; company_monthly_expenses_min: number | null; company_payment_processors: string[]; company_size_max: number | null; company_size_min: number | null; payroll_provider: string | null; referrer_name: string | null; referrer_type: string | null; services_requested: string[]; } interface BillPayNowCutOffByMethodPayload { ach: string; } interface CompanyBillPayInfoDataPayload { bill_pay_tos_acceptance_ip: string | null; bill_pay_tos_acceptance_time: string | null; bill_pay_tos_acceptance_user_agent: string | null; bill_pay_tos_acceptance_user_id: string | null; business_verification_status: { code: string | null; name: string | null; }; company_verification_status: { code: string | null; name: string | null; }; international_wire_onboarding_details: Record; international_wire_onboarding_status: AllowedValueWithCode; is_bill_pay_approval_enabled: boolean; is_bill_pay_enabled: boolean; is_bill_pay_tos_accepted: boolean; is_business_verified: boolean; is_vendor_magic_link_feature_enabled: boolean; primary_funding_account: { account_id: string | null; account_type: string | null; }; schedule_pay_now_cutoff_time_by_payment_method: BillPayNowCutOffByMethodPayload; users_for_verification: string[]; is_international_wire_enabled?: boolean | null; is_international_wires_verified?: boolean | null; } export interface UserReimbursementInfoDataPayload { is_reimbursement_tos_accepted: boolean; reimbursement_tos_acceptance_ip: string | null; reimbursement_tos_acceptance_time: string | null; reimbursement_tos_acceptance_user_agent: string | null; } interface CompanyReimbursementInfoDataPayload extends UserReimbursementInfoDataPayload { is_reimbursement_enabled: boolean; primary_funding_account: { account_id: string | null; account_type: string | null; }; reimbursement_tos_acceptance_user_id: string | null; } interface CompanyZeniAccountInfoDataPayload { deposit_accounts_tos_acceptance_ip: string | null; deposit_accounts_tos_acceptance_time: string | null; deposit_accounts_tos_acceptance_user_agent: string | null; deposit_accounts_tos_acceptance_user_id: string | null; is_deposit_accounts_enabled: boolean; is_deposit_accounts_tos_accepted: boolean; primary_funding_account: { account_id: string | null; account_type: string | null; }; } interface CompanyTreasuryInfoDataPayload { business_verification_status: { code: string | null; name: string | null; }; company_verification_status: { code: string | null; name: string | null; }; is_treasury_accounts_tos_accepted: boolean; primary_funding_account: { account_id: string | null; account_type: string | null; }; treasury_accounts_tos_acceptance_ip: string | null; treasury_accounts_tos_acceptance_time: string | null; treasury_accounts_tos_acceptance_user_agent: string | null; treasury_accounts_tos_acceptance_user_id: string | null; treasury_business_verification_verified_time: string | null; } interface CompanyChargeCardInfoDataPayload { charge_cards_credit_account_limit: number; charge_cards_tos_acceptance_ip: string | null; charge_cards_tos_acceptance_time: string | null; charge_cards_tos_acceptance_user_agent: string | null; charge_cards_tos_acceptance_user_id: string | null; is_charge_cards_enabled: boolean; is_charge_cards_tos_accepted: boolean; is_company_interested_in_charge_card: boolean; primary_funding_account: { account_id: string | null; account_type: string | null; is_auto_pay_enabled?: boolean; }; } interface CompanyDebitCardInfoDataPayload { debit_cards_tos_acceptance_ip: string | null; debit_cards_tos_acceptance_time: string | null; debit_cards_tos_acceptance_user_agent: string | null; debit_cards_tos_acceptance_user_id: string | null; is_debit_cards_enabled: boolean; is_debit_cards_tos_accepted: boolean; } interface CompanyBillPayInfoPayload { bill_pay_info: CompanyBillPayInfoDataPayload; } interface CompanyReimbursementInfoPayload { reimbursement_info: CompanyReimbursementInfoDataPayload; } interface CompanyZeniAccountInfoPayload { deposit_accounts_info: CompanyZeniAccountInfoDataPayload; } interface CompanyTreasuryInfoPayload { treasury_accounts_info: CompanyTreasuryInfoDataPayload; } interface CompanyChargeCardInfoPayload { charge_cards_info: CompanyChargeCardInfoDataPayload; } interface CompanyDebitCardInfoPayload { debit_cards_info: CompanyDebitCardInfoDataPayload; } interface CompanyMileageConfigInfoPayload { default_mileage_unit_amount: number; denomination_conversions: { amount: number | null; denomination: string; denomination_symbol: string; }; description: string; mileage_currency_code: string; mileage_currency_symbol: string; mileage_unit: string; mileage_unit_amount: number | null; } export interface CompanyConfigInfoPayload { is_month_end_email_in_draft: boolean; is_new_company_industry_verified: boolean; is_unit_migration_required: boolean; is_unit_migration_tos_required: boolean; mileage_rate_config: CompanyMileageConfigInfoPayload; } interface CompanyFeaturesActivationInfoPayload { connected_account_provider: string; is_bill_pay_feature_enabled: boolean; is_deposit_accounts_feature_enabled: boolean; is_feature_vendor_listing_enabled: boolean; is_reimbursement_feature_enabled: boolean; is_same_day_ach_enabled: boolean; is_book_keeping_enabled?: boolean; is_cfo_enabled?: boolean; is_payroll_enabled?: boolean; is_tax_enabled?: boolean; } export declare const toCompanyTreasuryInfo: (payload: CompanyTreasuryInfoDataPayload) => CompanyTreasuryInfo; export declare const toOnboardingInfo: (onboardingInfoPayload?: OnboardingInfoPayload) => OnboardingInfo | undefined; interface CompanyManagementUserRolePayload { is_zeni: boolean; user_id: string; is_ap_analyst?: boolean; is_controller?: boolean; is_customer_success_manager?: boolean | null; is_preparer?: boolean; is_reviewer?: boolean; is_tax_lead?: boolean; user_email?: null; } interface UpdateCustomerSatisfactionPayload { customer_note?: string; customer_rating_code?: CustomerRatingCodeType; customer_satisfaction_id?: ID; team_note?: string; team_rating_code?: TeamRatingCodeType; } export interface CompanyManagementInfoPayload { ap_analyst_user_ids: string[]; company_address_id: string | null; company_officer_user_ids: string[]; controller_user_ids: string[]; customer_success_manager_user_ids: string[]; last_report_sent_business_day: number | null; last_report_sent_date: string | null; note: string | null; note_last_update_time: string | null; note_last_updated_user_id: string | null; preparer_user_ids: string[]; primary_contact_user_id: string | null; receiver_emails: string[]; registered_address_id: string | null; reviewer_user_ids: string[]; tax_lead_user_ids: string[]; company_contact_user_id?: string | null; company_group?: { id: string | null; name: string | null; }; company_group_id?: string | null; customer_satisfaction?: UpdateCustomerSatisfactionPayload; status?: { code: string | null; name: string | null; }; status_code?: string | null; tax_status?: { code: string | null; name: string | null; }; tax_status_code?: string | null; users?: CompanyManagementUserRolePayload[]; } export interface OnboardingInfoPayload { accounting_connection_created_by: string | null; is_interim_email_sent: boolean; is_onboarding_ai_activation_viewed: boolean; is_onboarding_ai_finance_team_acknowledged: boolean; is_onboarding_business_verified: boolean; is_onboarding_customer_created: boolean; is_onboarding_email_group_created: boolean; is_onboarding_identity_verified: boolean; is_onboarding_qbo_linked: boolean; is_uncategorized_expense_account_identified: boolean; is_uncategorized_income_account_identified: boolean; is_zeni_subscriptions_payment_account_linked: boolean; onboarding_ai_activation_viewed_by: ID[]; onboarding_ai_finance_team_acknowledged_by: ID[]; onboarding_business_identity_verified_by: ID[]; onboarding_business_verification_status: string; onboarding_customer_creation_done_by: ID[]; onboarding_email_group_creation_done_by: ID[]; onboarding_identity_verification_status: string; onboarding_identity_verified_by: ID[]; onboarding_qbo_linked_by: ID[]; primary_payment_account_for_zeni_subscriptions: string | null; zeni_subscriptions_payment_account_creation_error_message: OnboardingStepErrorDetails | null; zeni_subscriptions_payment_account_linked_by: ID[]; zeni_subscriptions_payment_account_linked_status_code: string; zeni_subscriptions_payment_account_method_type_code: string; onboarding_customer_user_ids?: ID[]; onboarding_time_since_quote_signed?: string; onboarding_to_quote_sign_minutes?: number; } interface CompanyOnboardingInfoPayload { is_onboarding_company_details_step_completed: boolean; is_onboarding_completed: boolean; is_subsidiary: boolean; onboarding_user_ids: ID[]; parent_company_id: ID | null; onboarding_info?: OnboardingInfoPayload; subscription_billing_address_id?: ID; } export interface CompanyPayload extends CompanyInfoPayload, CompanyLocaleInfoPayload, CompanyIncInfoPayload, CompanyTaxInfoPayload, CompanyQuestionairePayload, CompanyManagementInfoPayload, CompanyBillPayInfoPayload, CompanyReimbursementInfoPayload, CompanyZeniAccountInfoPayload, CompanyTreasuryInfoPayload, CompanyChargeCardInfoPayload, CompanyDebitCardInfoPayload, CompanyOnboardingInfoPayload, CompanyFeaturesActivationInfoPayload, CompanyConfigInfoPayload { } export declare const toCompany: (payload: CompanyPayload, companiesPayload: CompanyPayload[], isUpdate?: boolean, companyInStore?: Company, companyIdTenantIdMapping?: Record) => Company; export interface CompanySchemaPayload { company_group: { allowed_values: AllowedValueWithID[]; }; status: { allowed_values: AllowedValueWithCode[]; }; tax_status: { allowed_values: AllowedValueWithCode[]; }; } export declare const toAllowedValueWithCode: (payload: { code: string | null; name: string | null; }) => AllowedValueWithCode | undefined; export {};