"""Constants for ows-account.""" from enum import Enum BOOLEAN_IDENTIFIER = ('Y', 'N') GDA_OWNERS = ('awal', 'AWAL Core Accounts', 'AWAL-Core') FEATURE_USE_NEO4J_MANAGED_TX = 'use_neo4j_managed_tx' FEATURE_SONGWHIP_IN_SETTINGS_V2 = 'songwhip_in_settings_v2_enabled' WARNING_MESSAGE_VENDOR_ACCESS_CHECK = ( 'VENDOR_VERIFY_ACCESS_FROM_PROFILE Check Failure: ' + 'Profile id={}, type={} does NOT have access to Vendor {}.' ) VENDOR_STATUS = ( 'pitched', 'pending', 'verbal', 'signed', 'passed', 'inactive', 'deletion', 'waiting_for_approval', 'approved', ) LABEL_IDENTIFIER = ( 'Frontline', 'Client Services', 'Catalog', 'D3', 'Film', 'TV', 'Test', 'Accounting Only', ) COMPANY_BRAND = ( 'ab', 'altafonte', 'awal', 'drm', 'foundation', 'hrs', 'knr', 'ma', 'msk', 'sme', 'theorchard', ) VENDOR_UPDATED = 'Vendor is successfully updated' VENDOR_ALREADY_DISTRIBUTOR = 'Vendor is already a distributor' PAYMENT_TYPE = ('check', 'wire', 'travelex') TRANSFER_PRICING_COUNTRY = ( 'ioda_brazil', 'orchard_as', 'orchard_eu', 'orchard_gmbh', 'red_essential', 'sme_argentina', 'sme_australia', 'sme_austria', 'sme_belgium', 'sme_brazil', 'sme_canada', 'sme_central_america', 'sme_chile', 'sme_china', 'sme_colombia', 'sme_czech_republic', 'sme_denmark', 'sme_east_africa', 'sme_ecuador', 'sme_finland', 'sme_france', 'sme_germany', 'sme_greece', 'sme_hong_kong', 'sme_hungary', 'sme_india', 'sme_indonesia', 'sme_ireland', 'sme_israel', 'sme_italy', 'sme_korea', 'sme_malaysia', 'sme_mexico', 'sme_middle_east', 'sme_netherlands', 'sme_new_zealand', 'sme_norway', 'sme_peru', 'sme_philippines', 'sme_poland', 'sme_portugal', 'sme_russia', 'sme_singapore', 'sme_south_africa', 'sme_spain', 'sme_sweden', 'sme_switzerland', 'sme_taiwan', 'sme_thailand', 'sme_turkey', 'sme_united_kingdom', 'sme_uruguay', 'sme_venezuela', 'sme_vietnam', 'sme_west_africa', 'orchard_ny', 'finetunes', 'phonofile', ) # for readibility only, SERVICE_TIER_UUIDS includes the name of the uuid SERVICE_TIER_UUIDS = { '5f2bd4fc-df94-4f35-97d3-ef23f8573279': 'diy-tier-1', '7410e51c-90da-4092-99da-b5489f364fa8': 'tier-2', '9363881e-1120-4495-ae09-657e13609e11': 'tier-3', '1dd92c83-25a3-4034-9a3d-f7c3f434f4ce': 'premium-services', '2304f272-7a12-40fc-ba48-959fff435223': 'managed-basic', '1ed7aac0-ceb6-4c09-9166-afda8f349316': 'tier-1', 'c069ab15-9370-4bd6-8ad1-895a64ae2ad8': 'untiered', } INTERNAL_ERROR = 500 FETCH_TENANT_HIERARCHY = 'TENANT_HIERARCHY' FETCH_IS_DISTRIBUTOR = 'IS_DISTRIBUTOR' LOOKUP_FETCH_FLAGS = Enum( 'FETCH_FLAGS', [FETCH_TENANT_HIERARCHY], ) COMPANY_BRAND_TO_DOMAIN_MAPPING = { 'ab': 'theorchard.com', 'altafonte': 'theorchard.com', 'awal': 'awal.com', 'drm': 'theorchard.com', 'hrs': 'theorchard.com', 'knr': 'kollectivenr.com', 'ma': 'theorchard.com', 'msk': 'theorchard.com', 'sme': 'sonymusic.com', 'theorchard': 'theorchard.com', 'foundation': 'sonymusic.com', } COMPANY_BRAND_APPLICATION_DOMAIN_OVERRIDES = { 'knr': {'INSIGHTS_APP': 'sme'}, } # Parent Company UUIDs for SEAT employee invitation flow ORCHARD_PARENT_COMPANY_UUID = '955a1bbd-b623-4ea1-ab5f-8d6620c442fb' SME_PARENT_COMPANY_UUID = 'f1594122-7f99-4916-b103-08b0444c7b46' ALLOWED_PARENT_COMPANY_UUIDS = [ORCHARD_PARENT_COMPANY_UUID, SME_PARENT_COMPANY_UUID] # Internal staff field names on a vendor. Shared by the # UpdateVendorInternalStaffSchema and the logic layer that writes them. ASSIGNED_TO = 'assigned_to' ASSIGNED_REVIEWER = 'assigned_reviewer' QUARTERBACK_LABEL_MANAGER = 'quarterback_label_manager' WEL_EMAIL_SENDER = 'wel_email_sender' PRODUCT_MANAGER = 'product_manager' NULLABLE_STAFF_FIELDS = ( ASSIGNED_TO, ASSIGNED_REVIEWER, QUARTERBACK_LABEL_MANAGER, WEL_EMAIL_SENDER, ) # TODO: can allow unsetting the product manager in the future. STAFF_FIELDS = (*NULLABLE_STAFF_FIELDS, PRODUCT_MANAGER) DEFAULT_AWAL_CLOSER_ID = 2912