code: def status(self, status):
          
          allowed_values = ["pending", "awaitingRetry", "successful", "failed"]
          if status is not None and status not in allowed_values:
              raise ValueError(
                  "Invalid value for `status` ({0}), must be one of {1}"
                  .format(status, allowed_values)
              )
  
          self._status = status
docs: Sets the status of this StoreCreditPayment.
  
  
          :param status: The status of this StoreCreditPayment.
          :type: str