"""Generic error messages.""" ERROR_ALREADY_EXISTS = 'A {object_type} with that name already exists.' ERROR_FIELD_MISSING = 'Must be specified.' ERROR_UNKNOWN_COUNTRY = 'Country code not recognized: {code}' ERROR_PAYONEER_REDIRECT_PARAMS = 'Wrong Payoneer redirect param!' ERROR_SESSION_ID_REQUIRED = 'Session id is required!' ERROR_PAYONEER_GET_ACCOUNT_ID = 'Payoneer account id not found!' ERROR_COMPOSE_PAYONEER_REQUEST = 'Payoneer request generation error!' ERROR_PAYONEER_ACCOUNT_ID_NOT_VALID = 'Payoneer account not valid!' ERROR_PAYONEER_REFRESH = 'Payoneer refresh returned an error.' ERROR_PAYONEER_GET_TOKENS = 'Payoneer get tokens returned an error.' ERROR_DONT_HAVE_PERMISSIONS = "You don't have access to this resource!" ERROR_NO_VALID_IDENTITY_IN_CONTEXT = 'No valid identity found in request context' ERROR_NOT_PERMITTED_IDENTITY = ( 'Identity {jwt_identity} is not permitted for this endpoint' ) ERROR_TOKEN_DECODE_ERROR = 'Wrong account id!' ERROR_PAYEE_DETAILS_NOT_FOUND = ( 'Payoneer details not found for payoneer_client_reference_id:`{id}`' ) ERROR_PAYONEER_CREDS_NOT_FOUND = ( 'Payoneer credentials not found for program_id:`{program_id}`' ) ERROR_PAYEE_TAX_DETAILS_NOT_FOUND = ( 'Payee tax details not found for account_payee_id:`{account_payee_id}`' ) ERROR_INVALID_CORP_ENTITY = ( 'User is not signed to valid corporate entity: "{corp_entity}"' ) ERROR_PAYEES_IDS_NOT_FOUND = 'Payee ids required!' ERROR_PAYEE_KNR_DETAILS_NOT_FOUND = ( 'Payee knr details not found for account_payee_id:`{account_payee_id}`' ) ERROR_ACCOUNT_ID_NOT_FOUND = ( 'Account_id not found for account_payee_id `{account_payee_id}`' ) ERROR_UPDATE_ACCESS_TOKEN = ( 'Error update payoneer access token for account_payee_id:{account_payee_id}' ) ERROR_UPDATE_PAYEE_ABACUS_STATE = ( 'Error update abacus state for payee:{account_payee_id}' ) ERROR_PAYEE_ABACUS_STATE_ID_NOT_FOUND = ( '`{state}` state id not found for payee:{account_payee_id}' ) ERROR_PAYEE_REFRESH_TOKEN_NOT_FOUND = ( 'Refresh token not found for account_payee_id:{account_payee_id}' ) ERROR_EMPTY_PAYLOAD = "Payload shouldn't be empty!" ERROR_PAYONEER_WFORM_GET = 'Error occurs during WForm request from payoneer: {error}' ERROR_VIES_API_UNREACHABLE = 'VIES service unreachable: {error}' ERROR_HMRC_API_UNREACHABLE = 'HMRC service unreachable: {error}' ERROR_VIES_API_ERROR = 'Got error from vies: {error}' ERROR_OWS_HEADERS = 'Not all ows request headers was provided!' ERROR_MASS_PAYOUT_BOTH_PAYEE_IDS = ( 'Exactly one of account_payee_id or payee_id must be provided, not both.' ) ERROR_MASS_PAYOUT_MISSING_PAYEE_ID = ( 'Exactly one of account_payee_id or payee_id must be provided.' ) ERROR_MASS_PAYOUT_INVALID_PAYEE_ID = ( 'payee_id must be a non-negative integer or a valid UUID string.' ) # VAT Error codes ERROR_VAT_UK_VAT_FORMAT = 'UK_VAT_FORMAT' ERROR_VAT_HMRC_API_CHECK_FAILED = 'HMRC_API_CHECK_FAILED' ERROR_VAT_API_UNREACHABLE = 'API_UNREACHABLE' ERROR_VAT_INVALID_COUNTRY_CODE = 'INVALID_COUNTRY_CODE' ERROR_VAT_VIES_API_CHECK_FAILED = 'VIES_API_CHECK_FAILED' # Bank details ERROR_PAYEE_BANK_DETAILS_NOT_FOUND = ( 'Payee bank details not found for {id_name}:`{payee_id}`' ) ERROR_PAYEE_VERIFICATION_IN_PROGRESS = ( 'Cannot update the payee while the verification process is in progress' ) ERROR_NO_BANKING_DETAILS_REVIEW = 'banking_details_review status not found' # PayeeDataloaderSchema validation errors ERROR_PAYEE_DATALOADER_SCHEMA_AT_LEAST_ONE = ( 'Either collaborator_ids or payoneer_client_reference_ids must be provided.' ) ERROR_PAYEE_DATALOADER_SCHEMA_EXCLUSIVE = ( 'Only one of collaborator_ids or payoneer_client_reference_ids must be provided.' ) # TaxWithholdingOverrideDataloaderSchema validation errors ERROR_TAX_WITHHOLDING_OVERRIDE_DATALOADER_SCHEMA_DUPLICATE = ( 'Duplicate account_payee_ids are not allowed.' ) ERROR_TAX_WITHHOLDING_OVERRIDE_CREATE_SCHEMA_EMPTY_INPUT = ( 'Empty tax withholding override creation input is not allowed.' ) ERROR_ACCOUNT_PAYEE_ID_NOT_FOUND = ( 'Account payee not found for account_payee_id `{account_payee_id}`' )