code: def TextToAttachmentStatus(self, Text):
          
          conv = {'UNKNOWN': enums.apiAttachUnknown,
                  'SUCCESS': enums.apiAttachSuccess,
                  'PENDING_AUTHORIZATION': enums.apiAttachPendingAuthorization,
                  'REFUSED': enums.apiAttachRefused,
                  'NOT_AVAILABLE': enums.apiAttachNotAvailable,
                  'AVAILABLE': enums.apiAttachAvailable}
          try:
              return self._TextTo('api', conv[Text.upper()])
          except KeyError:
              raise ValueError('Bad text')
docs: Returns attachment status code.
  
          :Parameters:
            Text : unicode
              Text, one of 'UNKNOWN', 'SUCCESS', 'PENDING_AUTHORIZATION', 'REFUSED', 'NOT_AVAILABLE',
              'AVAILABLE'.
  
          :return: Attachment status.
          :rtype: `enums`.apiAttach*